1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

- Use USERS and GROUPS

- Deprecate-- no upstream and distfile gone

PR:		ports/157589
Submitted by:	Chris Rees (utisoft@gmail.com)
Approved by:	rene (mentor)
This commit is contained in:
Chris Rees 2011-07-03 13:56:15 +00:00
parent c5284f2b4e
commit 670b828e6b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276990
2 changed files with 6 additions and 29 deletions

View File

@ -16,11 +16,17 @@ DISTNAME= PTlinkIRC.${PORTNAME}${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= PTlink IRC services
DEPRECATED= No upstream source, no distfile and no maintainer
EXPIRATION_DATE=2011-09-03
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_PERL5= yes
USE_MYSQL= yes
USERS= ircd
GROUPS= ${USERS}
USE_RC_SUBR= ptlink-services.sh
SUB_FILES= pkg-message
@ -30,7 +36,6 @@ CONFIGURE_ARGS= --sysconfdir=${SYSCONFDIR} --localstatedir=/var \
--with-pidfile=/var/run/ircsvs.pid
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CHOWN} -R ircd:ircd ${SYSCONFDIR}
@${CAT} ${PKGMESSAGE}

View File

@ -1,28 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
#
case $2 in
POST-INSTALL)
USER=ircd
GROUP=ircd
UID=72
GID=72
if pw groupshow "${GROUP}" > /dev/null 2>&1; then
echo "===> Using existing group ${GROUP}"
else
echo "===> Adding group ${GROUP}"
pw groupadd ${GROUP} -g ${GID} || exit 1
fi
if pw usershow "${USER}" > /dev/null 2>&1; then
echo "===> Using existing user ${USER}"
else
echo "===> Adding user ${USER}"
pw adduser ${USER} -u ${UID} -g ${GROUP} -h - -d "/nonexistent" \
-s "/nonexistent" -c "IRC daemon" || exit 1
fi
;;
esac