aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2011-06-18 04:18:55 +0800
committercrees <crees@FreeBSD.org>2011-06-18 04:18:55 +0800
commit704d06b6cba71c6406e4c092ca4e9f073b2c6754 (patch)
tree1539d2a916d9ea8ea6c187234f72bfa7be7ed870
parent0155a0c35592a9b435ada2846f8822dfe86cc801 (diff)
downloadfreebsd-ports-gnome-704d06b6cba71c6406e4c092ca4e9f073b2c6754.tar.gz
freebsd-ports-gnome-704d06b6cba71c6406e4c092ca4e9f073b2c6754.tar.zst
freebsd-ports-gnome-704d06b6cba71c6406e4c092ca4e9f073b2c6754.zip
- Use USERS and GROUPS
PR: ports/157927 Submitted by: crees Approved by: Maintainer, rene (mentor)
-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