summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2022-11-30 19:45:09 -0800
committerZac Medico <zmedico@gentoo.org>2022-11-30 19:45:42 -0800
commit567c437733417399551df986d3f85b9758568eb1 (patch)
tree6eb9a76ec8fb452068774a13bb8f1b96f050bba2 /app-containers
parentapp-containers/snapd: add 2.57.6 (diff)
downloadgentoo-567c437733417399551df986d3f85b9758568eb1.tar.gz
gentoo-567c437733417399551df986d3f85b9758568eb1.tar.bz2
gentoo-567c437733417399551df986d3f85b9758568eb1.zip
app-containers/snapd: drop 2.57.2-r1, 2.57.4, 2.57.5
Bug: https://bugs.gentoo.org/883795 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-containers')
-rw-r--r--app-containers/snapd/Manifest3
-rw-r--r--app-containers/snapd/snapd-2.57.2-r1.ebuild178
-rw-r--r--app-containers/snapd/snapd-2.57.4.ebuild178
-rw-r--r--app-containers/snapd/snapd-2.57.5.ebuild178
4 files changed, 0 insertions, 537 deletions
diff --git a/app-containers/snapd/Manifest b/app-containers/snapd/Manifest
index f4b6854f3687..e71239cee87f 100644
--- a/app-containers/snapd/Manifest
+++ b/app-containers/snapd/Manifest
@@ -1,4 +1 @@
-DIST snapd-2.57.2.tar.xz 6827264 BLAKE2B f9b1ae934a9c5b777d2e36854e259ddde301067a91b04ecef064accfccecc74693a2a58700e60867f46f028728a271b87cb3d4cdb316ae35df11363990959c3a SHA512 671e7598074894daf76646f7eea09c4163c57e68d0d46ebb77b20f71b898109fd73c78d363cb1253386ce058c1796eb25fab7f2f0345360426d3b9cc11d38804
-DIST snapd-2.57.4.tar.xz 6884432 BLAKE2B 47dcb8857070ab9f5cd02f6b64d6ef263ab1cf958c0eee6654064f7beec10c5b9995dcad9c66ba8237c6e4991e6c82b2fa758e204cdc3fb1134a5d8bb45e855b SHA512 00763d64a17c94ae7a8f4b09f61489f5dc32d923e2a22f223e0fa817693cf69e5d36cb7f9ea7b04d4ea325abdbaf3c1aeb87884318bf16de803bce1fef9666de
-DIST snapd-2.57.5.tar.xz 6900544 BLAKE2B e6579f8ece458ff02eabd92eb3e813cae3fd11eb3ef0a6c5949487ee5505297d3e24f69025969f0d491fb0e2d86657580a1b29e583015686ddee6afdda2724ec SHA512 955a0d61e8d6a2c585d356e67ec27551ee04894d6c4463aed33dcef4c751414ad30b7143733736dbf5d17897731fc3769ba755ab524b4f144e0a469fe3284460
DIST snapd-2.57.6.tar.xz 6889052 BLAKE2B 5d1190f3d1ccc6446f950cc95c09180707c3a96285bcdd197aef06b2d69cfef6daf85a93844f105dd434b29b73d3b9c832dfcbebcdc2451443eb5421046de849 SHA512 cd74fa92cddff3452448a50536ded504c68ca6f786b465b8561ccc43c02856742a895efb71bf92b8d125173e0d083faf61ca563f69da03ebf3c4df1b0b0b8d5e
diff --git a/app-containers/snapd/snapd-2.57.2-r1.ebuild b/app-containers/snapd/snapd-2.57.2-r1.ebuild
deleted file mode 100644
index 35255adff108..000000000000
--- a/app-containers/snapd/snapd-2.57.2-r1.ebuild
+++ /dev/null
@@ -1,178 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools bash-completion-r1 flag-o-matic go-module linux-info readme.gentoo-r1 systemd xdg-utils
-
-DESCRIPTION="Service and tools for management of snap packages"
-HOMEPAGE="http://snapcraft.io/"
-
-SRC_URI="https://github.com/snapcore/${PN}/releases/download/${PV}/${PN}_${PV}.vendor.tar.xz -> ${P}.tar.xz"
-MY_PV=${PV}
-KEYWORDS="~amd64"
-
-LICENSE="GPL-3 Apache-2.0 BSD BSD-2 LGPL-3-with-linking-exception MIT"
-SLOT="0"
-IUSE="apparmor +forced-devmode gtk kde systemd"
-REQUIRED_USE="!forced-devmode? ( apparmor ) systemd"
-
-CONFIG_CHECK="~CGROUPS
- ~CGROUP_DEVICE
- ~CGROUP_FREEZER
- ~NAMESPACES
- ~SQUASHFS
- ~SQUASHFS_ZLIB
- ~SQUASHFS_LZO
- ~SQUASHFS_XZ
- ~BLK_DEV_LOOP
- ~SECCOMP
- ~SECCOMP_FILTER"
-
-RDEPEND="
- sys-libs/libseccomp:=
- apparmor? (
- sec-policy/apparmor-profiles
- sys-apps/apparmor:=
- )
- dev-libs/glib
- virtual/libudev
- systemd? ( sys-apps/systemd )
- sys-libs/libcap:=
- sys-fs/squashfs-tools[lzma]"
-
-DEPEND="${RDEPEND}"
-
-BDEPEND="
- >=dev-lang/go-1.9
- dev-python/docutils
- sys-devel/gettext
- sys-fs/xfsprogs"
-
-PDEPEND="sys-auth/polkit[gtk?,kde?]"
-
-README_GENTOO_SUFFIX=""
-
-pkg_setup() {
- if use apparmor; then
- CONFIG_CHECK+=" ~SECURITY_APPARMOR"
- fi
- linux-info_pkg_setup
-
- # Seems to have issues building with -O3, switch to -O2
- replace-flags -O3 -O2
-}
-
-src_prepare() {
- default
- # Update apparmor profile to allow libtinfow.so*
- sed -i 's/libtinfo/libtinfo{,w}/' \
- "cmd/snap-confine/snap-confine.apparmor.in" || die
-
- if ! use forced-devmode; then
- sed -e 's#return !apparmorFull#if !apparmorFull {\n\t\tpanic("USE=forced-devmode is disabled")\n\t}\n\treturn false#' \
- -i "sandbox/forcedevmode.go" || die
- grep -q 'panic("USE=forced-devmode is disabled")' "sandbox/forcedevmode.go" || die "failed to disable forced-devmode"
- fi
-
- sed -i 's:command -v git >/dev/null:false:' -i "mkversion.sh" || die
-
- ./mkversion.sh "${PV}"
- pushd "cmd" >/dev/null || die
- eautoreconf
-}
-
-src_configure() {
- SNAPD_MAKEARGS=(
- "BINDIR=${EPREFIX}/usr/bin"
- "DBUSSERVICESDIR=${EPREFIX}/usr/share/dbus-1/services"
- "LIBEXECDIR=${EPREFIX}/usr/lib"
- "SNAP_MOUNT_DIR=${EPREFIX}/var/lib/snapd/snap"
- "SYSTEMDSYSTEMUNITDIR=$(systemd_get_systemunitdir)"
- )
- export CGO_ENABLED="1"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
-
- pushd "${S}/cmd" >/dev/null || die
- econf --libdir="${EPREFIX}/usr/lib" \
- --libexecdir="${EPREFIX}/usr/lib/snapd" \
- $(use_enable apparmor) \
- --enable-nvidia-biarch \
- --with-snap-mount-dir="${EPREFIX}/var/lib/snapd/snap"
-}
-
-src_compile() {
- export -n GOCACHE XDG_CACHE_HOME
- export GOBIN="${S}/bin"
-
- local file
- for file in "${S}/po/"*.po; do
- msgfmt "${file}" -o "${file%.po}.mo" || die
- done
-
- emake -C "${S}/data" "${SNAPD_MAKEARGS[@]}"
-
- local -a flags=(-buildmode=pie -ldflags "-s -linkmode external -extldflags '${LDFLAGS}'" -trimpath)
- local -a staticflags=(-buildmode=pie -ldflags "-s -linkmode external -extldflags '${LDFLAGS} -static'" -trimpath)
-
- local cmd
- for cmd in snap snapd snapd-apparmor snap-bootstrap snap-failure snap-preseed snap-recovery-chooser snap-repair snap-seccomp; do
- go build ${GOFLAGS} -mod=vendor -o "${GOBIN}/${cmd}" "${flags[@]}" \
- -v -x "github.com/snapcore/${PN}/cmd/${cmd}"
- [[ -e "${GOBIN}/${cmd}" ]] || die "failed to build ${cmd}"
- done
- for cmd in snapctl snap-exec snap-update-ns; do
- go build ${GOFLAGS} -mod=vendor -o "${GOBIN}/${cmd}" "${staticflags[@]}" \
- -v -x "github.com/snapcore/${PN}/cmd/${cmd}"
- [[ -e "${GOBIN}/${cmd}" ]] || die "failed to build ${cmd}"
- done
-}
-
-src_install() {
- emake -C "${S}/data" install "${SNAPD_MAKEARGS[@]}" DESTDIR="${D}"
- emake -C "${S}/cmd" install "${SNAPD_MAKEARGS[@]}" DESTDIR="${D}"
-
- if use apparmor; then
- mv "${ED}/etc/apparmor.d/usr.lib.snapd.snap-confine"{,.real} || die
- keepdir /var/lib/snapd/apparmor/profiles
- fi
- keepdir /var/lib/snapd/{apparmor/snap-confine,cache,cookie,snap,void}
- fperms 700 /var/lib/snapd/{cache,cookie}
-
- dobin "${GOBIN}/"{snap,snapctl}
- ln "${ED}/usr/bin/snapctl" "${ED}/usr/lib/snapd/snapctl" || die
-
- exeinto /usr/lib/snapd
- doexe "${GOBIN}/"{snapd,snapd-apparmor,snap-bootstrap,snap-failure,snap-exec,snap-preseed,snap-recovery-chooser,snap-repair,snap-seccomp,snap-update-ns} \
- "${S}/"{cmd/snap-discard-ns/snap-discard-ns,cmd/snap-gdb-shim/snap-gdb-shim,cmd/snap-mgmt/snap-mgmt} \
- "${S}/data/completion/bash/"{complete.sh,etelpmoc.sh,}
-
- dobashcomp "${S}/data/completion/bash/snap"
-
- insinto /usr/share/zsh/site-functions
- doins "${S}/data/completion/zsh/_snap"
-
- insinto "/usr/share/polkit-1/actions"
- doins "${S}/data/polkit/io.snapcraft.snapd.policy"
-
- dodoc "${S}/packaging/ubuntu-16.04/changelog"
- domo "${S}/po/"*.mo
-
- readme.gentoo_create_doc
-}
-
-pkg_postinst() {
- readme.gentoo_print_elog
- xdg_desktop_database_update
-
- if use apparmor && [[ -z ${ROOT} && -e /sys/kernel/security/apparmor/profiles &&
- $(wc -l < /sys/kernel/security/apparmor/profiles) -gt 0 ]]; then
- apparmor_parser -r "${EPREFIX}/etc/apparmor.d/usr.lib.snapd.snap-confine.real"
- fi
-}
-
-pkg_postrm() {
- xdg_desktop_database_update
-}
diff --git a/app-containers/snapd/snapd-2.57.4.ebuild b/app-containers/snapd/snapd-2.57.4.ebuild
deleted file mode 100644
index 35255adff108..000000000000
--- a/app-containers/snapd/snapd-2.57.4.ebuild
+++ /dev/null
@@ -1,178 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools bash-completion-r1 flag-o-matic go-module linux-info readme.gentoo-r1 systemd xdg-utils
-
-DESCRIPTION="Service and tools for management of snap packages"
-HOMEPAGE="http://snapcraft.io/"
-
-SRC_URI="https://github.com/snapcore/${PN}/releases/download/${PV}/${PN}_${PV}.vendor.tar.xz -> ${P}.tar.xz"
-MY_PV=${PV}
-KEYWORDS="~amd64"
-
-LICENSE="GPL-3 Apache-2.0 BSD BSD-2 LGPL-3-with-linking-exception MIT"
-SLOT="0"
-IUSE="apparmor +forced-devmode gtk kde systemd"
-REQUIRED_USE="!forced-devmode? ( apparmor ) systemd"
-
-CONFIG_CHECK="~CGROUPS
- ~CGROUP_DEVICE
- ~CGROUP_FREEZER
- ~NAMESPACES
- ~SQUASHFS
- ~SQUASHFS_ZLIB
- ~SQUASHFS_LZO
- ~SQUASHFS_XZ
- ~BLK_DEV_LOOP
- ~SECCOMP
- ~SECCOMP_FILTER"
-
-RDEPEND="
- sys-libs/libseccomp:=
- apparmor? (
- sec-policy/apparmor-profiles
- sys-apps/apparmor:=
- )
- dev-libs/glib
- virtual/libudev
- systemd? ( sys-apps/systemd )
- sys-libs/libcap:=
- sys-fs/squashfs-tools[lzma]"
-
-DEPEND="${RDEPEND}"
-
-BDEPEND="
- >=dev-lang/go-1.9
- dev-python/docutils
- sys-devel/gettext
- sys-fs/xfsprogs"
-
-PDEPEND="sys-auth/polkit[gtk?,kde?]"
-
-README_GENTOO_SUFFIX=""
-
-pkg_setup() {
- if use apparmor; then
- CONFIG_CHECK+=" ~SECURITY_APPARMOR"
- fi
- linux-info_pkg_setup
-
- # Seems to have issues building with -O3, switch to -O2
- replace-flags -O3 -O2
-}
-
-src_prepare() {
- default
- # Update apparmor profile to allow libtinfow.so*
- sed -i 's/libtinfo/libtinfo{,w}/' \
- "cmd/snap-confine/snap-confine.apparmor.in" || die
-
- if ! use forced-devmode; then
- sed -e 's#return !apparmorFull#if !apparmorFull {\n\t\tpanic("USE=forced-devmode is disabled")\n\t}\n\treturn false#' \
- -i "sandbox/forcedevmode.go" || die
- grep -q 'panic("USE=forced-devmode is disabled")' "sandbox/forcedevmode.go" || die "failed to disable forced-devmode"
- fi
-
- sed -i 's:command -v git >/dev/null:false:' -i "mkversion.sh" || die
-
- ./mkversion.sh "${PV}"
- pushd "cmd" >/dev/null || die
- eautoreconf
-}
-
-src_configure() {
- SNAPD_MAKEARGS=(
- "BINDIR=${EPREFIX}/usr/bin"
- "DBUSSERVICESDIR=${EPREFIX}/usr/share/dbus-1/services"
- "LIBEXECDIR=${EPREFIX}/usr/lib"
- "SNAP_MOUNT_DIR=${EPREFIX}/var/lib/snapd/snap"
- "SYSTEMDSYSTEMUNITDIR=$(systemd_get_systemunitdir)"
- )
- export CGO_ENABLED="1"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
-
- pushd "${S}/cmd" >/dev/null || die
- econf --libdir="${EPREFIX}/usr/lib" \
- --libexecdir="${EPREFIX}/usr/lib/snapd" \
- $(use_enable apparmor) \
- --enable-nvidia-biarch \
- --with-snap-mount-dir="${EPREFIX}/var/lib/snapd/snap"
-}
-
-src_compile() {
- export -n GOCACHE XDG_CACHE_HOME
- export GOBIN="${S}/bin"
-
- local file
- for file in "${S}/po/"*.po; do
- msgfmt "${file}" -o "${file%.po}.mo" || die
- done
-
- emake -C "${S}/data" "${SNAPD_MAKEARGS[@]}"
-
- local -a flags=(-buildmode=pie -ldflags "-s -linkmode external -extldflags '${LDFLAGS}'" -trimpath)
- local -a staticflags=(-buildmode=pie -ldflags "-s -linkmode external -extldflags '${LDFLAGS} -static'" -trimpath)
-
- local cmd
- for cmd in snap snapd snapd-apparmor snap-bootstrap snap-failure snap-preseed snap-recovery-chooser snap-repair snap-seccomp; do
- go build ${GOFLAGS} -mod=vendor -o "${GOBIN}/${cmd}" "${flags[@]}" \
- -v -x "github.com/snapcore/${PN}/cmd/${cmd}"
- [[ -e "${GOBIN}/${cmd}" ]] || die "failed to build ${cmd}"
- done
- for cmd in snapctl snap-exec snap-update-ns; do
- go build ${GOFLAGS} -mod=vendor -o "${GOBIN}/${cmd}" "${staticflags[@]}" \
- -v -x "github.com/snapcore/${PN}/cmd/${cmd}"
- [[ -e "${GOBIN}/${cmd}" ]] || die "failed to build ${cmd}"
- done
-}
-
-src_install() {
- emake -C "${S}/data" install "${SNAPD_MAKEARGS[@]}" DESTDIR="${D}"
- emake -C "${S}/cmd" install "${SNAPD_MAKEARGS[@]}" DESTDIR="${D}"
-
- if use apparmor; then
- mv "${ED}/etc/apparmor.d/usr.lib.snapd.snap-confine"{,.real} || die
- keepdir /var/lib/snapd/apparmor/profiles
- fi
- keepdir /var/lib/snapd/{apparmor/snap-confine,cache,cookie,snap,void}
- fperms 700 /var/lib/snapd/{cache,cookie}
-
- dobin "${GOBIN}/"{snap,snapctl}
- ln "${ED}/usr/bin/snapctl" "${ED}/usr/lib/snapd/snapctl" || die
-
- exeinto /usr/lib/snapd
- doexe "${GOBIN}/"{snapd,snapd-apparmor,snap-bootstrap,snap-failure,snap-exec,snap-preseed,snap-recovery-chooser,snap-repair,snap-seccomp,snap-update-ns} \
- "${S}/"{cmd/snap-discard-ns/snap-discard-ns,cmd/snap-gdb-shim/snap-gdb-shim,cmd/snap-mgmt/snap-mgmt} \
- "${S}/data/completion/bash/"{complete.sh,etelpmoc.sh,}
-
- dobashcomp "${S}/data/completion/bash/snap"
-
- insinto /usr/share/zsh/site-functions
- doins "${S}/data/completion/zsh/_snap"
-
- insinto "/usr/share/polkit-1/actions"
- doins "${S}/data/polkit/io.snapcraft.snapd.policy"
-
- dodoc "${S}/packaging/ubuntu-16.04/changelog"
- domo "${S}/po/"*.mo
-
- readme.gentoo_create_doc
-}
-
-pkg_postinst() {
- readme.gentoo_print_elog
- xdg_desktop_database_update
-
- if use apparmor && [[ -z ${ROOT} && -e /sys/kernel/security/apparmor/profiles &&
- $(wc -l < /sys/kernel/security/apparmor/profiles) -gt 0 ]]; then
- apparmor_parser -r "${EPREFIX}/etc/apparmor.d/usr.lib.snapd.snap-confine.real"
- fi
-}
-
-pkg_postrm() {
- xdg_desktop_database_update
-}
diff --git a/app-containers/snapd/snapd-2.57.5.ebuild b/app-containers/snapd/snapd-2.57.5.ebuild
deleted file mode 100644
index 35255adff108..000000000000
--- a/app-containers/snapd/snapd-2.57.5.ebuild
+++ /dev/null
@@ -1,178 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools bash-completion-r1 flag-o-matic go-module linux-info readme.gentoo-r1 systemd xdg-utils
-
-DESCRIPTION="Service and tools for management of snap packages"
-HOMEPAGE="http://snapcraft.io/"
-
-SRC_URI="https://github.com/snapcore/${PN}/releases/download/${PV}/${PN}_${PV}.vendor.tar.xz -> ${P}.tar.xz"
-MY_PV=${PV}
-KEYWORDS="~amd64"
-
-LICENSE="GPL-3 Apache-2.0 BSD BSD-2 LGPL-3-with-linking-exception MIT"
-SLOT="0"
-IUSE="apparmor +forced-devmode gtk kde systemd"
-REQUIRED_USE="!forced-devmode? ( apparmor ) systemd"
-
-CONFIG_CHECK="~CGROUPS
- ~CGROUP_DEVICE
- ~CGROUP_FREEZER
- ~NAMESPACES
- ~SQUASHFS
- ~SQUASHFS_ZLIB
- ~SQUASHFS_LZO
- ~SQUASHFS_XZ
- ~BLK_DEV_LOOP
- ~SECCOMP
- ~SECCOMP_FILTER"
-
-RDEPEND="
- sys-libs/libseccomp:=
- apparmor? (
- sec-policy/apparmor-profiles
- sys-apps/apparmor:=
- )
- dev-libs/glib
- virtual/libudev
- systemd? ( sys-apps/systemd )
- sys-libs/libcap:=
- sys-fs/squashfs-tools[lzma]"
-
-DEPEND="${RDEPEND}"
-
-BDEPEND="
- >=dev-lang/go-1.9
- dev-python/docutils
- sys-devel/gettext
- sys-fs/xfsprogs"
-
-PDEPEND="sys-auth/polkit[gtk?,kde?]"
-
-README_GENTOO_SUFFIX=""
-
-pkg_setup() {
- if use apparmor; then
- CONFIG_CHECK+=" ~SECURITY_APPARMOR"
- fi
- linux-info_pkg_setup
-
- # Seems to have issues building with -O3, switch to -O2
- replace-flags -O3 -O2
-}
-
-src_prepare() {
- default
- # Update apparmor profile to allow libtinfow.so*
- sed -i 's/libtinfo/libtinfo{,w}/' \
- "cmd/snap-confine/snap-confine.apparmor.in" || die
-
- if ! use forced-devmode; then
- sed -e 's#return !apparmorFull#if !apparmorFull {\n\t\tpanic("USE=forced-devmode is disabled")\n\t}\n\treturn false#' \
- -i "sandbox/forcedevmode.go" || die
- grep -q 'panic("USE=forced-devmode is disabled")' "sandbox/forcedevmode.go" || die "failed to disable forced-devmode"
- fi
-
- sed -i 's:command -v git >/dev/null:false:' -i "mkversion.sh" || die
-
- ./mkversion.sh "${PV}"
- pushd "cmd" >/dev/null || die
- eautoreconf
-}
-
-src_configure() {
- SNAPD_MAKEARGS=(
- "BINDIR=${EPREFIX}/usr/bin"
- "DBUSSERVICESDIR=${EPREFIX}/usr/share/dbus-1/services"
- "LIBEXECDIR=${EPREFIX}/usr/lib"
- "SNAP_MOUNT_DIR=${EPREFIX}/var/lib/snapd/snap"
- "SYSTEMDSYSTEMUNITDIR=$(systemd_get_systemunitdir)"
- )
- export CGO_ENABLED="1"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
-
- pushd "${S}/cmd" >/dev/null || die
- econf --libdir="${EPREFIX}/usr/lib" \
- --libexecdir="${EPREFIX}/usr/lib/snapd" \
- $(use_enable apparmor) \
- --enable-nvidia-biarch \
- --with-snap-mount-dir="${EPREFIX}/var/lib/snapd/snap"
-}
-
-src_compile() {
- export -n GOCACHE XDG_CACHE_HOME
- export GOBIN="${S}/bin"
-
- local file
- for file in "${S}/po/"*.po; do
- msgfmt "${file}" -o "${file%.po}.mo" || die
- done
-
- emake -C "${S}/data" "${SNAPD_MAKEARGS[@]}"
-
- local -a flags=(-buildmode=pie -ldflags "-s -linkmode external -extldflags '${LDFLAGS}'" -trimpath)
- local -a staticflags=(-buildmode=pie -ldflags "-s -linkmode external -extldflags '${LDFLAGS} -static'" -trimpath)
-
- local cmd
- for cmd in snap snapd snapd-apparmor snap-bootstrap snap-failure snap-preseed snap-recovery-chooser snap-repair snap-seccomp; do
- go build ${GOFLAGS} -mod=vendor -o "${GOBIN}/${cmd}" "${flags[@]}" \
- -v -x "github.com/snapcore/${PN}/cmd/${cmd}"
- [[ -e "${GOBIN}/${cmd}" ]] || die "failed to build ${cmd}"
- done
- for cmd in snapctl snap-exec snap-update-ns; do
- go build ${GOFLAGS} -mod=vendor -o "${GOBIN}/${cmd}" "${staticflags[@]}" \
- -v -x "github.com/snapcore/${PN}/cmd/${cmd}"
- [[ -e "${GOBIN}/${cmd}" ]] || die "failed to build ${cmd}"
- done
-}
-
-src_install() {
- emake -C "${S}/data" install "${SNAPD_MAKEARGS[@]}" DESTDIR="${D}"
- emake -C "${S}/cmd" install "${SNAPD_MAKEARGS[@]}" DESTDIR="${D}"
-
- if use apparmor; then
- mv "${ED}/etc/apparmor.d/usr.lib.snapd.snap-confine"{,.real} || die
- keepdir /var/lib/snapd/apparmor/profiles
- fi
- keepdir /var/lib/snapd/{apparmor/snap-confine,cache,cookie,snap,void}
- fperms 700 /var/lib/snapd/{cache,cookie}
-
- dobin "${GOBIN}/"{snap,snapctl}
- ln "${ED}/usr/bin/snapctl" "${ED}/usr/lib/snapd/snapctl" || die
-
- exeinto /usr/lib/snapd
- doexe "${GOBIN}/"{snapd,snapd-apparmor,snap-bootstrap,snap-failure,snap-exec,snap-preseed,snap-recovery-chooser,snap-repair,snap-seccomp,snap-update-ns} \
- "${S}/"{cmd/snap-discard-ns/snap-discard-ns,cmd/snap-gdb-shim/snap-gdb-shim,cmd/snap-mgmt/snap-mgmt} \
- "${S}/data/completion/bash/"{complete.sh,etelpmoc.sh,}
-
- dobashcomp "${S}/data/completion/bash/snap"
-
- insinto /usr/share/zsh/site-functions
- doins "${S}/data/completion/zsh/_snap"
-
- insinto "/usr/share/polkit-1/actions"
- doins "${S}/data/polkit/io.snapcraft.snapd.policy"
-
- dodoc "${S}/packaging/ubuntu-16.04/changelog"
- domo "${S}/po/"*.mo
-
- readme.gentoo_create_doc
-}
-
-pkg_postinst() {
- readme.gentoo_print_elog
- xdg_desktop_database_update
-
- if use apparmor && [[ -z ${ROOT} && -e /sys/kernel/security/apparmor/profiles &&
- $(wc -l < /sys/kernel/security/apparmor/profiles) -gt 0 ]]; then
- apparmor_parser -r "${EPREFIX}/etc/apparmor.d/usr.lib.snapd.snap-confine.real"
- fi
-}
-
-pkg_postrm() {
- xdg_desktop_database_update
-}