Skip to content

Commit

Permalink
x11/waylock: simplify PAM config after ca20c39
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeich committed Jul 26, 2023
1 parent 4f53b99 commit 65fb3e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 1 addition & 5 deletions x11/waylock/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PORTNAME= waylock
DISTVERSIONPREFIX= v
DISTVERSION= 0.6.2
PORTREVISION= 1
CATEGORIES= x11 wayland

MAINTAINER= jbeich@FreeBSD.org
Expand Down Expand Up @@ -40,11 +41,6 @@ MANPAGES_CONFIGURE_ON= -Dman-pages=true
MANPAGES_CONFIGURE_OFF= -Dman-pages=false
MANPAGES_PLIST_FILES= share/man/man1/${PORTNAME}.1.gz

post-patch:
# Respect LOCALBASE for unix-selfauth-helper
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},' \
${WRKSRC}/pam.d/${PORTNAME}

do-build:
@(cd ${WRKSRC} && ${MAKE_ENV} zig build ${CONFIGURE_ARGS})

Expand Down
5 changes: 2 additions & 3 deletions x11/waylock/files/patch-pam.d_waylock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ so try authenticating via setuid helper first.

--- pam.d/waylock.orig 2023-01-08 18:59:32 UTC
+++ pam.d/waylock
@@ -1 +1,2 @@
@@ -1 +1 @@
-auth include system-auth
+auth sufficient pam_exec.so return_prog_exit_status expose_authtok /usr/local/libexec/unix-selfauth-helper
+auth include system
+auth include unix-selfauth

0 comments on commit 65fb3e5

Please sign in to comment.