diff --git a/srcpkgs/opensmtpd/files/smtpd.pam b/srcpkgs/opensmtpd/files/smtpd.pam new file mode 100644 index 00000000000..ccb910536b6 --- /dev/null +++ b/srcpkgs/opensmtpd/files/smtpd.pam @@ -0,0 +1,5 @@ +#%PAM-1.0 +auth required pam_nologin.so +auth include system-auth +account include system-auth +session include system-auth diff --git a/srcpkgs/opensmtpd/template b/srcpkgs/opensmtpd/template index f54dc895145..ab0b2e6a10a 100644 --- a/srcpkgs/opensmtpd/template +++ b/srcpkgs/opensmtpd/template @@ -1,7 +1,7 @@ # Template file for 'opensmtpd' pkgname=opensmtpd version=6.8.0p2 -revision=3 +revision=4 build_style=gnu-configure configure_args="--sysconfdir=/etc/smtpd --sbindir=/usr/bin --with-path-socket=/run --with-path-pidfile=/run @@ -49,6 +49,7 @@ post_install() { for f in newaliases mailq makemap sendmail; do ln -s smtpctl ${DESTDIR}/usr/bin/$f done + vinstall ${FILESDIR}/smtpd.pam 644 etc/pam.d smtpd vsv opensmtpd vlicense LICENSE vinstall /dev/null 644 etc/smtpd aliases