1 |
commit: f53c8d6f6b24131a493b4fd62747fbee2a475c37 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 4 16:21:20 2021 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 4 16:29:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f53c8d6f |
7 |
|
8 |
net-dns/pdns: Cleanup |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> |
12 |
|
13 |
net-dns/pdns/pdns-4.4.1.ebuild | 163 ----------------------------------------- |
14 |
1 file changed, 163 deletions(-) |
15 |
|
16 |
diff --git a/net-dns/pdns/pdns-4.4.1.ebuild b/net-dns/pdns/pdns-4.4.1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 9fbdd03b8c8..00000000000 |
19 |
--- a/net-dns/pdns/pdns-4.4.1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,163 +0,0 @@ |
22 |
-# Copyright 1999-2021 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-LUA_COMPAT=( lua5-{1..4} luajit ) |
28 |
- |
29 |
-inherit lua-single |
30 |
- |
31 |
-DESCRIPTION="The PowerDNS Daemon" |
32 |
-HOMEPAGE="https://www.powerdns.com/" |
33 |
-SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" |
34 |
- |
35 |
-LICENSE="GPL-2" |
36 |
-SLOT="0" |
37 |
-KEYWORDS="amd64 x86" |
38 |
- |
39 |
-# other possible flags: |
40 |
-# db2: we lack the dep |
41 |
-# oracle: dito (need Oracle Client Libraries) |
42 |
-# xdb: (almost) dead, surely not supported |
43 |
- |
44 |
-IUSE="debug doc geoip ldap lua-records mydns mysql postgres protobuf remote sodium sqlite systemd tools tinydns test" |
45 |
-RESTRICT="!test? ( test )" |
46 |
- |
47 |
-REQUIRED_USE="${LUA_REQUIRED_USE} |
48 |
- mydns? ( mysql )" |
49 |
- |
50 |
-DEPEND="${LUA_DEPS} |
51 |
- dev-libs/openssl:= |
52 |
- >=dev-libs/boost-1.35:= |
53 |
- lua-records? ( >=net-misc/curl-7.21.3 ) |
54 |
- mysql? ( dev-db/mysql-connector-c:= ) |
55 |
- postgres? ( dev-db/postgresql:= ) |
56 |
- ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 ) |
57 |
- sqlite? ( dev-db/sqlite:3 ) |
58 |
- geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip ) |
59 |
- sodium? ( dev-libs/libsodium:= ) |
60 |
- tinydns? ( >=dev-db/tinycdb-0.77 ) |
61 |
- protobuf? ( dev-libs/protobuf )" |
62 |
-RDEPEND="${DEPEND} |
63 |
- acct-user/pdns |
64 |
- acct-group/pdns" |
65 |
- |
66 |
-BDEPEND="virtual/pkgconfig |
67 |
- doc? ( app-doc/doxygen )" |
68 |
- |
69 |
-S="${WORKDIR}"/${P/_/-} |
70 |
- |
71 |
-src_configure() { |
72 |
- local dynmodules="pipe bind" # the default backends, always enabled |
73 |
- |
74 |
- #use db2 && dynmodules+=" db2" |
75 |
- use ldap && dynmodules+=" ldap" |
76 |
- use mydns && dynmodules+=" mydns" |
77 |
- use mysql && dynmodules+=" gmysql" |
78 |
- #use oracle && dynmodules+=" goracle oracle" |
79 |
- use postgres && dynmodules+=" gpgsql" |
80 |
- use remote && dynmodules+=" remote" |
81 |
- use sqlite && dynmodules+=" gsqlite3" |
82 |
- use tinydns && dynmodules+=" tinydns" |
83 |
- use geoip && dynmodules+=" geoip" |
84 |
- #use xdb && dynmodules+=" xdb" |
85 |
- |
86 |
- econf \ |
87 |
- --disable-static \ |
88 |
- --sysconfdir=/etc/powerdns \ |
89 |
- --libdir=/usr/$(get_libdir)/powerdns \ |
90 |
- --with-service-user=pdns \ |
91 |
- --with-service-group=pdns \ |
92 |
- --with-modules= \ |
93 |
- --with-dynmodules="${dynmodules}" \ |
94 |
- --with-mysql-lib=/usr/$(get_libdir) \ |
95 |
- --with-lua="${ELUA}" \ |
96 |
- $(use_enable debug verbose-logging) \ |
97 |
- $(use_enable lua-records) \ |
98 |
- $(use_enable test unit-tests) \ |
99 |
- $(use_enable tools) \ |
100 |
- $(use_enable systemd) \ |
101 |
- $(use_with sodium libsodium) \ |
102 |
- $(use_with protobuf) \ |
103 |
- ${myconf} |
104 |
-} |
105 |
- |
106 |
-src_compile() { |
107 |
- default |
108 |
- use doc && emake -C codedocs codedocs |
109 |
-} |
110 |
- |
111 |
-src_install() { |
112 |
- default |
113 |
- |
114 |
- mv "${D}"/etc/powerdns/pdns.conf{-dist,} |
115 |
- |
116 |
- fperms 0700 /etc/powerdns |
117 |
- fperms 0600 /etc/powerdns/pdns.conf |
118 |
- |
119 |
- # set defaults: setuid=pdns, setgid=pdns |
120 |
- sed -i \ |
121 |
- -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \ |
122 |
- "${D}"/etc/powerdns/pdns.conf |
123 |
- |
124 |
- newinitd "${FILESDIR}"/pdns-r1 pdns |
125 |
- |
126 |
- keepdir /var/empty |
127 |
- |
128 |
- if use doc; then |
129 |
- docinto html |
130 |
- dodoc -r codedocs/html/. |
131 |
- fi |
132 |
- |
133 |
- # Install development headers |
134 |
- insinto /usr/include/pdns |
135 |
- doins pdns/*.hh |
136 |
- insinto /usr/include/pdns/backends/gsql |
137 |
- doins pdns/backends/gsql/*.hh |
138 |
- |
139 |
- if use ldap ; then |
140 |
- insinto /etc/openldap/schema |
141 |
- doins "${FILESDIR}"/dnsdomain2.schema |
142 |
- fi |
143 |
- |
144 |
- find "${D}" -name '*.la' -delete || die |
145 |
-} |
146 |
- |
147 |
-pkg_postinst() { |
148 |
- elog "PowerDNS provides multiple instances support. You can create more instances" |
149 |
- elog "by symlinking the pdns init script to another name." |
150 |
- elog |
151 |
- elog "The name must be in the format pdns.<suffix> and PowerDNS will use the" |
152 |
- elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default." |
153 |
- |
154 |
- local old |
155 |
- for old in ${REPLACING_VERSIONS}; do |
156 |
- ver_test ${old} -lt 3.2 || continue |
157 |
- |
158 |
- echo |
159 |
- ewarn "To fix a security bug (bug #458018) had the following" |
160 |
- ewarn "files/directories the world-readable bit removed (if set):" |
161 |
- ewarn " ${EPREFIX}/etc/powerdns" |
162 |
- ewarn " ${EPREFIX}/etc/powerdns/pdns.conf" |
163 |
- ewarn "Check if this is correct for your setup" |
164 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
165 |
- chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} |
166 |
- |
167 |
- break |
168 |
- done |
169 |
- |
170 |
- if use postgres; then |
171 |
- for old in ${REPLACING_VERSIONS}; do |
172 |
- ver_test ${old} -lt 4.1.11-r1 || continue |
173 |
- |
174 |
- echo |
175 |
- ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend." |
176 |
- ewarn "This security fix needs to be applied manually to the database schema." |
177 |
- ewarn "Please refer to the official security advisory for more information:" |
178 |
- ewarn |
179 |
- ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html" |
180 |
- |
181 |
- break |
182 |
- done |
183 |
- fi |
184 |
-} |