diff options
Diffstat (limited to 'dns')
-rw-r--r-- | dns/rbldnsd/Makefile | 6 | ||||
-rw-r--r-- | dns/rbldnsd/pkg-install | 30 |
2 files changed, 2 insertions, 34 deletions
diff --git a/dns/rbldnsd/Makefile b/dns/rbldnsd/Makefile index 82d543ac20e9..2c5d452d1410 100644 --- a/dns/rbldnsd/Makefile +++ b/dns/rbldnsd/Makefile @@ -32,13 +32,11 @@ MAN8= rbldnsd.8 HAS_CONFIGURE= yes USE_RC_SUBR= rbldnsd +USERS= rbldns +GROUPS= ${USERS} PKGMESSAGE= ${WRKDIR}/pkg-message SUB_FILES= pkg-message -pre-install: - @${ECHO} "==> Creating custom user to run rbldnsd..." - @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - do-install: @if [ ! -d ${ROOTDIR} ]; then \ ${MKDIR} ${ROOTDIR}; \ diff --git a/dns/rbldnsd/pkg-install b/dns/rbldnsd/pkg-install deleted file mode 100644 index a2a7943481e1..000000000000 --- a/dns/rbldnsd/pkg-install +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -if [ "$2" != "PRE-INSTALL" ]; then - exit 0 -fi - -RBLDNSUSER=${RBLDNSUSER:-rbldns} -RBLDNSGROUP=${RBLDNSGROUP:-rbldns} - -if ! pw groupshow "$RBLDNSGROUP" 2>/dev/null 1>&2; then - if pw groupadd $RBLDNSGROUP; then - echo "=> Added group \"$RBLDNSGROUP\"." - else - echo "=> Adding group \"$RBLDNSGROUP\" failed..." - exit 1 - fi -fi - -if ! pw usershow "$RBLDNSUSER" 2>/dev/null 1>&2; then - if pw useradd $RBLDNSUSER -g $RBLDNSGROUP -h - \ - -s "/usr/sbin/nologin" -d "/nonexistent" \ - -c "rbldnsd pseudo-user"; \ - then - echo "=> Added user \"$RBLDNSUSER\"." - else - echo "=> Adding user \"$RBLDNSUSER\" failed..." - exit 1 - fi -fi -exit 0 |