Gentoo Archives: gentoo-commits

From: Sven Wegener <swegener@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns/
Date: Sun, 03 Sep 2017 20:48:34
Message-Id: 1504471653.58a680ee43e5ff4ed87351abd7f01ed8a923e4f7.swegener@gentoo
1 commit: 58a680ee43e5ff4ed87351abd7f01ed8a923e4f7
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 31 23:17:59 2017 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 3 20:47:33 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58a680ee
7
8 net-dns/pdns: Version bump
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 net-dns/pdns/Manifest | 1 +
13 net-dns/pdns/pdns-4.1.0_rc1.ebuild | 150 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 151 insertions(+)
15
16 diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest
17 index ae0d7eccd15..bc8e3b0769a 100644
18 --- a/net-dns/pdns/Manifest
19 +++ b/net-dns/pdns/Manifest
20 @@ -1,3 +1,4 @@
21 DIST pdns-4.0.2.tar.bz2 1314886 SHA256 d051e53b63f586c924f00ce8a81662f7bd285b461d125d4991538f92cf7e629d SHA512 6720289332ee5186f4c58a00a720f3bb58480c0ae7f09915148ca8b40e2dfdc77e2f14123df903692afa464539eeef6b21e8ea3d284278897751ba807e2cdffe WHIRLPOOL 6b58de4f2fc6fe830255203c281ca518a543b373171f73021cd8efd597c146b438a7ffd6ed018b637816fe07153a51f947818a0fa76dc237ba0f50903d3afbe9
22 DIST pdns-4.0.3.tar.bz2 1312299 SHA256 60fa21550b278b41f58701af31c9f2b121badf271fb9d7642f6d35bfbea8e282 SHA512 58d33ac6cf457a916bae6abd8d2dc17f76fbcd1bd9e649948584dd669f5596b43e3e4d91841700ea1ea2cd1ac102749e503cd9075273540f33a2321e20d8bfc2 WHIRLPOOL a28ab5011b3365423f13331c31e8f0fdb9aef0798155ce6fcbe328f82ebc3ca57a966b77f48c31422d374837ee4be3f7f0bc935bab463add19714eb8abd46493
23 DIST pdns-4.0.4.tar.bz2 1320327 SHA256 d974ab89de69477c7f581a3233bc731eacbb43d479291e472b2c531c83b6d763 SHA512 4ef4705cd990b03976775167c7c37850d45907e198549feda5f5701172e008e3f1f74a35a9bebdb24b63dec15ff63cb2cc9dfc8f92e4e1012e0539c5a88b845b WHIRLPOOL 5ac68a15155424d42fb4b84be1b34eb2e51498ae5193ae104215e4bb52a72845923f82dc6b112ce165444cdbfe3aaf01557d2f6ab42f6531dd525aee15ee1b19
24 +DIST pdns-4.1.0-rc1.tar.bz2 1106039 SHA256 a973202ca1c9333c236d76286ab1d8566d420a877a003130381150171d63d4ff SHA512 7356277126578b34587579039d4c63e9ba7822ddd39810b4a43eb06d076c2d247d8b8db7162b2aafd1cb73fd83047b0b5584d4d8bb333ec77597717bac76b450 WHIRLPOOL 19a003a7564691f5ba812f34b376d79c6acbb538df7e4b978a7058f919ef71d778770527d7a091a689a433e915cfccfc22152bc4da46e36ba6c335a31bcdb40f
25
26 diff --git a/net-dns/pdns/pdns-4.1.0_rc1.ebuild b/net-dns/pdns/pdns-4.1.0_rc1.ebuild
27 new file mode 100644
28 index 00000000000..bd6ec7e3d59
29 --- /dev/null
30 +++ b/net-dns/pdns/pdns-4.1.0_rc1.ebuild
31 @@ -0,0 +1,150 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="6"
36 +
37 +inherit eutils multilib user toolchain-funcs versionator
38 +
39 +DESCRIPTION="The PowerDNS Daemon"
40 +HOMEPAGE="https://www.powerdns.com/"
41 +SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +
47 +# other possible flags:
48 +# db2: we lack the dep
49 +# oracle: dito (need Oracle Client Libraries)
50 +# xdb: (almost) dead, surely not supported
51 +
52 +IUSE="botan debug doc geoip ldap lua luajit mydns mysql opendbx postgres protobuf remote sqlite systemd tools tinydns test"
53 +
54 +REQUIRED_USE="mydns? ( mysql ) ?? ( lua luajit )"
55 +
56 +RDEPEND="
57 + dev-libs/openssl:=
58 + >=dev-libs/boost-1.35:=
59 + botan? ( =dev-libs/botan-1.10*[threads] )
60 + lua? ( dev-lang/lua:= )
61 + luajit? ( dev-lang/luajit:= )
62 + mysql? ( virtual/mysql )
63 + postgres? ( dev-db/postgresql:= )
64 + ldap? ( >=net-nds/openldap-2.0.27-r4 )
65 + sqlite? ( dev-db/sqlite:3 )
66 + opendbx? ( dev-db/opendbx )
67 + geoip? ( >=dev-cpp/yaml-cpp-0.5.1 dev-libs/geoip )
68 + tinydns? ( >=dev-db/tinycdb-0.77 )
69 + protobuf? ( dev-libs/protobuf )"
70 +DEPEND="${RDEPEND}
71 + virtual/pkgconfig
72 + doc? ( app-doc/doxygen )"
73 +
74 +S="${WORKDIR}"/${P/_/-}
75 +
76 +src_configure() {
77 + local dynmodules="pipe bind" # the default backends, always enabled
78 +
79 + #use db2 && dynmodules+=" db2"
80 + use ldap && dynmodules+=" ldap"
81 + use lua && dynmodules+=" lua"
82 + use mydns && dynmodules+=" mydns"
83 + use mysql && dynmodules+=" gmysql"
84 + use opendbx && dynmodules+=" opendbx"
85 + #use oracle && dynmodules+=" goracle oracle"
86 + use postgres && dynmodules+=" gpgsql"
87 + use remote && dynmodules+=" remote"
88 + use sqlite && dynmodules+=" gsqlite3"
89 + use tinydns && dynmodules+=" tinydns"
90 + use geoip && dynmodules+=" geoip"
91 + #use xdb && dynmodules+=" xdb"
92 +
93 + econf \
94 + --disable-static \
95 + --sysconfdir=/etc/powerdns \
96 + --libdir=/usr/$(get_libdir)/powerdns \
97 + --with-modules= \
98 + --with-dynmodules="${dynmodules}" \
99 + --with-mysql-lib=/usr/$(get_libdir) \
100 + $(use_enable botan botan1.10) \
101 + $(use_enable debug verbose-logging) \
102 + $(use_enable test unit-tests) \
103 + $(use_enable tools) \
104 + $(use_enable systemd) \
105 + $(use_with lua) \
106 + $(use_with luajit) \
107 + $(use_with protobuf) \
108 + ${myconf}
109 +}
110 +
111 +src_compile() {
112 + default
113 + use doc && emake -C codedocs codedocs
114 +}
115 +
116 +src_install() {
117 + default
118 +
119 + mv "${D}"/etc/powerdns/pdns.conf{-dist,}
120 +
121 + fperms 0700 /etc/powerdns
122 + fperms 0600 /etc/powerdns/pdns.conf
123 +
124 + # set defaults: setuid=pdns, setgid=pdns
125 + sed -i \
126 + -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
127 + "${D}"/etc/powerdns/pdns.conf
128 +
129 + newinitd "${FILESDIR}"/pdns-r1 pdns
130 +
131 + keepdir /var/empty
132 +
133 + use doc && dohtml -r codedocs/html/.
134 +
135 + # Install development headers
136 + insinto /usr/include/pdns
137 + doins pdns/*.hh
138 + insinto /usr/include/pdns/backends/gsql
139 + doins pdns/backends/gsql/*.hh
140 +
141 + if use ldap ; then
142 + insinto /etc/openldap/schema
143 + doins "${FILESDIR}"/dnsdomain2.schema
144 + fi
145 +
146 + prune_libtool_files --all
147 +}
148 +
149 +pkg_preinst() {
150 + enewgroup pdns
151 + enewuser pdns -1 -1 /var/empty pdns
152 +}
153 +
154 +pkg_postinst() {
155 + elog "PowerDNS provides multiple instances support. You can create more instances"
156 + elog "by symlinking the pdns init script to another name."
157 + elog
158 + elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
159 + elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
160 +
161 + if use ldap ; then
162 + ewarn "The official LDAP backend module is only compile-tested by upstream."
163 + ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
164 + fi
165 +
166 + local old
167 + for old in ${REPLACING_VERSIONS}; do
168 + version_compare ${old} 3.2
169 + [[ $? -eq 1 ]] || continue
170 +
171 + ewarn "To fix a security bug (bug #458018) had the following"
172 + ewarn "files/directories the world-readable bit removed (if set):"
173 + ewarn " ${EPREFIX}/etc/powerdns"
174 + ewarn " ${EPREFIX}/etc/powerdns/pdns.conf"
175 + ewarn "Check if this is correct for your setup"
176 + ewarn "This is a one-time change and will not happen on subsequent updates."
177 + chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf}
178 +
179 + break
180 + done
181 +}