aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2011-06-17 20:18:55 +0000
committerChris Rees <crees@FreeBSD.org>2011-06-17 20:18:55 +0000
commit3bfcad91fdff3527f7a7cf08f02638652ec87d0f (patch)
tree376b706ee53efdd74696d9824439167108e54de5 /irc
parentcc1ec24ac147ddcdbd00f3737470668e0b67cd0f (diff)
downloadports-3bfcad91fdff3527f7a7cf08f02638652ec87d0f.tar.gz
ports-3bfcad91fdff3527f7a7cf08f02638652ec87d0f.zip
Notes
Diffstat (limited to 'irc')
-rw-r--r--irc/undernet-ircu/Makefile6
-rw-r--r--irc/undernet-ircu/pkg-install40
2 files changed, 3 insertions, 43 deletions
diff --git a/irc/undernet-ircu/Makefile b/irc/undernet-ircu/Makefile
index 6122e7ec4a5d..1cb949182c42 100644
--- a/irc/undernet-ircu/Makefile
+++ b/irc/undernet-ircu/Makefile
@@ -15,6 +15,9 @@ COMMENT= Undernet IRCU irc daemon
CONFLICTS= ircd-hybrid-7.[0-9]*
+USERS= undernet
+GROUPS= ${USERS}
+
GNU_CONFIGURE= yes
USE_RC_SUBR= undernet.sh
CONFIGURE_ARGS= --with-dpath=${PREFIX}/etc/ --with-symlink=no
@@ -86,9 +89,6 @@ CONFIGURE_ARGS+= --disable-epoll
CONFIGURE_ARGS+= --with-leak-detect
.endif
-pre-install:
- @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
-
post-install:
@${ECHO_MSG} ""
@${ECHO_MSG} " To run undernet ircu you must add 'undernet_enable=\"YES\" to"
diff --git a/irc/undernet-ircu/pkg-install b/irc/undernet-ircu/pkg-install
deleted file mode 100644
index e8a1dce16a3e..000000000000
--- a/irc/undernet-ircu/pkg-install
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-if [ "x$2" != "xPRE-INSTALL" ]; then
- exit 0;
-fi
-
- USER=undernet
- GROUP=${USER}
- UID=134
- GID=${UID}
- 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."
- if pw usermod ${USER} -d "/nonexistant"
- then
- echo "Changed home directory of \"${USER}\" to \"${NONEXISTENT}\""
- else
- echo "Changing home directory of \"${USER}\" to \"${NONEXISTENT}\" failed..."
- exit 1
- fi
- else
- if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
- -d "/nonexistant" -s "/sbin/nologin" -c "Undernet ircu Daemon"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
- fi