diff options
author | glewis <glewis@FreeBSD.org> | 2010-04-04 12:46:50 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2010-04-04 12:46:50 +0800 |
commit | bea7a0135289241562aea94234c76a1b67ee45d4 (patch) | |
tree | 27d2319501c2f5c2a235b9ff0db55c0d40b7bdc5 /net/dgd-lpmud | |
parent | 259735f1c71d9efd329c69738d0b205404f18715 (diff) | |
download | freebsd-ports-gnome-bea7a0135289241562aea94234c76a1b67ee45d4.tar.gz freebsd-ports-gnome-bea7a0135289241562aea94234c76a1b67ee45d4.tar.zst freebsd-ports-gnome-bea7a0135289241562aea94234c76a1b67ee45d4.zip |
. The main dgd port already creates the 'mud' user and group, so don't
repeat that in the pkg-{de}install scripts here.
Diffstat (limited to 'net/dgd-lpmud')
-rw-r--r-- | net/dgd-lpmud/Makefile | 3 | ||||
-rw-r--r-- | net/dgd-lpmud/pkg-deinstall | 15 | ||||
-rw-r--r-- | net/dgd-lpmud/pkg-install | 37 |
3 files changed, 0 insertions, 55 deletions
diff --git a/net/dgd-lpmud/Makefile b/net/dgd-lpmud/Makefile index 9d65199c4c82..105c648a66c4 100644 --- a/net/dgd-lpmud/Makefile +++ b/net/dgd-lpmud/Makefile @@ -61,9 +61,6 @@ post-install: ${MKDIR} ${DATADIR}/tmp # Link in the dgd docs ${LN} -sf ${PREFIX}/share/doc/dgd/kfun ${DATADIR}/lpmud/doc - # Run package install script - ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} \ - POST-INSTALL # Set mudlib ownership -@${CHOWN} -h -R mud:mud ${DATADIR} diff --git a/net/dgd-lpmud/pkg-deinstall b/net/dgd-lpmud/pkg-deinstall deleted file mode 100644 index db9dbdbdfe72..000000000000 --- a/net/dgd-lpmud/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-lpmud/pkg-install b/net/dgd-lpmud/pkg-install deleted file mode 100644 index 575cbe714897..000000000000 --- a/net/dgd-lpmud/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 |