Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.13 2014/10/09 14:07:00 wiz Exp $
# $NetBSD: Makefile,v 1.15 2015/10/29 12:29:04 jperkin Exp $
#
DISTNAME= user-darwin-20130712
DISTNAME= user-darwin-20151029
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty

View File

@@ -21,12 +21,12 @@ getnextuid()
{
# Find an unused UID. Constraints:
# * must be <500 (typical OS X user accounts are 500 and up)
# * must be <400 (Fink uses 400 and up)
# * must be from a reasonably sized range
# As of El Capitan, Apple use up to UID 252 for system accounts.
used_uids=`nireport . /users uid 2>/dev/null || \
dscl . -readall /users UniqueID | grep '^UniqueID:' | cut -d' ' -f2`
low_uid=300; high_uid=399
low_uid=300; high_uid=499
# Try to use the GID as the UID.
maybe_uid=$1
@@ -96,6 +96,7 @@ else
dscl . -create /users/$user NFSHomeDirectory "$homedir"
dscl . -create /users/$user UserShell "$shell"
dscl . -create /users/$user Comment "$comment"
dscl . -delete /users/$user AuthenticationAuthority
dscl . -create /users/$user Password '*'
fi