Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/graaff:master commit in: net-dns/pdns/, net-dns/pdns/files/
Date: Mon, 31 Oct 2011 18:08:27
Message-Id: cd3040e86d3dead522f13ac342ddedaac6cd9f51.graaff@gentoo
1 commit: cd3040e86d3dead522f13ac342ddedaac6cd9f51
2 Author: Hans de Graaff <hans <AT> degraaff <DOT> org>
3 AuthorDate: Sun Oct 23 13:08:50 2011 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 23 13:08:50 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/graaff.git;a=commit;h=cd3040e8
7
8 Official 3.0 version is now in the tree.
9
10 ---
11 net-dns/pdns/ChangeLog | 12 --
12 net-dns/pdns/Manifest | 17 ---
13 .../pdns/files/2.9.18-default-mysql-options.patch | 13 ---
14 net-dns/pdns/files/pdns | 60 -----------
15 net-dns/pdns/files/pdns-2.9.22-gcc44.patch | 22 ----
16 net-dns/pdns/metadata.xml | 5 -
17 net-dns/pdns/pdns-3.0_rc2.ebuild | 109 --------------------
18 7 files changed, 0 insertions(+), 238 deletions(-)
19
20 diff --git a/net-dns/pdns/ChangeLog b/net-dns/pdns/ChangeLog
21 deleted file mode 100644
22 index 7cdbde4..0000000
23 --- a/net-dns/pdns/ChangeLog
24 +++ /dev/null
25 @@ -1,12 +0,0 @@
26 -# ChangeLog for net-dns/pdns
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: $
29 -
30 -*pdns-3.0_rc2 (30 May 2011)
31 -
32 - 30 May 2011; Hans de Graaff <graaff@g.o>
33 - +files/2.9.18-default-mysql-options.patch, +files/pdns-2.9.22-gcc44.patch,
34 - +pdns-3.0_rc2.ebuild, +files/pdns, +metadata.xml:
35 - Add RC version of pdns to test whether my bug with updating slaves from
36 - multiple masters is fixed.
37 -
38
39 diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest
40 deleted file mode 100644
41 index 8cc82dc..0000000
42 --- a/net-dns/pdns/Manifest
43 +++ /dev/null
44 @@ -1,17 +0,0 @@
45 ------BEGIN PGP SIGNED MESSAGE-----
46 -Hash: SHA256
47 -
48 -AUX 2.9.18-default-mysql-options.patch 606 RMD160 bfc5e2aeee2bc3e01a62a430b087e7ca5742a85b SHA1 d265706bb723f1a878a65c7c0db59a88e67f0816 SHA256 228a6c42a11a2eab82b68f8c04d5881f8be39746010675feba7ebf16add18151
49 -AUX pdns 1253 RMD160 304517b71ab729cf2419c043512bf58e4e5c459e SHA1 d020d7330af9313c40b812709aa2a7892c303ec0 SHA256 51b279ad0221c0b5d8c09c8cb91f46e4c99e372a4f1fb97378e6761647a59cc6
50 -AUX pdns-2.9.22-gcc44.patch 856 RMD160 3e477b236af42767aea3d55af4cb9f14cbca106d SHA1 0a206fee906f36eac630ad200a8d3866cd477a55 SHA256 1beba6a251e0c7a4a4d11dce41d2c5e9b809c3d32856aabce22225ebb02d3992
51 -DIST pdns-3.0-rc2.tar.gz 1181196 RMD160 be3edf9df708633a8d362e6798c93a1c0d849e16 SHA1 db2188546b704b36828f412a496c8f08ddb01741 SHA256 cf0d210a5423094953f3896a9731b98139724856fc3901fe9051d72c1d5a28be
52 -EBUILD pdns-3.0_rc2.ebuild 2813 RMD160 802ad6ec34fa9c948cb95e6c8e38f935c4f79cf2 SHA1 0b239f26742fd304b684a56d3cb96fd3589473a9 SHA256 3c70c1cb0e70637403ab71e3a5df41721f6b534feb5365b7c63ff08706cd6c61
53 -MISC ChangeLog 425 RMD160 be2a5124134aad828c5dbb9ecfed020dc63a7409 SHA1 dd5af6f391cbec2d8f9a9b93be1c8866c3f7fca9 SHA256 28383d3bb6c2981ff520b99b0fd599f17bf82894155bb366707a591f708177b3
54 -MISC metadata.xml 201 RMD160 bbf7920d9809941fb024d20016dbe2fb9f15ff97 SHA1 e629d21795e99a77bd0a6aded1a153fd12d5b2c5 SHA256 c90b12c6600840878686d4544dbc51d97b0715add76b40d9400415cdef6324ad
55 ------BEGIN PGP SIGNATURE-----
56 -Version: GnuPG v2.0.17 (GNU/Linux)
57 -
58 -iF4EAREIAAYFAk3jeTEACgkQrnu0mw69JkrH+AD/aBPJG0gADlUyLC9s/4eJtUTO
59 -9eEfeOAdNW3V99fj240A/0DJaP4A8f7BccBpEMXmlVLYCZU55NxzVrXNJ1Js0vuF
60 -=5X7M
61 ------END PGP SIGNATURE-----
62
63 diff --git a/net-dns/pdns/files/2.9.18-default-mysql-options.patch b/net-dns/pdns/files/2.9.18-default-mysql-options.patch
64 deleted file mode 100644
65 index a9048e1..0000000
66 --- a/net-dns/pdns/files/2.9.18-default-mysql-options.patch
67 +++ /dev/null
68 @@ -1,13 +0,0 @@
69 -diff -Nur pdns-2.9.18.orig/modules/gmysqlbackend/smysql.cc pdns-2.9.18/modules/gmysqlbackend/smysql.cc
70 ---- pdns-2.9.18.orig/modules/gmysqlbackend/smysql.cc 2005-04-23 23:40:15.000000000 +0200
71 -+++ pdns-2.9.18/modules/gmysqlbackend/smysql.cc 2005-07-17 10:38:35.363597586 +0200
72 -@@ -15,6 +15,9 @@
73 - const string &password)
74 - {
75 - mysql_init(&d_db);
76 -+#if MYSQL_VERSION_ID > 32349
77 -+ mysql_options(&d_db, MYSQL_READ_DEFAULT_GROUP, "client");
78 -+#endif
79 - if (!mysql_real_connect(&d_db, host.empty() ? 0 : host.c_str(),
80 - user.empty() ? 0 : user.c_str(),
81 - password.empty() ? 0 : password.c_str(),
82
83 diff --git a/net-dns/pdns/files/pdns b/net-dns/pdns/files/pdns
84 deleted file mode 100644
85 index cdbbdf3..0000000
86 --- a/net-dns/pdns/files/pdns
87 +++ /dev/null
88 @@ -1,60 +0,0 @@
89 -#!/sbin/runscript
90 -# Copyright 1999-2011 Gentoo Foundation
91 -# Distributed under the terms of the GNU General Public License v2
92 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/files/pdns,v 1.10 2007/05/07 20:19:18 swegener Exp $
93 -
94 -opts="reload monitor dump"
95 -
96 -PDNS_INSTANCE="${SVCNAME#pdns[.-]}"
97 -PDNS_CONFIG=""
98 -
99 -if [ -n "${PDNS_INSTANCE}" ] && [ "${PDNS_INSTANCE}" != "pdns" ]
100 -then
101 - PDNS_CONFIG="--config-name=${PDNS_INSTANCE}"
102 -else
103 - PDNS_INSTANCE="default"
104 -fi
105 -
106 -depend() {
107 - need net
108 -}
109 -
110 -start() {
111 - ebegin "Starting PowerDNS (${PDNS_INSTANCE})"
112 - /usr/sbin/pdns_server \
113 - ${PDNS_CONFIG} \
114 - --daemon=yes \
115 - --guardian=yes
116 - eend $?
117 -}
118 -
119 -stop() {
120 - ebegin "Stopping PowerDNS (${PDNS_INSTANCE})"
121 - /usr/bin/pdns_control ${PDNS_CONFIG} quit &>/dev/null
122 - eend $?
123 -}
124 -
125 -reload() {
126 - ebegin "Reloading PowerDNS (${PDNS_INSTANCE})"
127 - /usr/bin/pdns_control ${PDNS_CONFIG} cycle &>/dev/null
128 - eend $?
129 -}
130 -
131 -dump() {
132 - ebegin "Dumping PowerDNS (${PDNS_INSTANCE}) variables"
133 - /usr/bin/pdns_control ${PDNS_CONFIG} list
134 - eend $?
135 -}
136 -
137 -monitor() {
138 - ebegin "Starting PowerDNS (${PDNS_INSTANCE}) in monitor mode"
139 - /usr/sbin/pdns_server \
140 - ${PDNS_CONFIG} \
141 - --daemon=no \
142 - --guardian=no \
143 - --control-console=yes \
144 - --loglevel=9 \
145 - --log-dns-details=yes \
146 - --query-logging=yes
147 - eend $?
148 -}
149
150 diff --git a/net-dns/pdns/files/pdns-2.9.22-gcc44.patch b/net-dns/pdns/files/pdns-2.9.22-gcc44.patch
151 deleted file mode 100644
152 index 35c1c77..0000000
153 --- a/net-dns/pdns/files/pdns-2.9.22-gcc44.patch
154 +++ /dev/null
155 @@ -1,22 +0,0 @@
156 -diff -ur pdns-2.9.22.orig/pdns/dnsparser.cc pdns-2.9.22/pdns/dnsparser.cc
157 ---- pdns-2.9.22.orig/pdns/dnsparser.cc 2008-11-15 22:32:46.000000000 +0200
158 -+++ pdns-2.9.22/pdns/dnsparser.cc 2009-07-06 22:09:02.000000000 +0300
159 -@@ -16,6 +16,7 @@
160 - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
161 - */
162 -
163 -+#include <stdio.h>
164 - #include "dnsparser.hh"
165 - #include "dnswriter.hh"
166 - #include <boost/lexical_cast.hpp>
167 -diff -ur pdns-2.9.22.orig/pdns/rcpgenerator.cc pdns-2.9.22/pdns/rcpgenerator.cc
168 ---- pdns-2.9.22.orig/pdns/rcpgenerator.cc 2008-11-15 23:20:27.000000000 +0200
169 -+++ pdns-2.9.22/pdns/rcpgenerator.cc 2009-07-06 22:07:26.000000000 +0300
170 -@@ -16,6 +16,7 @@
171 - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
172 - */
173 -
174 -+#include <stdio.h>
175 - #include "rcpgenerator.hh"
176 - #include "dnsparser.hh"
177 - #include "misc.hh"
178
179 diff --git a/net-dns/pdns/metadata.xml b/net-dns/pdns/metadata.xml
180 deleted file mode 100644
181 index f977299..0000000
182 --- a/net-dns/pdns/metadata.xml
183 +++ /dev/null
184 @@ -1,5 +0,0 @@
185 -<?xml version = '1.0' encoding = 'UTF-8'?>
186 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
187 -<pkgmetadata>
188 -<maintainer><email>graaff@g.o</email></maintainer>
189 -</pkgmetadata>
190
191 diff --git a/net-dns/pdns/pdns-3.0_rc2.ebuild b/net-dns/pdns/pdns-3.0_rc2.ebuild
192 deleted file mode 100644
193 index 348ab4e..0000000
194 --- a/net-dns/pdns/pdns-3.0_rc2.ebuild
195 +++ /dev/null
196 @@ -1,109 +0,0 @@
197 -# Copyright 1999-2011 Gentoo Foundation
198 -# Distributed under the terms of the GNU General Public License v2
199 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-2.9.22-r1.ebuild,v 1.4 2010/11/08 22:43:29 swegener Exp $
200 -
201 -EAPI=2
202 -inherit eutils multilib
203 -
204 -DESCRIPTION="The PowerDNS Daemon"
205 -SRC_URI="http://downloads.powerdns.com/releases/pdns-3.0-rc2.tar.gz"
206 -HOMEPAGE="http://www.powerdns.com/"
207 -
208 -LICENSE="GPL-2"
209 -SLOT="0"
210 -KEYWORDS="~amd64 ~x86"
211 -IUSE="debug doc ldap mysql postgres sqlite sqlite3 static opendbx"
212 -
213 -RDEPEND="mysql? ( virtual/mysql )
214 - postgres? ( dev-db/postgresql-base )
215 - ldap? ( >=net-nds/openldap-2.0.27-r4 )
216 - sqlite? ( =dev-db/sqlite-2.8* )
217 - sqlite3? ( =dev-db/sqlite-3* )
218 - opendbx? ( dev-db/opendbx )
219 - >=dev-libs/boost-1.34
220 - >=dev-lang/lua-5.1"
221 -DEPEND="${RDEPEND}
222 - doc? ( app-doc/doxygen )"
223 -
224 -S="${WORKDIR}/pdns-3.0-rc2"
225 -
226 -src_prepare() {
227 -# epatch "${FILESDIR}"/2.9.18-default-mysql-options.patch \
228 -# "${FILESDIR}"/${P}-gcc44.patch
229 -echo
230 -}
231 -
232 -src_configure() {
233 - local modules="pipe geo" myconf=""
234 -
235 - use mysql && modules="${modules} gmysql"
236 - use postgres && modules="${modules} gpgsql"
237 - use sqlite && modules="${modules} gsqlite"
238 - use sqlite3 && modules="${modules} gsqlite3"
239 - use opendbx && modules="${modules} opendbx"
240 - use ldap && modules="${modules} ldap"
241 - use debug && myconf="${myconf} --enable-verbose-logging"
242 -
243 - econf \
244 - --sysconfdir=/etc/powerdns \
245 - --libdir=/usr/$(get_libdir)/powerdns \
246 - --disable-recursor \
247 - --with-modules= \
248 - --with-dynmodules="${modules}" \
249 - --with-pgsql-includes=/usr/include \
250 - --with-pgsql-lib=/usr/$(get_libdir) \
251 - --with-mysql-lib=/usr/$(get_libdir) \
252 - --with-sqlite-lib=/usr/$(get_libdir) \
253 - --with-sqlite3-lib=/usr/$(get_libdir) \
254 - $(use_enable static static-binaries) \
255 - ${myconf} \
256 - || die "econf failed"
257 -}
258 -
259 -src_compile() {
260 - default
261 -
262 - if use doc
263 - then
264 - emake -C codedocs codedocs || die "emake codedocs failed"
265 - fi
266 -}
267 -
268 -src_install () {
269 - make DESTDIR="${D}" install || die "make install failed"
270 -
271 - mv "${D}"/etc/powerdns/pdns.conf{-dist,}
272 -
273 - # set defaults: setuid=pdns, setgid=pdns
274 - sed -i \
275 - -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
276 - "${D}"/etc/powerdns/pdns.conf
277 -
278 - doinitd "${FILESDIR}"/pdns
279 -
280 - keepdir /var/empty
281 -
282 - dodoc ChangeLog README TODO
283 - use doc && dohtml -r codedocs/html/.
284 -
285 - # Install development headers
286 - insinto /usr/include/pdns
287 - doins pdns/*.hh
288 - insinto /usr/include/pdns/backends/gsql
289 - doins pdns/backends/gsql/*.hh
290 -}
291 -
292 -pkg_preinst() {
293 - enewgroup pdns
294 - enewuser pdns -1 -1 /var/empty pdns
295 -}
296 -
297 -pkg_postinst() {
298 - elog
299 - elog "PowerDNS provides multiple instances support. You can create more instances"
300 - elog "by symlinking the pdns init script to another name."
301 - elog
302 - elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
303 - elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
304 - elog
305 -}