Date: Sunday, July 7, 2019 @ 17:34:53 Author: mtorromeo Revision: 487639
archrelease: copy trunk to community-any Added: geoip2-database/repos/community-any/PKGBUILD (from rev 487638, geoip2-database/trunk/PKGBUILD) geoip2-database/repos/community-any/check-last-modified.sh (from rev 487638, geoip2-database/trunk/check-last-modified.sh) Deleted: geoip2-database/repos/community-any/PKGBUILD geoip2-database/repos/community-any/check-last-modified.sh ------------------------+ PKGBUILD | 76 +++++++++++++++++++++++------------------------ check-last-modified.sh | 46 ++++++++++++++-------------- 2 files changed, 61 insertions(+), 61 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-07-07 17:34:36 UTC (rev 487638) +++ PKGBUILD 2019-07-07 17:34:53 UTC (rev 487639) @@ -1,38 +0,0 @@ -# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com> - -pkgname='geoip2-database' -pkgver=20190611 -pkgrel=1 -pkgdesc="GeoLite2 IP geolocation databases compiled by MaxMind" -arch=('any') -url="https://dev.maxmind.com/geoip/geoip2/geolite2/" -license=('custom:OPEN DATA LICENSE') -source=(https://geolite.maxmind.com/download/geoip/database/GeoLite2-City_$pkgver.tar.gz - https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country_$pkgver.tar.gz - https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN_$pkgver.tar.gz) -noextract=(GeoLite2-City_$pkgver.tar.gz - GeoLite2-Country_$pkgver.tar.gz - GeoLite2-ASN_$pkgver.tar.gz) -sha256sums=('85dbc340afb57c51a1154608a620b449252cf404588e3e6657a6b37a0c90d508' - 'd570dac030f6404425a8d213f414231e994d70ea6f0edc3e9f1c4dea16047448' - 'a51bcbeedaa148427f74409e08b4fe9ab21d32e3f08d83dcc7013c8b276f7f79') - -prepare() { - cd "$srcdir" - - for _db in GeoLite2-{City,Country,ASN}; do - tar --strip-components=1 -xf ${_db}_$pkgver.tar.gz --wildcards "*/$_db.mmdb" - done - - tar --strip-components=1 -xf GeoLite2-ASN_$pkgver.tar.gz --wildcards "*/COPYRIGHT.txt" "*/LICENSE.txt" -} - -package() { - cd "$srcdir" - - install -d "$pkgdir/usr/share/GeoIP" - install -m644 -t "$pkgdir/usr/share/GeoIP" GeoLite2-{City,Country,ASN}.mmdb - - install -Dm644 COPYRIGHT.txt "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT.txt" - install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" -} Copied: geoip2-database/repos/community-any/PKGBUILD (from rev 487638, geoip2-database/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-07-07 17:34:53 UTC (rev 487639) @@ -0,0 +1,38 @@ +# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com> + +pkgname='geoip2-database' +pkgver=20190702 +pkgrel=1 +pkgdesc="GeoLite2 IP geolocation databases compiled by MaxMind" +arch=('any') +url="https://dev.maxmind.com/geoip/geoip2/geolite2/" +license=('custom:OPEN DATA LICENSE') +source=(https://geolite.maxmind.com/download/geoip/database/GeoLite2-City_$pkgver.tar.gz + https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country_$pkgver.tar.gz + https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN_$pkgver.tar.gz) +noextract=(GeoLite2-City_$pkgver.tar.gz + GeoLite2-Country_$pkgver.tar.gz + GeoLite2-ASN_$pkgver.tar.gz) +sha256sums=('2f8a174e66744336824a3d6054877964c0db53458fc6258acc01c3c328304245' + '85a6b346897b1734393eb7be662187cac1184c758675ca49378b1ed2ff25651e' + '8ea1121a78f4852667e356b398cfaa811abf4d300ee69b35499624316d7c6c1c') + +prepare() { + cd "$srcdir" + + for _db in GeoLite2-{City,Country,ASN}; do + tar --strip-components=1 -xf ${_db}_$pkgver.tar.gz --wildcards "*/$_db.mmdb" + done + + tar --strip-components=1 -xf GeoLite2-ASN_$pkgver.tar.gz --wildcards "*/COPYRIGHT.txt" "*/LICENSE.txt" +} + +package() { + cd "$srcdir" + + install -d "$pkgdir/usr/share/GeoIP" + install -m644 -t "$pkgdir/usr/share/GeoIP" GeoLite2-{City,Country,ASN}.mmdb + + install -Dm644 COPYRIGHT.txt "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT.txt" + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" +} Deleted: check-last-modified.sh =================================================================== --- check-last-modified.sh 2019-07-07 17:34:36 UTC (rev 487638) +++ check-last-modified.sh 2019-07-07 17:34:53 UTC (rev 487639) @@ -1,23 +0,0 @@ -#!/bin/bash -e - -# Unicode characters taken from pactree.c -UNICODE_IS_FUN="\u2514\u2500" - -verbose=0 -if [[ $1 == -v ]]; then - verbose=1 -fi - -URLS=(http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz - http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz - http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz) - -for url in ${URLS[@]}; do - last_mod=$(curl -sI $url | grep -i ^Last-Modified: | cut -d' ' -f2- | tr -d '\r') - echo "$last_mod (${url##*/})" - - if ((verbose)); then - build_id=$(curl -s $url | gzip -cd | grep -aoE '[0-9]{8} Build [0-9]*') - echo -e "${UNICODE_IS_FUN}$build_id" - fi -done Copied: geoip2-database/repos/community-any/check-last-modified.sh (from rev 487638, geoip2-database/trunk/check-last-modified.sh) =================================================================== --- check-last-modified.sh (rev 0) +++ check-last-modified.sh 2019-07-07 17:34:53 UTC (rev 487639) @@ -0,0 +1,23 @@ +#!/bin/bash -e + +# Unicode characters taken from pactree.c +UNICODE_IS_FUN="\u2514\u2500" + +verbose=0 +if [[ $1 == -v ]]; then + verbose=1 +fi + +URLS=(http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz + http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz + http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz) + +for url in ${URLS[@]}; do + last_mod=$(curl -sI $url | grep -i ^Last-Modified: | cut -d' ' -f2- | tr -d '\r') + echo "$last_mod (${url##*/})" + + if ((verbose)); then + build_id=$(curl -s $url | gzip -cd | grep -aoE '[0-9]{8} Build [0-9]*') + echo -e "${UNICODE_IS_FUN}$build_id" + fi +done