summaryrefslogtreecommitdiff
path: root/x11/slock
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2016-11-23 08:20:21 +0000
committerleot <leot@pkgsrc.org>2016-11-23 08:20:21 +0000
commitd64cde5f33e566271d5ee008fed5b78f01587c71 (patch)
tree45e2aa445cddb69ab8ab27c28ecb188e6371139a /x11/slock
parent79234251ff68fc970fe0d6c3385c9caf7d69e83b (diff)
downloadpkgsrc-d64cde5f33e566271d5ee008fed5b78f01587c71.tar.gz
Update x11/slock to slock-1.4
Changes: 1.4 --- - fix CVE-2016-6866 - add proper priviledge dropping - use explicit_bzero from OpenBSD to clear password from memory - major code audit and rewrite of some parts (thanks, Laslo!) Approved by <reed>
Diffstat (limited to 'x11/slock')
-rw-r--r--x11/slock/Makefile16
-rw-r--r--x11/slock/distinfo10
2 files changed, 15 insertions, 11 deletions
diff --git a/x11/slock/Makefile b/x11/slock/Makefile
index 6ebc27ba430..b87852bd093 100644
--- a/x11/slock/Makefile
+++ b/x11/slock/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2016/02/28 19:49:06 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2016/11/23 08:20:21 leot Exp $
-DISTNAME= slock-1.3
+DISTNAME= slock-1.4
CATEGORIES= x11
MASTER_SITES= http://dl.suckless.org/tools/
@@ -11,6 +11,8 @@ LICENSE= mit
MAKE_JOBS_SAFE= no
+.include "../../mk/bsd.prefs.mk"
+
SUBST_CLASSES+= makefile
SUBST_STAGE.makefile= pre-configure
SUBST_MESSAGE.makefile= Adjust config.mk
@@ -22,6 +24,9 @@ SUBST_SED.makefile+= -e '/^CPPFLAGS/ s,-DHAVE_SHADOW_H,,'
SUBST_SED.makefile+= -e 's,^CFLAGS *= ,CFLAGS += ,'
SUBST_SED.makefile+= -e 's,^CPPFLAGS *= ,CPPFLAGS += ,'
SUBST_SED.makefile+= -e 's,^LDFLAGS *= ,LDFLAGS += ,'
+.if ${OPSYS} == "OpenBSD"
+SUBST_SED.makefile+= -e 's,^COMPATSRC *=.*$$,COMPATSRC = ,'
+.endif
SUBST_SED.makefile+= -e 's/cc/${CC:Q}/'
# Bump _XOPEN_SOURCE version to 600 in order to avoid "Compiler or options
@@ -34,17 +39,16 @@ SUBST_SED.slock+= -e '/_XOPEN_SOURCE/ s/500/600/'
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
-.include "../../mk/bsd.prefs.mk"
-
.if !(${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly")
-CFLAGS+= -DHAVE_SHADOW_H
+CPPFLAGS+= -DHAVE_SHADOW_H
.endif
.if !(${OPSYS} == "OpenBSD" || ${OPSYS} == "Darwin")
LIBS+= -lcrypt
-
.endif
+CPPFLAGS.NetBSD+= -D_NETBSD_SOURCE # needed for setgroups(2)
+
SPECIAL_PERMS+= bin/slock ${SETUID_ROOT_PERMS}
.include "../../x11/libX11/buildlink3.mk"
diff --git a/x11/slock/distinfo b/x11/slock/distinfo
index d5b51fa92fd..58f5124ef38 100644
--- a/x11/slock/distinfo
+++ b/x11/slock/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2016/02/16 17:47:19 leot Exp $
+$NetBSD: distinfo,v 1.6 2016/11/23 08:20:21 leot Exp $
-SHA1 (slock-1.3.tar.gz) = 5e370b09b1644cd0f2490ed55209dd8f9e83e25b
-RMD160 (slock-1.3.tar.gz) = 9b352dff97ecebe4ccd971e54e8bdf4348964b12
-SHA512 (slock-1.3.tar.gz) = 5024588f6d25f9d72a9d2b8ef9d8a2a94e5d5e53f30f4a15df83b693a3706b1ad6550422f36af29f54429a9c516d14a349e46aeb9896c6e32009ff0da5c02a8f
-Size (slock-1.3.tar.gz) = 5943 bytes
+SHA1 (slock-1.4.tar.gz) = 65b821a0953daa919b5ac69b470d772033808ad7
+RMD160 (slock-1.4.tar.gz) = ac38666104a129f3b582ab9d1a2b0c9918b876bf
+SHA512 (slock-1.4.tar.gz) = ad285360dd3f16a225159abaf2f82fabf2c675bd74478cf717f68cbe5941a6c620e3c88544ce675ce3ff19af4bb0675c9405685e0f74ee4e84f7d34c61a0532f
+Size (slock-1.4.tar.gz) = 6889 bytes