1 |
dev-zero 13/05/20 19:05:48 |
2 |
|
3 |
Added: pdns-3.2-lib_lua.patch pdns-3.2-fix-autoconf.patch |
4 |
pdns-3.2-fix-curl-link.patch |
5 |
pdns-3.2-fix-conditional-polarssl.patch |
6 |
Log: |
7 |
Version bump (bug #456412), add support for using botan or crypto++ as well as lua-, odbc-, remote-, mydns and tinydns-backends. Fixed a lot of build issues in the build-system and depend on in-tree version of PolarSSL instead of the bundled one. |
8 |
|
9 |
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0x1E0CA85F!) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 net-dns/pdns/files/pdns-3.2-lib_lua.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/files/pdns-3.2-lib_lua.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/files/pdns-3.2-lib_lua.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: pdns-3.2-lib_lua.patch |
18 |
=================================================================== |
19 |
diff --git a/modules/luabackend/Makefile.am b/modules/luabackend/Makefile.am |
20 |
index a2374bd..1c7bd9a 100644 |
21 |
--- a/modules/luabackend/Makefile.am |
22 |
+++ b/modules/luabackend/Makefile.am |
23 |
@@ -1,7 +1,7 @@ |
24 |
-AM_CPPFLAGS=@THREADFLAGS@ |
25 |
+AM_CPPFLAGS=$(LUA_CFLAGS) @THREADFLAGS@ |
26 |
EXTRA_DIST=OBJECTFILES OBJECTLIBS |
27 |
|
28 |
-INCLUDES=-I/usr/include/lua5.1 |
29 |
+#INCLUDES=-I/usr/include/lua5.1 |
30 |
#INCLUDES=-I/usr/local/include/luajit-2.0 -DUSE_LUAJIT |
31 |
|
32 |
lib_LTLIBRARIES = libluabackend.la |
33 |
@@ -9,5 +9,6 @@ lib_LTLIBRARIES = libluabackend.la |
34 |
libluabackend_la_SOURCES=luabackend.cc luabackend.hh minimal.cc reload.cc lua_functions.cc master.cc private.cc slave.cc supermaster.cc dnssec.cc \ |
35 |
lua_functions.hh |
36 |
|
37 |
-libluabackend_la_LDFLAGS=-module -avoid-version -llua5.1 |
38 |
+libluabackend_la_LDFLAGS=-module -avoid-version |
39 |
+libluabackend_la_LIBADD=$(LUA_LIBS) |
40 |
#-lluajit-5.1 |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-dns/pdns/files/pdns-3.2-fix-autoconf.patch |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/files/pdns-3.2-fix-autoconf.patch?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/files/pdns-3.2-fix-autoconf.patch?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: pdns-3.2-fix-autoconf.patch |
50 |
=================================================================== |
51 |
diff --git a/configure.ac b/configure.ac |
52 |
index 1beab82..243b693 100644 |
53 |
--- a/configure.ac |
54 |
+++ b/configure.ac |
55 |
@@ -2,7 +2,7 @@ dnl intro |
56 |
AC_INIT(pdns/receiver.cc) |
57 |
AM_INIT_AUTOMAKE(pdns, 3.2) |
58 |
AC_CANONICAL_HOST |
59 |
-AM_CONFIG_HEADER(config.h) |
60 |
+AC_CONFIG_HEADERS([config.h]) |
61 |
AC_C_BIGENDIAN |
62 |
AC_PREREQ(2.52) |
63 |
: ${CXXFLAGS="-Wall -O2"} |
64 |
@@ -180,7 +180,7 @@ AC_ARG_WITH([system-polarssl], |
65 |
[system_polarssl=$withval], |
66 |
[system_polarssl=yes]) |
67 |
AC_MSG_RESULT($system_polarssl) |
68 |
-AM_CONDITIONAL(HAVE_LIBPOLARSSL, false) |
69 |
+AM_CONDITIONAL(HAVE_LIBPOLARSSL, test x$system_polarssl = xyes) |
70 |
if test x$system_polarssl = xyes; then |
71 |
AC_MSG_CHECKING([PolarSSL version >= 1.1]) |
72 |
AC_COMPILE_IFELSE( |
73 |
|
74 |
|
75 |
|
76 |
1.1 net-dns/pdns/files/pdns-3.2-fix-curl-link.patch |
77 |
|
78 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/files/pdns-3.2-fix-curl-link.patch?rev=1.1&view=markup |
79 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/files/pdns-3.2-fix-curl-link.patch?rev=1.1&content-type=text/plain |
80 |
|
81 |
Index: pdns-3.2-fix-curl-link.patch |
82 |
=================================================================== |
83 |
diff --git a/modules/remotebackend/Makefile.am b/modules/remotebackend/Makefile.am |
84 |
index a47f8bb..670ecbf 100644 |
85 |
--- a/modules/remotebackend/Makefile.am |
86 |
+++ b/modules/remotebackend/Makefile.am |
87 |
@@ -10,4 +10,4 @@ lib_LTLIBRARIES = libremotebackend.la |
88 |
libremotebackend_la_SOURCES=remotebackend.hh remotebackend.cc unixconnector.cc httpconnector.cc pipeconnector.cc |
89 |
|
90 |
libremotebackend_la_LDFLAGS=-module -avoid-version |
91 |
-libremotebackend_la_LIBS=$(LIBCURL_LIBS) |
92 |
+libremotebackend_la_LIBADD=$(LIBCURL_LIBS) |
93 |
|
94 |
|
95 |
|
96 |
1.1 net-dns/pdns/files/pdns-3.2-fix-conditional-polarssl.patch |
97 |
|
98 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/files/pdns-3.2-fix-conditional-polarssl.patch?rev=1.1&view=markup |
99 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/files/pdns-3.2-fix-conditional-polarssl.patch?rev=1.1&content-type=text/plain |
100 |
|
101 |
Index: pdns-3.2-fix-conditional-polarssl.patch |
102 |
=================================================================== |
103 |
diff --git a/pdns/Makefile.am b/pdns/Makefile.am |
104 |
index 8e7a2eb..57b4a90 100644 |
105 |
--- a/pdns/Makefile.am |
106 |
+++ b/pdns/Makefile.am |
107 |
@@ -68,8 +68,12 @@ md5.hh signingpipe.cc signingpipe.hh dnslabeltext.cc lua-pdns.cc lua-auth.cc lua |
108 |
ednssubnet.cc ednssubnet.hh cachecleaner.hh json.cc json.hh |
109 |
|
110 |
# |
111 |
-pdns_server_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_SERIALIZATION_LDFLAGS) -rdynamic |
112 |
+pdns_server_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_SERIALIZATION_LDFLAGS) -rdynamic |
113 |
+if HAVE_LIBPOLARSSL |
114 |
+pdns_server_LDADD= $(BOOST_SERIALIZATION_LIBS) $(LUA_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) $(MYSQL_lib) |
115 |
+else |
116 |
pdns_server_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_SERIALIZATION_LIBS) $(LUA_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) $(MYSQL_lib) |
117 |
+endif |
118 |
|
119 |
if BOTAN110 |
120 |
pdns_server_SOURCES += botan110signers.cc botansigners.cc |
121 |
@@ -106,7 +110,11 @@ pdnssec_SOURCES=pdnssec.cc dbdnsseckeeper.cc sstuff.hh dnsparser.cc dnsparser.hh |
122 |
|
123 |
|
124 |
pdnssec_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) |
125 |
+if HAVE_LIBPOLARSSL |
126 |
+pdnssec_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) $(MYSQL_lib) |
127 |
+else |
128 |
pdnssec_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) $(MYSQL_lib) |
129 |
+endif |
130 |
|
131 |
if BOTAN110 |
132 |
pdnssec_SOURCES += botan110signers.cc botansigners.cc |