Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/geoip: geoip-1.6.0.ebuild geoip-1.5.2.ebuild ChangeLog
Date: Fri, 01 Nov 2013 17:42:26
Message-Id: 20131101174223.AC07D2004B@flycatcher.gentoo.org
1 jer 13/11/01 17:42:23
2
3 Modified: ChangeLog
4 Added: geoip-1.6.0.ebuild geoip-1.5.2.ebuild
5 Log:
6 Version bumps.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A792A613)
9
10 Revision Changes Path
11 1.189 dev-libs/geoip/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/ChangeLog?rev=1.189&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/ChangeLog?rev=1.189&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/ChangeLog?r1=1.188&r2=1.189
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/geoip/ChangeLog,v
20 retrieving revision 1.188
21 retrieving revision 1.189
22 diff -u -r1.188 -r1.189
23 --- ChangeLog 20 Jul 2013 05:15:51 -0000 1.188
24 +++ ChangeLog 1 Nov 2013 17:42:23 -0000 1.189
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-libs/geoip
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/ChangeLog,v 1.188 2013/07/20 05:15:51 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/ChangeLog,v 1.189 2013/11/01 17:42:23 jer Exp $
30 +
31 +*geoip-1.5.2 (01 Nov 2013)
32 +*geoip-1.6.0 (01 Nov 2013)
33 +
34 + 01 Nov 2013; Jeroen Roovers <jer@g.o> +geoip-1.5.2.ebuild,
35 + +geoip-1.6.0.ebuild:
36 + Version bumps.
37
38 20 Jul 2013; Jeroen Roovers <jer@g.o> geoip-1.5.1.ebuild:
39 Switch to github based releases. Clean up.
40
41
42
43 1.1 dev-libs/geoip/geoip-1.6.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/geoip-1.6.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/geoip-1.6.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: geoip-1.6.0.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/geoip-1.6.0.ebuild,v 1.1 2013/11/01 17:42:23 jer Exp $
53
54 EAPI=5
55 inherit autotools eutils
56
57 GEOLITE_URI="http://geolite.maxmind.com/download/geoip/database/"
58
59 DESCRIPTION="easily lookup countries by IP addresses, even when Reverse DNS entries don't exist"
60 HOMEPAGE="http://dev.maxmind.com/geoip/legacy/downloadable"
61 SRC_URI="
62 https://github.com/maxmind/${PN}-api-c/archive/v${PV}.tar.gz -> ${P}.tar.gz
63 http://geolite.maxmind.com/download/${PN}/database/GeoLiteCountry/GeoIP.dat.gz
64 ${GEOLITE_URI}asnum/GeoIPASNum.dat.gz
65 city? ( ${GEOLITE_URI}GeoLiteCity.dat.gz )
66 ipv6? (
67 ${GEOLITE_URI}GeoIPv6.dat.gz
68 city? ( ${GEOLITE_URI}GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz )
69 )
70 "
71
72 # GPL-2 for md5.c - part of libGeoIPUpdate, MaxMind for GeoLite Country db
73 LICENSE="LGPL-2.1 GPL-2 MaxMind2"
74 SLOT="0"
75 KEYWORDS="~amd64 ~hppa ~s390 ~sh ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
76 IUSE="city ipv6 static-libs"
77
78 DEPEND="sys-libs/zlib"
79 RDEPEND="
80 ${DEPEND}
81 net-misc/geoipupdate
82 "
83
84 S="${WORKDIR}/${PN}-api-c-${PV}"
85
86 src_prepare() {
87 mkdir data || die
88 mv "${WORKDIR}"/GeoIP.dat data/ || die
89
90 sed -e 's|yahoo.com|98.139.183.24|g' \
91 -i test/country_test_name.txt test/region_test.txt || die
92
93 eautoreconf
94 }
95
96 src_configure() {
97 econf $(use_enable static-libs static)
98 }
99
100 src_install() {
101 default
102
103 dodoc AUTHORS ChangeLog README* TODO
104
105 prune_libtool_files
106
107 insinto /usr/share/GeoIP
108 doins "${WORKDIR}/GeoIPASNum.dat"
109 use city && newins "${WORKDIR}"/GeoLiteCity.dat GeoIPCity.dat
110
111 if use ipv6; then
112 doins "${WORKDIR}/GeoIPv6.dat"
113 use city && newins "${WORKDIR}"/GeoLiteCityv6.dat GeoIPCityv6.dat
114 fi
115
116 newsbin "${FILESDIR}/geoipupdate-r2.sh" geoipupdate.sh
117 }
118
119
120
121 1.1 dev-libs/geoip/geoip-1.5.2.ebuild
122
123 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/geoip-1.5.2.ebuild?rev=1.1&view=markup
124 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/geoip-1.5.2.ebuild?rev=1.1&content-type=text/plain
125
126 Index: geoip-1.5.2.ebuild
127 ===================================================================
128 # Copyright 1999-2013 Gentoo Foundation
129 # Distributed under the terms of the GNU General Public License v2
130 # $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/geoip-1.5.2.ebuild,v 1.1 2013/11/01 17:42:23 jer Exp $
131
132 EAPI=5
133 inherit autotools eutils
134
135 GEOLITE_URI="http://geolite.maxmind.com/download/geoip/database/"
136
137 DESCRIPTION="easily lookup countries by IP addresses, even when Reverse DNS entries don't exist"
138 HOMEPAGE="http://dev.maxmind.com/geoip/legacy/downloadable"
139 SRC_URI="
140 https://github.com/maxmind/${PN}-api-c/archive/v${PV}.tar.gz -> ${P}.tar.gz
141 http://geolite.maxmind.com/download/${PN}/database/GeoLiteCountry/GeoIP.dat.gz
142 ${GEOLITE_URI}asnum/GeoIPASNum.dat.gz
143 city? ( ${GEOLITE_URI}GeoLiteCity.dat.gz )
144 ipv6? (
145 ${GEOLITE_URI}GeoIPv6.dat.gz
146 city? ( ${GEOLITE_URI}GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz )
147 )
148 "
149
150 # GPL-2 for md5.c - part of libGeoIPUpdate, MaxMind for GeoLite Country db
151 LICENSE="LGPL-2.1 GPL-2 MaxMind2"
152 SLOT="0"
153 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
154 IUSE="city ipv6 perl-geoipupdate static-libs"
155
156 DEPEND="sys-libs/zlib"
157 RDEPEND="
158 ${DEPEND}
159 perl-geoipupdate? (
160 dev-perl/PerlIO-gzip
161 dev-perl/libwww-perl
162 )
163 "
164
165 S="${WORKDIR}/${PN}-api-c-${PV}"
166
167 src_prepare() {
168 mv "${WORKDIR}"/GeoIP.dat data || die
169
170 sed -e "s:usr local share GeoIP:usr share GeoIP:" \
171 -e "s:usr local etc:etc:" \
172 -i apps/geoipupdate-pureperl.pl || die
173
174 sed -e 's|yahoo.com|98.139.183.24|g' \
175 -i test/country_test_name.txt test/region_test.txt || die
176
177 eautoreconf
178 }
179
180 src_configure() {
181 econf $(use_enable static-libs static)
182 }
183
184 src_install() {
185 default
186
187 use perl-geoipupdate && dobin apps/geoipupdate-pureperl.pl
188
189 dodoc AUTHORS ChangeLog README* TODO conf/GeoIP.conf.default
190
191 rm "${ED}/etc/GeoIP.conf.default"
192
193 prune_libtool_files
194
195 insinto /usr/share/GeoIP
196 doins "${WORKDIR}/GeoIPASNum.dat"
197 use city && newins "${WORKDIR}"/GeoLiteCity.dat GeoIPCity.dat
198
199 if use ipv6; then
200 doins "${WORKDIR}/GeoIPv6.dat"
201 use city && newins "${WORKDIR}"/GeoLiteCityv6.dat GeoIPCityv6.dat
202 fi
203
204 newsbin "${FILESDIR}/geoipupdate-r2.sh" geoipupdate.sh
205 }