diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
| commit | 290aebdea65a02557706eaeda477fef0437b6a48 (patch) | |
| tree | f87a939169a508a2e943570501b64cc16b411cda /app-containers/snapd | |
| parent | 6783ddcd4b73d9ce586a71770caed352bec93b16 (diff) | |
| download | baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip | |
Adding metadata
Diffstat (limited to 'app-containers/snapd')
| -rw-r--r-- | app-containers/snapd/Manifest | 2 | ||||
| -rw-r--r-- | app-containers/snapd/files/README.gentoo | 56 | ||||
| -rw-r--r-- | app-containers/snapd/metadata.xml | 17 | ||||
| -rw-r--r-- | app-containers/snapd/snapd-2.63.ebuild | 181 |
4 files changed, 0 insertions, 256 deletions
diff --git a/app-containers/snapd/Manifest b/app-containers/snapd/Manifest deleted file mode 100644 index 70b0dfc56188..000000000000 --- a/app-containers/snapd/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST snapd-2.63-bug-933073-GNU_SOURCE.patch 870 BLAKE2B acc2a9ec7ca16849736701b37e51f238be5700cf0cd40dac6493f126a48235ffc1f103096d546313d05a2262f8bdb6f84966cbb79c4cf3f5c1cdf4dfd5dc231e SHA512 5e4018d1972e18496666cf60c6e132f8655d8f0f4d6f8a77f9a7e5d2063b823f97a17bf26b562e6ab93ea32f081a90df6969a617e77114f37553a350f44f11fb -DIST snapd-2.63.tar.xz 7502152 BLAKE2B 8ae38699227b7f0e6b512526fc8857b3e50ed220ac95860c372ca0a4b26f5a034bd9309688217696444254e41cc70fe3a45c0bf026c84e5f950e7df8aebd47a0 SHA512 956ee142ab6cb5de522307f7844819c861b2831e22dab56f7bfca16ff7f947093f8a8727d49370cc000ed71f3af9c57cff9c4be93ebf199e8c631a152a68ec5b diff --git a/app-containers/snapd/files/README.gentoo b/app-containers/snapd/files/README.gentoo deleted file mode 100644 index f2e34601802e..000000000000 --- a/app-containers/snapd/files/README.gentoo +++ /dev/null @@ -1,56 +0,0 @@ -*Security Alert* - -Application confinement may be automatically disabled if snapd -fails to detect the required features. If you would like to disable -this automatic behavior, causing snapd to panic if its confinement -feature detection fails, then use this setting in package.use: - - app-emulation/snapd -forced-devmode - -Use this command to enable the snapd service: - - systemctl enable snapd.socket - -You can source /etc/profile.d/snapd.sh in your shell in order to -update PATH and XDG_DATA_DIRS environment variables to include -installed snaps. - -Once you have snapd running (first refer to the *AppArmor Section* -below if you have that enabled), see the snap-store installation -instructions here: - - https://snapcraft.io/docs/installing-snap-store-app - -If snap-store does not work correctly then it may be due to a temporary -service outage which will hopefully be reported on this page: - - https://status.snapcraft.io/ - -When snap-store is not working due to a service outage, it may still -be possible to install apps via the snap cli. See snap --help for -details. Many apps can be installed without a snap store (Ubuntu One) -account. The snap login, logout, and whoami subcommands are available -to manage snap store account details. - -Note that you will need a polkit authentication agent running in -order to authenticate as root when installing snaps as a non-root user. -The agent is typically started by a desktop entry found in -/etc/xdg/autostart such as one of these: - - polkit-gnome-authentication-agent-1.desktop - polkit-kde-authentication-agent-1.desktop - -*AppArmor Section* - -When apparmor is enabled you should enable these services: - - systemctl enable apparmor.service snapd.apparmor.service - -You also need it enabled in your kernel and you may need to add these -kernel parameters to your boot loader configuration: - - apparmor=1 security=apparmor - -Refer here for more information about apparmor: - - https://wiki.gentoo.org/wiki/AppArmor diff --git a/app-containers/snapd/metadata.xml b/app-containers/snapd/metadata.xml deleted file mode 100644 index 10d86172f9f6..000000000000 --- a/app-containers/snapd/metadata.xml +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>zmedico@gentoo.org</email> - <name>Zac Medico</name> - </maintainer> - <upstream> - <remote-id type="cpe">cpe:/a:canonical:snapd</remote-id> - </upstream> - <use> - <flag name="forced-devmode"> - Automatically disable application confinement if feature detection fails. - </flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/app-containers/snapd/snapd-2.63.ebuild b/app-containers/snapd/snapd-2.63.ebuild deleted file mode 100644 index 6da4ee8c69a5..000000000000 --- a/app-containers/snapd/snapd-2.63.ebuild +++ /dev/null @@ -1,181 +0,0 @@ -# Copyright 2020-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools bash-completion-r1 flag-o-matic go-module linux-info readme.gentoo-r1 systemd tmpfiles xdg-utils - -DESCRIPTION="Service and tools for management of snap packages" -HOMEPAGE="http://snapcraft.io/" - -SRC_URI="https://github.com/snapcore/snapd/releases/download/${PV}/snapd_${PV}.vendor.tar.xz -> ${P}.tar.xz" -SRC_URI+=" https://github.com/snapcore/snapd/commit/1b035da5d873518ee4be31dacb1191c77ce0b644.patch -> ${P}-bug-933073-GNU_SOURCE.patch" -PATCHES=("${DISTDIR}/${P}-bug-933073-GNU_SOURCE.patch") -MY_PV=${PV} -LICENSE="GPL-3 Apache-2.0 BSD BSD-2 LGPL-3-with-linking-exception MIT" -SLOT="0" -KEYWORDS="amd64" - -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,lzo]" - -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 - tmpfiles_process snapd.conf - - 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 -} |
