openssh: pam.d/sshd: add pam_lastlog(8) to make sure /var/log/lastlog is created.

This commit is contained in:
Juan RP 2014-08-28 08:14:22 +02:00
parent 8c3d6a6bde
commit f9e80f2a6b
1 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@ _desc="The OpenSSH implementation of SSH protocol"
pkgname=openssh
version=6.6p1
revision=10
revision=11
build_style=gnu-configure
configure_args="--without-tcp-wrappers --datadir=/usr/share/openssh
--sysconfdir=/etc/ssh --without-selinux --with-privsep-user=nobody
@ -49,7 +49,9 @@ post_install() {
# Disable pam_cracklib
sed '/pam_cracklib.*/d' -i ${DESTDIR}/etc/pam.d/sshd
# Enable pam_systemd.so by default.
# Enable pam_lastlog(8) by default.
echo -e "session\trequired\tpam_lastlog.so\tnever\tsilent\n" >> ${DESTDIR}/etc/pam.d/sshd
# Enable pam_systemd by default.
echo -e "-session\toptional\tpam_systemd.so\n" >> ${DESTDIR}/etc/pam.d/sshd
}