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/files | |
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/files')
-rw-r--r-- | dns/rbldnsd/files/example | 30 | ||||
-rw-r--r-- | dns/rbldnsd/files/rbldnsd.sh | 41 |
2 files changed, 71 insertions, 0 deletions
diff --git a/dns/rbldnsd/files/example b/dns/rbldnsd/files/example new file mode 100644 index 000000000000..3e245bcc6c34 --- /dev/null +++ b/dns/rbldnsd/files/example @@ -0,0 +1,30 @@ +:127.0.0.2:Open relay, see http://relays.example.com/lookup?$ +# The above is a default or implicit value which is used when no value given +# for an entry. The `$' characters will be replaced by an IP address in +# question. +127.0.0.2 +# A simplest case: single IP address, with default value. +10.8.60.0/24 :127.0.0.3:Address $ is from private IP range +# Netblock - 256 IP addresses with it's own A and TXT records +224/4 Reserved multicast address +# Another netblock, with default A and explitit TXT values. +192.168 Dialup pool, see http://dialups.example.com/lookup?$ for explanations +# IP numbers may be abbreviated, the above is the same as 192.168.0.0/16 +10.10 :5:This network blocked due to massive spam issues +# A value may be abbreviated as well - :5: is the same as :127.0.0.5:. +10.10.5-129:5:Those hosts are nasty +# repeat last octet: 10.10.5.0..10.10.129.255 inclusive +!10.10.1.2 +# exclusion entry +# +# The following examples are for name-based zones. +#example.com :2:This domain has no working postmaster@ address +#*.example.com :2:All subdomains of example.com lacks working abuse@ address +# Simple and wildcarded entry, both will return 127.0.0.2 A record +# +# some specials +$SOA 3000 ns1.example.com admin.example.com 0 600 300 86400 300 +# Start of authority record (TTL 3000), with serial (0) computed as +# a timestamp of data file +$NS 3000 ns1.example.com ns2.example.com +# two nameservers diff --git a/dns/rbldnsd/files/rbldnsd.sh b/dns/rbldnsd/files/rbldnsd.sh new file mode 100644 index 000000000000..593adaa299f8 --- /dev/null +++ b/dns/rbldnsd/files/rbldnsd.sh @@ -0,0 +1,41 @@ +#!/bin/sh +# +# $Id$ +# + +# PROVIDE: rbldnsd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: FreeBSD shutdown +# +# Add the following lines to /etc/rc.conf to enable rbldnsd: +# +# rbldnsd_enable="YES" +# +# See rbldnsd(8) for flags. +# + +. %%RC_SUBR%% + +name=rbldnsd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/rbldnsd +pidfile=/var/run/rbldnsd.pid + +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +# set defaults, enforce pidfile by making it last option before db + +rbldnsd_enable=${rbldnsd_enable:-"NO"} +rbldnsd_flags=${rbldnsd_flags:-"-r /usr/local/etc/rbldnsd -b 127.0.0.1 bl.example.com:ip4set:example"} +rbldnsd_flags="${rbldnsd_flags% *} -p $pidfile ${rbldnsd_flags##* }" + +load_rc_config $name +run_rc_command "$1" + |