| 19 |
19 |
|
| 20 |
20 |
LICENSE="BSD GPL-2"
|
| 21 |
21 |
# Subslot is for libsubid's SONAME.
|
| 22 |
|
SLOT="0/5"
|
| 23 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
| 24 |
|
IUSE="acl audit nls pam selinux skey split-usr su systemd test xattr"
|
|
22 |
SLOT="0/6"
|
|
23 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
24 |
IUSE="acl audit nls pam selinux skey split-usr su systemd test"
|
| 25 |
25 |
RESTRICT="!test? ( test )"
|
| 26 |
26 |
|
| 27 |
27 |
COMMON_DEPEND="
|
| ... | ... | |
| 37 |
37 |
sys-libs/libsemanage:=
|
| 38 |
38 |
)
|
| 39 |
39 |
systemd? ( sys-apps/systemd:= )
|
| 40 |
|
xattr? ( sys-apps/attr:= )
|
| 41 |
40 |
!<sys-libs/glibc-2.38
|
| 42 |
41 |
"
|
| 43 |
42 |
DEPEND="
|
| 44 |
43 |
${COMMON_DEPEND}
|
|
44 |
acl? ( sys-apps/attr )
|
| 45 |
45 |
kernel_linux? ( >=sys-kernel/linux-headers-4.14 )
|
| 46 |
46 |
"
|
| 47 |
47 |
RDEPEND="
|
| ... | ... | |
| 83 |
83 |
local myeconfargs=(
|
| 84 |
84 |
# Negate new upstream default of disabling for now
|
| 85 |
85 |
--enable-lastlog
|
| 86 |
|
--disable-account-tools-setuid
|
| 87 |
86 |
--disable-static
|
| 88 |
87 |
$(use_with kernel_linux btrfs)
|
| 89 |
88 |
# Use bundled replacements for readpassphrase and freezero
|
| ... | ... | |
| 102 |
101 |
$(use_with selinux)
|
| 103 |
102 |
$(use_with skey)
|
| 104 |
103 |
$(use_with su)
|
| 105 |
|
$(use_with xattr attr)
|
| 106 |
104 |
)
|
| 107 |
105 |
|
| 108 |
106 |
econf "${myeconfargs[@]}"
|
| ... | ... | |
| 152 |
150 |
src_install() {
|
| 153 |
151 |
emake DESTDIR="${D}" suidperms=4755 install
|
| 154 |
152 |
|
| 155 |
|
fowners :shadow /usr/bin/{chage,expiry}
|
| 156 |
|
fperms u-s,g+s /usr/bin/{chage,expiry}
|
|
153 |
fowners :shadow /usr/bin/chage
|
|
154 |
fperms u-s,g+s /usr/bin/chage
|
| 157 |
155 |
|
| 158 |
156 |
# 4.9 regression: https://github.com/shadow-maint/shadow/issues/389
|
| 159 |
157 |
emake DESTDIR="${D}" -C man install
|
| ... | ... | |
| 183 |
181 |
fi
|
| 184 |
182 |
|
| 185 |
183 |
if use pam; then
|
| 186 |
|
dopamd "${FILESDIR}"/pam.d-include/shadow
|
| 187 |
|
|
|
184 |
local x
|
| 188 |
185 |
for x in chsh chfn ; do
|
| 189 |
186 |
newpamd "${FILESDIR}"/pam.d-include/passwd ${x}
|
| 190 |
187 |
done
|
| 191 |
188 |
|
| 192 |
|
for x in chpasswd newusers ; do
|
| 193 |
|
newpamd "${FILESDIR}"/pam.d-include/chpasswd ${x}
|
| 194 |
|
done
|
| 195 |
|
|
| 196 |
|
newpamd "${FILESDIR}"/pam.d-include/shadow-r1 groupmems
|
| 197 |
|
|
| 198 |
189 |
# Remove manpages that pam will install for us
|
| 199 |
190 |
# and/or don't apply when using pam
|
| 200 |
191 |
find "${ED}"/usr/share/man -type f \
|