Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
4cedd43
app-admin/eselect: Sync with Gentoo
Mar 30, 2026
727ed49
app-arch/libarchive: Sync with Gentoo
Mar 30, 2026
b22d00f
app-arch/unzip: Sync with Gentoo
Mar 30, 2026
4d0536a
app-containers/containerd: Sync with Gentoo
Mar 30, 2026
686607c
app-containers/docker-cli: Sync with Gentoo
Mar 30, 2026
7644537
app-containers/incus: Sync with Gentoo
Mar 30, 2026
a2d448c
app-containers/lxc: Sync with Gentoo
Mar 30, 2026
b592f5e
app-containers/runc: Sync with Gentoo
Mar 30, 2026
0faf5cc
app-crypt/gnupg: Sync with Gentoo
Mar 30, 2026
56e1528
app-crypt/p11-kit: Sync with Gentoo
Mar 30, 2026
2bef810
app-crypt/sbsigntools: Sync with Gentoo
Mar 30, 2026
50ee92d
app-doc/eclass-manpages: Sync with Gentoo
Mar 30, 2026
bcafa11
app-editors/nano: Sync with Gentoo
Mar 30, 2026
3e16ea7
app-editors/vim: Sync with Gentoo
Mar 30, 2026
7e79d6e
app-misc/jq: Sync with Gentoo
Mar 30, 2026
25e7405
app-misc/pax-utils: Sync with Gentoo
Mar 30, 2026
d850641
app-shells/bash: Sync with Gentoo
Mar 30, 2026
678774e
dev-build/autoconf: Sync with Gentoo
Mar 30, 2026
d6cf668
dev-build/autoconf-wrapper: Sync with Gentoo
Mar 30, 2026
0adb463
dev-build/cmake: Sync with Gentoo
Mar 30, 2026
a532c5e
dev-build/meson: Sync with Gentoo
Mar 30, 2026
9da85ed
dev-db/sqlite: Sync with Gentoo
Mar 30, 2026
0151019
dev-debug/gdb: Sync with Gentoo
Mar 30, 2026
6e9ff3a
dev-debug/strace: Sync with Gentoo
Mar 30, 2026
71ad138
dev-lang/go: Sync with Gentoo
Mar 30, 2026
854e186
dev-lang/go-bootstrap: Sync with Gentoo
Mar 30, 2026
50ef2ff
dev-lang/perl: Sync with Gentoo
Mar 30, 2026
3bc29d3
dev-lang/python: Sync with Gentoo
Mar 30, 2026
f8178b1
dev-lang/rust: Sync with Gentoo
Mar 30, 2026
1dec8c5
dev-lang/rust-bin: Sync with Gentoo
Mar 30, 2026
3f12d04
dev-lang/rust-common: Sync with Gentoo
Mar 30, 2026
3bad126
dev-libs/cowsql: Sync with Gentoo
Mar 30, 2026
d944cad
dev-libs/elfutils: Sync with Gentoo
Mar 30, 2026
210b460
dev-libs/expat: Sync with Gentoo
Mar 30, 2026
1897b77
dev-libs/glib: Sync with Gentoo
Mar 30, 2026
2623601
dev-libs/libpcre2: Sync with Gentoo
Mar 30, 2026
b3aedf6
dev-libs/libsodium: Sync with Gentoo
Mar 30, 2026
3b2a069
dev-libs/libtasn1: Sync with Gentoo
Mar 30, 2026
a89a320
dev-libs/libuv: Sync with Gentoo
Mar 30, 2026
a965f30
dev-libs/libxml2: Sync with Gentoo
Mar 30, 2026
36cd185
dev-libs/libxslt: Sync with Gentoo
Mar 30, 2026
16e1402
dev-libs/mpc: Sync with Gentoo
Mar 30, 2026
20919db
dev-libs/nspr: Sync with Gentoo
Mar 30, 2026
74a1257
dev-libs/openssl: Sync with Gentoo
Mar 30, 2026
cc74c44
dev-libs/tree-sitter: Sync with Gentoo
Mar 30, 2026
8002004
dev-libs/userspace-rcu: Sync with Gentoo
Mar 30, 2026
ea10902
dev-libs/xmlsec: Sync with Gentoo
Mar 30, 2026
93daa2c
dev-python/charset-normalizer: Sync with Gentoo
Mar 30, 2026
5a6c4b3
dev-python/cryptography: Sync with Gentoo
Mar 30, 2026
ffdea8e
dev-python/ensurepip-setuptools: Sync with Gentoo
Mar 30, 2026
cb6560d
dev-python/jaraco-context: Sync with Gentoo
Mar 30, 2026
97b552e
dev-python/msgpack: Sync with Gentoo
Mar 30, 2026
f0ffbdf
dev-python/poetry-core: Sync with Gentoo
Mar 30, 2026
0932e32
dev-python/requests: Sync with Gentoo
Mar 30, 2026
59c4d48
dev-python/setuptools: Sync with Gentoo
Mar 30, 2026
f415b71
dev-python/setuptools-scm: Sync with Gentoo
Mar 30, 2026
8524358
dev-python/tomli: Sync with Gentoo
Mar 30, 2026
bc3e6d7
dev-util/bpftool: Sync with Gentoo
Mar 30, 2026
788bc05
dev-util/debugedit: Sync with Gentoo
Mar 30, 2026
3555f23
dev-util/maturin: Sync with Gentoo
Mar 30, 2026
54471ab
dev-util/patchutils: Sync with Gentoo
Mar 30, 2026
2f1a907
eclass/autotools: Sync with Gentoo
Mar 30, 2026
ccb70d9
eclass/cargo: Sync with Gentoo
Mar 30, 2026
d8cc617
eclass/cmake: Sync with Gentoo
Mar 30, 2026
9bd5664
eclass/distutils-r1: Sync with Gentoo
Mar 30, 2026
e0e8ccf
eclass/flag-o-matic: Sync with Gentoo
Mar 30, 2026
1ea8f8e
eclass/git-r3: Sync with Gentoo
Mar 30, 2026
b05f086
eclass/go-env: Sync with Gentoo
Mar 30, 2026
f7c17cf
eclass/go-module: Sync with Gentoo
Mar 30, 2026
4df4bf2
eclass/kernel-2: Sync with Gentoo
Mar 30, 2026
5ff2148
eclass/linux-mod-r1: Sync with Gentoo
Mar 30, 2026
4df577e
eclass/mercurial: Sync with Gentoo
Mar 30, 2026
c27b3fb
eclass/meson: Sync with Gentoo
Mar 30, 2026
dbb5f15
eclass/multiprocessing: Sync with Gentoo
Mar 30, 2026
655c2b9
eclass/python-utils-r1: Sync with Gentoo
Mar 30, 2026
764024f
eclass/readme.gentoo-r1: Sync with Gentoo
Mar 30, 2026
90a67f3
eclass/rpm: Sync with Gentoo
Mar 30, 2026
e714c5d
eclass/rust: Sync with Gentoo
Mar 30, 2026
ae40ea4
eclass/sysroot: Sync with Gentoo
Mar 30, 2026
7be19c6
eclass/tmpfiles: Sync with Gentoo
Mar 30, 2026
4e38a20
eclass/toolchain-funcs: Sync with Gentoo
Mar 30, 2026
e6be8c1
eclass/toolchain: Sync with Gentoo
Mar 30, 2026
3bf71ac
eclass/unpacker: Sync with Gentoo
Mar 30, 2026
3d3aa64
licenses: Sync with Gentoo
Mar 30, 2026
b62ca0f
media-libs/libpng: Sync with Gentoo
Mar 30, 2026
e0ca25a
net-dns/bind: Sync with Gentoo
Mar 30, 2026
82bb40a
net-dns/c-ares: Sync with Gentoo
Mar 30, 2026
28d892f
net-dns/dnsmasq: Sync with Gentoo
Mar 30, 2026
faecc13
net-firewall/ipset: Sync with Gentoo
Mar 30, 2026
2fcf48c
net-fs/nfs-utils: Sync with Gentoo
Mar 30, 2026
7b6683a
net-fs/samba: Sync with Gentoo
Mar 30, 2026
2a30bc4
net-libs/gnutls: Sync with Gentoo
Mar 30, 2026
8014d6a
net-libs/libpcap: Sync with Gentoo
Mar 30, 2026
33f8059
net-libs/libslirp: Sync with Gentoo
Mar 30, 2026
7a0ca01
net-misc/curl: Sync with Gentoo
Mar 30, 2026
9a3def2
net-misc/rsync: Sync with Gentoo
Mar 30, 2026
10398cd
net-misc/socat: Sync with Gentoo
Mar 30, 2026
5e42438
net-misc/whois: Sync with Gentoo
Mar 30, 2026
b0729ee
net-nds/openldap: Sync with Gentoo
Mar 30, 2026
3661bf7
profiles: Sync with Gentoo
Mar 30, 2026
d16d358
sys-apps/coreutils: Sync with Gentoo
Mar 30, 2026
f68c9af
sys-apps/groff: Sync with Gentoo
Mar 30, 2026
9f28926
sys-apps/iucode_tool: Sync with Gentoo
Mar 30, 2026
8c46670
sys-apps/kexec-tools: Sync with Gentoo
Mar 30, 2026
27a1286
sys-apps/less: Sync with Gentoo
Mar 30, 2026
15bfd1d
sys-apps/man-pages: Sync with Gentoo
Mar 30, 2026
9cd65e3
sys-apps/pcsc-lite: Sync with Gentoo
Mar 30, 2026
848ff7c
sys-apps/portage: Sync with Gentoo
Mar 30, 2026
498ddb8
sys-apps/pv: Sync with Gentoo
Mar 30, 2026
32ef6d0
sys-apps/sandbox: Sync with Gentoo
Mar 30, 2026
2e7a416
sys-apps/shadow: Sync with Gentoo
Mar 30, 2026
7d849c1
sys-apps/systemd: Sync with Gentoo
Mar 30, 2026
47f73d1
sys-apps/util-linux: Sync with Gentoo
Mar 30, 2026
c69f68e
sys-auth/sssd: Sync with Gentoo
Mar 30, 2026
29d627f
sys-block/parted: Sync with Gentoo
Mar 30, 2026
df80584
sys-boot/grub: Sync with Gentoo
Mar 30, 2026
72c935c
sys-devel/binutils: Sync with Gentoo
Mar 30, 2026
8d026b2
sys-devel/crossdev: Sync with Gentoo
Mar 30, 2026
fbae84f
sys-devel/gcc: Sync with Gentoo
Mar 30, 2026
490a6e3
sys-devel/m4: Sync with Gentoo
Mar 30, 2026
43b7a5a
sys-fs/btrfs-progs: Sync with Gentoo
Mar 30, 2026
0735f97
sys-fs/cryptsetup: Sync with Gentoo
Mar 30, 2026
f83a5e8
sys-fs/fuse-common: Sync with Gentoo
Mar 30, 2026
731c936
sys-fs/lvm2: Sync with Gentoo
Mar 30, 2026
f50ddd9
sys-fs/lxcfs: Sync with Gentoo
Mar 30, 2026
2a87d4a
sys-fs/mdadm: Sync with Gentoo
Mar 30, 2026
8dfcc8c
sys-fs/multipath-tools: Sync with Gentoo
Mar 30, 2026
d2feff6
sys-fs/squashfs-tools: Sync with Gentoo
Mar 30, 2026
13956dd
sys-fs/xfsprogs: Sync with Gentoo
Mar 30, 2026
3c3471d
sys-fs/zfs: Sync with Gentoo
Mar 30, 2026
a409e1d
sys-fs/zfs-kmod: Sync with Gentoo
Mar 30, 2026
1ecd51d
sys-kernel/dracut: Sync with Gentoo
Mar 30, 2026
5f70191
sys-libs/binutils-libs: Sync with Gentoo
Mar 30, 2026
9837c4e
sys-libs/glibc: Sync with Gentoo
Mar 30, 2026
05ac5d1
sys-libs/libcap: Sync with Gentoo
Mar 30, 2026
b3f1964
sys-libs/libseccomp: Sync with Gentoo
Mar 30, 2026
98f589b
sys-libs/pam: Sync with Gentoo
Mar 30, 2026
868cc7a
sys-libs/tdb: Sync with Gentoo
Mar 30, 2026
bb00415
sys-libs/tevent: Sync with Gentoo
Mar 30, 2026
5bfb5de
sys-libs/zlib: Sync with Gentoo
Mar 30, 2026
9fd9895
sys-process/procps: Sync with Gentoo
Mar 30, 2026
53593ab
sys-process/psmisc: Sync with Gentoo
Mar 30, 2026
f7f70e4
virtual/ldb: Sync with Gentoo
Mar 30, 2026
45055e5
virtual/service-manager: Sync with Gentoo
Mar 30, 2026
443ef5d
virtual/tmpfiles: Sync with Gentoo
Mar 30, 2026
695eb60
x11-drivers/nvidia-drivers: Sync with Gentoo
Mar 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DIST eselect-1.4.30.tar.xz 186060 BLAKE2B f58c2bdacfcb933aef2414e65866a4be33d02ddc42005770fd4f3200a7aa0437d31301ac35991309d51f2e95e8be2eafa0590600281801c6c63db08b3451b9ef SHA512 89ff9af40849e5d712716c35705e21bfc5d073536da8750566368d519d1b7de823575ffe730faabab4170ca773df31e7bb9d633d8e48361704102987c5d3e681
DIST eselect-1.4.31.tar.xz 186520 BLAKE2B f40851ffea69c0d8b0142b49669e1112fc34384b0c8f1f6ce8aebbfd48fb6a6f8239e8682d7fe8b49c9d27cc9f7cee4b7c781baef7780e347df90f7cd4b5131e SHA512 ffcd6cdb5aef51b2949893abfc3af356d3011e256671eaae588e3fe6ff41f7bf74167dccef8c794422704097c3351f5c457009b051bbc8f008b2d2f250fa9c1b
DIST eselect-1.4.32.tar.xz 189020 BLAKE2B 18cf181f23f0a6cd95ca78fd1c5e039ca2222101b12957e640afb25f34033777e0554421613699b08b9f985a45ee803b16c202e2c2a3a0f55b741cdf5e5d8836 SHA512 facc2c75508175123ed4f4f8f79c157e0f8ce797f3bb98f4978379d6b75c5d502ab5a97497f5d7a8a1f21adc9f580bf59245502a4b3058eb7a25a03caca7c8f9
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# Packages sharing a common release tarball:
# app-admin/eselect
# app-emacs/eselect-mode
# Please bump and mark them stable together!

inherit bash-completion-r1

DESCRIPTION="Gentoo's multi-purpose configuration and management tool"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Eselect"
SRC_URI="https://dev.gentoo.org/~ulm/eselect/${P}.tar.xz"

LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-4.0 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
IUSE="doc emacs vim-syntax"

# coreutils for realpath
DEPEND="sys-apps/coreutils
sys-apps/sed"
RDEPEND="${DEPEND}
sys-apps/file
sys-libs/ncurses:0"
BDEPEND="doc? ( dev-python/docutils )"
PDEPEND="emacs? ( app-emacs/eselect-mode )
vim-syntax? ( app-vim/eselect-syntax )"

src_compile() {
emake
use doc && emake html
}

src_install() {
emake DESTDIR="${D}" install
newbashcomp misc/${PN}.bashcomp ${PN}
dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt
if use doc; then
docinto html
dodoc *.html doc/*.html doc/*.css
fi

# needed by news module
keepdir /var/lib/gentoo/news
if ! use prefix; then
fowners root:portage /var/lib/gentoo/news
fperms g+w /var/lib/gentoo/news
fi
}

pkg_postinst() {
# fowners in src_install doesn't work for the portage group:
# merging changes the group back to root
if ! use prefix; then
chgrp portage "${EROOT}/var/lib/gentoo/news" \
&& chmod g+w "${EROOT}/var/lib/gentoo/news"
fi
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DIST libarchive-3.8.3.tar.xz 5990552 BLAKE2B 5be5f0e98f7582e2a34a43dd9217644defbd69532474fc07b3ac46ba7820c19dbd28cd691c1c798aed02643bbe68781cecd564127781c9b49323b9b54cebb32c SHA512 9eb6331da6cb96734a56166d2a507cb192967a57b041c8ea2e0eb295373abd72b4abaa8b0a3100d4b73ca00339569bb7b7789f882671619465f0a566750be920
DIST libarchive-3.8.3.tar.xz.asc 833 BLAKE2B 583c3b6b7626dc3de8a2e23cce23ed34fcdcd2f854bab61d0ecdae41414ff021733ceedabb006b7f128462f12065af0e66f4215fe060dd1f720de11bccfa71c9 SHA512 239e6ebaaffefee1d12f185e4e033e333feb81d5a5b985d9bfc33f883f6cbb7e7d65d480286cfaa4313e6139252eb7f3a7a1e095c251477c3a49196312c6d9a7
DIST libarchive-3.8.4.tar.xz 6065584 BLAKE2B c6cadc1dc97f79a379fa1f2fae4d791fade4513796066de8bfa32e40f8b5dc1efb4c46a9f0aefb62510c5ab428599f9cbda508e89b67cd932e160ee5377ee0e6 SHA512 088f3726de7f8e2f4b2ac6cc9c01338328493de19f5b0645157114ef3b7a0fa5213cb6d64123736cae83354a2137bba9e2187bb4208cb7848e2566c65b100489
DIST libarchive-3.8.4.tar.xz.asc 833 BLAKE2B 2b4edd5f9d5d5ca9c0f7276b9891f95621def922ceea043520460fc731e588d1acf8cfc41aa8a4df8a10285ca196411a17b886ef64722de985c7012af8adc024 SHA512 1ec7e73a5b0c02d236567f77812003276af9a499e774d2d6d322ed823a5a98f662a4dc6053eb471dcaa1317b2980937910a528f9c83d23c115a310175a23ad61
DIST libarchive-3.8.5.tar.xz 6009124 BLAKE2B d0fa6a49209a06240240cf578f95138eb72eebdc7179d034fdd9efc2e49820e34e9da41aa46cd11be2c2d46c380c8cc7e830d41271a6f3a7d9c39df138098cab SHA512 b050ca8488143503bdec38ffcab7a5010af61f1b93c1207a3fa006d72d643b84aa8c1ab267e890eb39966ccaedd6e18db8fe5b02f2789bbd1b318a3c4cf138f3
DIST libarchive-3.8.5.tar.xz.asc 833 BLAKE2B bf3d85fad2f6e681c94ec341753dffc8ca658ffdc55641278dc28aa863209c3d6d42e32d0d33de9326314b6daa5486a758b6cce82f445b9f6568ccac4fc7b457 SHA512 80b155e86d9f93efd3f2e65655c1fe66fb0b9b937888fd5b24e65b26418f01ee6fbd66c649079b8591c15ae593980ece3de49778bb1215eaecd9af0f2823fb71
DIST libarchive-3.8.6.tar.xz 6009400 BLAKE2B 456eb5b3bbb0e59ccbc34a9704c7bf1dd9f8cffc0075be546b5fbd66f1157651fbfe7298da8c17f80b2ef0420cfeaac971ff06b10ee9d372d4eb8b17f8497628 SHA512 783c5768de2273493d3de377339a134929f412613e19468cee84c0f90301febe818f77252cd886d524e40b7df6356a239208d3ca58f595da0201bcb6030b1044
DIST libarchive-3.8.6.tar.xz.asc 833 BLAKE2B 03f85157c438ec1d4005e551b8fa22230ac84d3b5cfb60bbf53f62738c9140c5baaa94b0c3dfa3b2e52abd08ff5322ea62e2b020d54ec51fdbe02e96b8b4196d SHA512 c6227c4e611577d2964b906d12e97ceb91148654cda1f188425380c7ddd32c68e4d8b4d2bd836cded55e4ceba9101885bb0e19cd6a11a4f3159d83a62fad6119
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SRC_URI="

LICENSE="BSD BSD-2 BSD-4 public-domain"
SLOT="0/13"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
IUSE="
acl blake2 +bzip2 +e2fsprogs expat +iconv lz4 +lzma lzo nettle
static-libs test xattr +zstd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SRC_URI="

LICENSE="BSD BSD-2 BSD-4 public-domain"
SLOT="0/13"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
IUSE="
acl blake2 +bzip2 +e2fsprogs expat +iconv lz4 +lzma lzo nettle
static-libs test xattr +zstd
Expand All @@ -38,12 +38,11 @@ RDEPEND="
nettle? ( dev-libs/nettle:=[${MULTILIB_USEDEP}] )
zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] )
"
DEPEND="${RDEPEND}
DEPEND="
${RDEPEND}
virtual/os-headers
elibc_musl? ( sys-libs/queue-standalone )
kernel_linux? (
virtual/os-headers
e2fsprogs? ( sys-fs/e2fsprogs[${MULTILIB_USEDEP}] )
)
e2fsprogs? ( sys-fs/e2fsprogs[${MULTILIB_USEDEP}] )
test? (
app-arch/lrzip
app-arch/lz4
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit flag-o-matic multilib toolchain-funcs

MY_PV="${PV//.}"
MY_PV="${MY_PV%_p*}"
MY_P="${PN}${MY_PV}"

DESCRIPTION="unzipper for pkzip-compressed files"
HOMEPAGE="https://infozip.sourceforge.net/UnZip.html"
SRC_URI="
https://downloads.sourceforge.net/infozip/${MY_P}.tar.gz
mirror://debian/pool/main/u/${PN}/${PN}_${PV/_p/-}.debian.tar.xz
"
S="${WORKDIR}/${MY_P}"

LICENSE="Info-ZIP"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
IUSE="bzip2 natspec unicode"

DEPEND="
bzip2? ( app-arch/bzip2 )
natspec? ( dev-libs/libnatspec )
"
RDEPEND="${DEPEND}"

PATCHES=(
"${WORKDIR}"/debian/patches
"${FILESDIR}"/${PN}-6.0-no-exec-stack.patch
"${FILESDIR}"/${PN}-6.0-format-security.patch
"${FILESDIR}"/${PN}-6.0-fix-false-overlap-detection-on-32bit-systems.patch
)

src_prepare() {
# bug #275244
use natspec && PATCHES+=( "${FILESDIR}"/${PN}-6.0-natspec.patch )

rm "${WORKDIR}"/debian/patches/02-this-is-debian-unzip.patch || die

default

sed -i -r \
-e '/^CFLAGS/d' \
-e '/CFLAGS/s:-O[0-9]?:$(CFLAGS) $(CPPFLAGS):' \
-e '/^STRIP/s:=.*:=true:' \
-e "s:\<CC *= *\"?g?cc2?\"?\>:CC=\"$(tc-getCC)\":" \
-e "s:\<LD *= *\"?(g?cc2?|ld)\"?\>:LD=\"$(tc-getCC)\":" \
-e "s:\<AS *= *\"?(g?cc2?|as)\"?\>:AS=\"$(tc-getCC)\":" \
-e 's:LF2 = -s:LF2 = :' \
-e 's:LF = :LF = $(LDFLAGS) :' \
-e 's:SL = :SL = $(LDFLAGS) :' \
-e 's:FL = :FL = $(LDFLAGS) :' \
-e "/^#L_BZ2/s:^$(use bzip2 && echo .)::" \
-e 's:$(AS) :$(AS) $(ASFLAGS) :g' \
unix/Makefile \
|| die "sed unix/Makefile failed"

# Delete bundled code to make sure we don't use it.
rm -r bzip2 || die
}

src_configure() {
case ${CHOST} in
i?86*-*linux*) TARGET="linux_asm" ;;
*linux*) TARGET="linux_noasm" ;;
*-darwin*) TARGET="macosx" ;;
*-solaris*) TARGET="linux_noasm" ;;
*-gnu) TARGET="generic" ;;
# generic may work but there may be a better-suited target
# so we should get people to check.
*) die "Unknown target; please update the ebuild to handle ${CHOST}" ;;
esac

[[ ${CHOST} == *linux* ]] && append-cppflags -DNO_LCHMOD
[[ ${CHOST} == *-solaris* ]] && append-cppflags -DNO_LCHMOD -DBSD4_4
use bzip2 && append-cppflags -DUSE_BZIP2
use unicode && append-cppflags -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DUSE_ICONV_MAPPING

# bug #281473
append-cppflags -DLARGE_FILE_SUPPORT
}

src_compile() {
ASFLAGS="${ASFLAGS} $(get_abi_CFLAGS)" emake -f unix/Makefile ${TARGET}
}

src_install() {
dobin unzip funzip unzipsfx unix/zipgrep
dosym unzip /usr/bin/zipinfo
doman man/*.1
dodoc BUGS History* README ToDo WHERE
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ DIST containerd-2.0.2.tar.gz 10379986 BLAKE2B aee39f749f056965b899f6525bebe00d46
DIST containerd-2.0.3.tar.gz 10450757 BLAKE2B 5dec56a40dc2874fb0b6fd4d72704f6417858eefd983c8ec5dfb2c9ef8be1e9e309cff83395e03c2d5fef30ed5c0561329ffbcd3dfba91e40d8017f7a605771b SHA512 9528a65d9d9f13d15d861f7ce71ab483958020bda83947d18868b477204e9e2e33eccc69280502c54b2be9ce577724e3e2b1772229c99636099b04bac1079ac1
DIST containerd-2.0.4.tar.gz 10450939 BLAKE2B f82ed40eab0f1d186f4fb04217b8f75a9da8e33b1140c0b5866dcc61e17fe1040f31ef09bdb07ad98a52def5e9eb12cfeb635e96b2c5f64fdb4d8cfb6c84b885 SHA512 f84e0cc0b82313df010b95989faf56e81ebfbbc321585b968c8c706917b91a9f0d895692fa5046f24f1c370de7a74b50daf83da617fe0595e5a8ff69ed658727
DIST containerd-2.0.5.tar.gz 10452563 BLAKE2B bf03316c9211eaa17a3b40b1fc9f9aca42fe3e621e086e612eb07c286c6b62bc7a0a2426ce7b6742dce2924d570ab599aefb43463c4fa6be277e562bad79668f SHA512 af89a5c9ad5f931c5fee33c75c13c296fc9ec966f2c64ec244897695eebb365bcb542f6b431e60d4ef7213f0ea11d3a8896d1b7f033ed445e6b521b7ddbffe6f
DIST containerd-2.0.7.tar.gz 10465656 BLAKE2B 656787c91e913fee32af282bfe82dd78a2732b113ff06adb157787efd5ddca31d13e7acf26e5e59ef51d233ecdee8b89200a9a8048e8422b6d4bd272a047c1ac SHA512 393e6f6357806367b7e007da7f2a951fb4330750d4e16c8e612f49c9b5d62a9f6a2b866dc12317da11dc75f2f2cd7e2e9b5118a3f07e5a68d3475d0449844a4f
DIST containerd-2.1.0.tar.gz 10610618 BLAKE2B 147c21b4650543af9b0e533e381a0505ba927d6e9270b9b03a09016eb3ccf29875db7fa274944fea2ff7b029b6a05a17d14c61e24b5f3426b31f320831eeb46a SHA512 e9bb128917bb6b2e21a8e05344af3fdcdda8620be20e54407bc2c73046278a88a77bcbed6ef7a59099c9ee3303283db46b90b71afdd45236d3c534749ba844e0
DIST containerd-2.1.1.tar.gz 10610787 BLAKE2B acc2d769752c783643795d228c0d267b0802e09166dc783e84087da0029a822a64688f5e59c047c47b25f50ca2a1ccb7f5b6216ad6beeb4489df308e525e9716 SHA512 542f7cae61e1ef2e1b529b0bea66d7ad9016d4605de73de9c9c8a738e50ec6f470b939d1546482320515b77424bffe1cf24b721173ac0c0ecd0100c92817cfb1
DIST containerd-2.1.4.tar.gz 10614131 BLAKE2B b8f4007b4bb368a1fa04c913d606f65d2ea4a17a6419ce12f2b6112eee2574d7a09fb8e2500d1c2f21bef8792dc047df4d63446211ae006662e616facda91f24 SHA512 a9f84784e917621ee5ea38ad20b8106e642fbf463a00d319b73a1a8e4d1fdd5be2fba0789b6a5d31107ef239d3713eced99ce979d4b2764714271a63c0936c15
DIST containerd-2.1.5.tar.gz 10622156 BLAKE2B b612e9606554d492f59d4665dcbd85b0fdfa3316ecff3a2122357f8d8ef68991a2b77c367e3a7143efb768e9a78ee82ace9ffdc0832a9eb4ec37e98b0f827840 SHA512 6376228edf615b1ff3d40287622d4f72793be091d59d5d7e97f7bdc4f265aa4412f4a5dd1937ef795e54aa5ee8a87d785e859d7c6525a25fa86631b878cefc59
DIST containerd-2.2.0.tar.gz 11475770 BLAKE2B 154d7d547d52925ff46431cea20db38dc72ec87ef90fd112472cb3ec7f2ebd8cfb121f98a3bc3870f8452473b35c3e1c84671b9fc31347f98259b34a70e740f9 SHA512 3121a1e0401e0283ff9d8454e945b427bcb0214e7e67271815117cb82dee1488c4d963c2193eb9c0ab5d395dd2e2705975ac31ce3e400264933d05d62fd0faac
DIST containerd-2.2.1.tar.gz 11492859 BLAKE2B 5ee7a5388ec5a247a530be505068162318505741e77ab2a103ba8a33c3e76fbac55a64504429f9c636e41cb4826e1acc6b7f817398928a0d6b8ebd94797b8b7b SHA512 6bbfe356bdb0fd70c5b3ca0d932b790bb34b40832392e6a309a907351dc344e3b6059e2cd583145200aab218b4e8f5160d698f2b3a84d05bbf834d023eea4bd3
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit go-module systemd
GIT_REVISION=fb4c30d4ede3531652d86197bf3fc9515e5276d9

DESCRIPTION="A daemon to control runC"
HOMEPAGE="https://containerd.io/"
SRC_URI="https://github.com/containerd/containerd/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
IUSE="apparmor btrfs device-mapper +cri +seccomp selinux test"

COMMON_DEPEND="
btrfs? ( sys-fs/btrfs-progs )
seccomp? ( sys-libs/libseccomp )
"

DEPEND="
${COMMON_DEPEND}
"

# recommended minimum version of runc is found in script/setup/runc-version
RDEPEND="
${COMMON_DEPEND}
>=app-containers/runc-1.3.3[apparmor?,seccomp?]
"

BDEPEND="
dev-go/go-md2man
virtual/pkgconfig
"

# tests require root or docker
RESTRICT+="test"

src_prepare() {
default
sed -i \
-e "s/-s -w//" \
-e "s/-mod=readonly//" \
Makefile || die
sed -i \
-e "s:/usr/local:/usr:" \
containerd.service || die
}

src_compile() {
local options=(
$(usev apparmor)
$(usex btrfs "" "no_btrfs")
$(usex cri "" "no_cri")
$(usex device-mapper "" "no_devmapper")
$(usev seccomp)
$(usev selinux)
)

myemakeargs=(
BUILDTAGS="${options[*]}"
REVISION="${GIT_REVISION}"
VERSION=v${PV}
)

# race condition in man target https://bugs.gentoo.org/765100
# we need to explicitly specify GOFLAGS for "go run" to use vendor source
emake "${myemakeargs[@]}" man -j1 #nowarn
emake "${myemakeargs[@]}" all

}

src_install() {
rm bin/gen-manpages || die
dobin bin/*
doman man/*
newconfd "${FILESDIR}"/${PN}.confd "${PN}"
newinitd "${FILESDIR}"/${PN}.initd "${PN}"
systemd_dounit containerd.service
keepdir /var/lib/containerd

# we already installed manpages, remove markdown source
# before installing docs directory
rm -r docs/man || die

local DOCS=( ADOPTERS.md README.md RELEASES.md ROADMAP.md SCOPE.md docs/. )
einstalldocs
}
Loading