Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/pdns: pdns-3.2.ebuild metadata.xml ChangeLog
Date: Mon, 20 May 2013 19:05:56
Message-Id: 20130520190548.519272171E@flycatcher.gentoo.org
1 dev-zero 13/05/20 19:05:48
2
3 Modified: metadata.xml ChangeLog
4 Added: pdns-3.2.ebuild
5 Log:
6 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.
7
8 (Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0x1E0CA85F!)
9
10 Revision Changes Path
11 1.7 net-dns/pdns/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/metadata.xml?rev=1.7&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/metadata.xml?rev=1.7&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/metadata.xml?r1=1.6&r2=1.7
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-dns/pdns/metadata.xml,v
20 retrieving revision 1.6
21 retrieving revision 1.7
22 diff -u -r1.6 -r1.7
23 --- metadata.xml 24 Sep 2011 09:52:14 -0000 1.6
24 +++ metadata.xml 20 May 2013 19:05:48 -0000 1.7
25 @@ -12,6 +12,12 @@
26 standards documents. Furthermore, PowerDNS interfaces with almost any database.
27 </longdescription>
28 <use>
29 - <flag name='opendbx'>Enable the OpenDBX backend</flag>
30 + <flag name='botan'>Make it possible to use the <pkg>dev-libs/botan</pkg> library for crypto-related stuff (like DNSSec) which can be significantly faster than PolarSSL.</flag>
31 + <flag name='cryptopp'>Make it possible to use the <pkg>dev-libs/crypto++</pkg> library for crypto-related stuff (like DNSSec) which can be significantly faster than PolarSSL.</flag>
32 + <flag name='mydns'>Making it possible to use a MyDNS MySQL database with PowerDNS (not recommended for new deployments).</flag>
33 + <flag name='opendbx'>Use a database supported by <pkg>dev-db/opendbx</pkg> as backend.</flag>
34 + <flag name='remote'>Use a generic socket or pipe as a backend (via JSON RPC requests).</flag>
35 + <flag name='remote-http'>Enable remote connections to HTTP as backends (via RESTful JSON requests).</flag>
36 + <flag name='tinydns'>Use a TinyDNS CDB database as backend.</flag>
37 </use>
38 </pkgmetadata>
39
40
41
42 1.87 net-dns/pdns/ChangeLog
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/ChangeLog?rev=1.87&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/ChangeLog?rev=1.87&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/ChangeLog?r1=1.86&r2=1.87
47
48 Index: ChangeLog
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v
51 retrieving revision 1.86
52 retrieving revision 1.87
53 diff -u -r1.86 -r1.87
54 --- ChangeLog 25 Nov 2012 16:12:21 -0000 1.86
55 +++ ChangeLog 20 May 2013 19:05:48 -0000 1.87
56 @@ -1,6 +1,18 @@
57 # ChangeLog for net-dns/pdns
58 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
59 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.86 2012/11/25 16:12:21 swegener Exp $
60 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
61 +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.87 2013/05/20 19:05:48 dev-zero Exp $
62 +
63 +*pdns-3.2 (20 May 2013)
64 +
65 + 20 May 2013; Tiziano Müller <dev-zero@g.o>
66 + +files/pdns-3.2-fix-autoconf.patch,
67 + +files/pdns-3.2-fix-conditional-polarssl.patch,
68 + +files/pdns-3.2-fix-curl-link.patch, +files/pdns-3.2-lib_lua.patch,
69 + +pdns-3.2.ebuild, metadata.xml:
70 + Version bump (bug #456412), add support for using botan or crypto++ as well as
71 + lua-, odbc-, remote-, mydns and tinydns-backends. Fixed a lot of build issues
72 + in the build-system and depend on in-tree version of PolarSSL instead of the
73 + bundled one.
74
75 25 Nov 2012; Sven Wegener <swegener@g.o> pdns-3.0.1.ebuild,
76 pdns-3.1.ebuild:
77
78
79
80 1.1 net-dns/pdns/pdns-3.2.ebuild
81
82 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/pdns-3.2.ebuild?rev=1.1&view=markup
83 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/pdns-3.2.ebuild?rev=1.1&content-type=text/plain
84
85 Index: pdns-3.2.ebuild
86 ===================================================================
87 # Copyright 1999-2013 Gentoo Foundation
88 # Distributed under the terms of the GNU General Public License v2
89 # $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-3.2.ebuild,v 1.1 2013/05/20 19:05:48 dev-zero Exp $
90
91 EAPI=5
92
93 inherit autotools eutils multilib systemd user toolchain-funcs
94
95 DESCRIPTION="The PowerDNS Daemon"
96 HOMEPAGE="http://www.powerdns.com/"
97 SRC_URI="http://downloads.powerdns.com/releases/${P}.tar.gz"
98
99 LICENSE="GPL-2"
100 SLOT="0"
101 KEYWORDS=""
102
103 # other possible flags:
104 # db2: we lack the dep
105 # oracle: dito (need Oracle Client Libraries)
106 # xdb: (almost) dead, surely not supported
107
108 # TODO: sort out static deps
109
110 IUSE="botan cryptopp debug doc ldap lua mydns mysql odbc opendbx postgres remote
111 remote-http sqlite static tinydns"
112
113 REQUIRED_USE="mydns? ( mysql )"
114
115 RDEPEND="net-libs/polarssl
116 botan? ( =dev-libs/botan-1.10* )
117 cryptopp? ( dev-libs/crypto++ )
118 lua? ( dev-lang/lua )
119 mysql? ( virtual/mysql )
120 postgres? ( dev-db/postgresql-base:= )
121 ldap? ( >=net-nds/openldap-2.0.27-r4 )
122 sqlite? ( dev-db/sqlite:3 )
123 odbc? ( dev-db/unixODBC )
124 opendbx? ( dev-db/opendbx )
125 remote-http? ( net-misc/curl )
126 tinydns? ( dev-db/cdb )
127 !static? ( >=dev-libs/boost-1.34:= )"
128 DEPEND="${RDEPEND}
129 virtual/pkgconfig
130 static? ( >=dev-libs/boost-1.34[static-libs] )
131 doc? ( app-doc/doxygen )"
132
133 src_prepare() {
134 epatch \
135 "${FILESDIR}/${P}-fix-autoconf.patch" \
136 "${FILESDIR}/${P}-fix-curl-link.patch" \
137 "${FILESDIR}/${P}-fix-conditional-polarssl.patch" \
138 "${FILESDIR}/${P}-lib_lua.patch"
139 eautoreconf
140 }
141
142 src_configure() {
143 local dynmodules="pipe geo" # the default backends, always enabled
144 local modules=""
145
146 #use db2 && dynmodules+=" db2"
147 use ldap && dynmodules+=" ldap"
148 use lua && dynmodules+=" lua"
149 use mydns && dynmodules+=" mydns"
150 use mysql && dynmodules+=" gmysql"
151 use odbc && dynmodules+=" godbc"
152 use opendbx && dynmodules+=" opendbx"
153 #use oracle && dynmodules+=" goracle oracle"
154 use postgres && dynmodules+=" gpgsql"
155 use remote && dynmodules+=" remote"
156 use sqlite && dynmodules+=" gsqlite3"
157 use tinydns && dynmodules+=" tinydns"
158 #use xdb && dynmodules+=" xdb"
159
160 if use static ; then
161 modules="${dynmodules}"
162 dynmodules=""
163 fi
164
165 use botan && myconf+=" --enable-botan1.10"
166 use cryptopp && myconf+=" --enable-cryptopp"
167 use debug && myconf+=" --enable-verbose-logging"
168 use remote-http && myconf+=" --enable-remotebackend-http"
169
170 econf \
171 --disable-static \
172 --sysconfdir=/etc/powerdns \
173 --libdir=/usr/$(get_libdir)/powerdns \
174 --disable-recursor \
175 --with-modules="${modules}" \
176 --with-dynmodules="${dynmodules}" \
177 --with-pgsql-includes=/usr/include \
178 --with-pgsql-lib=/usr/$(get_libdir) \
179 --with-mysql-lib=/usr/$(get_libdir) \
180 $(use_with lua) \
181 $(use_enable static static-binaries) \
182 ${myconf}
183 }
184
185 src_compile() {
186 default
187 use doc && emake -C codedocs codedocs
188 }
189
190 src_install () {
191 default
192
193 mv "${D}"/etc/powerdns/pdns.conf{-dist,}
194
195 fperms 0700 /etc/powerdns
196 fperms 0600 /etc/powerdns/pdns.conf
197
198 # set defaults: setuid=pdns, setgid=pdns
199 sed -i \
200 -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
201 "${D}"/etc/powerdns/pdns.conf
202
203 doinitd "${FILESDIR}"/pdns
204 systemd_newunit contrib/systemd-pdns.service pdns.service
205
206 keepdir /var/empty
207
208 use doc && dohtml -r codedocs/html/.
209
210 # Install development headers
211 insinto /usr/include/pdns
212 doins pdns/*.hh
213 insinto /usr/include/pdns/backends/gsql
214 doins pdns/backends/gsql/*.hh
215
216 if use ldap ; then
217 insinto /etc/openldap/schema
218 doins "${FILESDIR}"/dnsdomain2.schema
219 fi
220
221 prune_libtool_files --all
222 }
223
224 pkg_preinst() {
225 enewgroup pdns
226 enewuser pdns -1 -1 /var/empty pdns
227 }
228
229 pkg_postinst() {
230 elog "PowerDNS provides multiple instances support. You can create more instances"
231 elog "by symlinking the pdns init script to another name."
232 elog
233 elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
234 elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
235
236 if use ldap ; then
237 ewarn "The official LDAP backend module is only compile-tested by upstream."
238 ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
239 fi
240 }