aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-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 16b23e265e1..a29f730ade6 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 d837ae3a40c..4affdc2a568 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