summaryrefslogtreecommitdiff
path: root/misc/screen
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-02-15 14:47:09 +0000
committerrillig <rillig@pkgsrc.org>2007-02-15 14:47:09 +0000
commita35fc5595acdc482944583410070ae9479f819f2 (patch)
tree6644a321067aeeab6d1db528369b33cec0265ac4 /misc/screen
parent797ce4acf4a178cb35a48d81edfca64a9233af09 (diff)
downloadpkgsrc-a35fc5595acdc482944583410070ae9479f819f2.tar.gz
It does not make sense to install bin/screen setuid in unprivileged mode.
Diffstat (limited to 'misc/screen')
-rw-r--r--misc/screen/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/screen/Makefile b/misc/screen/Makefile
index 5bfde9790c7..a9049566224 100644
--- a/misc/screen/Makefile
+++ b/misc/screen/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.70 2006/11/02 18:21:18 joerg Exp $
+# $NetBSD: Makefile,v 1.71 2007/02/15 14:47:09 rillig Exp $
DISTNAME= screen-4.0.3
CATEGORIES= misc shells
@@ -45,6 +45,9 @@ post-install:
${DESTDIR}${PREFIX}/share/examples/screen/etcscreenrc
${INSTALL_DATA} ${WRKSRC}/etc/screenrc \
${DESTDIR}${PREFIX}/share/examples/screen/screenrc
+.if !empty(UNPRIVILEGED:M[Yy][Ee][Ss])
+ chmod -s ${DESTDIR}${PREFIX}/bin/${DISTNAME}
+.endif
.PHONY: screen-terminfo
screen-terminfo: