aboutsummaryrefslogtreecommitdiff
path: root/misc/dnetc/files
diff options
context:
space:
mode:
authorTim Bishop <tdb@FreeBSD.org>2014-05-09 22:05:47 +0000
committerTim Bishop <tdb@FreeBSD.org>2014-05-09 22:05:47 +0000
commite461570df11f8ecaa1920af24dcf1dacfd186bc4 (patch)
tree9fe3043c563455d98af77f7ad27c67797f8d0134 /misc/dnetc/files
parent78e2945cc4c8255ed7ff886cc84e8fe756270b6e (diff)
downloadports-e461570df11f8ecaa1920af24dcf1dacfd186bc4.tar.gz
ports-e461570df11f8ecaa1920af24dcf1dacfd186bc4.zip
Notes
Diffstat (limited to 'misc/dnetc/files')
-rw-r--r--misc/dnetc/files/pkg-deinstall.in30
-rw-r--r--misc/dnetc/files/pkg-install.in35
-rw-r--r--misc/dnetc/files/pkg-message.in4
3 files changed, 1 insertions, 68 deletions
diff --git a/misc/dnetc/files/pkg-deinstall.in b/misc/dnetc/files/pkg-deinstall.in
deleted file mode 100644
index 21e38513323c..000000000000
--- a/misc/dnetc/files/pkg-deinstall.in
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-
-if [ "$2" != "POST-DEINSTALL" ]; then
- exit 0
-fi
-
-CLIENTUSER=%%CLIENTUSER%%
-CLIENTGROUP=%%CLIENTGROUP%%
-
-if /usr/sbin/pw usershow "$CLIENTUSER" 2>/dev/null 1>&2; then
- if /usr/sbin/pw userdel -n $CLIENTUSER; then
- echo "=> Removed user \"$CLIENTUSER\"."
- else
- echo "=> Removing user \"$CLIENTUSER\" failed."
- exit 1
- fi
-fi
-
-if /usr/sbin/pw groupshow "$CLIENTGROUP" 2>/dev/null 1>&2; then
- if /usr/sbin/pw groupdel -n $CLIENTGROUP; then
- echo "=> Removed group \"$CLIENTGROUP\"."
- else
- echo "=> Removing group \"$CLIENTGROUP\" failed."
- exit 1
- fi
-fi
-
-exit 0
diff --git a/misc/dnetc/files/pkg-install.in b/misc/dnetc/files/pkg-install.in
deleted file mode 100644
index f93546ef53b8..000000000000
--- a/misc/dnetc/files/pkg-install.in
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-
-if [ "$2" != "PRE-INSTALL" ]; then
- exit 0
-fi
-
-CLIENTUSER=%%CLIENTUSER%%
-CLIENTGROUP=%%CLIENTGROUP%%
-UID=%%CLIENTUID%%
-GID=$UID
-
-if ! /usr/sbin/pw groupshow "$CLIENTGROUP" 2>/dev/null 1>&2; then
- if /usr/sbin/pw groupadd $CLIENTGROUP -g $GID; then
- echo "=> Added group \"$CLIENTGROUP\"."
- else
- echo "=> Adding group \"$CLIENTGROUP\" failed."
- exit 1
- fi
-fi
-
-if ! /usr/sbin/pw usershow "$CLIENTUSER" 2>/dev/null 1>&2; then
- if /usr/sbin/pw useradd $CLIENTUSER -u $UID -g $CLIENTGROUP -h - \
- -s "/sbin/nologin" -d "/nonexistent" \
- -c "distributed.net client and proxy pseudo-user"; \
- then
- echo "=> Added user \"$CLIENTUSER\"."
- else
- echo "=> Adding user \"$CLIENTUSER\" failed."
- exit 1
- fi
-fi
-
-exit 0
diff --git a/misc/dnetc/files/pkg-message.in b/misc/dnetc/files/pkg-message.in
index 220c11cf62e0..41c2b1ad645e 100644
--- a/misc/dnetc/files/pkg-message.in
+++ b/misc/dnetc/files/pkg-message.in
@@ -1,8 +1,6 @@
***************************************************************************
-Note: dnetc has been installed with a sample configuration.
-
-To change this run:
+To change the dnetc configuration run:
%%BINDIR%%/dnetc -config