diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-04-20 19:01:48 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-04-20 19:04:50 +0200 |
commit | 72ea63236274d64c0f5b805041bf1a54dbbf49ff (patch) | |
tree | b837b524c1f51435418b309aac0c2ed200bcf278 /dev-libs/geoip | |
parent | www-client/chromium: use gtk3 by default (diff) | |
download | gentoo-72ea63236274d64c0f5b805041bf1a54dbbf49ff.tar.gz gentoo-72ea63236274d64c0f5b805041bf1a54dbbf49ff.tar.bz2 gentoo-72ea63236274d64c0f5b805041bf1a54dbbf49ff.zip |
dev-libs/geoip: Version bump.
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-libs/geoip')
-rw-r--r-- | dev-libs/geoip/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/geoip/geoip-1.6.10.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/geoip/Manifest b/dev-libs/geoip/Manifest index 9cb0ceb8ccbe..231b219a1654 100644 --- a/dev-libs/geoip/Manifest +++ b/dev-libs/geoip/Manifest @@ -1 +1,2 @@ +DIST geoip-1.6.10.tar.gz 161506 SHA256 de0d6d037d5e0ad9f7110e7f3b82eb20a24616712d29be0019e28ba7364cdc3e SHA512 5cd527da9d9a921bcc3020e636b410310e6462832804ac2d594b9cb4ceaacac0c31eb64f97e23e77d468da7b63a704084e140c8b69b838e362a188309756a2bf WHIRLPOOL 0b2cfc3ce8b901e731c1f6fbbf36f8ee5487179df3e22ae2bae9c616c9215d93a4c1cb8e975de8e978caa8b4f7e18914cc13bdffdfccfe81a6df5706fe6bb82a DIST geoip-1.6.9.tar.gz 158576 SHA256 05468adbb6bdbddc588ee6f0df990f47b1b24d278519c35d59f7a8058a2a9825 SHA512 a3a34511ba32e6c7d0b46b0e608c5be54411cf5b095c867c3225941b55e5714ec7c68de64e0aefcf4ee2081fbd626480067d6bc9822d775decef1f8e26d7e976 WHIRLPOOL 4b4a4e4dff60f3b9db456d54b5529c24c93b3e18c4aff0d67d35165e9092fcd7e163ce868f729140f9ee5e3a8f49c19ff8a7324f1b106fd9a81a7896d92288ae diff --git a/dev-libs/geoip/geoip-1.6.10.ebuild b/dev-libs/geoip/geoip-1.6.10.ebuild new file mode 100644 index 000000000000..5ecf50082bde --- /dev/null +++ b/dev-libs/geoip/geoip-1.6.10.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils + +DESCRIPTION="GeoIP Legacy C API" +HOMEPAGE="https://github.com/maxmind/geoip-api-c" +SRC_URI=" + https://github.com/maxmind/${PN}-api-c/archive/v${PV}.tar.gz -> ${P}.tar.gz +" + +# GPL-2 for md5.c - part of libGeoIPUpdate, MaxMind for GeoLite Country db +LICENSE="LGPL-2.1 GPL-2 MaxMind2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" +IUSE="static-libs" +RESTRICT="test" + +DEPEND=" + net-misc/wget +" +RDEPEND=" + ${DEPEND} +" + +S="${WORKDIR}/${PN}-api-c-${PV}" + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) + sed -e "s|@PREFIX@|${ROOT}|g" "${FILESDIR}"/geoipupdate-r6.sh > geoipupdate.sh || die +} + +src_install() { + default + + dodoc AUTHORS ChangeLog NEWS.md README* + + prune_libtool_files + + keepdir /usr/share/GeoIP + + dosbin geoipupdate.sh +} + +pkg_postinst() { + ewarn "WARNING: Databases are no longer installed by this ebuild." + elog "Don't forget to run 'geoipupdate.sh -f' (or geoipupdate from" + elog "net-misc/geoipupdate) to populate ${ROOT}/usr/share/GeoIP/" + elog "with geo-located IP address databases." +} |