diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2011-08-14 18:04:55 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2011-08-14 18:04:55 +0000 |
commit | 67dd929300954a52c9bb2d2473b36fd735bd28d1 (patch) | |
tree | 19b01c42d692523d1bd6fc000465b487551a7882 /net/dgd | |
parent | bb691dade75303a9d218db1fc6332cc97eeee4eb (diff) | |
download | ports-67dd929300954a52c9bb2d2473b36fd735bd28d1.tar.gz ports-67dd929300954a52c9bb2d2473b36fd735bd28d1.zip |
Notes
Diffstat (limited to 'net/dgd')
-rw-r--r-- | net/dgd/Makefile | 8 | ||||
-rw-r--r-- | net/dgd/pkg-deinstall | 15 | ||||
-rw-r--r-- | net/dgd/pkg-install | 37 |
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 |