diff options
author | bapt <bapt@FreeBSD.org> | 2011-06-09 00:52:51 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2011-06-09 00:52:51 +0800 |
commit | d61c424bf261af8aacd8598e397ac0b44399482c (patch) | |
tree | 6c0fc1071a72c549ea6a998046dc3a32d1daa157 /games | |
parent | fa4332ce8a58fa2ddd338f358f1c85f71d50a16b (diff) | |
download | freebsd-ports-gnome-d61c424bf261af8aacd8598e397ac0b44399482c.tar.gz freebsd-ports-gnome-d61c424bf261af8aacd8598e397ac0b44399482c.tar.zst freebsd-ports-gnome-d61c424bf261af8aacd8598e397ac0b44399482c.zip |
- switch to USERS/GROUPS macros
- while here rmeove MD5
- Bump portrevision
Diffstat (limited to 'games')
-rw-r--r-- | games/ldmud/Makefile | 7 | ||||
-rw-r--r-- | games/ldmud/distinfo | 1 | ||||
-rw-r--r-- | games/ldmud/pkg-deinstall | 15 | ||||
-rw-r--r-- | games/ldmud/pkg-install | 37 |
4 files changed, 4 insertions, 56 deletions
diff --git a/games/ldmud/Makefile b/games/ldmud/Makefile index da1e8bca30cd..3622512ce23a 100644 --- a/games/ldmud/Makefile +++ b/games/ldmud/Makefile @@ -7,6 +7,7 @@ PORTNAME= ldmud PORTVERSION= 3.4.2 +PORTREVISION= 1 CATEGORIES= games net MASTER_SITES= http://www.bearnip.com/ftp/mud/ @@ -20,6 +21,9 @@ ALL_TARGET= ldmud MAN1= ldmud.1 MAKE_JOBS_UNSAFE= yes +USERS= mud +GROUPS= mud + LOGDIR= ${DATADIR} .if defined(MUDLIB) && ${MUDLIB} == lpmud PLIST_SUB+= LPMUD="" MUDLIB="@comment " @@ -55,8 +59,5 @@ post-install: | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} ${RM} -f ${DOCSDIR}/Makefile .endif - # Run package install script - ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} \ - POST-INSTALL .include <bsd.port.post.mk> diff --git a/games/ldmud/distinfo b/games/ldmud/distinfo index 0e053f477c88..224f7db5d7c5 100644 --- a/games/ldmud/distinfo +++ b/games/ldmud/distinfo @@ -1,3 +1,2 @@ -MD5 (ldmud-3.4.2.tar.gz) = c2bf23d8d8e2247669210da1b5f50362 SHA256 (ldmud-3.4.2.tar.gz) = a1df0db9966093d0e5db692d45991e5091e7168e80868dcd696997be6b179f35 SIZE (ldmud-3.4.2.tar.gz) = 2655931 diff --git a/games/ldmud/pkg-deinstall b/games/ldmud/pkg-deinstall deleted file mode 100644 index db9dbdbdfe72..000000000000 --- a/games/ldmud/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/games/ldmud/pkg-install b/games/ldmud/pkg-install deleted file mode 100644 index 575cbe714897..000000000000 --- a/games/ldmud/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 |