summaryrefslogtreecommitdiff
path: root/misc/screen/Makefile
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
commit49edb8df4b4dacaa5f40325c253fd7208fabb29e (patch)
tree6644a321067aeeab6d1db528369b33cec0265ac4 /misc/screen/Makefile
parent1d8e23336c8913364de652b2ec0307f1b48ec30b (diff)
downloadpkgsrc-49edb8df4b4dacaa5f40325c253fd7208fabb29e.tar.gz
It does not make sense to install bin/screen setuid in unprivileged mode.
Diffstat (limited to 'misc/screen/Makefile')
-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: