aboutsummaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2011-07-03 21:56:15 +0800
committercrees <crees@FreeBSD.org>2011-07-03 21:56:15 +0800
commit9a35686796af62ef629b1abc30c43d82ada0bf3c (patch)
treed8e37163571fa6254502273a270f0d9c1f719f1d /irc
parent13129c3e5c7355643cbcc3d38822b1879e2690a5 (diff)
downloadfreebsd-ports-gnome-9a35686796af62ef629b1abc30c43d82ada0bf3c.tar.gz
freebsd-ports-gnome-9a35686796af62ef629b1abc30c43d82ada0bf3c.tar.zst
freebsd-ports-gnome-9a35686796af62ef629b1abc30c43d82ada0bf3c.zip
- Use USERS and GROUPS
- Deprecate-- no upstream and distfile gone PR: ports/157589 Submitted by: Chris Rees (utisoft@gmail.com) Approved by: rene (mentor)
Diffstat (limited to 'irc')
-rw-r--r--irc/ptlink-services/Makefile7
-rw-r--r--irc/ptlink-services/pkg-install28
2 files changed, 6 insertions, 29 deletions
diff --git a/irc/ptlink-services/Makefile b/irc/ptlink-services/Makefile
index d70ebb4cd59d..943902b048e7 100644
--- a/irc/ptlink-services/Makefile
+++ b/irc/ptlink-services/Makefile
@@ -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}
diff --git a/irc/ptlink-services/pkg-install b/irc/ptlink-services/pkg-install
deleted file mode 100644
index d837e4e6e306..000000000000
--- a/irc/ptlink-services/pkg-install
+++ /dev/null
@@ -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