1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- switch to USERS/GROUPS macros

- while here rmeove MD5
- Bump portrevision
This commit is contained in:
Baptiste Daroussin 2011-06-08 16:52:51 +00:00
parent e93d85f4d6
commit dc5a7296dd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275236
4 changed files with 4 additions and 56 deletions

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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