r23322 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23321‎ | r23322 | r23323 >
Date:15:21, 24 June 2007
Author:mark
Status:old
Tags:
Comment:
wikimedia-task-dns-auth (0.05) feisty; urgency=medium

* Depend on pdns >= 2.9.21
* Update the configuration file to use the bind(2) backend
* Move the countries file to a subdir owned by user pdns,
so the nonprivileged cron job can update the zone file
* Make the postrm script work with dash

wikimedia-task-dns-auth (0.04) edgy; urgency=medium

* Fix bug in authdns-update where the /etc/powerdns/geomaps sanity check
only succeeds when in /etc/powerdns
* .svn dirs were ending up in the package, remove them in debian/rules
Modified paths:
  • /trunk/debs/wikimedia-task-dns-auth/debian/changelog (modified) (history)
  • /trunk/debs/wikimedia-task-dns-auth/debian/control (modified) (history)
  • /trunk/debs/wikimedia-task-dns-auth/debian/cron.d (modified) (history)
  • /trunk/debs/wikimedia-task-dns-auth/debian/postrm (modified) (history)
  • /trunk/debs/wikimedia-task-dns-auth/debian/prerm (modified) (history)
  • /trunk/debs/wikimedia-task-dns-auth/debian/rules (modified) (history)
  • /trunk/debs/wikimedia-task-dns-auth/pdns.conf (modified) (history)

Diff [purge]

Index: trunk/debs/wikimedia-task-dns-auth/debian/control
@@ -7,7 +7,7 @@
88
99 Package: wikimedia-task-dns-auth
1010 Architecture: all
11 -Depends: pdns-server, pdns-backend-geo, python, rsync
 11+Depends: pdns-server (>= 2.9.21), pdns-backend-geo (>= 2.9.21), python, rsync
1212 Description: Provides a Wikimedia authoritative DNS server
1313 Package wikimedia-task-dns-auth depends on the appropriate packages
1414 that need to be installed on a Wikimedia authoritative DNS server,
Index: trunk/debs/wikimedia-task-dns-auth/debian/cron.d
@@ -1,2 +1 @@
2 -07 04 * * * pdns rsync -qt rsync://countries-ns.mdc.dk/zone/zz.countries.nerd.dk.rbldnsd \
3 - /etc/powerdns/zz.countries.nerd.dk.rbldnsd && pdns_control rediscover > /dev/null
 2+7 4 * * * pdns rsync -qt "rsync://countries-ns.mdc.dk/zone/zz.countries.nerd.dk.rbldnsd'" /etc/powerdns/ip-map/zz.countries.nerd.dk.rbldnsd && pdns_control rediscover > /dev/null
Index: trunk/debs/wikimedia-task-dns-auth/debian/postrm
@@ -17,14 +17,13 @@
1818 # for details, see http://www.debian.org/doc/debian-policy/ or
1919 # the debian-policy package
2020
21 -
2221 case "$1" in
2322 purge)
2423 dpkg-divert --package wikimedia-task-dns-auth --remove --rename \
2524 --divert /etc/powerdns/pdns.conf.default /etc/powerdns/pdns.conf
26 -
27 - rm -f /etc/powerdns/{bind.conf,langlist,langlist-cnames}
28 - rm -rf /etc/powerdns/{templates,zones,scenarios,geomaps}
 25+ rm -f /etc/powerdns/geomaps
 26+ rm -rf /etc/powerdns/scenarios
 27+ rm -rf /etc/powerdns/ip-map
2928 ;;
3029 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
3130
Index: trunk/debs/wikimedia-task-dns-auth/debian/prerm
@@ -19,7 +19,7 @@
2020
2121 case "$1" in
2222 remove|deconfigure)
23 - # Add a line to /etc/motd describing the task of this server
 23+ # Remove the line to /etc/motd describing the task of this server
2424 if [ -f /etc/motd.tail ]
2525 then
2626 MOTDFILE=/etc/motd.tail
Index: trunk/debs/wikimedia-task-dns-auth/debian/changelog
@@ -1,3 +1,13 @@
 2+wikimedia-task-dns-auth (0.05) feisty; urgency=medium
 3+
 4+ * Depend on pdns >= 2.9.21
 5+ * Update the configuration file to use the bind(2) backend
 6+ * Move the countries file to a subdir owned by user pdns,
 7+ so the nonprivileged cron job can update the zone file
 8+ * Make the postrm script work with dash
 9+
 10+ -- Mark Bergsma <mark@mint.knams.wikimedia.org> Sun, 24 Jun 2007 15:10:36 +0000
 11+
212 wikimedia-task-dns-auth (0.04) edgy; urgency=medium
313
414 * Fix bug in authdns-update where the /etc/powerdns/geomaps sanity check
Index: trunk/debs/wikimedia-task-dns-auth/debian/rules
@@ -58,6 +58,7 @@
5959 #$(MAKE) install DESTDIR=$(CURDIR)/debian/wikimedia-task-dns-auth
6060 install -d $(DESTDIR)/etc/powerdns $(DESTDIR)/etc/powerdns/templates \
6161 $(DESTDIR)/etc/powerdns/zones
 62+ install -d -o pdns $(DESTDIR)/etc/powerdns/ip-map
6263 install -d $(DESTDIR)/etc/default
6364 install -d $(DESTDIR)/usr/lib/wikimedia-task-dns-auth/bin
6465 install -d $(DESTDIR)/usr/sbin
@@ -67,7 +68,7 @@
6869 install gen-zones $(DESTDIR)/usr/lib/wikimedia-task-dns-auth/bin/
6970 install gen-bind.conf $(DESTDIR)/usr/lib/wikimedia-task-dns-auth/bin/
7071 install authdns-update authdns-scenario $(DESTDIR)/usr/sbin/
71 - install -m 0644 zz.countries.nerd.dk.rbldnsd $(DESTDIR)/etc/powerdns/
 72+ install -m 0644 -o pdns zz.countries.nerd.dk.rbldnsd $(DESTDIR)/etc/powerdns/ip-map/
7273 install -d $(DESTDIR)/etc/powerdns/scenarios/
7374 install -d $(DESTDIR)/etc/powerdns/scenarios/normal
7475 install -d $(DESTDIR)/etc/powerdns/scenarios/knams-down
Index: trunk/debs/wikimedia-task-dns-auth/pdns.conf
@@ -37,16 +37,16 @@
3838 log-dns-details=no
3939
4040 # Backends to load
41 -launch=bind1,geo
 41+launch=bind,geo
4242
4343 # Bind backend configuration
44 -bind1-config=/etc/powerdns/bind.conf
 44+bind-config=/etc/powerdns/bind.conf
4545
4646 # Geobackend configuration
4747 geo-zone=wikimedia.org
4848 geo-soa-values=ns0.wikimedia.org,hostmaster@wikimedia.org
4949 geo-ns-records=ns0.wikimedia.org,ns1.wikimedia.org,ns2.wikimedia.org
50 -geo-ip-map-zonefile=/etc/powerdns/zz.countries.nerd.dk.rbldnsd
 50+geo-ip-map-zonefile=/etc/powerdns/ip-map/zz.countries.nerd.dk.rbldnsd
5151 geo-maps=/etc/powerdns/geomaps/
5252 geo-ttl=600
5353 geo-ns-ttl=600

Status & tagging log