diff options
author | tv <tv@pkgsrc.org> | 2004-04-27 12:06:11 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2004-04-27 12:06:11 +0000 |
commit | 7c0e9cdc8336e2c4d6babb50148d08e8a02bdb79 (patch) | |
tree | 3f016c0197d9283b84b05e3d8921ed15e25e5131 | |
parent | 2897ddedf0181224711032824d9a7e62e692808b (diff) | |
download | pkgsrc-7c0e9cdc8336e2c4d6babb50148d08e8a02bdb79.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.
-rw-r--r-- | mk/bsd.pkg.install.mk | 16 |
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 |