openssh: make pam_systemd optional.

This commit is contained in:
Juan RP 2014-06-20 10:05:20 +02:00
parent 418d1bae99
commit 58cf5e51d1

View File

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