Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
aports
Commits
6483fdd3
Commit
6483fdd3
authored
Jul 06, 2010
by
Natanael Copa
Browse files
main/djbdns: make sure there are valid ip address in @ before overwrite
parent
11cfac62
Changes
2
Hide whitespace changes
Inline
Side-by-side
main/djbdns/APKBUILD
View file @
6483fdd3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
djbdns
pkgname
=
djbdns
pkgver
=
1.05
pkgver
=
1.05
pkgrel
=
3
5
pkgrel
=
3
7
pkgdesc
=
"Excellent high-performance DNS services"
pkgdesc
=
"Excellent high-performance DNS services"
url
=
"http://cr.yp.to/djbdns.html"
url
=
"http://cr.yp.to/djbdns.html"
license
=
"public-domain"
license
=
"public-domain"
...
@@ -101,4 +101,4 @@ fe48165a920cf843ceb9a4ee50bf74c0 tinydns.initd
...
@@ -101,4 +101,4 @@ fe48165a920cf843ceb9a4ee50bf74c0 tinydns.initd
e09c3a6ba6917e16f4736ab5c070dbe9 dnscache.pre-install
e09c3a6ba6917e16f4736ab5c070dbe9 dnscache.pre-install
e5cada3b032da84c4a0e41ef8b3108cb dnscache.initd
e5cada3b032da84c4a0e41ef8b3108cb dnscache.initd
2b3d02e88f70603c760bf368ab3ed636 dnscache.confd
2b3d02e88f70603c760bf368ab3ed636 dnscache.confd
8
05b6989f945d727788f1908fe3fce81
dnscache.monthly"
8
173f85e0d9b4496de389d1b43993d95
dnscache.monthly"
main/djbdns/dnscache.monthly
View file @
6483fdd3
...
@@ -19,7 +19,7 @@ for ZONEFILE in $ZONES; do
...
@@ -19,7 +19,7 @@ for ZONEFILE in $ZONES; do
cp
-f
"
$DST
"
"
$ZONEFILE
"
cp
-f
"
$DST
"
"
$ZONEFILE
"
fi
fi
if
[
"
$ZONE
"
=
=
"@"
]
;
then
if
[
"
$ZONE
"
=
"@"
]
;
then
ZONE
=
"."
ZONE
=
"."
fi
fi
...
@@ -28,9 +28,7 @@ for ZONEFILE in $ZONES; do
...
@@ -28,9 +28,7 @@ for ZONEFILE in $ZONES; do
# Refresh zone info
# Refresh zone info
dnsqr ns
$ZONE
|
awk
'/^answer: ./ { print $5 }'
|
sort
-u
| xargs dnsip
>
$TMPF
dnsqr ns
$ZONE
|
awk
'/^answer: ./ { print $5 }'
|
sort
-u
| xargs dnsip
>
$TMPF
if
egrep
-q
'[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+'
$TMPF
;
then
grep
"^$"
$TMPF
1> /dev/null
if
[
$?
!=
0
]
;
then
cmp
-s
$ZONEFILE
$TMPF
cmp
-s
$ZONEFILE
$TMPF
if
[
"
$?
"
!=
0
]
;
then
if
[
"
$?
"
!=
0
]
;
then
NEEDRESTART
=
yes
NEEDRESTART
=
yes
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment