diff options
author | Matija Skala <mskala@gmx.com> | 2019-07-19 17:38:40 +0200 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2019-07-19 12:51:49 -0400 |
commit | 3605875162f3dd742e959fe0e43e64ca4604dd01 (patch) | |
tree | 153b83c1d38292ea843fd8343a57812a5472fc03 /sys-apps/shadow | |
parent | sys-apps/systemd: change IUSE=+split-usr to IUSE=split-usr (diff) | |
download | gentoo-3605875162f3dd742e959fe0e43e64ca4604dd01.tar.gz gentoo-3605875162f3dd742e959fe0e43e64ca4604dd01.tar.bz2 gentoo-3605875162f3dd742e959fe0e43e64ca4604dd01.zip |
sys-apps/shadow: add support for /usr merge
Closes: https://github.com/gentoo/gentoo/pull/12477
Signed-off-by: Matija Skala <mskala@gmx.com>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps/shadow')
-rw-r--r-- | sys-apps/shadow/shadow-4.6.ebuild | 12 | ||||
-rw-r--r-- | sys-apps/shadow/shadow-4.7.ebuild | 12 |
2 files changed, 14 insertions, 10 deletions
diff --git a/sys-apps/shadow/shadow-4.6.ebuild b/sys-apps/shadow/shadow-4.6.ebuild index 14ef8ce12300..c816078172ce 100644 --- a/sys-apps/shadow/shadow-4.6.ebuild +++ b/sys-apps/shadow/shadow-4.6.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/shadow-maint/shadow/releases/download/${PV}/${P}.tar LICENSE="BSD GPL-2" SLOT="0" KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sh sparc x86" -IUSE="acl audit +cracklib nls pam selinux skey xattr" +IUSE="acl audit +cracklib nls pam selinux skey split-usr xattr" # Taken from the man/Makefile.am file. LANGS=( cs da de es fi fr hu id it ja ko pl pt_BR ru sv tr zh_CN zh_TW ) @@ -109,10 +109,12 @@ src_install() { insopts -m0600 doins "${FILESDIR}"/default/useradd - # move passwd to / to help recover broke systems #64441 - dodir /bin - mv "${ED%/}"/usr/bin/passwd "${ED%/}"/bin/ || die - dosym ../../bin/passwd /usr/bin/passwd + if use split-usr ; then + # move passwd to / to help recover broke systems #64441 + dodir /bin + mv "${ED%/}"/usr/bin/passwd "${ED%/}"/bin/ || die + dosym ../../bin/passwd /usr/bin/passwd + fi cd "${S}" || die insinto /etc diff --git a/sys-apps/shadow/shadow-4.7.ebuild b/sys-apps/shadow/shadow-4.7.ebuild index 809590ead55a..eb5a800dccfb 100644 --- a/sys-apps/shadow/shadow-4.7.ebuild +++ b/sys-apps/shadow/shadow-4.7.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/shadow-maint/shadow/releases/download/${PV}/${P}.tar LICENSE="BSD GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" -IUSE="acl audit +cracklib nls pam selinux skey xattr" +IUSE="acl audit +cracklib nls pam selinux skey split-usr xattr" # Taken from the man/Makefile.am file. LANGS=( cs da de es fi fr hu id it ja ko pl pt_BR ru sv tr zh_CN zh_TW ) @@ -109,10 +109,12 @@ src_install() { insopts -m0600 doins "${FILESDIR}"/default/useradd - # move passwd to / to help recover broke systems #64441 - dodir /bin - mv "${ED}"/usr/bin/passwd "${ED}"/bin/ || die - dosym ../../bin/passwd /usr/bin/passwd + if use split-usr ; then + # move passwd to / to help recover broke systems #64441 + dodir /bin + mv "${ED}"/usr/bin/passwd "${ED}"/bin/ || die + dosym ../../bin/passwd /usr/bin/passwd + fi cd "${S}" || die insinto /etc |