aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-08-11 13:55:04 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-08-21 07:36:46 +0000
commitceb11769e96905c5f3a669ef997fa4812176bc67 (patch)
treef70b5ee75d622fca57e14979d98e4020505b30ac
parent552ebd5e9b4455ad690af29f44c532ba3ec13c11 (diff)
downloadports-ceb11769e96905c5f3a669ef997fa4812176bc67.tar.gz
ports-ceb11769e96905c5f3a669ef997fa4812176bc67.zip
deskutils/i3lock: simplify PAM config after ca20c3923e51
PR: 273073 Approved by: bapt (maintainer)
-rw-r--r--deskutils/i3lock/Makefile5
-rw-r--r--deskutils/i3lock/files/i3lock.pam.in7
2 files changed, 2 insertions, 10 deletions
diff --git a/deskutils/i3lock/Makefile b/deskutils/i3lock/Makefile
index a269e22cd3cc..f87c77ee6437 100644
--- a/deskutils/i3lock/Makefile
+++ b/deskutils/i3lock/Makefile
@@ -30,8 +30,6 @@ PLIST_FILES= bin/i3lock \
man/man1/i3lock.1.gz \
etc/pam.d/i3lock
-SUB_FILES= i3lock.pam
-
USES= gmake iconv localbase pkgconfig tar:bzip2 xorg
LDFLAGS+= ${ICONV_LIB}
USE_XORG= x11 xcb xt xorgproto xext
@@ -47,7 +45,8 @@ OPTIONS_DEFINE= DOCS
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/i3lock
@${RM} ${STAGEDIR}${PREFIX}/etc/pam.d/i3lock
- @${INSTALL_DATA} ${WRKDIR}/i3lock.pam ${STAGEDIR}${PREFIX}/etc/pam.d/i3lock
+ @${LN} -s ${LOCALBASE}/etc/pam.d/unix-selfauth \
+ ${STAGEDIR}${PREFIX}/etc/pam.d/i3lock
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/deskutils/i3lock/files/i3lock.pam.in b/deskutils/i3lock/files/i3lock.pam.in
deleted file mode 100644
index 942be88359ac..000000000000
--- a/deskutils/i3lock/files/i3lock.pam.in
+++ /dev/null
@@ -1,7 +0,0 @@
-#
-# PAM configuration for the "i3lock" service. i3lock(1) only uses
-# auth facilities.
-#
-
-auth sufficient pam_exec.so return_prog_exit_status expose_authtok %%LOCALBASE%%/libexec/unix-selfauth-helper
-auth include system