From aef2140a13ce4df9eae5a9081dce45eba95a5ea1 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 24 May 2021 21:28:32 +0200 Subject: [PATCH] opensmtpd: add pam.d file. --- srcpkgs/opensmtpd/files/smtpd.pam | 5 +++++ srcpkgs/opensmtpd/template | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/opensmtpd/files/smtpd.pam diff --git a/srcpkgs/opensmtpd/files/smtpd.pam b/srcpkgs/opensmtpd/files/smtpd.pam new file mode 100644 index 0000000000..ccb910536b --- /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 f54dc89514..ab0b2e6a10 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