aboutsummaryrefslogtreecommitdiff
path: root/net/dgd
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2011-08-14 18:04:55 +0000
committerGreg Lewis <glewis@FreeBSD.org>2011-08-14 18:04:55 +0000
commit67dd929300954a52c9bb2d2473b36fd735bd28d1 (patch)
tree19b01c42d692523d1bd6fc000465b487551a7882 /net/dgd
parentbb691dade75303a9d218db1fc6332cc97eeee4eb (diff)
downloadports-67dd929300954a52c9bb2d2473b36fd735bd28d1.tar.gz
ports-67dd929300954a52c9bb2d2473b36fd735bd28d1.zip
Notes
Diffstat (limited to 'net/dgd')
-rw-r--r--net/dgd/Makefile8
-rw-r--r--net/dgd/pkg-deinstall15
-rw-r--r--net/dgd/pkg-install37
3 files changed, 3 insertions, 57 deletions
diff --git a/net/dgd/Makefile b/net/dgd/Makefile
index 750915d1ef5e..b76e4245d4b6 100644
--- a/net/dgd/Makefile
+++ b/net/dgd/Makefile
@@ -32,6 +32,9 @@ MAKE_ENV+= EXTRA_DEFINES="$(EXTRA_DEFINES)"
PORTDOCS= *
.endif
+USERS= mud
+GROUPS= mud
+
.include <bsd.port.pre.mk>
EXTRA_DEFINES=
@@ -76,9 +79,4 @@ do-install:
cd ${WRKDIR}/dgd/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
-post-install:
- @# Run package installation script
- @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} \
- POST-INSTALL
-
.include <bsd.port.post.mk>
diff --git a/net/dgd/pkg-deinstall b/net/dgd/pkg-deinstall
deleted file mode 100644
index db9dbdbdfe72..000000000000
--- a/net/dgd/pkg-deinstall
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-#
-
-if [ "$2" != "POST-DEINSTALL" ]; then
- exit 0
-fi
-
-USER=mud
-
-if pw usershow "${USER}" 2>/dev/null 1>&2; then
- echo "To delete MUD user permanently, use 'pw userdel \"${USER}\"'"
-fi
-
-exit 0
diff --git a/net/dgd/pkg-install b/net/dgd/pkg-install
deleted file mode 100644
index 575cbe714897..000000000000
--- a/net/dgd/pkg-install
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-if [ "$2" = "PRE-INSTALL" ]; then
- exit 0
-fi
-
-PATH=/bin:/sbin:/usr/bin:/usr/sbin
-
-USER=mud
-GROUP=${USER}
-UID=97
-GID=${UID}
-
-if pw groupshow "${GROUP}" 2>/dev/null; then
- echo "Using existing group \"${GROUP}\"."
-else
- if pw groupadd "${GROUP}" -g ${GID}; then
- echo "Added group \"${GROUP}\"."
- else
- echo "Adding group \"${GROUP}\" failed..."
- exit 1
- fi
-fi
-
-if pw usershow "${USER}" 2>/dev/null; then
- echo "Using existing user \"${USER}\"."
-else
- if pw useradd "${USER}" -u ${UID} -g "${GROUP}" -h - \
- -s "/bin/sh" -d "/nonexistent" -c "MUD Owner"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
-fi