Changeset 49

Show
Ignore:
Timestamp:
12/01/02 17:42:10 (10 years ago)
Author:
ahu
Message:

from wiggy

Location:
trunk/pdns/debian
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/debian

    • Property svn:ignore
      •  

        old new  
        11tmp 
         2tmp-bind 
         3tmp-mysql 
        24files 
        35substvars 
  • trunk/pdns/debian/.cvsignore

    r48 r49  
    11tmp 
     2tmp-bind 
     3tmp-mysql 
    24files 
    35substvars 
  • trunk/pdns/debian/control

    r46 r49  
    44Standards-Version: 3.5.8 
    55Maintainer: Wichert Akkerman <wakkerma@debian.org> 
    6 Build-Depends: automake1.5, autoconf, libtool, flex, bison, docbook-utils, libmysqlclient10-dev, libstdc++-dev 
     6Build-Depends: automake1.5, autoconf, libtool, flex, bison, docbook-utils, libmysqlclient10-dev, postgresql-dev, libstdc++-dev 
    77 
    88Package: pdns 
    99Architecture: any 
    10 Depends: ${shlibs:Depends} 
     10Depends: ${shlibs:Depends}, pdns-backend-bind | pdns-backend 
    1111Description: extremely powerful and versatile nameserver 
    1212 PowerDNS is a versatile nameserver which supports a large number 
    1313 of different backends ranging from simple zonefiles to relational 
    1414 databases and load balancing/failover algorithms. 
     15 
     16Package: pdns-backend-bind 
     17Architecture: any 
     18Depends: pdns (= ${dpkg:Version}), ${shlibs:Depends} 
     19Provides: pdns-backend 
     20Description: 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 
     25Package: pdns-backend-mysql 
     26Architecture: any 
     27Depends: pdns (= ${dpkg:Version}), ${shlibs:Depends} 
     28Provides: pdns-backend 
     29Description: MySQL backend for pDNS 
     30 This package contains a MySQL backend for the PowerDNS nameserver. 
     31 
  • trunk/pdns/debian/postinst

    r48 r49  
    2727        update_init "$@" 
    2828        restart_pdns "$@" 
    29         ldconfig 
    3029fi 
  • trunk/pdns/debian/postrm

    r46 r49  
    88 
    99 
    10 if [ "$1" = "remove" ] ; then 
    11         ldconfig 
    12 elif [ "$1" = "purge" ] ; then 
     10if [ "$1" = "purge" ] ; then 
    1311        update_init 
    1412fi 
  • trunk/pdns/debian/rules

    r48 r49  
    22 
    33tmpdir          := $(shell pwd)/debian/tmp 
     4backends        := bind mysql 
    45 
    56clean: 
    67        rm -f debian/files debian/substvars stamp-build 
    7         rm -rf "$(tmpdir)" 
     8        rm -rf "$(tmpdir)" "$(tmpdir)"-* 
    89        -make distclean 
    910        -make -C pdns/docs clean 
     
    1819                --sysconfdir=/etc \ 
    1920                --infodir='$${datadir}/info' \ 
    20                 --mandir='$${datadir}/man' 
     21                --mandir='$${datadir}/man' \ 
     22                --enable-pgsql \ 
     23                --enable-mysql \ 
     24                --with-modules="mysql pgmysql" 
    2125        make 
    2226        make -C pdns/docs html/index.html 
     
    3034binary-arch: stamp-build 
    3135        rm -f debian/files debian/substvars 
    32         rm -rf "$(tmpdir)" 
     36        rm -rf "$(tmpdir)" "$(tmpdir)"-* 
    3337 
    3438        install -d -m 755 -o root -g root "$(tmpdir)" 
     
    6771                        "$(tmpdir)"/usr/share/doc/pdns/ 
    6872         
    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 
    7294 
    7395        install -d -m 755 -o root -g root "$(tmpdir)"/DEBIAN 
     
    79101        dpkg-shlibdeps "$(tmpdir)"/usr/bin/zone2sql \ 
    80102                "$(tmpdir)"/usr/bin/pdns_server \ 
    81                 "$(tmpdir)"/usr/bin/pdns_control \ 
    82                 "$(tmpdir)"/usr/lib/*.so 
     103                "$(tmpdir)"/usr/bin/pdns_control 
    83104 
    84         dpkg-gencontrol -isp 
     105        dpkg-gencontrol -isp -ppdns -P"$(tmpdir)" 
    85106        dpkg --build "$(tmpdir)" .. 
    86107