diff security/linux-pam/linux-pam.sh @ 386:30c785bd1da0

security/linux-pam: add basic files based on LFS
author David Demelier <markand@malikania.fr>
date Mon, 01 Apr 2019 20:20:00 +0200
parents 3b0114bc7438
children 515778c3a417
line wrap: on
line diff
--- a/security/linux-pam/linux-pam.sh	Mon Apr 01 20:10:00 2019 +0200
+++ b/security/linux-pam/linux-pam.sh	Mon Apr 01 20:20:00 2019 +0200
@@ -23,6 +23,11 @@
 PKGDOWNLOAD="https://github.com/linux-pam/linux-pam/releases/download/v$PKGVERSION/Linux-PAM-$PKGVERSION.tar.xz"
 PKGOPTIONS="NLS SELINUX"
 PKGPROTECT="etc/environment
+            etc/pam.d/other
+            etc/pam.d/system-account
+            etc/pam.d/system-auth
+            etc/pam.d/system-password
+            etc/pam.d/system-session
             etc/security/access.conf
             etc/security/group.conf
             etc/security/limits.conf
@@ -83,6 +88,11 @@
 		$with_selinux
 	make
 	make install DESTDIR=$DESTDIR
+	install -Dm0600 ../other $DESTDIR/etc/pam.d/other
+	install -Dm0600 ../system-account $DESTDIR/etc/pam.d/system-account
+	install -Dm0600 ../system-auth $DESTDIR/etc/pam.d/system-auth
+	install -Dm0600 ../system-password $DESTDIR/etc/pam.d/system-password
+	install -Dm0600 ../system-session $DESTDIR/etc/pam.d/system-session
 	rm -f $DESTDIR/usr/lib/libpam{,c,_misc}.la
 	rm -f $DESTDIR/usr/lib/security/pam*.la