diff options
author | Daniel Baker <dbaker@FreeBSD.org> | 2001-12-04 07:58:50 +0000 |
---|---|---|
committer | Daniel Baker <dbaker@FreeBSD.org> | 2001-12-04 07:58:50 +0000 |
commit | 48b2f7e43bdcde2733417e92ace1c2cc0137b81e (patch) | |
tree | 457ea6f87d4d4d3da27915d89b52f9db47ac15e3 /misc | |
parent | bump PORTREVISION (diff) |
remove fixed uid/gid
Notes
Notes:
svn path=/head/; revision=51015
Diffstat (limited to 'misc')
-rw-r--r-- | misc/dnetc/Makefile | 6 | ||||
-rw-r--r-- | misc/dnetc/pkg-install | 8 |
2 files changed, 5 insertions, 9 deletions
diff --git a/misc/dnetc/Makefile b/misc/dnetc/Makefile index 16b23e265e10..a29f730ade69 100644 --- a/misc/dnetc/Makefile +++ b/misc/dnetc/Makefile @@ -7,7 +7,7 @@ PORTNAME= dnetc PORTVERSION= 2.8015.469 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= misc MASTER_SITES= ftp://ftp.distributed.net/pub/dcti/%SUBDIR%/ \ @@ -41,9 +41,7 @@ BINDIR= ${PREFIX}/distributed.net LIBDIR= ${PREFIX}/etc/rc.d CLIENTUSER= dnetc -CLIENTUID= 26 CLIENTGROUP= ${CLIENTUSER} -CLIENTGID= ${CLIENTUID} SBINMODE= 700 BINMODE= 700 @@ -57,7 +55,7 @@ do-configure: pre-install: @${ECHO} "==> Creating custom user to run dnetc..." - ${PKGINSTALL} ${PKGNAME} PRE-INSTALL "${CLIENTUSER}" "${CLIENTUID}" "${CLIENTGROUP}" "${CLIENTGID}" + ${PKGINSTALL} ${PKGNAME} PRE-INSTALL "${CLIENTUSER}" "${CLIENTGROUP}" do-install: @if [ ! -d ${BINDIR} ]; then \ diff --git a/misc/dnetc/pkg-install b/misc/dnetc/pkg-install index d837ae3a40c4..4affdc2a568a 100644 --- a/misc/dnetc/pkg-install +++ b/misc/dnetc/pkg-install @@ -5,12 +5,10 @@ if [ "$2" != "PRE-INSTALL" ]; then fi CLIENTUSER=$3 -CLIENTUID=$4 -CLIENTGROUP=$5 -CLIENTGID=$6 +CLIENTGROUP=$4 if ! pw groupshow "$CLIENTGROUP" 2>/dev/null 1>&2; then - if pw groupadd $CLIENTGROUP -g $CLIENTGID; then + if pw groupadd $CLIENTGROUP; then echo "=> Added group \"$CLIENTGROUP\"." else echo "=> Adding group \"$CLIENTGROUP\" failed..." @@ -19,7 +17,7 @@ if ! pw groupshow "$CLIENTGROUP" 2>/dev/null 1>&2; then fi if ! pw usershow "$CLIENTUSER" 2>/dev/null 1>&2; then - if pw useradd $CLIENTUSER -u $CLIENTUID -g $CLIENTGROUP -h - \ + if pw useradd $CLIENTUSER -g $CLIENTGROUP -h - \ -s "/sbin/nologin" -d "/nonexistent" \ -c "distributed.net client and proxy pseudo-user"; \ then |