summaryrefslogtreecommitdiff
path: root/misc/screen
diff options
context:
space:
mode:
authorrillig <rillig>2007-02-15 14:47:09 +0000
committerrillig <rillig>2007-02-15 14:47:09 +0000
commitc33d9ad6c429e1a24ff49cf89a377e43a179fea8 (patch)
tree6644a321067aeeab6d1db528369b33cec0265ac4 /misc/screen
parentfd1f449c7042f5e400c3c115e9232024b4469d7c (diff)
downloadpkgsrc-c33d9ad6c429e1a24ff49cf89a377e43a179fea8.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: