summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.install.mk
diff options
context:
space:
mode:
authortv <tv>2004-04-27 12:06:11 +0000
committertv <tv>2004-04-27 12:06:11 +0000
commit50d418c0f725ff854f2049a7051475e53a1101c5 (patch)
tree3f016c0197d9283b84b05e3d8921ed15e25e5131 /mk/bsd.pkg.install.mk
parentdc7ddf9b81cabb7587d27e1eb7d94508917eda12 (diff)
downloadpkgsrc-50d418c0f725ff854f2049a7051475e53a1101c5.tar.gz
Add Interix hack: if user and group are the same name, trip up with a
BROKEN message telling the user that they must be different.
Diffstat (limited to 'mk/bsd.pkg.install.mk')
-rw-r--r--mk/bsd.pkg.install.mk16
1 files changed, 15 insertions, 1 deletions
diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk
index 6ce4ce0c0e8..addcea0d0ce 100644
--- a/mk/bsd.pkg.install.mk
+++ b/mk/bsd.pkg.install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.install.mk,v 1.57 2004/04/27 03:30:04 tv Exp $
+# $NetBSD: bsd.pkg.install.mk,v 1.58 2004/04/27 12:06:11 tv Exp $
#
# This Makefile fragment is included by bsd.pkg.mk to use the common
# INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply:
@@ -103,6 +103,20 @@ FILES_SUBST+= PKG_USER_HOME=${_PKG_USER_HOME}
FILES_SUBST+= PKG_USER_SHELL=${_PKG_USER_SHELL}
FILES_SUBST+= PKG_GROUPS=${PKG_GROUPS:Q}
+# Interix is very Special in that users are groups cannot have the
+# same name. defs.Interix.mk tries to work around this by overriding
+# some specific package defaults. If we get here and there's still a
+# conflict, add a breakage indicator to make sure the package won't
+# compile without changing something.
+#
+.if !empty(OPSYS:MInterix)
+.for user in ${PKG_USERS}
+.if !defined(BROKEN) && !empty(PKG_GROUPS:M${user:C/:.*//})
+BROKEN:= "User and group '${user:C/:.*//}' cannot have the same name on Interix"
+.endif
+.endfor
+.endif
+
.if !empty(PKG_USERS)
USE_USERADD= YES
.endif