- Use USERS and GROUPS

- Mark BROKEN and deprecate -- no commits since 2006 and maintainer timeout

PR:		ports/157537
Submitted by:	Chris Rees <utisoft@gmail.com>
Approved by:	rene (mentor), maintainer timeout (2 weeks)
This commit is contained in:
Chris Rees 2011-06-30 17:44:05 +00:00
parent 85a014bbf6
commit e04cb7d66e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276737
2 changed files with 6 additions and 39 deletions

View file

@ -13,14 +13,19 @@ DISTNAME= 3.0-RELEASE
MAINTAINER= edwardchuang@gmail.com
COMMENT= A Common BBS Server with its own customized INN News Server
BROKEN= does not compile
DEPRECATED= Broken, maintainer timed out, untouched for five years
EXPIRATION_DATE=2011-08-30
WRKSRC= ${WRKDIR}/bbs/bbssrc
GNU_CONFIGURE= yes
USE_BZIP2= yes
IS_INTERACTIVE= yes
NOT_FOR_ARCHS= amd64
USERS= bbs
GROUPS= ${USERS}
pre-install:
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
${FIND} ${WRKSRC} -name "*.orig" -delete
post-install:

View file

@ -1,38 +0,0 @@
#!/bin/sh
PATH=/bin:/usr/sbin
USER=bbs
GROUP=bbs
UID=9999
GID=99
case $2 in
PRE-INSTALL)
if pw group show "${GROUP}" 2>/dev/null; then
echo "You already have a group \"${GROUP}\", so I will use it."
else
if pw groupadd ${GROUP} -g ${GID}; then
echo "Added group \"${GROUP}\"."
else
echo "Adding group \"${GROUP}\" failed..."
exit 1
fi
fi
if pw user show "${USER}" 2>/dev/null; then
echo "You already have a user \"${USER}\", so I will use it."
else
if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
-d /usr/local/bbs -s /sbin/nologin -c "Firebird BBS"
then
echo "Added user \"${USER}\"."
else
echo "Adding user \"${USER}\" failed..."
exit 1
fi
fi
;;
esac