Merge pull request #1717 from crawford/shadow

sys-apps/shadow: split shadow.conf
This commit is contained in:
Alex Crawford 2016-01-11 21:46:29 -08:00
commit 5a8fc5764b
3 changed files with 7 additions and 4 deletions

View File

@ -5,6 +5,3 @@ L /etc/securetty - - - - ../usr/share/shadow/securetty
d /etc/default - - - - -
L /etc/default/useradd - - - - ../../usr/share/shadow/useradd
f /var/log/lastlog - - - - -
f /var/log/faillog - - - - -

View File

@ -0,0 +1,2 @@
f /var/log/lastlog - - - - -
f /var/log/faillog - - - - -

View File

@ -78,7 +78,11 @@ src_install() {
# Remove files from /etc, they will be symlinks to /usr instead.
rm -f "${D}"/etc/{limits,login.access,login.defs,securetty,default/useradd}
systemd_dotmpfilesd "${FILESDIR}"/tmpfiles.d/shadow.conf
# CoreOS: break shadow.conf into two files so that we only have to apply
# etc-shadow.conf in the initrd.
systemd_dotmpfilesd "${FILESDIR}"/tmpfiles.d/etc-shadow.conf
systemd_dotmpfilesd "${FILESDIR}"/tmpfiles.d/var-shadow.conf
insinto /usr/share/shadow
# Using a securetty with devfs device names added