aboutsummaryrefslogtreecommitdiff
path: root/dns/unbound/files
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2011-07-09 16:30:19 +0000
committerChris Rees <crees@FreeBSD.org>2011-07-09 16:30:19 +0000
commitc32d99baaf0e55342a9afe3214d7921367c458d9 (patch)
treee9ee42507efe2eafc28d03d63e6a6279f35cfeef /dns/unbound/files
parentd370880c749ddb189337f7237fc453f6ef229834 (diff)
downloadports-c32d99baaf0e55342a9afe3214d7921367c458d9.tar.gz
ports-c32d99baaf0e55342a9afe3214d7921367c458d9.zip
Notes
Diffstat (limited to 'dns/unbound/files')
-rw-r--r--dns/unbound/files/pkg-install.in17
1 files changed, 0 insertions, 17 deletions
diff --git a/dns/unbound/files/pkg-install.in b/dns/unbound/files/pkg-install.in
index 56ff09006d99..5a5c026be37e 100644
--- a/dns/unbound/files/pkg-install.in
+++ b/dns/unbound/files/pkg-install.in
@@ -4,27 +4,10 @@
#
PW=/usr/sbin/pw
-UID=59
USER="unbound"
PREFIX="%%PREFIX%%"
case $2 in
-
-PRE-INSTALL)
- if ${PW} user show "${USER}" 2>/dev/null; then
- echo "You already have a user \"${USER}\", so I will use it."
- else
- if ${PW} useradd ${USER} -u ${UID} -g daemon -h - \
- -d "/nonexistent" -s /usr/sbin/nologin -c "unbound dns resolver"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
- fi
- ;;
-
POST-INSTALL)
chown "${USER}" $PREFIX/etc/unbound
;;