summaryrefslogtreecommitdiff
path: root/sysutils/coreutils
diff options
context:
space:
mode:
authorrecht <recht>2004-01-17 00:14:14 +0000
committerrecht <recht>2004-01-17 00:14:14 +0000
commit884763bbf723b7fa73d4bd6a13be7ef114116a05 (patch)
tree09c4cc4eb42306bc48331e12ed80bf9a4a3f105d /sysutils/coreutils
parent027cd93cb16a48974e44bd9d23c0c4da396c2d9b (diff)
downloadpkgsrc-884763bbf723b7fa73d4bd6a13be7ef114116a05.tar.gz
Don't install (g)su with the setuid bit on NetBSD, FreeBSD and OpenBSD.
Bump PKGREVISION.
Diffstat (limited to 'sysutils/coreutils')
-rw-r--r--sysutils/coreutils/MESSAGE.gsu7
-rw-r--r--sysutils/coreutils/Makefile11
2 files changed, 16 insertions, 2 deletions
diff --git a/sysutils/coreutils/MESSAGE.gsu b/sysutils/coreutils/MESSAGE.gsu
new file mode 100644
index 00000000000..540e676f2a6
--- /dev/null
+++ b/sysutils/coreutils/MESSAGE.gsu
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE.gsu,v 1.1 2004/01/17 00:14:14 recht Exp $
+
+The GNU ${PKGNAME} version of su doesn't support the wheel group.
+Because of that it is installed without the setuid bit on ${OPSYS}.
+
+===========================================================================
diff --git a/sysutils/coreutils/Makefile b/sysutils/coreutils/Makefile
index 031704908c4..bced3676373 100644
--- a/sysutils/coreutils/Makefile
+++ b/sysutils/coreutils/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2003/11/05 00:05:06 recht Exp $
+# $NetBSD: Makefile,v 1.13 2004/01/17 00:14:14 recht Exp $
DISTNAME= coreutils-5.0
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GNU:=coreutils/}
EXTRACT_SUFX= .tar.bz2
@@ -38,6 +38,13 @@ CONFLICTS+= teTeX-bin-[0-9]*
PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
BUILD_DEFS+= GNU_PROGRAM_PREFIX
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
+ ${OPSYS} == "OpenBSD"
+MAKE_FLAGS+= setuid_root_mode=a=rx
+MESSAGE_SRC= ${.CURDIR}/MESSAGE.gsu
+MESSAGE_SUBST+= OPSYS=${OPSYS}
+.endif
+
.include "../../converters/libiconv/buildlink2.mk"
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"