Skip to content

Instantly share code, notes, and snippets.

@evax
Created October 16, 2013 17:11
Show Gist options
  • Save evax/7011359 to your computer and use it in GitHub Desktop.
Save evax/7011359 to your computer and use it in GitHub Desktop.
pdns patch to build a .deb with http remote backend support
diff --git a/configure.ac b/configure.ac
index 72527c6..e6799fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,7 @@ AC_INIT([pdns], [git])
dnl AC_SUBST([DIST_HOST], [TO_BE_PATCHED])
dnl End patch area.
AC_CONFIG_SRCDIR([pdns/receiver.cc])
-AM_INIT_AUTOMAKE([foreign tar-ustar -Wno-portability subdir-objects])
+AM_INIT_AUTOMAKE([foreign tar-ustar -Wno-portability])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CANONICAL_HOST
LT_INIT
diff --git a/debian/control b/debian/control
index 4de4568..df244f2 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: net
Priority: extra
Standards-Version: 3.9.3
Maintainer: bert hubert <bert.hubert@netherlabs.nl>
-Build-Depends: autoconf, libtool, flex, bison, docbook-utils, libmysqlclient-dev, postgresql-dev | libpq-dev, libgdbm-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, dh-autoreconf, debhelper (>= 8), libcrypto++-dev, xmlto, libboost-test-dev, dblatex, xmltex, automake, docbook-xml, libltdl-dev, po-debconf
+Build-Depends: autoconf, libtool, flex, bison, asciidoc, socat, libcurl4-openssl-dev, docbook-utils, libmysqlclient-dev, postgresql-dev | libpq-dev, libgdbm-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, dh-autoreconf, debhelper (>= 8), libcrypto++-dev, xmlto, libboost-test-dev, dblatex, xmltex, automake, docbook-xml, libltdl-dev, po-debconf
Package: pdns-server
Architecture: any
diff --git a/debian/rules b/debian/rules
index 8ee853a..679fff2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -45,9 +45,11 @@ else
--with-modules="" \
--with-pgsql-includes=`pg_config --includedir` \
--with-mysql-lib=/usr/lib/$(DEB_HOST_MULTIARCH) \
+ --enable-remotebackend-http \
+ --enable-tools \
+ --enable-unit-tests \
--with-boost=/usr \
--enable-cryptopp \
- --enable-unit-tests \
--disable-recursor
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment