| 15 | | stamp-build build: configure |
| | 9 | binary-doc: |
| | 10 | -make -C pdns/docs html/index.html |
| | 11 | |
| | 12 | rm -rf "$(tmpdir)" |
| | 13 | |
| | 14 | install -d -m 755 -o root -g root \ |
| | 15 | "$(tmpdir)"/usr/share/doc/pdns/html |
| | 16 | set -e ; for i in pdns/docs/html/* ; do \ |
| | 17 | install -p -m 644 -o root -g root "$$i" \ |
| | 18 | "$(tmpdir)"/usr/share/doc/pdns/html/ ; \ |
| | 19 | done |
| | 20 | |
| | 21 | install -d -m 755 -o root -g root \ |
| | 22 | "$(tmpdir)"/usr/share/doc/pdns-doc |
| | 23 | install -p -m 644 -o root -g root ChangeLog \ |
| | 24 | "$(tmpdir)"/usr/share/doc/pdns-doc/changelog |
| | 25 | install -p -m 644 -o root -g root debian/changelog \ |
| | 26 | "$(tmpdir)"/usr/share/doc/pdns-doc/changelog.Debian |
| | 27 | gzip -9 "$(tmpdir)"/usr/share/doc/pdns-doc/* |
| | 28 | install -p -m 644 -o root -g root debian/copyright \ |
| | 29 | "$(tmpdir)"/usr/share/doc/pdns-doc/ |
| | 30 | |
| | 31 | install -d -m 755 -o root -g root "$(tmpdir)"/usr/share/doc-base |
| | 32 | install -p -m 644 -o root -g root debian/doc-base \ |
| | 33 | "$(tmpdir)"/usr/share/doc-base/pdns |
| | 34 | |
| | 35 | install -d -m 755 -o root -g root "$(tmpdir)"/DEBIAN |
| | 36 | install -p -m 755 -o root -g root debian/pdns-doc.prerm \ |
| | 37 | "$(tmpdir)"/DEBIAN/prerm |
| | 38 | install -p -m 755 -o root -g root debian/pdns-doc.postinst \ |
| | 39 | "$(tmpdir)"/DEBIAN/postinst |
| | 40 | |
| | 41 | dpkg-gencontrol -isp -ppdns-doc -P"$(tmpdir)" |
| | 42 | dpkg --build "$(tmpdir)" .. |
| | 43 | |
| | 44 | |
| | 45 | build-main: configure |
| | 46 | if [ -e build-backend ] ; then make distclean ; fi |
| | 47 | rm -f build-backend |
| | 48 | |
| | 49 | ./configure \ |
| | 50 | --prefix=/usr \ |
| | 51 | --libexecdir='$${prefix}/lib' \ |
| | 52 | --sysconfdir=/etc \ |
| | 53 | --infodir='$${datadir}/info' \ |
| | 54 | --mandir='$${datadir}/man' |
| | 55 | make |
| | 56 | touch build-main |
| | 57 | |
| | 58 | |
| | 59 | binary-main: build-main |
| | 60 | rm -f debian/files debian/substvars |
| | 61 | rm -rf "$(tmpdir)" "$(tmpdir)"-* |
| | 62 | install -d -m 755 -o root -g root "$(tmpdir)" |
| | 63 | make DESTDIR="$(tmpdir)" install |
| | 64 | |
| | 65 | rm -f "$(tmpdir)"/usr/bin/binpatch |
| | 66 | rm -rf "$(tmpdir)"/usr/lib |
| | 67 | |
| | 68 | strip --remove-section=.comment --remove-section=.note \ |
| | 69 | --strip-unneeded \ |
| | 70 | "$(tmpdir)"/usr/bin/zone2sql \ |
| | 71 | "$(tmpdir)"/usr/bin/pdns_server \ |
| | 72 | "$(tmpdir)"/usr/bin/pdns_control |
| | 73 | mv "$(tmpdir)"/etc/pdns.conf-dist "$(tmpdir)"/etc/pdns.conf |
| | 74 | |
| | 75 | install -d -m 755 -o root -g root "$(tmpdir)"/etc/init.d |
| | 76 | install -p -m 755 -o root -g root pdns/pdns \ |
| | 77 | "$(tmpdir)"/etc/init.d/pdns |
| | 78 | |
| | 79 | install -d -m 755 -o root -g root \ |
| | 80 | "$(tmpdir)"/usr/share/doc/pdns |
| | 81 | install -p -m 644 -o root -g root ChangeLog \ |
| | 82 | "$(tmpdir)"/usr/share/doc/pdns/changelog |
| | 83 | install -p -m 644 -o root -g root debian/changelog \ |
| | 84 | "$(tmpdir)"/usr/share/doc/pdns/changelog.Debian |
| | 85 | gzip -9 "$(tmpdir)"/usr/share/doc/pdns/c* |
| | 86 | install -p -m 644 -o root -g root debian/copyright \ |
| | 87 | "$(tmpdir)"/usr/share/doc/pdns/ |
| | 88 | |
| | 89 | install -d -m 755 -o root -g root "$(tmpdir)"/DEBIAN |
| | 90 | install -p -m 755 -o root -g root debian/pdns.prerm \ |
| | 91 | "$(tmpdir)"/DEBIAN/prerm |
| | 92 | install -p -m 755 -o root -g root debian/pdns.postrm \ |
| | 93 | "$(tmpdir)"/DEBIAN/postrm |
| | 94 | install -p -m 755 -o root -g root debian/pdns.postinst \ |
| | 95 | "$(tmpdir)"/DEBIAN/postinst |
| | 96 | install -p -m 644 -o root -g root debian/pdns.conffiles \ |
| | 97 | "$(tmpdir)"/DEBIAN/conffiles |
| | 98 | |
| | 99 | dpkg-shlibdeps "$(tmpdir)"/usr/bin/zone2sql \ |
| | 100 | "$(tmpdir)"/usr/bin/pdns_server \ |
| | 101 | "$(tmpdir)"/usr/bin/pdns_control |
| | 102 | |
| | 103 | dpkg-gencontrol -isp -ppdns -P"$(tmpdir)" |
| | 104 | dpkg --build "$(tmpdir)" .. |
| | 105 | |
| | 106 | |
| | 107 | build-backend: configure |
| | 108 | if [ -e build-main ] ; then make distclean ; fi |
| | 109 | rm -f build-main |
| | 110 | |
| 50 | | install -d -m 755 -o root -g root \ |
| 51 | | "$(tmpdir)"/usr/share/doc/pdns/html |
| 52 | | set -e ; for i in pdns/docs/html/* ; do \ |
| 53 | | install -p -m 644 -o root -g root "$$i" \ |
| 54 | | "$(tmpdir)"/usr/share/doc/pdns/html/ ; \ |
| 55 | | done |
| 56 | | |
| 57 | | install -d -m 755 -o root -g root "$(tmpdir)"/etc/init.d |
| 58 | | install -p -m 755 -o root -g root pdns/pdns \ |
| 59 | | "$(tmpdir)"/etc/init.d/pdns |
| 60 | | |
| 61 | | install -d -m 755 -o root -g root "$(tmpdir)"/usr/share/doc-base |
| 62 | | install -p -m 644 -o root -g root debian/doc-base \ |
| 63 | | "$(tmpdir)"/usr/share/doc-base/pdns |
| 64 | | |
| 65 | | install -p -m 644 -o root -g root ChangeLog \ |
| 66 | | "$(tmpdir)"/usr/share/doc/pdns/changelog |
| 67 | | install -p -m 644 -o root -g root debian/changelog \ |
| 68 | | "$(tmpdir)"/usr/share/doc/pdns/changelog.Debian |
| 69 | | gzip -9 "$(tmpdir)"/usr/share/doc/pdns/c* |
| 70 | | install -p -m 644 -o root -g root debian/copyright \ |
| 71 | | "$(tmpdir)"/usr/share/doc/pdns/ |
| 72 | | |