diff options
author | leeym <leeym@FreeBSD.org> | 2004-04-13 08:54:39 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2004-04-13 08:54:39 +0800 |
commit | 19823e7bd3f0a4f87662ba531761a25b96fcc40a (patch) | |
tree | 3397a89b9ba7bdb62cc5f08aeb0807caae5e0b71 /dns/rbldnsd/pkg-install | |
parent | 83f2faaffcf994a31d5dd488c3882a79bb36793b (diff) | |
download | freebsd-ports-gnome-19823e7bd3f0a4f87662ba531761a25b96fcc40a.tar.gz freebsd-ports-gnome-19823e7bd3f0a4f87662ba531761a25b96fcc40a.tar.zst freebsd-ports-gnome-19823e7bd3f0a4f87662ba531761a25b96fcc40a.zip |
- upgrade version to 0.992
- switch to rc.subr start mechanism
- added user/group
- added example data on install, target directory
- added pkg-message
- added more doc files
PR: 65392
Submitted by: Paul Chvostek <paul+fbsd@it.ca>
Diffstat (limited to 'dns/rbldnsd/pkg-install')
-rw-r--r-- | dns/rbldnsd/pkg-install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dns/rbldnsd/pkg-install b/dns/rbldnsd/pkg-install new file mode 100644 index 000000000000..c51c36a6e7ae --- /dev/null +++ b/dns/rbldnsd/pkg-install @@ -0,0 +1,30 @@ +#!/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 "/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 |