o bump to 1.2
o move instructions around a bit, 'better' beck@
This commit is contained in:
parent
c2f64a386c
commit
f818560f17
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2009/03/06 17:13:02 todd Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2009/03/06 23:57:44 todd Exp $
|
||||
|
||||
COMMENT= dns relay for ad blocking
|
||||
|
||||
DISTNAME= adsuck-1.1
|
||||
DISTNAME= adsuck-1.2
|
||||
CATEGORIES= net
|
||||
|
||||
HOMEPAGE= http://www.peereboom.us/adsuck/
|
||||
|
@ -1,5 +1,5 @@
|
||||
MD5 (adsuck-1.1.tgz) = sWXktPImJGBRsmXv7bnMeg==
|
||||
RMD160 (adsuck-1.1.tgz) = F2ePB6ySg/qa38r4/gZhCHRxYeQ=
|
||||
SHA1 (adsuck-1.1.tgz) = f6cefzsICaNmZs3DPB/ccqt+AbI=
|
||||
SHA256 (adsuck-1.1.tgz) = 6OzqmYoHrtqi4HMcBHmyxf0953W0mP8Zo75a05iOiUA=
|
||||
SIZE (adsuck-1.1.tgz) = 523479
|
||||
MD5 (adsuck-1.2.tgz) = AKUuFB4+HJ0UW3MBjaIDzA==
|
||||
RMD160 (adsuck-1.2.tgz) = 1dnwK5RIffKJq7PmPEgzJohZzdA=
|
||||
SHA1 (adsuck-1.2.tgz) = fb1Wik/jJTeElngA7Ck287Z2UGs=
|
||||
SHA256 (adsuck-1.2.tgz) = bxohbWmGy5oP8q2011Sc8+2g1uHmj0B0apSiQDnfmpw=
|
||||
SIZE (adsuck-1.2.tgz) = 524154
|
||||
|
@ -3,13 +3,6 @@ To make dhclient play nice with adsuck, patching dhclient-script is necessary:
|
||||
cd /sbin
|
||||
patch -p0 < ${LOCALBASE}/share/adsuck/dhclient-script.diff
|
||||
|
||||
Be sure to put:
|
||||
|
||||
adsuck_flags="-c /var/adsuck -f /files/resolv.conf /files/hosts.small"
|
||||
|
||||
in ${SYSCONFDIR}/rc.conf.local.
|
||||
|
||||
Also, be sure to set ${SYSCONFDIR}/resolv.conf to contain only one
|
||||
nameserver line:
|
||||
|
||||
nameserver 127.0.0.1
|
||||
dhclient-script will then, providing adsuck exists and adsuck_flags != "NO"
|
||||
will avoid /etc/resolv.conf and write instead /var/adsuck/files/resolv.conf,
|
||||
and give adsuck a HUP to reload that file.
|
||||
|
@ -1,7 +1,16 @@
|
||||
To play nice with dhclient, read ${TRUEPREFIX}/share/doc/adsuck/README.dhclient
|
||||
To have adsuck start at boot time, put something
|
||||
like this in /etc/rc.local:
|
||||
like this in /etc/rc.conf.local:
|
||||
|
||||
if [ "$adsuck_flags" != "NO" -a -x /usr/local/sbin/adsuck ]; then
|
||||
echo -n ' adsuck'; /usr/local/sbin/adsuck $adsuck_flags
|
||||
adsuck_flags="-c /var/adsuck -f /files/resolv.conf /files/hosts.small"
|
||||
|
||||
and like this in /etc/rc.local:
|
||||
|
||||
if [ "$adsuck_flags" != "NO" -a -x ${PREFIX}/sbin/adsuck ]; then
|
||||
echo -n ' adsuck'; ${PREFIX}/sbin/adsuck $adsuck_flags
|
||||
fi
|
||||
|
||||
Also, be sure to set ${SYSCONFDIR}/resolv.conf to contain only one
|
||||
nameserver line:
|
||||
|
||||
nameserver 127.0.0.1
|
||||
|
Loading…
Reference in New Issue
Block a user