summaryrefslogtreecommitdiffstats
path: root/main/djbdns
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-07-06 07:20:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-07-06 07:21:20 +0000
commit51e048b859cd82db42d2ccbae55286eedf864f03 (patch)
tree0cb2bcb797a1254a8a0f2a48de74e833290054b7 /main/djbdns
parent5e951ccb95acdc265a906f90b799a1dcd4e87ef0 (diff)
downloadaports-51e048b859cd82db42d2ccbae55286eedf864f03.tar.bz2
aports-51e048b859cd82db42d2ccbae55286eedf864f03.tar.xz
main/djbdns: make sure there are valid ip address in @ before overwrite
Diffstat (limited to 'main/djbdns')
-rw-r--r--main/djbdns/APKBUILD4
-rwxr-xr-xmain/djbdns/dnscache.monthly6
2 files changed, 4 insertions, 6 deletions
diff --git a/main/djbdns/APKBUILD b/main/djbdns/APKBUILD
index c52201a90..5124689f0 100644
--- a/main/djbdns/APKBUILD
+++ b/main/djbdns/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=djbdns
pkgver=1.05
-pkgrel=36
+pkgrel=37
pkgdesc="Excellent high-performance DNS services"
url="http://cr.yp.to/djbdns.html"
license="public-domain"
@@ -101,4 +101,4 @@ fe48165a920cf843ceb9a4ee50bf74c0 tinydns.initd
e09c3a6ba6917e16f4736ab5c070dbe9 dnscache.pre-install
e5cada3b032da84c4a0e41ef8b3108cb dnscache.initd
2b3d02e88f70603c760bf368ab3ed636 dnscache.confd
-805b6989f945d727788f1908fe3fce81 dnscache.monthly"
+8173f85e0d9b4496de389d1b43993d95 dnscache.monthly"
diff --git a/main/djbdns/dnscache.monthly b/main/djbdns/dnscache.monthly
index 4e53fd6fd..574d56f01 100755
--- a/main/djbdns/dnscache.monthly
+++ b/main/djbdns/dnscache.monthly
@@ -19,7 +19,7 @@ for ZONEFILE in $ZONES; do
cp -f "$DST" "$ZONEFILE"
fi
- if [ "$ZONE" == "@" ]; then
+ if [ "$ZONE" = "@" ]; then
ZONE="."
fi
@@ -28,9 +28,7 @@ for ZONEFILE in $ZONES; do
# Refresh zone info
dnsqr ns $ZONE | awk '/^answer: ./ { print $5 }' | sort -u | xargs dnsip > $TMPF
-
- grep "^$" $TMPF 1> /dev/null
- if [ $? != 0 ]; then
+ if egrep -q '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' $TMPF; then
cmp -s $ZONEFILE $TMPF
if [ "$?" != 0 ]; then
NEEDRESTART=yes