diff options
author | Chris Rees <crees@FreeBSD.org> | 2011-07-03 13:50:11 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2011-07-03 13:50:11 +0000 |
commit | 19c53df27ed4146344107098f8eb881bde02f619 (patch) | |
tree | 0ee1d17a45657cc72b91ac26c8740b604dd246dd | |
parent | 27de467a2b3823f1d5447d3fe35c3328eab1f789 (diff) | |
download | freebsd-ports-19c53df27ed4146344107098f8eb881bde02f619.zip |
- Use USERS and GROUPS
- Deprecate-- no upstream and distfile gone
PR: ports/157588
Submitted by: Chris Rees (utisoft@gmail.com)
Approved by: rene (mentor)
-rw-r--r-- | irc/ptlink-ircd/Makefile | 7 | ||||
-rw-r--r-- | irc/ptlink-ircd/pkg-install | 28 |
2 files changed, 6 insertions, 29 deletions
diff --git a/irc/ptlink-ircd/Makefile b/irc/ptlink-ircd/Makefile index a294781ebcef..11b4987ddcbd 100644 --- a/irc/ptlink-ircd/Makefile +++ b/irc/ptlink-ircd/Makefile @@ -21,6 +21,12 @@ USE_GMAKE= yes USE_RC_SUBR= ptlink-ircd.sh SUB_FILES= pkg-message +USERS= ${PORTNAME:L} +GROUPS= ${USERS} + +DEPRECATED= No upstream source, no distfile and no maintainer +EXPIRATION_DATE=2011-09-03 + SYSCONFDIR= ${PREFIX}/etc/ptlink-ircd CONFIGURE_ARGS= --sysconfdir=${SYSCONFDIR} --localstatedir=/var \ @@ -35,7 +41,6 @@ CONFIGURE_ARGS+=--with-ssl=openssl .endif post-install: - @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CHOWN} -R ircd:ircd ${SYSCONFDIR} @${CAT} ${PKGMESSAGE} diff --git a/irc/ptlink-ircd/pkg-install b/irc/ptlink-ircd/pkg-install deleted file mode 100644 index d837e4e6e306..000000000000 --- a/irc/ptlink-ircd/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 |