summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordbaker <dbaker@FreeBSD.org>2001-12-04 07:58:50 +0000
committerdbaker <dbaker@FreeBSD.org>2001-12-04 07:58:50 +0000
commitb7acf957ede3759f1afdfe26f2f885689e6cc0c2 (patch)
treefea5eebf3c2287e685c576227bb268610e9f2c54
parent70212b4c1b97bcb8698741f1e55491d6fde03ad8 (diff)
downloadFreeBSD-ports-b7acf957ede3759f1afdfe26f2f885689e6cc0c2.zip
FreeBSD-ports-b7acf957ede3759f1afdfe26f2f885689e6cc0c2.tar.gz
remove fixed uid/gid
-rw-r--r--misc/dnetc/Makefile6
-rw-r--r--misc/dnetc/pkg-install8
2 files changed, 5 insertions, 9 deletions
diff --git a/misc/dnetc/Makefile b/misc/dnetc/Makefile
index 16b23e2..a29f730 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 d837ae3..4affdc2 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
OpenPOWER on IntegriCloud