Changeset 49
- Timestamp:
- 12/01/02 17:42:10 (10 years ago)
- Location:
- trunk/pdns/debian
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/debian
- Property svn:ignore
-
old new 1 1 tmp 2 tmp-bind 3 tmp-mysql 2 4 files 3 5 substvars
-
- Property svn:ignore
-
trunk/pdns/debian/.cvsignore
r48 r49 1 1 tmp 2 tmp-bind 3 tmp-mysql 2 4 files 3 5 substvars -
trunk/pdns/debian/control
r46 r49 4 4 Standards-Version: 3.5.8 5 5 Maintainer: Wichert Akkerman <wakkerma@debian.org> 6 Build-Depends: automake1.5, autoconf, libtool, flex, bison, docbook-utils, libmysqlclient10-dev, libstdc++-dev6 Build-Depends: automake1.5, autoconf, libtool, flex, bison, docbook-utils, libmysqlclient10-dev, postgresql-dev, libstdc++-dev 7 7 8 8 Package: pdns 9 9 Architecture: any 10 Depends: ${shlibs:Depends} 10 Depends: ${shlibs:Depends}, pdns-backend-bind | pdns-backend 11 11 Description: extremely powerful and versatile nameserver 12 12 PowerDNS is a versatile nameserver which supports a large number 13 13 of different backends ranging from simple zonefiles to relational 14 14 databases and load balancing/failover algorithms. 15 16 Package: pdns-backend-bind 17 Architecture: any 18 Depends: pdns (= ${dpkg:Version}), ${shlibs:Depends} 19 Provides: pdns-backend 20 Description: bind backend for pDNS 21 This package contains the bind backend for the PowerDNS nameserver. This 22 allows pDNS to use the configuration and zone files from the ISC bind 23 nameserver. 24 25 Package: pdns-backend-mysql 26 Architecture: any 27 Depends: pdns (= ${dpkg:Version}), ${shlibs:Depends} 28 Provides: pdns-backend 29 Description: MySQL backend for pDNS 30 This package contains a MySQL backend for the PowerDNS nameserver. 31 -
trunk/pdns/debian/postinst
r48 r49 27 27 update_init "$@" 28 28 restart_pdns "$@" 29 ldconfig30 29 fi -
trunk/pdns/debian/postrm
r46 r49 8 8 9 9 10 if [ "$1" = "remove" ] ; then 11 ldconfig 12 elif [ "$1" = "purge" ] ; then 10 if [ "$1" = "purge" ] ; then 13 11 update_init 14 12 fi -
trunk/pdns/debian/rules
r48 r49 2 2 3 3 tmpdir := $(shell pwd)/debian/tmp 4 backends := bind mysql 4 5 5 6 clean: 6 7 rm -f debian/files debian/substvars stamp-build 7 rm -rf "$(tmpdir)" 8 rm -rf "$(tmpdir)" "$(tmpdir)"-* 8 9 -make distclean 9 10 -make -C pdns/docs clean … … 18 19 --sysconfdir=/etc \ 19 20 --infodir='$${datadir}/info' \ 20 --mandir='$${datadir}/man' 21 --mandir='$${datadir}/man' \ 22 --enable-pgsql \ 23 --enable-mysql \ 24 --with-modules="mysql pgmysql" 21 25 make 22 26 make -C pdns/docs html/index.html … … 30 34 binary-arch: stamp-build 31 35 rm -f debian/files debian/substvars 32 rm -rf "$(tmpdir)" 36 rm -rf "$(tmpdir)" "$(tmpdir)"-* 33 37 34 38 install -d -m 755 -o root -g root "$(tmpdir)" … … 67 71 "$(tmpdir)"/usr/share/doc/pdns/ 68 72 69 install -d -m 755 -o root -g root "$(tmpdir)"/usr/share/lintian/overrides 70 install -p -m 644 -o root -g root debian/lintian-overrides \ 71 "$(tmpdir)"/usr/share/lintian/overrides/pdns 73 set -e ; for be in $(backends) ; do \ 74 rm -f debian/substvars ; \ 75 pkg=pdns-backend-$$be ; \ 76 install -d -m 755 -o root -g root "$(tmpdir)"-$$be/usr/lib ; \ 77 mv "$(tmpdir)"/usr/lib/*$$be* "$(tmpdir)"-$$be/usr/lib/ ; \ 78 install -d -m 755 -o root -g root "$(tmpdir)"-$$be/usr/share/doc ; \ 79 ln -s pdns "$(tmpdir)"-$$be/usr/share/doc/$$pkg ; \ 80 \ 81 install -d -m 755 -o root -g root "$(tmpdir)"-$$be/usr/share/lintian/overrides ; \ 82 install -p -m 644 -o root -g root debian/$$pkg.lintian \ 83 "$(tmpdir)"-$$be/usr/share/lintian/overrides/$$pkg ; \ 84 \ 85 install -d -m 755 -o root -g root "$(tmpdir)"-$$be/DEBIAN ; \ 86 install -p -m 755 -o root -g root debian/pdns-backend-general.postinst \ 87 "$(tmpdir)"-$$be/DEBIAN/postinst ; \ 88 install -p -m 755 -o root -g root debian/pdns-backend-general.postrm \ 89 "$(tmpdir)"-$$be/DEBIAN/postrm ; \ 90 dpkg-shlibdeps "$(tmpdir)"-$$be/usr/lib/*.so ; \ 91 dpkg-gencontrol -isp -p$$pkg -P"$(tmpdir)"-$$be ; \ 92 dpkg --build "$(tmpdir)"-$$be .. ; \ 93 done 72 94 73 95 install -d -m 755 -o root -g root "$(tmpdir)"/DEBIAN … … 79 101 dpkg-shlibdeps "$(tmpdir)"/usr/bin/zone2sql \ 80 102 "$(tmpdir)"/usr/bin/pdns_server \ 81 "$(tmpdir)"/usr/bin/pdns_control \ 82 "$(tmpdir)"/usr/lib/*.so 103 "$(tmpdir)"/usr/bin/pdns_control 83 104 84 dpkg-gencontrol -isp 105 dpkg-gencontrol -isp -ppdns -P"$(tmpdir)" 85 106 dpkg --build "$(tmpdir)" .. 86 107