diff --git a/srcpkgs/openssh/template b/srcpkgs/openssh/template index 4db32723879..1e0dfd25bdf 100644 --- a/srcpkgs/openssh/template +++ b/srcpkgs/openssh/template @@ -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 }