pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/x11/i3lock
Module Name: pkgsrc
Committed By: nia
Date: Tue Nov 9 09:01:08 UTC 2021
Modified Files:
pkgsrc/x11/i3lock: Makefile
Removed Files:
pkgsrc/x11/i3lock: MESSAGE
Log Message:
i3lock: make this work out of the box on NetBSD, per netbsd-users@
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 pkgsrc/x11/i3lock/MESSAGE
cvs rdiff -u -r1.7 -r1.8 pkgsrc/x11/i3lock/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/x11/i3lock/Makefile
diff -u pkgsrc/x11/i3lock/Makefile:1.7 pkgsrc/x11/i3lock/Makefile:1.8
--- pkgsrc/x11/i3lock/Makefile:1.7 Mon Aug 17 20:20:27 2020
+++ pkgsrc/x11/i3lock/Makefile Tue Nov 9 09:01:08 2021
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2020/08/17 20:20:27 leot Exp $
+# $NetBSD: Makefile,v 1.8 2021/11/09 09:01:08 nia Exp $
#
DISTNAME= i3lock-2.8
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= x11
MASTER_SITES= https://i3wm.org/i3lock/
EXTRACT_SUFX= .tar.bz2
@@ -25,6 +25,28 @@ CPPFLAGS.SunOS+= -Du_int32_t=uint32_t
MESSAGE_SUBST+= EGDIR=${EGDIR}
+BUILD_DEFS+= SYSCONFBASE
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+SUBST_CLASSES+= pam
+SUBST_STAGE.pam= pre-configure
+SUBST_FILES.pam+= i3lock.pam
+SUBST_SED.pam+= -e "s,login,system,g"
+.elif ${OPSYS} == "Linux"
+SUBST_CLASSES+= pam
+SUBST_STAGE.pam= pre-configure
+SUBST_FILES.pam+= i3lock.pam
+SUBST_SED.pam+= -e "s,login,system-auth,g"
+.endif
+
+.if ${UNPRIVILEGED:tl} != "yes"
+CONF_FILES+= ${PREFIX}/share/examples/${PKGBASE}/pam.d/i3lock \
+ ${SYSCONFBASE}/pam.d/i3lock
+SPECIAL_PERMS+= bin/i3lock ${SETUID_ROOT_PERMS}
+.endif
+
.include "../../devel/libev/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../x11/libxcb/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index