diff options
author | Sven Wegener <swegener@gentoo.org> | 2005-07-17 08:46:08 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2005-07-17 08:46:08 +0000 |
commit | 5b740294927af01057beb493f89db12a3b76f0dd (patch) | |
tree | a47e2a7d1b3c9794a5835d6e11c2a32f9a2cdec1 /net-dns | |
parent | cleanup (diff) | |
download | gentoo-2-5b740294927af01057beb493f89db12a3b76f0dd.tar.gz gentoo-2-5b740294927af01057beb493f89db12a3b76f0dd.tar.bz2 gentoo-2-5b740294927af01057beb493f89db12a3b76f0dd.zip |
Added a small patch that makes pdns load the default mysql options from my.cnf.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/pdns/ChangeLog | 6 | ||||
-rw-r--r-- | net-dns/pdns/files/2.9.18-default-mysql-options.patch | 13 | ||||
-rw-r--r-- | net-dns/pdns/pdns-2.9.18.ebuild | 13 |
3 files changed, 29 insertions, 3 deletions
diff --git a/net-dns/pdns/ChangeLog b/net-dns/pdns/ChangeLog index c00d8ad79d4e..a57250eac2f1 100644 --- a/net-dns/pdns/ChangeLog +++ b/net-dns/pdns/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-dns/pdns # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.16 2005/07/17 04:50:51 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.17 2005/07/17 08:46:07 swegener Exp $ + + 17 Jul 2005; Sven Wegener <swegener@gentoo.org> + +files/2.9.18-default-mysql-options.patch, pdns-2.9.18.ebuild: + Added a small patch that makes pdns load the default mysql options from my.cnf. *pdns-2.9.18 (17 Jul 2005) 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 new file mode 100644 index 000000000000..a9048e13e10d --- /dev/null +++ b/net-dns/pdns/files/2.9.18-default-mysql-options.patch @@ -0,0 +1,13 @@ +diff -Nur pdns-2.9.18.orig/modules/gmysqlbackend/smysql.cc pdns-2.9.18/modules/gmysqlbackend/smysql.cc +--- pdns-2.9.18.orig/modules/gmysqlbackend/smysql.cc 2005-04-23 23:40:15.000000000 +0200 ++++ pdns-2.9.18/modules/gmysqlbackend/smysql.cc 2005-07-17 10:38:35.363597586 +0200 +@@ -15,6 +15,9 @@ + const string &password) + { + mysql_init(&d_db); ++#if MYSQL_VERSION_ID > 32349 ++ mysql_options(&d_db, MYSQL_READ_DEFAULT_GROUP, "client"); ++#endif + if (!mysql_real_connect(&d_db, host.empty() ? 0 : host.c_str(), + user.empty() ? 0 : user.c_str(), + password.empty() ? 0 : password.c_str(), diff --git a/net-dns/pdns/pdns-2.9.18.ebuild b/net-dns/pdns/pdns-2.9.18.ebuild index 1f0dde68b238..0e1c6670ccd5 100644 --- a/net-dns/pdns/pdns-2.9.18.ebuild +++ b/net-dns/pdns/pdns-2.9.18.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-2.9.18.ebuild,v 1.2 2005/07/17 05:05:48 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-2.9.18.ebuild,v 1.3 2005/07/17 08:46:07 swegener Exp $ + +inherit eutils DESCRIPTION="The PowerDNS Daemon" SRC_URI="http://downloads.powerdns.com/releases/${P}.tar.gz" @@ -14,7 +16,7 @@ DEPEND="mysql? ( >=dev-db/mysql-3.23.54a ) postgres? ( >=dev-cpp/libpqpp-4.0-r1 ) ldap? ( >=net-nds/openldap-2.0.27-r4 ) sqlite? ( =dev-db/sqlite-2.8* ) - recursor? ( dev-libs/boost ) + recursor? ( >=dev-libs/boost-1.31 ) tdb? ( dev-libs/tdb )" RDEPEND="${DEPEND}" @@ -22,6 +24,13 @@ RDEPEND="${DEPEND}" DEPEND="${DEPEND} doc? ( app-doc/doxygen )" +src_unpack() { + unpack ${A} + cd "${S}" + + epatch ${FILESDIR}/${PV}-default-mysql-options.patch +} + src_compile() { local modules="pipe geo" myconf="" |