diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/geoip |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/geoip')
-rw-r--r-- | dev-libs/geoip/Manifest | 10 | ||||
-rw-r--r-- | dev-libs/geoip/files/geoipupdate-r6.sh | 46 | ||||
-rw-r--r-- | dev-libs/geoip/geoip-1.6.10.ebuild | 57 | ||||
-rw-r--r-- | dev-libs/geoip/geoip-1.6.11.ebuild | 57 | ||||
-rw-r--r-- | dev-libs/geoip/geoip-1.6.9-r1.ebuild | 57 | ||||
-rw-r--r-- | dev-libs/geoip/metadata.xml | 11 |
6 files changed, 238 insertions, 0 deletions
diff --git a/dev-libs/geoip/Manifest b/dev-libs/geoip/Manifest new file mode 100644 index 000000000000..f8a9c97fce99 --- /dev/null +++ b/dev-libs/geoip/Manifest @@ -0,0 +1,10 @@ +AUX geoipupdate-r6.sh 1085 SHA256 daebeb831f1a70e0f926525cc755fc97296dded7d63dd7b267dd7556f12a3f28 SHA512 97cdeadaf42510b88e00b3187e51089f62838c87d11500f572ed19232aedde1cb51a4183a84d7421773d8248072c2ef7197a28b0fe9a06cc10624b0f5d00a21e WHIRLPOOL 16b6e061b9695195a70d622b10d2b201d21ea7c0165774f8f88ee0030f3aa7c65a501b9d8c4d965fadcb9c2593b63bad8dcfe82c298ea16214be86d651ea396e +DIST geoip-1.6.10.tar.gz 161506 SHA256 de0d6d037d5e0ad9f7110e7f3b82eb20a24616712d29be0019e28ba7364cdc3e SHA512 5cd527da9d9a921bcc3020e636b410310e6462832804ac2d594b9cb4ceaacac0c31eb64f97e23e77d468da7b63a704084e140c8b69b838e362a188309756a2bf WHIRLPOOL 0b2cfc3ce8b901e731c1f6fbbf36f8ee5487179df3e22ae2bae9c616c9215d93a4c1cb8e975de8e978caa8b4f7e18914cc13bdffdfccfe81a6df5706fe6bb82a +DIST geoip-1.6.11.tar.gz 161934 SHA256 8859cb7c9cb63e77f4aedb40a4622024359b956b251aba46b255acbe190c34e0 SHA512 9c017a95c7903898b9a2bc10c34e51b390326c181c46e6f99daf3bc4d8f84cfcf640c5cc92d527e4c7428e2b5bfa835cc57040507eb836062139a795726349b9 WHIRLPOOL 8ccd4dd86491e63a3d56958b7410255fb6f16e6bab957dd04f82fb525540799a5f99e6759bd2bdf02615360ffe310661d2bcf1dcf6ec98c2c23746cb93eb3461 +DIST geoip-1.6.9.tar.gz 158576 SHA256 05468adbb6bdbddc588ee6f0df990f47b1b24d278519c35d59f7a8058a2a9825 SHA512 a3a34511ba32e6c7d0b46b0e608c5be54411cf5b095c867c3225941b55e5714ec7c68de64e0aefcf4ee2081fbd626480067d6bc9822d775decef1f8e26d7e976 WHIRLPOOL 4b4a4e4dff60f3b9db456d54b5529c24c93b3e18c4aff0d67d35165e9092fcd7e163ce868f729140f9ee5e3a8f49c19ff8a7324f1b106fd9a81a7896d92288ae +EBUILD geoip-1.6.10.ebuild 1300 SHA256 cb60d7fb7051e62a9d0323267e574d37cdb2e13701ce036c343625cb758927bd SHA512 54f39ffdc1a66e657ef82641495f8ae735c3e8d5da7eb54e21aeca19af4943350227d3f02a7af6139234bc209b7cf7bae9b0a21369c4d68fcbfbb94e57681e8f WHIRLPOOL fbbf32e14320820b9174d818878e00b3d6fc9c60525a507f4807ced42c72212a226674f30596743df14bef90ef755c274d17dd83ccfafda96b0612638c0ec445 +EBUILD geoip-1.6.11.ebuild 1307 SHA256 f091bab789ca9938afdab519f067262d6e918704e39b964cd22fa4ea8eaa2f12 SHA512 c204420951256782aead397071b203cf80a20352a96dd225240820c462b40ccbc81fcb062a393f70df89d699569348250ef89ffbc5a93ed2ed704cdda4b38369 WHIRLPOOL c904bfe6cdc2cfa11be80d1e5162dcfeb2f988eaccdebdcf2828b42581943bdab319c94e6f116731ba6e5af088c95a3a3151087b1c8daa4352288bd63cca9b2a +EBUILD geoip-1.6.9-r1.ebuild 1297 SHA256 41e12ef054418ad24186736011d2ebf97a3de095c8c746a7ae9bb571a36c09b3 SHA512 47e87b89e2477917040b777f8f6d7490984cb4c2124b5d0707b44a41eae80e4e16a4b55eb3264fd280229c06401bed25273edd3599576424b0e96955cb6b19cf WHIRLPOOL bbfd3ccd91d28ff8460b1b0c96f3a66d865e6ad81949ed466a6bff680cbdbea7f72bbdb1545b45367ea8b9e6cc4dd9d7d52a16f95ba4ab315aa69d88c93cef1b +MISC ChangeLog 6374 SHA256 4e51d95e17cb741fab15807fef6f0c8b144667c76d97a30ecad2577d229cb27d SHA512 6b82ab45ea4f30b7922bdef6dfa8769c782d0f6a0468c7aab98f225f4f566bfcb63a82d6cb60346aa30c9cbad6acebda03f1d500c0ccab8b7475ebbcb83346e4 WHIRLPOOL 5e30b8bc9fe302f6d16861eca7418280fae26f799e4cef90ecde4c7b4696f52611b3f91ea957d0d16f8e6766abc50b62c3a0a479be583d595d9ed37dbc50d3f7 +MISC ChangeLog-2015 31373 SHA256 fc958a7f09b2f55795ca8fb01f27a16cee6882b17ec50ebe849ba6fd7be00ca9 SHA512 c2b029b3b1d9a306594270f01d1806e8f728785b36778fe209ae697e6d0ff4101d325cdca60cf2d38a74b702f7e591f02799d0a01418d476675d4cc10cc3a8ab WHIRLPOOL f3115a0dbc43353d0632fec30f94e213e74a95f0617b678ac00aaefbeb5a326a9d2068bc49c29683b64d0852f04dfc9289ada264070588f3ae9845c19f8251aa +MISC metadata.xml 374 SHA256 6b7bc968891d9856ee13bc577df5f39ac7051748f70f87ffab80fd5c72223481 SHA512 1637e770cb8d68a11ec8c9b9e902d026c557efcce48221edc02dd9c0841ce14b8558402283c81b5babf133a5d84c148e7df8a5e864970fdbb0e256b9d8340762 WHIRLPOOL 819db811dbefc0b0de080f262089e2d2eef4b103712fde4141eecd86e9e154558899e0140df48350b3a1600e67e8384caf0633a3cb21ebebee28dffe293fb592 diff --git a/dev-libs/geoip/files/geoipupdate-r6.sh b/dev-libs/geoip/files/geoipupdate-r6.sh new file mode 100644 index 000000000000..83b58101663b --- /dev/null +++ b/dev-libs/geoip/files/geoipupdate-r6.sh @@ -0,0 +1,46 @@ +#!/bin/sh + +GEOIP_MIRROR="https://download.maxmind.com/download/geoip/database" +GEOIPDIR=@PREFIX@/usr/share/GeoIP +TMPDIR= + +DATABASES=" + GeoIPv6 + GeoLiteCity + GeoLiteCityv6-beta/GeoLiteCityv6 + GeoLiteCountry/GeoIP + asnum/GeoIPASNum + asnum/GeoIPASNumv6 +" + +if [ "${1}" = -f ] || [ "${1}" = --force ]; then + force=true +fi + +if [ -d "${GEOIPDIR}" ]; then + cd $GEOIPDIR + if [ -n "${DATABASES}" ]; then + TMPDIR=$(mktemp -d geoipupdate.XXXXXXXXXX) + + echo "Updating GeoIP databases..." + + for db in $DATABASES; do + fname=$(basename $db) + + if [ -f "${GEOIPDIR}/${fname}.dat" ] || [ ${force} ]; then + wget --no-verbose -t 3 -T 60 \ + "${GEOIP_MIRROR}/${db}.dat.gz" \ + -O "${TMPDIR}/${fname}.dat.gz" + if [ $? -eq 0 ]; then + gunzip -fdc "${TMPDIR}/${fname}.dat.gz" > "${TMPDIR}/${fname}.dat" + mv "${TMPDIR}/${fname}.dat" "${GEOIPDIR}/${fname}.dat" + chmod 0644 "${GEOIPDIR}/${fname}.dat" + case ${fname} in + GeoLite*) ln -sf ${fname}.dat `echo ${fname} | sed 's/GeoLite/GeoIP/'`.dat ;; + esac + fi + fi + done + [ -d "${TMPDIR}" ] && rm -rf $TMPDIR + fi +fi 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..1749ade5b07d --- /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." +} diff --git a/dev-libs/geoip/geoip-1.6.11.ebuild b/dev-libs/geoip/geoip-1.6.11.ebuild new file mode 100644 index 000000000000..5ecf50082bde --- /dev/null +++ b/dev-libs/geoip/geoip-1.6.11.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." +} diff --git a/dev-libs/geoip/geoip-1.6.9-r1.ebuild b/dev-libs/geoip/geoip-1.6.9-r1.ebuild new file mode 100644 index 000000000000..e995cafe4822 --- /dev/null +++ b/dev-libs/geoip/geoip-1.6.9-r1.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." +} diff --git a/dev-libs/geoip/metadata.xml b/dev-libs/geoip/metadata.xml new file mode 100644 index 000000000000..b535fed31a92 --- /dev/null +++ b/dev-libs/geoip/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> + </maintainer> + <upstream> + <remote-id type="github">maxmind/geoip-api-c</remote-id> + </upstream> +</pkgmetadata> |