1 |
dev-zero 13/05/23 12:14:11 |
2 |
|
3 |
Modified: pdns-3.2.ebuild ChangeLog |
4 |
Log: |
5 |
Fix dependencies for USE=static and add pkg_postinst functionality to fix permissions on /etc/pdns (bug #458018), as discussed with swegener. |
6 |
|
7 |
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0x1E0CA85F!) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 net-dns/pdns/pdns-3.2.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/pdns-3.2.ebuild?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/pdns-3.2.ebuild?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/pdns-3.2.ebuild?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: pdns-3.2.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-3.2.ebuild,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- pdns-3.2.ebuild 20 May 2013 19:05:48 -0000 1.1 |
23 |
+++ pdns-3.2.ebuild 23 May 2013 12:14:11 -0000 1.2 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2013 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-3.2.ebuild,v 1.1 2013/05/20 19:05:48 dev-zero Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-3.2.ebuild,v 1.2 2013/05/23 12:14:11 dev-zero Exp $ |
29 |
|
30 |
EAPI=5 |
31 |
|
32 |
@@ -19,29 +19,41 @@ |
33 |
# oracle: dito (need Oracle Client Libraries) |
34 |
# xdb: (almost) dead, surely not supported |
35 |
|
36 |
-# TODO: sort out static deps |
37 |
- |
38 |
IUSE="botan cryptopp debug doc ldap lua mydns mysql odbc opendbx postgres remote |
39 |
remote-http sqlite static tinydns" |
40 |
|
41 |
REQUIRED_USE="mydns? ( mysql )" |
42 |
|
43 |
-RDEPEND="net-libs/polarssl |
44 |
- botan? ( =dev-libs/botan-1.10* ) |
45 |
- cryptopp? ( dev-libs/crypto++ ) |
46 |
- lua? ( dev-lang/lua ) |
47 |
- mysql? ( virtual/mysql ) |
48 |
- postgres? ( dev-db/postgresql-base:= ) |
49 |
- ldap? ( >=net-nds/openldap-2.0.27-r4 ) |
50 |
- sqlite? ( dev-db/sqlite:3 ) |
51 |
- odbc? ( dev-db/unixODBC ) |
52 |
- opendbx? ( dev-db/opendbx ) |
53 |
- remote-http? ( net-misc/curl ) |
54 |
- tinydns? ( dev-db/cdb ) |
55 |
- !static? ( >=dev-libs/boost-1.34:= )" |
56 |
+RDEPEND="!static? ( |
57 |
+ net-libs/polarssl |
58 |
+ >=dev-libs/boost-1.34:= |
59 |
+ botan? ( =dev-libs/botan-1.10* ) |
60 |
+ cryptopp? ( dev-libs/crypto++ ) |
61 |
+ lua? ( dev-lang/lua ) |
62 |
+ mysql? ( virtual/mysql ) |
63 |
+ postgres? ( dev-db/postgresql-base:= ) |
64 |
+ ldap? ( >=net-nds/openldap-2.0.27-r4 ) |
65 |
+ sqlite? ( dev-db/sqlite:3 ) |
66 |
+ odbc? ( dev-db/unixODBC ) |
67 |
+ opendbx? ( dev-db/opendbx ) |
68 |
+ remote-http? ( net-misc/curl ) |
69 |
+ tinydns? ( dev-db/cdb ) )" |
70 |
DEPEND="${RDEPEND} |
71 |
virtual/pkgconfig |
72 |
- static? ( >=dev-libs/boost-1.34[static-libs] ) |
73 |
+ static? ( |
74 |
+ net-libs/polarssl[static-libs(+)] |
75 |
+ >=dev-libs/boost-1.34[static-libs(+)] |
76 |
+ botan? ( =dev-libs/botan-1.10*[static-libs(+)] ) |
77 |
+ cryptopp? ( dev-libs/crypto++[static-libs(+)] ) |
78 |
+ lua? ( dev-lang/lua[static-libs(+)] ) |
79 |
+ mysql? ( virtual/mysql[static-libs(+)] ) |
80 |
+ postgres? ( dev-db/postgresql-base[static-libs(+)] ) |
81 |
+ ldap? ( >=net-nds/openldap-2.0.27-r4[static-libs(+)] ) |
82 |
+ sqlite? ( dev-db/sqlite:3[static-libs(+)] ) |
83 |
+ odbc? ( dev-db/unixODBC[static-libs(+)] ) |
84 |
+ opendbx? ( dev-db/opendbx[static-libs(+)] ) |
85 |
+ remote-http? ( net-misc/curl[static-libs(+)] ) |
86 |
+ tinydns? ( dev-db/cdb ) ) |
87 |
doc? ( app-doc/doxygen )" |
88 |
|
89 |
src_prepare() { |
90 |
@@ -151,4 +163,22 @@ |
91 |
ewarn "The official LDAP backend module is only compile-tested by upstream." |
92 |
ewarn "Try net-dns/pdns-ldap-backend if you have problems with it." |
93 |
fi |
94 |
+ |
95 |
+ local fix_perms=0 |
96 |
+ |
97 |
+ for rv in ${REPLACING_VERSIONS} ; do |
98 |
+ version_compare ${rv} 3.2 |
99 |
+ [[ $? -eq 1 ]] && fix_perms=1 |
100 |
+ done |
101 |
+ |
102 |
+ if [[ $fix_perms -eq 1 ]] ; then |
103 |
+ ewarn "To fix a security bug (bug #458018) had the following" |
104 |
+ ewarn "files/directories the world-readable bit removed (if set):" |
105 |
+ ewarn " ${EPREFIX}/etc/pdns" |
106 |
+ ewarn " ${EPREFIX}/etc/pdns/pdns.conf" |
107 |
+ ewarn "Check if this is correct for your setup" |
108 |
+ ewarn "This is a one-time change and will not happen on subsequent updates." |
109 |
+ chmod o-rwx "${EPREFIX}"/etc/pdns/{,pdns.conf} |
110 |
+ fi |
111 |
+ |
112 |
} |
113 |
|
114 |
|
115 |
|
116 |
1.88 net-dns/pdns/ChangeLog |
117 |
|
118 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/ChangeLog?rev=1.88&view=markup |
119 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/ChangeLog?rev=1.88&content-type=text/plain |
120 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdns/ChangeLog?r1=1.87&r2=1.88 |
121 |
|
122 |
Index: ChangeLog |
123 |
=================================================================== |
124 |
RCS file: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v |
125 |
retrieving revision 1.87 |
126 |
retrieving revision 1.88 |
127 |
diff -u -r1.87 -r1.88 |
128 |
--- ChangeLog 20 May 2013 19:05:48 -0000 1.87 |
129 |
+++ ChangeLog 23 May 2013 12:14:11 -0000 1.88 |
130 |
@@ -1,6 +1,10 @@ |
131 |
# ChangeLog for net-dns/pdns |
132 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
133 |
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.87 2013/05/20 19:05:48 dev-zero Exp $ |
134 |
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.88 2013/05/23 12:14:11 dev-zero Exp $ |
135 |
+ |
136 |
+ 23 May 2013; Tiziano Müller <dev-zero@g.o> pdns-3.2.ebuild: |
137 |
+ Fix dependencies for USE=static and add pkg_postinst functionality to fix |
138 |
+ permissions on /etc/pdns (bug #458018), as discussed with swegener. |
139 |
|
140 |
*pdns-3.2 (20 May 2013) |