]> granicus.if.org Git - pdns/commitdiff
debian: Remove unused files, targets
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 7 Oct 2014 08:42:56 +0000 (10:42 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 7 Oct 2014 08:42:56 +0000 (10:42 +0200)
debian/control
debian/pdns-doc.postinst [deleted file]
debian/pdns-doc.prerm [deleted file]
debian/rules

index b548c698aeac181e2d15ca3a3c7b143b58a86913..ad5c6c292b27307dc93b8704bda0b25a540ea35b 100644 (file)
@@ -5,19 +5,8 @@ Standards-Version: 3.5.8
 Maintainer: bert hubert <bert.hubert@netherlabs.nl>
 Build-Depends: autoconf, libtool, flex, bison, docbook-utils, libmysqlclient-dev, postgresql-dev | libpq-dev, tdb-dev, libgdbm-dev, libldap2-dev, libsqlite3-dev, dpkg-dev (>= 1.10.17), libboost-dev (>=1.34), libboost-program-options-dev, libboost-serialization-dev, pkg-config, ragel, libbotan1.10-dev, liblua5.1-dev, asciidoc
 
-Package: pdns
-Architecture: any
-Depends: ${shlibs:Depends}
-Recommends: pdns-doc
-Suggests: pdns-backend
-Description: PowerDNS nameserver
- PowerDNS is a versatile nameserver which supports a large number
- of different backends ranging from simple zonefiles to relational
- databases and load balancing/failover algorithms.
-
 Package: pdns-static
 Architecture: any
-Recommends: pdns-doc
 Conflicts: pdns-server
 Description: PowerDNS nameserver (static version)
  PowerDNS is a versatile nameserver which supports a large number
@@ -30,7 +19,6 @@ Description: PowerDNS nameserver (static version)
 
 Package: pdns-tools
 Architecture: any
-Recommends: pdns-doc
 Conflicts: pdns-server
 Description: PowerDNS tools (static version)
  PowerDNS is a versatile nameserver which supports a large number
@@ -39,64 +27,3 @@ Description: PowerDNS tools (static version)
  .
  This package contains a collection of tools based on the core
  PowerDNS libraries.
-
-Package: pdns-doc
-Section: doc
-Architecture: all
-Description: PowerDNS manual
- This is the complete manual for PowerDNS, documenting both
- how to install and configure it as well as how to write
- new backend modules.
-
-Package: pdns-backend-pipe
-Architecture: any
-Depends: pdns (= ${source:Version}), ${shlibs:Depends}
-Provides: pdns-backend
-Description: pipe/coprocess backend for PowerDNS
- This package contains the pipe backend for the PowerDNS nameserver. This
- allows PowerDNS to retrieve domain info from a process that accepts
- questions on stdin and returns answers on stdout. 
-
-Package: pdns-backend-ldap
-Architecture: any
-Depends: pdns (= ${source:Version}), ${shlibs:Depends}
-Provides: pdns-backend
-Description: LDAP backend for PowerDNS
- This package contains a LDAP backend for the PowerDNS nameserver.
-
-Package: pdns-backend-opendbx
-Architecture: any
-Depends: pdns (= ${source:Version}), ${shlibs:Depends}
-Provides: pdns-backend
-Description: OpenDBX backend for PowerDNS
- This package contains a OpenDBX backend for the PowerDNS nameserver.
-
-Package: pdns-backend-mysql
-Architecture: any
-Depends: pdns (= ${source:Version}), ${shlibs:Depends}
-Provides: pdns-backend
-Description: MySQL backend for PowerDNS
- This package contains a MySQL backend for the PowerDNS nameserver.
-
-Package: pdns-backend-pgsql
-Architecture: any
-Depends: pdns (= ${source:Version}), ${shlibs:Depends}
-Provides: pdns-backend
-Description: Generic PostgreSQL backend for PowerDNS
- This package contains a generic PostgreSQL backend 
- for the PowerDNS nameserver. It has configurable SQL statements.
-
-Package: pdns-backend-sqlite
-Architecture: any
-Depends: pdns (= ${source:Version}), ${shlibs:Depends}
-Provides: pdns-backend
-Description: SQLite backend for PowerDNS
- This package contains a generic SQLite backend for SQLite.
-
-Package: pdns-backend-oracle
-Architecture: any
-Depends: pdns (= ${source:Version}), ${shlibs:Depends}
-Provides: pdns-backend
-Description: Oracle backend for PowerDNS
- This package contains a generic Oracle backend for PowerDNS.
-
diff --git a/debian/pdns-doc.postinst b/debian/pdns-doc.postinst
deleted file mode 100755 (executable)
index 991c191..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-set -e
-
-update_docbase() {
-       if command -v install-docs >/dev/null 2>&1 ; then
-               install-docs -i /usr/share/doc-base/pdns
-       fi
-}
-
-
-if [ "$1" = "configure" -o "$1" = "abort-upgrade" ] ; then
-       update_docbase
-fi
-
diff --git a/debian/pdns-doc.prerm b/debian/pdns-doc.prerm
deleted file mode 100755 (executable)
index 378fd30..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-set -e
-
-update_docbase() {
-       if command -v install-docs >/dev/null 2>&1 ; then
-               install-docs -r pdns
-       fi
-}
-
-if [ "$1" = "remove" ] ; then
-       update_docbase
-fi
index 7b3d4ebbff2b77995727070556c9a47106188c06..bcb7eaac637e739ec80536e9ff87de005c4a59e4 100755 (executable)
@@ -1,47 +1,12 @@
 #!/usr/bin/make -f
+# This rules file is usable only for PowerDNS.COM static builds.
+# If you want a Debian-downstream-style package, please use the packaging from Debian.
 
 tmpdir         := $(shell pwd)/debian/tmp
-be_tmpdir      := $(shell pwd)/debian/tmp-backend
-tools_tmpdir:= $(shell pwd)/debian/tmp-tools
-backends       := bind opendbx ldap pipe gmysql gpgsql gsqlite3 random
-debs           := bind opendbx ldap pipe pgsql sqlite sqlite3 random
-
-binary-doc:
-       -make -C pdns/docs html/index.html
-
-       rm -rf "$(tmpdir)"
-
-       install -d -m 755 -o root -g root \
-               "$(tmpdir)"/usr/share/doc/pdns/html
-       set -e ; for i in pdns/docs/html/* ; do \
-               install -p -m 644 -o root -g root "$$i" \
-                       "$(tmpdir)"/usr/share/doc/pdns/html/ ; \
-               done
-
-       install -d -m 755 -o root -g root \
-               "$(tmpdir)"/usr/share/doc/pdns-doc
-       install -p -m 644 -o root -g root debian/changelog \
-                       "$(tmpdir)"/usr/share/doc/pdns-doc/changelog.Debian
-       gzip -9 "$(tmpdir)"/usr/share/doc/pdns-doc/*
-       install -p -m 644 -o root -g root debian/copyright \
-                       "$(tmpdir)"/usr/share/doc/pdns-doc/
-
-       install -d -m 755 -o root -g root "$(tmpdir)"/usr/share/doc-base
-       install -p -m 644 -o root -g root debian/doc-base \
-                       "$(tmpdir)"/usr/share/doc-base/pdns
-
-       install -d -m 755 -o root -g root "$(tmpdir)"/DEBIAN
-       install -p -m 755 -o root -g root debian/pdns-doc.prerm \
-                       "$(tmpdir)"/DEBIAN/prerm
-       install -p -m 755 -o root -g root debian/pdns-doc.postinst \
-                       "$(tmpdir)"/DEBIAN/postinst
-
-       dpkg-gencontrol -fdebian/files -cdebian/control -ldebian/changelog -isp -ppdns-doc -P"$(tmpdir)"
-       dpkg --build "$(tmpdir)" ..
-
+tools_tmpdir   := $(shell pwd)/debian/tmp-tools
 
 build-static stamp-build-static:
-               ./configure \
+       ./configure \
                CXX=$(shell pwd)/build-scripts/semistaticg++ \
                PKG_CONFIG_PATH=/opt/botan-1.10/lib/pkgconfig/ \
                --prefix=/usr \
@@ -57,25 +22,9 @@ build-static stamp-build-static:
                --enable-static-binaries \
                --enable-tools
        make -j4
-
        touch stamp-build-static
 
 
-build stamp-build: configure
-       ./configure \
-               --prefix=/usr \
-               --libexecdir='$${prefix}/lib' \
-               --libdir='$${prefix}/lib' \
-               --sysconfdir=/etc/powerdns \
-               --infodir='$${datadir}/info' \
-               --mandir='$${datadir}/man' \
-               --with-dynmodules="$(backends)" \
-               --with-modules="geo" \
-               --enable-tools
-       make
-       touch stamp-build
-
-
 binary-main-prepare: 
        rm -f debian/substvars
        rm -rf "$(tmpdir)" "$(tmpdir)"-*
@@ -148,59 +97,18 @@ binary-main-prepare:
        done
 
 
-
-binary-main: stamp-build binary-main-prepare
-       dpkg-shlibdeps -Tdebian/substvars "$(tmpdir)"/usr/bin/zone2sql \
-               "$(tmpdir)"/usr/sbin/pdns_server \
-               "$(tmpdir)"/usr/bin/pdns_control
-       dpkg-gencontrol -fdebian/files -cdebian/control -ldebian/changelog  -isp -ppdns -P"$(tmpdir)"
-       dpkg --build "$(tmpdir)" ..
-
-
 binary-static: stamp-build-static binary-main-prepare
        dpkg-gencontrol -fdebian/files -cdebian/control -ldebian/changelog  -isp -ppdns-static -P"$(tmpdir)"
        dpkg-gencontrol -fdebian/files -cdebian/control -ldebian/changelog  -isp -ppdns-tools -P"$(tools_tmpdir)"
        dpkg --build "$(tmpdir)" ..
        dpkg --build "$(tools_tmpdir)" ..
 
-binary-backend: stamp-build
-       rm -rf "$(tmpdir)"
-
-       install -d -m 755 -o root -g root "$(tmpdir)"
-       make DESTDIR="$(tmpdir)" install
-
-       chmod 644 "$(tmpdir)"/usr/lib/powerdns/*
-
-       set -e ; for be in $(debs) ; do \
-               rm -f debian/substvars ; \
-               rm -rf "$(be_tmpdir)" ; \
-               pkg=pdns-backend-$$be ; \
-               \
-               for file in $$(cd "$(tmpdir)" ; find . -name "*$$be*") ; do \
-                       install -d -m 755 -o root -g root "$(be_tmpdir)"/$$(dirname "$$file") ; \
-                       mv "$(tmpdir)"/"$$file" "$(be_tmpdir)"/"$$file" ; \
-               done ; \
-               \
-               install -d -m 755 -o root -g root "$(be_tmpdir)"/usr/share/doc ; \
-               ln -s pdns "$(be_tmpdir)"/usr/share/doc/$$pkg ; \
-               \
-               install -d -m 755 -o root -g root "$(be_tmpdir)"/DEBIAN ; \
-               dpkg-shlibdeps -Tdebian/substvars "$(be_tmpdir)"/usr/lib/powerdns/*.so ; \
-               dpkg-gencontrol -fdebian/files -cdebian/control -ldebian/changelog  -isp -p$$pkg -P"$(be_tmpdir)" ; \
-               dpkg --build "$(be_tmpdir)" .. ; \
-       done
-
-
-binary: binary-indep binary-arch
-binary-indep: binary-doc
-binary-arch: binary-main binary-backend
 
 clean:
        -make distclean
        -make -C pdns/docs clean
        rm -f debian/files debian/substvars stamp-build stamp-build-static
-       rm -rf "$(tmpdir)" "$(be_tmpdir)"
+       rm -rf "$(tmpdir)"
 
-.PHONY: clean build binary binary-arch binary-indep
-.PHONY: binary-doc binary-main binary-backend
+.PHONY: clean