git: 2a8fb21e7cb6 - main - x11/swaylock: prepare to drop setuid bit on -CURRENT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Feb 2022 18:31:14 UTC
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2a8fb21e7cb6892d4f1da49d0aa0917f3440ac88
commit 2a8fb21e7cb6892d4f1da49d0aa0917f3440ac88
Author: Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-02-20 17:01:47 +0000
Commit: Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-02-20 18:30:49 +0000
x11/swaylock: prepare to drop setuid bit on -CURRENT
---
x11/swaylock/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/x11/swaylock/Makefile b/x11/swaylock/Makefile
index 33ee29bdf3bf..94ccbc4daf54 100644
--- a/x11/swaylock/Makefile
+++ b/x11/swaylock/Makefile
@@ -19,12 +19,17 @@ USES= compiler:c11 gnome meson pkgconfig
USE_GITHUB= yes
GH_ACCOUNT?= swaywm
USE_GNOME= cairo pango
-PLIST_FILES= "@(,,4755) bin/${PORTNAME}" \
+PLIST_FILES= bin/${PORTNAME} \
etc/pam.d/${PORTNAME} \
share/bash-completion/completions/${PORTNAME} \
share/fish/vendor_completions.d/${PORTNAME}.fish \
share/zsh/site-functions/_${PORTNAME}
+# https://reviews.freebsd.org/D34321
+.if !exists(/usr/libexec/pam_unix-helper)
+PLIST_FILES:= "@(,,4755) "${PLIST_FILES}
+.endif
+
OPTIONS_DEFINE= MANPAGES PIXBUF
OPTIONS_DEFAULT=MANPAGES PIXBUF