diff --git a/sdk_container/src/third_party/portage-stable/acct-group/adm/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/adm/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/adm/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/adm/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/audio/audio-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/audio/audio-0-r1.ebuild new file mode 100644 index 0000000000..ee027720bf --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/audio/audio-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=18 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/audio/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/audio/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/audio/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/cdrom/cdrom-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/cdrom/cdrom-0-r1.ebuild new file mode 100644 index 0000000000..8d402a923a --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/cdrom/cdrom-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=19 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/cdrom/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/cdrom/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/cdrom/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/dialout/dialout-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/dialout/dialout-0-r1.ebuild new file mode 100644 index 0000000000..3c1316aa58 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/dialout/dialout-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=20 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/dialout/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/dialout/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/dialout/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/disk/disk-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/disk/disk-0-r1.ebuild new file mode 100644 index 0000000000..a5568d65c0 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/disk/disk-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=6 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/disk/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/disk/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/disk/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/dnsmasq/dnsmasq-0.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/dnsmasq/dnsmasq-0-r1.ebuild similarity index 100% rename from sdk_container/src/third_party/portage-stable/acct-group/dnsmasq/dnsmasq-0.ebuild rename to sdk_container/src/third_party/portage-stable/acct-group/dnsmasq/dnsmasq-0-r1.ebuild diff --git a/sdk_container/src/third_party/portage-stable/acct-group/dnsmasq/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/dnsmasq/metadata.xml index cee379b154..bd6443d4a3 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/dnsmasq/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/dnsmasq/metadata.xml @@ -1,5 +1,5 @@ - + chutzpah@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/input/input-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/input/input-0-r1.ebuild new file mode 100644 index 0000000000..9ef06e8444 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/input/input-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=97 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/input/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/input/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/input/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/kmem/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/kmem/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/kmem/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/kmem/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/kvm/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/kvm/metadata.xml index 98159ee2f4..c12cdf945f 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/kvm/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/kvm/metadata.xml @@ -1,5 +1,5 @@ - + virtualization@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/lp/lp-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/lp/lp-0-r1.ebuild new file mode 100644 index 0000000000..9af7c058ba --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/lp/lp-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=7 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/lp/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/lp/metadata.xml new file mode 100644 index 0000000000..ba8bc47cd6 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/lp/metadata.xml @@ -0,0 +1,10 @@ + + + + + systemd@gentoo.org + + + printing@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/messagebus/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/messagebus/metadata.xml index 95e86c1210..d4390c2eb5 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/messagebus/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/messagebus/metadata.xml @@ -1,5 +1,5 @@ - + freedesktop-bugs@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/nobody/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/nobody/metadata.xml index f540000d5a..65e1fc82d8 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/nobody/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/nobody/metadata.xml @@ -1,5 +1,5 @@ - + base-system@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/ntp/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/ntp/metadata.xml index 3e60a9a347..bc93e527e2 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/ntp/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/ntp/metadata.xml @@ -1,5 +1,5 @@ - + base-system@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/ntp/ntp-0.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/ntp/ntp-0-r1.ebuild similarity index 75% rename from sdk_container/src/third_party/portage-stable/acct-group/ntp/ntp-0.ebuild rename to sdk_container/src/third_party/portage-stable/acct-group/ntp/ntp-0-r1.ebuild index adc40de659..d8f17217cd 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/ntp/ntp-0.ebuild +++ b/sdk_container/src/third_party/portage-stable/acct-group/ntp/ntp-0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019 Gentoo Authors +# Copyright 2019-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/portage/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/portage/metadata.xml index d4af1f2514..66da907ee8 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/portage/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/portage/metadata.xml @@ -1,5 +1,5 @@ - + dev-portage@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/render/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/render/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/render/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/render/render-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/render/render-0-r1.ebuild new file mode 100644 index 0000000000..6e31b13263 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/render/render-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=28 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/root/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/root/metadata.xml index f540000d5a..65e1fc82d8 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/root/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/root/metadata.xml @@ -1,5 +1,5 @@ - + base-system@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/sgx/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/sgx/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/sgx/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/sgx/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/sgx/sgx-0.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/sgx/sgx-0.ebuild index ade0781d2b..6a9d9ac0c9 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/sgx/sgx-0.ebuild +++ b/sdk_container/src/third_party/portage-stable/acct-group/sgx/sgx-0.ebuild @@ -5,4 +5,6 @@ EAPI=7 inherit acct-group +DESCRIPTION="System group: used for SGX enclaves" + ACCT_GROUP_ID=405 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/sshd/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/sshd/metadata.xml index 3e60a9a347..bc93e527e2 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/sshd/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/sshd/metadata.xml @@ -1,5 +1,5 @@ - + base-system@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/sshd/sshd-0.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/sshd/sshd-0-r1.ebuild similarity index 100% rename from sdk_container/src/third_party/portage-stable/acct-group/sshd/sshd-0.ebuild rename to sdk_container/src/third_party/portage-stable/acct-group/sshd/sshd-0-r1.ebuild diff --git a/sdk_container/src/third_party/portage-stable/acct-group/systemd-coredump/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/systemd-coredump/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/systemd-coredump/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/systemd-coredump/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal-remote/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal-remote/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal-remote/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal-remote/systemd-journal-remote-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal-remote/systemd-journal-remote-0-r1.ebuild new file mode 100644 index 0000000000..8ddee6ec32 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal-remote/systemd-journal-remote-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=191 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal/systemd-journal-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal/systemd-journal-0-r1.ebuild new file mode 100644 index 0000000000..c439156e2f --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/systemd-journal/systemd-journal-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=190 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/systemd-network/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/systemd-network/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/systemd-network/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/systemd-network/systemd-network-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/systemd-network/systemd-network-0-r1.ebuild new file mode 100644 index 0000000000..6f88d3ca98 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/systemd-network/systemd-network-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=192 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/systemd-oom/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/systemd-oom/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/systemd-oom/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/systemd-oom/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/systemd-resolve/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/systemd-resolve/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/systemd-resolve/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/systemd-resolve/systemd-resolve-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/systemd-resolve/systemd-resolve-0-r1.ebuild new file mode 100644 index 0000000000..903603df62 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/systemd-resolve/systemd-resolve-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=193 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/systemd-timesync/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/systemd-timesync/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/systemd-timesync/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/systemd-timesync/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/tape/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/tape/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/tape/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/tape/tape-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/tape/tape-0-r1.ebuild new file mode 100644 index 0000000000..e7aa561286 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/tape/tape-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=26 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/tss/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/tss/metadata.xml index 52d5228a45..fdd29c016a 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/tss/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/tss/metadata.xml @@ -1,11 +1,11 @@ - + - + salah.coronya@gmail.com - Salah Coronya + Christopher Byrne - + proxy-maint@gentoo.org Proxy Maintainers diff --git a/sdk_container/src/third_party/portage-stable/acct-group/tss/tss-0.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/tss/tss-0-r1.ebuild similarity index 81% rename from sdk_container/src/third_party/portage-stable/acct-group/tss/tss-0.ebuild rename to sdk_container/src/third_party/portage-stable/acct-group/tss/tss-0-r1.ebuild index 63c0050b30..3ecc4e5494 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/tss/tss-0.ebuild +++ b/sdk_container/src/third_party/portage-stable/acct-group/tss/tss-0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019 Gentoo Authors +# Copyright 2019-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/tty/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/tty/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/tty/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/tty/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/users/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/users/metadata.xml index f540000d5a..65e1fc82d8 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/users/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/users/metadata.xml @@ -1,5 +1,5 @@ - + base-system@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/utmp/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/utmp/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/utmp/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/utmp/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-group/video/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/video/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/video/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-group/video/video-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-group/video/video-0-r1.ebuild new file mode 100644 index 0000000000..3b06b5be9d --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-group/video/video-0-r1.ebuild @@ -0,0 +1,8 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-group + +ACCT_GROUP_ID=27 diff --git a/sdk_container/src/third_party/portage-stable/acct-group/wheel/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-group/wheel/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-group/wheel/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-group/wheel/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-user/dnsmasq/dnsmasq-0.ebuild b/sdk_container/src/third_party/portage-stable/acct-user/dnsmasq/dnsmasq-0-r1.ebuild similarity index 100% rename from sdk_container/src/third_party/portage-stable/acct-user/dnsmasq/dnsmasq-0.ebuild rename to sdk_container/src/third_party/portage-stable/acct-user/dnsmasq/dnsmasq-0-r1.ebuild diff --git a/sdk_container/src/third_party/portage-stable/acct-user/dnsmasq/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/dnsmasq/metadata.xml index cee379b154..bd6443d4a3 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/dnsmasq/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-user/dnsmasq/metadata.xml @@ -1,5 +1,5 @@ - + chutzpah@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-user/messagebus/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/messagebus/metadata.xml index 95e86c1210..d4390c2eb5 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/messagebus/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-user/messagebus/metadata.xml @@ -1,5 +1,5 @@ - + freedesktop-bugs@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-user/nobody/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/nobody/metadata.xml index f540000d5a..65e1fc82d8 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/nobody/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-user/nobody/metadata.xml @@ -1,5 +1,5 @@ - + base-system@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-user/ntp/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/ntp/metadata.xml index 3e60a9a347..bc93e527e2 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/ntp/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-user/ntp/metadata.xml @@ -1,5 +1,5 @@ - + base-system@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-user/ntp/ntp-0.ebuild b/sdk_container/src/third_party/portage-stable/acct-user/ntp/ntp-0-r1.ebuild similarity index 83% rename from sdk_container/src/third_party/portage-stable/acct-user/ntp/ntp-0.ebuild rename to sdk_container/src/third_party/portage-stable/acct-user/ntp/ntp-0-r1.ebuild index 69d774eb2d..cd5fe5a72d 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/ntp/ntp-0.ebuild +++ b/sdk_container/src/third_party/portage-stable/acct-user/ntp/ntp-0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019 Gentoo Authors +# Copyright 2019-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/sdk_container/src/third_party/portage-stable/acct-user/portage/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/portage/metadata.xml index d4af1f2514..66da907ee8 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/portage/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-user/portage/metadata.xml @@ -1,5 +1,5 @@ - + dev-portage@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-user/root/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/root/metadata.xml index f540000d5a..65e1fc82d8 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/root/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-user/root/metadata.xml @@ -1,5 +1,5 @@ - + base-system@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-user/root/root-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-user/root/root-0-r1.ebuild index f85c77b4cd..ea2e82dfcf 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/root/root-0-r1.ebuild +++ b/sdk_container/src/third_party/portage-stable/acct-user/root/root-0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020 Gentoo Authors +# Copyright 2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,6 +12,10 @@ ACCT_USER_HOME="/root" ACCT_USER_HOME_PERMS=0700 ACCT_USER_GROUPS=( root ) +# Avoid reverting changes by the sysadmin. +# https://bugs.gentoo.org/827813 +ACCT_USER_NO_MODIFY=1 + acct-user_add_deps pkg_prerm() { diff --git a/sdk_container/src/third_party/portage-stable/acct-user/sshd/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/sshd/metadata.xml index 3e60a9a347..bc93e527e2 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/sshd/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-user/sshd/metadata.xml @@ -1,5 +1,5 @@ - + base-system@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-user/sshd/sshd-0.ebuild b/sdk_container/src/third_party/portage-stable/acct-user/sshd/sshd-0-r1.ebuild similarity index 100% rename from sdk_container/src/third_party/portage-stable/acct-user/sshd/sshd-0.ebuild rename to sdk_container/src/third_party/portage-stable/acct-user/sshd/sshd-0-r1.ebuild diff --git a/sdk_container/src/third_party/portage-stable/acct-user/systemd-coredump/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/systemd-coredump/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/systemd-coredump/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-user/systemd-coredump/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-user/systemd-journal-remote/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/systemd-journal-remote/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-user/systemd-journal-remote/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-user/systemd-journal-remote/systemd-journal-remote-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-user/systemd-journal-remote/systemd-journal-remote-0-r1.ebuild new file mode 100644 index 0000000000..b05096297b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-user/systemd-journal-remote/systemd-journal-remote-0-r1.ebuild @@ -0,0 +1,11 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-user + +ACCT_USER_ID=191 +ACCT_USER_GROUPS=( systemd-journal-remote ) + +acct-user_add_deps diff --git a/sdk_container/src/third_party/portage-stable/acct-user/systemd-network/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/systemd-network/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-user/systemd-network/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-user/systemd-network/systemd-network-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-user/systemd-network/systemd-network-0-r1.ebuild new file mode 100644 index 0000000000..bf308627c4 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-user/systemd-network/systemd-network-0-r1.ebuild @@ -0,0 +1,11 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-user + +ACCT_USER_ID=192 +ACCT_USER_GROUPS=( systemd-network ) + +acct-user_add_deps diff --git a/sdk_container/src/third_party/portage-stable/acct-user/systemd-oom/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/systemd-oom/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/systemd-oom/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-user/systemd-oom/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-user/systemd-resolve/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/systemd-resolve/metadata.xml new file mode 100644 index 0000000000..31123d01cb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-user/systemd-resolve/metadata.xml @@ -0,0 +1,7 @@ + + + + + systemd@gentoo.org + + diff --git a/sdk_container/src/third_party/portage-stable/acct-user/systemd-resolve/systemd-resolve-0-r1.ebuild b/sdk_container/src/third_party/portage-stable/acct-user/systemd-resolve/systemd-resolve-0-r1.ebuild new file mode 100644 index 0000000000..5eb0b3096d --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/acct-user/systemd-resolve/systemd-resolve-0-r1.ebuild @@ -0,0 +1,11 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-user + +ACCT_USER_ID=193 +ACCT_USER_GROUPS=( systemd-resolve ) + +acct-user_add_deps diff --git a/sdk_container/src/third_party/portage-stable/acct-user/systemd-timesync/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/systemd-timesync/metadata.xml index 8e7007e5a4..31123d01cb 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/systemd-timesync/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-user/systemd-timesync/metadata.xml @@ -1,5 +1,5 @@ - + systemd@gentoo.org diff --git a/sdk_container/src/third_party/portage-stable/acct-user/tss/metadata.xml b/sdk_container/src/third_party/portage-stable/acct-user/tss/metadata.xml index 52d5228a45..fdd29c016a 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/tss/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/acct-user/tss/metadata.xml @@ -1,11 +1,11 @@ - + - + salah.coronya@gmail.com - Salah Coronya + Christopher Byrne - + proxy-maint@gentoo.org Proxy Maintainers diff --git a/sdk_container/src/third_party/portage-stable/acct-user/tss/tss-0.ebuild b/sdk_container/src/third_party/portage-stable/acct-user/tss/tss-0-r1.ebuild similarity index 84% rename from sdk_container/src/third_party/portage-stable/acct-user/tss/tss-0.ebuild rename to sdk_container/src/third_party/portage-stable/acct-user/tss/tss-0-r1.ebuild index f6726ec183..55a6438895 100644 --- a/sdk_container/src/third_party/portage-stable/acct-user/tss/tss-0.ebuild +++ b/sdk_container/src/third_party/portage-stable/acct-user/tss/tss-0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019 Gentoo Authors +# Copyright 2019-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/sdk_container/src/third_party/portage-stable/eclass/acct-group.eclass b/sdk_container/src/third_party/portage-stable/eclass/acct-group.eclass index 0b943454a9..b309d36432 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/acct-group.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/acct-group.eclass @@ -1,4 +1,4 @@ -# Copyright 2019 Gentoo Authors +# Copyright 2019-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: acct-group.eclass @@ -7,7 +7,7 @@ # @AUTHOR: # Michael Orlitzky # Michał Górny -# @SUPPORTED_EAPIS: 7 +# @SUPPORTED_EAPIS: 7 8 # @BLURB: Eclass used to create and maintain a single group entry # @DESCRIPTION: # This eclass represents and creates a single group entry. The name @@ -20,22 +20,23 @@ # and add an ebuild with the following contents: # # @CODE -# EAPI=7 +# EAPI=8 # inherit acct-group # ACCT_GROUP_ID=200 # @CODE # -# Then you add appropriate dependency to your package. The dependency -# type(s) should be: -# - DEPEND (+ RDEPEND) if the group is already needed at build time, -# - RDEPEND if it is needed at install time (e.g. you 'fowners' files -# in pkg_preinst) or run time. +# Then you add appropriate dependencies to your package. Note that +# the build system might need to resolve names, too. The dependency +# type(s) should be: BDEPEND if the group must be resolvable at build +# time (e.g. 'fowners' uses it in src_install), IDEPEND if it must be +# resolvable at install time (e.g. 'fowners' uses it in pkg_preinst), +# and RDEPEND in every case. if [[ -z ${_ACCT_GROUP_ECLASS} ]]; then _ACCT_GROUP_ECLASS=1 case ${EAPI:-0} in - 7) ;; + 7|8) ;; *) die "EAPI=${EAPI:-0} not supported";; esac @@ -59,7 +60,8 @@ readonly ACCT_GROUP_NAME # @REQUIRED # @DESCRIPTION: # Preferred GID for the new group. This variable is obligatory, and its -# value must be unique across all group packages. +# value must be unique across all group packages. This can be overriden +# in make.conf through ACCT_GROUP__ID variable. # # Overlays should set this to -1 to dynamically allocate GID. Using -1 # in ::gentoo is prohibited by policy. @@ -75,12 +77,12 @@ readonly ACCT_GROUP_NAME # << Boilerplate ebuild variables >> : ${DESCRIPTION:="System group: ${ACCT_GROUP_NAME}"} : ${SLOT:=0} -: ${KEYWORDS:=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris} +: ${KEYWORDS:=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris} S=${WORKDIR} # << Phase functions >> -EXPORT_FUNCTIONS pkg_pretend pkg_preinst +EXPORT_FUNCTIONS pkg_pretend src_install pkg_preinst # @FUNCTION: acct-group_pkg_pretend # @DESCRIPTION: @@ -91,31 +93,63 @@ acct-group_pkg_pretend() { # verify ACCT_GROUP_ID [[ -n ${ACCT_GROUP_ID} ]] || die "Ebuild error: ACCT_GROUP_ID must be set!" - [[ ${ACCT_GROUP_ID} -eq -1 ]] && return - [[ ${ACCT_GROUP_ID} -ge 0 ]] || die "Ebuild errors: ACCT_GROUP_ID=${ACCT_GROUP_ID} invalid!" + [[ ${ACCT_GROUP_ID} -ge -1 ]] || die "Ebuild error: ACCT_GROUP_ID=${ACCT_GROUP_ID} invalid!" + local group_id=${ACCT_GROUP_ID} + + # check for the override + local override_name=${ACCT_GROUP_NAME^^} + local override_var=ACCT_GROUP_${override_name//-/_}_ID + if [[ -n ${!override_var} ]]; then + group_id=${!override_var} + [[ ${group_id} -ge -1 ]] || die "${override_var}=${group_id} invalid!" + fi # check for ACCT_GROUP_ID collisions early - if [[ -n ${ACCT_GROUP_ENFORCE_ID} ]]; then - local group_by_id=$(egetgroupname "${ACCT_GROUP_ID}") + if [[ ${group_id} -ne -1 && -n ${ACCT_GROUP_ENFORCE_ID} ]]; then + local group_by_id=$(egetgroupname "${group_id}") local group_by_name=$(egetent group "${ACCT_GROUP_NAME}") if [[ -n ${group_by_id} ]]; then if [[ ${group_by_id} != ${ACCT_GROUP_NAME} ]]; then eerror "The required GID is already taken by another group." - eerror " GID: ${ACCT_GROUP_ID}" + eerror " GID: ${group_id}" eerror " needed for: ${ACCT_GROUP_NAME}" eerror " current group: ${group_by_id}" - die "GID ${ACCT_GROUP_ID} taken already" + die "GID ${group_id} taken already" fi elif [[ -n ${group_by_name} ]]; then eerror "The requested group exists already with wrong GID." eerror " groupname: ${ACCT_GROUP_NAME}" - eerror " requested GID: ${ACCT_GROUP_ID}" + eerror " requested GID: ${group_id}" eerror " current entry: ${group_by_name}" die "Group ${ACCT_GROUP_NAME} exists with wrong GID" fi fi } +# @FUNCTION: acct-group_src_install +# @DESCRIPTION: +# Installs sysusers.d file for the group. +acct-group_src_install() { + debug-print-function ${FUNCNAME} "${@}" + + # check for the override + local override_name=${ACCT_GROUP_NAME^^} + local override_var=ACCT_GROUP_${override_name//-/_}_ID + if [[ -n ${!override_var} ]]; then + ewarn "${override_var}=${!override_var} override in effect, support will not be provided." + _ACCT_GROUP_ID=${!override_var} + else + _ACCT_GROUP_ID=${ACCT_GROUP_ID} + fi + + insinto /usr/lib/sysusers.d + newins - ${CATEGORY}-${ACCT_GROUP_NAME}.conf < <( + printf "g\t%q\t%q\n" \ + "${ACCT_GROUP_NAME}" \ + "${_ACCT_GROUP_ID/#-*/-}" + ) +} + # @FUNCTION: acct-group_pkg_preinst # @DESCRIPTION: # Creates the group if it does not exist yet. @@ -123,7 +157,7 @@ acct-group_pkg_preinst() { debug-print-function ${FUNCNAME} "${@}" enewgroup ${ACCT_GROUP_ENFORCE_ID:+-F} "${ACCT_GROUP_NAME}" \ - "${ACCT_GROUP_ID}" + "${_ACCT_GROUP_ID}" } fi diff --git a/sdk_container/src/third_party/portage-stable/eclass/acct-user.eclass b/sdk_container/src/third_party/portage-stable/eclass/acct-user.eclass index e3ec396603..cf47470c15 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/acct-user.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/acct-user.eclass @@ -1,4 +1,4 @@ -# Copyright 2019 Gentoo Authors +# Copyright 2019-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: acct-user.eclass @@ -7,7 +7,7 @@ # @AUTHOR: # Michael Orlitzky # Michał Górny -# @SUPPORTED_EAPIS: 7 +# @SUPPORTED_EAPIS: 7 8 # @BLURB: Eclass used to create and maintain a single user entry # @DESCRIPTION: # This eclass represents and creates a single user entry. The name @@ -26,24 +26,25 @@ # contents: # # @CODE -# EAPI=7 +# EAPI=8 # inherit acct-user # ACCT_USER_ID=200 # ACCT_USER_GROUPS=( foo ) # acct-user_add_deps # @CODE # -# Then you add appropriate dependency to your package. The dependency -# type(s) should be: -# - DEPEND (+ RDEPEND) if the user is already needed at build time, -# - RDEPEND if it is needed at install time (e.g. you 'fowners' files -# in pkg_preinst) or run time. +# Then you add appropriate dependencies to your package. Note that +# the build system might need to resolve names, too. The dependency +# type(s) should be: BDEPEND if the user must be resolvable at build +# time (e.g. 'fowners' uses it in src_install), IDEPEND if it must be +# resolvable at install time (e.g. 'fowners' uses it in pkg_preinst), +# and RDEPEND in every case. if [[ -z ${_ACCT_USER_ECLASS} ]]; then _ACCT_USER_ECLASS=1 case ${EAPI:-0} in - 7) ;; + 7|8) ;; *) die "EAPI=${EAPI:-0} not supported";; esac @@ -67,11 +68,17 @@ readonly ACCT_USER_NAME # @REQUIRED # @DESCRIPTION: # Preferred UID for the new user. This variable is obligatory, and its -# value must be unique across all user packages. +# value must be unique across all user packages. This can be overriden +# in make.conf through ACCT_USER__ID variable. # # Overlays should set this to -1 to dynamically allocate UID. Using -1 # in ::gentoo is prohibited by policy. +# @ECLASS-VARIABLE: _ACCT_USER_ALREADY_EXISTS +# @INTERNAL +# @DESCRIPTION: +# Status variable which indicates if user already exists. + # @ECLASS-VARIABLE: ACCT_USER_ENFORCE_ID # @DESCRIPTION: # If set to a non-null value, the eclass will require the user to have @@ -79,10 +86,18 @@ readonly ACCT_USER_NAME # the UID is taken by another user, the install will fail. : ${ACCT_USER_ENFORCE_ID:=} +# @ECLASS-VARIABLE: ACCT_USER_NO_MODIFY +# @DEFAULT_UNSET +# @DESCRIPTION: +# If set to a non-null value, the eclass will not make any changes +# to an already existing user. +: ${ACCT_USER_NO_MODIFY:=} + # @ECLASS-VARIABLE: ACCT_USER_SHELL # @DESCRIPTION: # The shell to use for the user. If not specified, a 'nologin' variant -# for the system is used. +# for the system is used. This can be overriden in make.conf through +# ACCT_USER__SHELL variable. : ${ACCT_USER_SHELL:=-1} # @ECLASS-VARIABLE: ACCT_USER_HOME @@ -90,6 +105,8 @@ readonly ACCT_USER_NAME # The home directory for the user. If not specified, /dev/null is used. # The directory will be created with appropriate permissions if it does # not exist. When updating, existing home directory will not be moved. +# This can be overriden in make.conf through +# ACCT_USER__HOME variable. : ${ACCT_USER_HOME:=/dev/null} # @ECLASS-VARIABLE: ACCT_USER_HOME_OWNER @@ -97,11 +114,14 @@ readonly ACCT_USER_NAME # @DESCRIPTION: # The ownership to use for the home directory, in chown ([user][:group]) # syntax. Defaults to the newly created user, and its primary group. +# This can be overriden in make.conf through +# ACCT_USER__HOME_OWNER variable. # @ECLASS-VARIABLE: ACCT_USER_HOME_PERMS # @DESCRIPTION: # The permissions to use for the home directory, in chmod (octal -# or verbose) form. +# or verbose) form. This can be overriden in make.conf through +# ACCT_USER__HOME_PERMS variable. : ${ACCT_USER_HOME_PERMS:=0755} # @ECLASS-VARIABLE: ACCT_USER_GROUPS @@ -110,12 +130,18 @@ readonly ACCT_USER_NAME # List of groups the user should belong to. This must be a bash # array. The first group specified is the user's primary group, while # the remaining groups (if any) become supplementary groups. +# +# This can be overriden in make.conf through +# ACCT_USER__GROUPS variable, or appended to +# via ACCT_USER__GROUPS_ADD. Please note that +# due to technical limitations, the override variables are not arrays +# but space-separated lists. # << Boilerplate ebuild variables >> : ${DESCRIPTION:="System user: ${ACCT_USER_NAME}"} : ${SLOT:=0} -: ${KEYWORDS:=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris} +: ${KEYWORDS:=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris} S=${WORKDIR} @@ -143,8 +169,8 @@ acct-user_add_deps() { # << Helper functions >> # @FUNCTION: eislocked -# @INTERNAL # @USAGE: +# @INTERNAL # @DESCRIPTION: # Check whether the specified user account is currently locked. # Returns 0 if it is locked, 1 if it is not, 2 if the platform @@ -152,7 +178,7 @@ acct-user_add_deps() { eislocked() { [[ $# -eq 1 ]] || die "usage: ${FUNCNAME} " - if [[ ${EUID} != 0 ]] ; then + if [[ ${EUID} != 0 ]]; then einfo "Insufficient privileges to execute ${FUNCNAME[0]}" return 0 fi @@ -176,8 +202,8 @@ eislocked() { } # @FUNCTION: elockuser -# @INTERNAL # @USAGE: +# @INTERNAL # @DESCRIPTION: # Lock the specified user account, using the available platform-specific # functions. This should prevent any login to the account. @@ -189,7 +215,7 @@ eislocked() { elockuser() { [[ $# -eq 1 ]] || die "usage: ${FUNCNAME} " - if [[ ${EUID} != 0 ]] ; then + if [[ ${EUID} != 0 ]]; then einfo "Insufficient privileges to execute ${FUNCNAME[0]}" return 0 fi @@ -221,8 +247,8 @@ elockuser() { } # @FUNCTION: eunlockuser -# @INTERNAL # @USAGE: +# @INTERNAL # @DESCRIPTION: # Unlock the specified user account, using the available platform- # specific functions. @@ -232,7 +258,7 @@ elockuser() { eunlockuser() { [[ $# -eq 1 ]] || die "usage: ${FUNCNAME} " - if [[ ${EUID} != 0 ]] ; then + if [[ ${EUID} != 0 ]]; then einfo "Insufficient privileges to execute ${FUNCNAME[0]}" return 0 fi @@ -284,25 +310,33 @@ acct-user_pkg_pretend() { # verify ACCT_USER_ID [[ -n ${ACCT_USER_ID} ]] || die "Ebuild error: ACCT_USER_ID must be set!" - [[ ${ACCT_USER_ID} -eq -1 ]] && return - [[ ${ACCT_USER_ID} -ge 0 ]] || die "Ebuild errors: ACCT_USER_ID=${ACCT_USER_ID} invalid!" + [[ ${ACCT_USER_ID} -ge -1 ]] || die "Ebuild error: ACCT_USER_ID=${ACCT_USER_ID} invalid!" + local user_id=${ACCT_USER_ID} + + # check for the override + local override_name=${ACCT_USER_NAME^^} + local override_var=ACCT_USER_${override_name//-/_}_ID + if [[ -n ${!override_var} ]]; then + user_id=${!override_var} + [[ ${user_id} -ge -1 ]] || die "${override_var}=${user_id} invalid!" + fi # check for ACCT_USER_ID collisions early - if [[ -n ${ACCT_USER_ENFORCE_ID} ]]; then - local user_by_id=$(egetusername "${ACCT_USER_ID}") + if [[ ${user_id} -ne -1 && -n ${ACCT_USER_ENFORCE_ID} ]]; then + local user_by_id=$(egetusername "${user_id}") local user_by_name=$(egetent passwd "${ACCT_USER_NAME}") if [[ -n ${user_by_id} ]]; then if [[ ${user_by_id} != ${ACCT_USER_NAME} ]]; then eerror "The required UID is already taken by another user." - eerror " UID: ${ACCT_USER_ID}" + eerror " UID: ${user_id}" eerror " needed for: ${ACCT_USER_NAME}" eerror " current user: ${user_by_id}" - die "UID ${ACCT_USER_ID} taken already" + die "UID ${user_id} taken already" fi elif [[ -n ${user_by_name} ]]; then eerror "The requested user exists already with wrong UID." eerror " username: ${ACCT_USER_NAME}" - eerror " requested UID: ${ACCT_USER_ID}" + eerror " requested UID: ${user_id}" eerror " current entry: ${user_by_name}" die "Username ${ACCT_USER_NAME} exists with wrong UID" fi @@ -312,15 +346,54 @@ acct-user_pkg_pretend() { # @FUNCTION: acct-user_src_install # @DESCRIPTION: # Installs a keep-file into the user's home directory to ensure it is -# owned by the package. +# owned by the package, and sysusers.d file. acct-user_src_install() { debug-print-function ${FUNCNAME} "${@}" - if [[ ${ACCT_USER_HOME} != /dev/null ]]; then + # serialize for override support + local ACCT_USER_GROUPS=${ACCT_USER_GROUPS[*]} + + # support make.conf overrides + local override_name=${ACCT_USER_NAME^^} + override_name=${override_name//-/_} + local var + for var in ACCT_USER_{ID,SHELL,HOME{,_OWNER,_PERMS},GROUPS}; do + local var_name=ACCT_USER_${override_name}_${var#ACCT_USER_} + if [[ -n ${!var_name} ]]; then + ewarn "${var_name}=${!var_name} override in effect, support will not be provided." + else + var_name=${var} + fi + declare -g "_${var}=${!var_name}" + done + var_name=ACCT_USER_${override_name}_GROUPS_ADD + if [[ -n ${!var_name} ]]; then + ewarn "${var_name}=${!var_name} override in effect, support will not be provided." + _ACCT_USER_GROUPS+=" ${!var_name}" + fi + + # deserialize into an array + local groups=( ${_ACCT_USER_GROUPS} ) + + if [[ ${_ACCT_USER_HOME} != /dev/null ]]; then # note: we can't set permissions here since the user isn't # created yet - keepdir "${ACCT_USER_HOME}" + keepdir "${_ACCT_USER_HOME}" fi + + insinto /usr/lib/sysusers.d + newins - ${CATEGORY}-${ACCT_USER_NAME}.conf < <( + printf "u\t%q\t%q\t%q\t%q\t%q\n" \ + "${ACCT_USER_NAME}" \ + "${_ACCT_USER_ID/#-*/-}:${groups[0]}" \ + "${DESCRIPTION//[:,=]/;}" \ + "${_ACCT_USER_HOME}" \ + "${_ACCT_USER_SHELL/#-*/-}" + if [[ ${#groups[@]} -gt 1 ]]; then + printf "m\t${ACCT_USER_NAME}\t%q\n" \ + "${groups[@]:1}" + fi + ) } # @FUNCTION: acct-user_pkg_preinst @@ -330,26 +403,33 @@ acct-user_src_install() { acct-user_pkg_preinst() { debug-print-function ${FUNCNAME} "${@}" - local groups=${ACCT_USER_GROUPS[*]} - enewuser ${ACCT_USER_ENFORCE_ID:+-F} -M "${ACCT_USER_NAME}" \ - "${ACCT_USER_ID}" "${ACCT_USER_SHELL}" "${ACCT_USER_HOME}" \ - "${groups// /,}" + # check if user already exists + _ACCT_USER_ALREADY_EXISTS= + if [[ -n $(egetent passwd "${ACCT_USER_NAME}") ]]; then + _ACCT_USER_ALREADY_EXISTS=1 + fi + readonly _ACCT_USER_ALREADY_EXISTS - if [[ ${ACCT_USER_HOME} != /dev/null ]]; then + enewuser ${ACCT_USER_ENFORCE_ID:+-F} -M "${ACCT_USER_NAME}" \ + "${_ACCT_USER_ID}" "${_ACCT_USER_SHELL}" "${_ACCT_USER_HOME}" \ + "${_ACCT_USER_GROUPS// /,}" + + if [[ ${_ACCT_USER_HOME} != /dev/null ]]; then # default ownership to user:group - if [[ -z ${ACCT_USER_HOME_OWNER} ]]; then - ACCT_USER_HOME_OWNER=${ACCT_USER_NAME}:${ACCT_USER_GROUPS[0]} + if [[ -z ${_ACCT_USER_HOME_OWNER} ]]; then + local group_array=( ${_ACCT_USER_GROUPS} ) + _ACCT_USER_HOME_OWNER=${ACCT_USER_NAME}:${group_array[0]} fi # Path might be missing due to INSTALL_MASK, etc. # https://bugs.gentoo.org/691478 - if [[ ! -e "${ED}/${ACCT_USER_HOME#/}" ]]; then + if [[ ! -e "${ED}/${_ACCT_USER_HOME#/}" ]]; then eerror "Home directory is missing from the installation image:" - eerror " ${ACCT_USER_HOME}" + eerror " ${_ACCT_USER_HOME}" eerror "Check INSTALL_MASK for entries that would cause this." - die "${ACCT_USER_HOME} does not exist" + die "${_ACCT_USER_HOME} does not exist" fi - fowners "${ACCT_USER_HOME_OWNER}" "${ACCT_USER_HOME}" - fperms "${ACCT_USER_HOME_PERMS}" "${ACCT_USER_HOME}" + fowners "${_ACCT_USER_HOME_OWNER}" "${_ACCT_USER_HOME}" + fperms "${_ACCT_USER_HOME_PERMS}" "${_ACCT_USER_HOME}" fi } @@ -360,16 +440,23 @@ acct-user_pkg_preinst() { acct-user_pkg_postinst() { debug-print-function ${FUNCNAME} "${@}" - if [[ ${EUID} != 0 ]] ; then + if [[ ${EUID} != 0 ]]; then einfo "Insufficient privileges to execute ${FUNCNAME[0]}" return 0 fi + if [[ -n ${ACCT_USER_NO_MODIFY} && -n ${_ACCT_USER_ALREADY_EXISTS} ]]; then + eunlockuser "${ACCT_USER_NAME}" + + ewarn "User ${ACCT_USER_NAME} already exists; Not touching existing user" + ewarn "due to set ACCT_USER_NO_MODIFY." + return 0 + fi + # NB: eset* functions check current value - esethome "${ACCT_USER_NAME}" "${ACCT_USER_HOME}" - esetshell "${ACCT_USER_NAME}" "${ACCT_USER_SHELL}" - local groups=${ACCT_USER_GROUPS[*]} - esetgroups "${ACCT_USER_NAME}" "${groups// /,}" + esethome "${ACCT_USER_NAME}" "${_ACCT_USER_HOME}" + esetshell "${ACCT_USER_NAME}" "${_ACCT_USER_SHELL}" + esetgroups "${ACCT_USER_NAME}" "${_ACCT_USER_GROUPS// /,}" # comment field can not contain colons esetcomment "${ACCT_USER_NAME}" "${DESCRIPTION//[:,=]/;}" eunlockuser "${ACCT_USER_NAME}" @@ -381,7 +468,7 @@ acct-user_pkg_postinst() { acct-user_pkg_prerm() { debug-print-function ${FUNCNAME} "${@}" - if [[ ${EUID} != 0 ]] ; then + if [[ ${EUID} != 0 ]]; then einfo "Insufficient privileges to execute ${FUNCNAME[0]}" return 0 fi