pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add Interix hack: if user and group are the same na...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a319e5443292
branches: trunk
changeset: 474293:a319e5443292
user: tv <tv%pkgsrc.org@localhost>
date: Tue Apr 27 12:06:11 2004 +0000
description:
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:
mk/bsd.pkg.install.mk | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r e686cee2df26 -r a319e5443292 mk/bsd.pkg.install.mk
--- a/mk/bsd.pkg.install.mk Tue Apr 27 12:05:16 2004 +0000
+++ b/mk/bsd.pkg.install.mk Tue Apr 27 12:06:11 2004 +0000
@@ -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_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
Home |
Main Index |
Thread Index |
Old Index