diff options
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.12.ebuild | 57 | ||||
-rw-r--r-- | dev-libs/geoip/geoip-1.6.9-r1.ebuild | 57 | ||||
-rw-r--r-- | dev-libs/geoip/metadata.xml | 11 |
7 files changed, 295 insertions, 0 deletions
diff --git a/dev-libs/geoip/Manifest b/dev-libs/geoip/Manifest new file mode 100644 index 000000000000..c317974b095e --- /dev/null +++ b/dev-libs/geoip/Manifest @@ -0,0 +1,10 @@ +AUX geoipupdate-r6.sh 1085 BLAKE2B f093f49881fa86bb81ac8b7c2705568a186e51c669a3da85114e0985ea7b2cc3de7ab5b6f8ef2e73ccd46af89149eade9b9b116506c6d9891e70dd8613a3c7a2 SHA512 97cdeadaf42510b88e00b3187e51089f62838c87d11500f572ed19232aedde1cb51a4183a84d7421773d8248072c2ef7197a28b0fe9a06cc10624b0f5d00a21e +DIST geoip-1.6.10.tar.gz 161506 BLAKE2B 968ae25afe8345def099b82acf5bca4b7bcba05ffdc8d17f164bc2a91db25e2be45319a942fef05f084c6d6463521d481286888cbe7b43c7394e46ea0b47b5ca SHA512 5cd527da9d9a921bcc3020e636b410310e6462832804ac2d594b9cb4ceaacac0c31eb64f97e23e77d468da7b63a704084e140c8b69b838e362a188309756a2bf +DIST geoip-1.6.11.tar.gz 161934 BLAKE2B 628dd37bbcfffe36970d6bc8cd12ff1d504d9dc7bb760860ce59fbeeac631317556077ca5b50ae42c9cc8567ed41194379ed0743a0c2b0b0bef65504b13e62cb SHA512 9c017a95c7903898b9a2bc10c34e51b390326c181c46e6f99daf3bc4d8f84cfcf640c5cc92d527e4c7428e2b5bfa835cc57040507eb836062139a795726349b9 +DIST geoip-1.6.12.tar.gz 160826 BLAKE2B a6cb17141e4e9d00c15d19d7adfecb5492b14591911dc85de403afc9f94801fe1ec92b6106478448074d3679d6c9fa6a44f210b9cc751aba0c0425a5fae699c1 SHA512 d1ed2dae091548f555cde4d26e4b51ae1e8fbb12ef1695fd95963229d9a1bf241e6f09e5d77b151d51edd0cef78ddef490c6a3f3a70ff122bdd9c0ac5500fc7d +DIST geoip-1.6.9.tar.gz 158576 BLAKE2B 797dce578c0e2b92b02cf125be5448746025e86c6d9a2efd4ec2c99de99b3874c9da0ef20c7c76308121420ea8099a0744c0240640ff9732b961789ce334b8d1 SHA512 a3a34511ba32e6c7d0b46b0e608c5be54411cf5b095c867c3225941b55e5714ec7c68de64e0aefcf4ee2081fbd626480067d6bc9822d775decef1f8e26d7e976 +EBUILD geoip-1.6.10.ebuild 1298 BLAKE2B 5b0cf6d75001526470983b3708a09b688838e49391c0a33c7d23323c91250a549da873cfb4ab45b162c53c792f6d9944b2e236660fb31d2718923f6ee4650b90 SHA512 d5213267d816a56c195cb7140d81706f9a738edde0d4ac4be7ddc859d9abf3b16ceb107a94c85e10d815f9add31aa038df7f37cdda919344b16eea041c3fe9f8 +EBUILD geoip-1.6.11.ebuild 1307 BLAKE2B 84e94af04f2eb38d052b05da1aa90ff0867484d061b33c4fdb241bd5e62a582ad1b3b6e1296b5fa1a90a1330ad817bda392fb73aefa0829209b4ab19f2bf70ff SHA512 c204420951256782aead397071b203cf80a20352a96dd225240820c462b40ccbc81fcb062a393f70df89d699569348250ef89ffbc5a93ed2ed704cdda4b38369 +EBUILD geoip-1.6.12.ebuild 1307 BLAKE2B fbc239ba46ce020779604db81bed0d045f4bddd94030b85b2f0d8fa99275fbd437cc549872365f93a1f3de5b764a98f101ffff9794897a42259aeb9c1e70fe58 SHA512 c35f094f380323e364f20650e6c0fc9dbc48d47b02767060e1eddf885c20649f25ac9589b7532e018710fbd6b2404eaad169fcd3d2ca7155c6957aa4981cddee +EBUILD geoip-1.6.9-r1.ebuild 1297 BLAKE2B bc58561a0be7e6d6916eead747add1bdacecfbf806644aeecf235f65cc5d142c482b7dcfa7885a4ba664f0bc687abb30f7a0ac342c75a99684001176876029a8 SHA512 47e87b89e2477917040b777f8f6d7490984cb4c2124b5d0707b44a41eae80e4e16a4b55eb3264fd280229c06401bed25273edd3599576424b0e96955cb6b19cf +MISC metadata.xml 374 BLAKE2B 1dba87e78019d8000de7779503afc32bf7a0dd5626981db35c0fffd608cfc4b0996159b15961a97aa3e8ee8a128a0263bb10b310c1457de2f955ef55c2f93e01 SHA512 1637e770cb8d68a11ec8c9b9e902d026c557efcce48221edc02dd9c0841ce14b8558402283c81b5babf133a5d84c148e7df8a5e864970fdbb0e256b9d8340762 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..498eb160a8c4 --- /dev/null +++ b/dev-libs/geoip/geoip-1.6.10.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 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.12.ebuild b/dev-libs/geoip/geoip-1.6.12.ebuild new file mode 100644 index 000000000000..c5ce219e773e --- /dev/null +++ b/dev-libs/geoip/geoip-1.6.12.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 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> |