From 97142af10bb538ce3db2e6a3845bbcf273d75df2 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 28 Oct 2015 12:40:58 +0100 Subject: [PATCH] Add pdns-backend-opendbx package to debian --- .../config/pdns.local.opendbx.conf | 22 +++++++++++++++++++ build-scripts/debian-authoritative/control | 16 +++++++++++++- .../pdns-backend-opendbx.examples | 1 + .../pdns-backend-opendbx.install | 1 + .../pdns-backend-opendbx.postinst | 21 ++++++++++++++++++ .../pdns-backend-opendbx.prerm | 14 ++++++++++++ build-scripts/debian-authoritative/rules | 2 +- 7 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 build-scripts/debian-authoritative/config/pdns.local.opendbx.conf create mode 100644 build-scripts/debian-authoritative/pdns-backend-opendbx.examples create mode 100644 build-scripts/debian-authoritative/pdns-backend-opendbx.install create mode 100644 build-scripts/debian-authoritative/pdns-backend-opendbx.postinst create mode 100644 build-scripts/debian-authoritative/pdns-backend-opendbx.prerm diff --git a/build-scripts/debian-authoritative/config/pdns.local.opendbx.conf b/build-scripts/debian-authoritative/config/pdns.local.opendbx.conf new file mode 100644 index 000000000..3de13a998 --- /dev/null +++ b/build-scripts/debian-authoritative/config/pdns.local.opendbx.conf @@ -0,0 +1,22 @@ +# OpenDBX Configuration +# +# The backend to use +# opendbx-backend= +# +# The database host to read from +# opendbx-host-read= +# +# The database host to write to +# opendbx-host-write= +# +# The port on which the database hosts listen +# opendbx-port= +# +# The name of the database +# opendbx-database= +# +# The username to connect to the database +# opendbx-username= +# +# The password to connect to the database +# opendbx-password diff --git a/build-scripts/debian-authoritative/control b/build-scripts/debian-authoritative/control index cf1ff99df..72bc357f9 100644 --- a/build-scripts/debian-authoritative/control +++ b/build-scripts/debian-authoritative/control @@ -4,7 +4,7 @@ Priority: extra Standards-Version: 3.9.6 Maintainer: PowerDNS Autobuilder Origin: PowerDNS -Build-Depends: debhelper (>= 9~), dh-autoreconf, dh-systemd, po-debconf, libtool, flex, bison, libmysqlclient-dev, libpq-dev, libssl-dev, libpolarssl-dev, libgdbm-dev, libldap2-dev, libsqlite3-dev, dpkg-dev (>= 1.17.0~), libboost-dev, libboost-serialization-dev, libboost-program-options-dev, libboost-test-dev, autotools-dev, automake, autoconf, liblua5.2-dev, pkg-config, libcrypto++-dev, ragel, libgmp-dev, libbotan1.10-dev, libcurl4-openssl-dev, libzmq-dev, liblmdb-dev, libyaml-cpp-dev (>= 0.5), libgeoip-dev +Build-Depends: debhelper (>= 9~), dh-autoreconf, dh-systemd, po-debconf, libtool, flex, bison, libmysqlclient-dev, libpq-dev, libssl-dev, libpolarssl-dev, libgdbm-dev, libldap2-dev, libsqlite3-dev, dpkg-dev (>= 1.17.0~), libboost-dev, libboost-serialization-dev, libboost-program-options-dev, libboost-test-dev, autotools-dev, automake, autoconf, liblua5.2-dev, pkg-config, libcrypto++-dev, ragel, libgmp-dev, libbotan1.10-dev, libcurl4-openssl-dev, libzmq-dev, liblmdb-dev, libyaml-cpp-dev (>= 0.5), libgeoip-dev, libopendbx1-dev Homepage: http://www.powerdns.com/ Package: pdns-server @@ -183,6 +183,20 @@ Description: remote backend for PowerDNS This package contains the remote backend for PowerDNS. It is suitable for serving data acquired from an AF_UNIX, pipe, or HTTP connector. +Package: pdns-backend-opendbx +Architecture: any +Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends} +Provides: pdns-backend +Description: OpenDBX backend for PowerDNS + 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. + PowerDNS tries to emphasize speed and security. + . + This package contains the OpenDBX backend for PowerDNS. Please install + the libopendbx1-DATABASE package to allow OpenDBX to connect to + the chosen database. + Package: pdns-backend-mydns Architecture: any Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends} diff --git a/build-scripts/debian-authoritative/pdns-backend-opendbx.examples b/build-scripts/debian-authoritative/pdns-backend-opendbx.examples new file mode 100644 index 000000000..08fcc7a36 --- /dev/null +++ b/build-scripts/debian-authoritative/pdns-backend-opendbx.examples @@ -0,0 +1 @@ +debian/config/pdns.local.opendbx.conf diff --git a/build-scripts/debian-authoritative/pdns-backend-opendbx.install b/build-scripts/debian-authoritative/pdns-backend-opendbx.install new file mode 100644 index 000000000..bc796d1b0 --- /dev/null +++ b/build-scripts/debian-authoritative/pdns-backend-opendbx.install @@ -0,0 +1 @@ +usr/lib/*/pdns/libopendbxbackend.so* diff --git a/build-scripts/debian-authoritative/pdns-backend-opendbx.postinst b/build-scripts/debian-authoritative/pdns-backend-opendbx.postinst new file mode 100644 index 000000000..21cca4bf8 --- /dev/null +++ b/build-scripts/debian-authoritative/pdns-backend-opendbx.postinst @@ -0,0 +1,21 @@ +#!/bin/sh +# +# postinst script for pdns-backend-opendbx + +set -e + +if [ -n "$PDNSDEBUG" ]; then + echo "now debugging $0 $@" + set -x +fi + +# Activate trigger +dpkg-trigger pdns-server + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + diff --git a/build-scripts/debian-authoritative/pdns-backend-opendbx.prerm b/build-scripts/debian-authoritative/pdns-backend-opendbx.prerm new file mode 100644 index 000000000..3298654dd --- /dev/null +++ b/build-scripts/debian-authoritative/pdns-backend-opendbx.prerm @@ -0,0 +1,14 @@ +#!/bin/sh +# +# Add call to init script to actually stop pdns. + +set -e + +if [ -x "/etc/init.d/pdns" ]; then + invoke-rc.d pdns stop || exit $? +fi + +#DEBHELPER# + +exit 0 + diff --git a/build-scripts/debian-authoritative/rules b/build-scripts/debian-authoritative/rules index c8a425005..d838c6dc5 100755 --- a/build-scripts/debian-authoritative/rules +++ b/build-scripts/debian-authoritative/rules @@ -5,7 +5,7 @@ version := $(shell dpkg-parsechangelog -SVersion).$(shell dpkg-vendor --query Ve CXXFLAGS += -DPACKAGEVERSION='"$(version)"' # Backends -backends := bind ldap pipe gmysql gpgsql gsqlite3 geoip lua mydns remote random +backends := bind ldap pipe gmysql gpgsql gsqlite3 geoip lua mydns remote random opendbx DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) -- 2.40.0