diff options
author | crees <crees@FreeBSD.org> | 2011-07-03 21:50:11 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2011-07-03 21:50:11 +0800 |
commit | bc34e079658ec40989f551d29a4b2fd840491d16 (patch) | |
tree | 0af8ceb2646384f256d74d2adc5f71ae04921d89 /irc | |
parent | 52b1b98437d197b0339bd5ad32565b718098393a (diff) | |
download | freebsd-ports-gnome-bc34e079658ec40989f551d29a4b2fd840491d16.tar.gz freebsd-ports-gnome-bc34e079658ec40989f551d29a4b2fd840491d16.tar.zst freebsd-ports-gnome-bc34e079658ec40989f551d29a4b2fd840491d16.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)
Diffstat (limited to 'irc')
-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 |