diff options
| author | Changqing Li <changqing.li@windriver.com> | 2018-11-20 14:48:03 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2018-11-26 09:38:14 -0800 |
| commit | f6e6519bb0d9d1357bdc2df736ec1aec24cc2e65 (patch) | |
| tree | ccef7350ea7eb61ec8f5adbca96a29de009776d2 | |
| parent | 39dc55a4989d6bed417a53642a19e8fb73f5d134 (diff) | |
| download | meta-openembedded-f6e6519bb0d9d1357bdc2df736ec1aec24cc2e65.tar.gz | |
geoip: add downloadfilename for geoip database files
previous change of checksum don't trigger archive to re-downloaded,
, which will cause checksum mismatch. add downloadfilename to
trigger re-download.
1. for user with PREMIRROR, another benefit is it can still compile
success event upstream checksum change frequently.
2. but for user don't use PREMIRROR, if upstream checksum changed,
still might have checksum mismatch problem.
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-support/geoip/geoip_1.6.12.bb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/meta-networking/recipes-support/geoip/geoip_1.6.12.bb b/meta-networking/recipes-support/geoip/geoip_1.6.12.bb index 1e1a7ff677..57f0b67ddb 100644 --- a/meta-networking/recipes-support/geoip/geoip_1.6.12.bb +++ b/meta-networking/recipes-support/geoip/geoip_1.6.12.bb | |||
| @@ -9,10 +9,10 @@ HOMEPAGE = "http://dev.maxmind.com/geoip/" | |||
| 9 | SECTION = "libdevel" | 9 | SECTION = "libdevel" |
| 10 | 10 | ||
| 11 | SRC_URI = "git://github.com/maxmind/geoip-api-c.git \ | 11 | SRC_URI = "git://github.com/maxmind/geoip-api-c.git \ |
| 12 | http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz;apply=no;name=GeoIP-dat \ | 12 | http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz;apply=no;name=GeoIP-dat;downloadfilename=GeoIP.dat.20181120.gz \ |
| 13 | http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz;apply=no;name=GeoIPv6-dat \ | 13 | http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz;apply=no;name=GeoIPv6-dat;downloadfilename=GeoIPv6.dat.20181120.gz \ |
| 14 | http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz;apply=no;name=GeoLiteCity-dat \ | 14 | http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz;apply=no;name=GeoLiteCity-dat;downloadfilename=GeoLiteCity.dat.20181120.gz \ |
| 15 | http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz;apply=no;name=GeoLiteCityv6-dat \ | 15 | http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz;apply=no;name=GeoLiteCityv6-dat;downloadfilename=GeoLiteCityv6.dat.20181120.gz \ |
| 16 | file://run-ptest \ | 16 | file://run-ptest \ |
| 17 | " | 17 | " |
| 18 | SRCREV = "4b526e7331ca1d692b74a0509ddcc725622ed31a" | 18 | SRCREV = "4b526e7331ca1d692b74a0509ddcc725622ed31a" |
| @@ -20,14 +20,14 @@ SRCREV = "4b526e7331ca1d692b74a0509ddcc725622ed31a" | |||
| 20 | SRC_URI[GeoIP-dat.md5sum] = "d538e57ad9268fdc7955c6cf9a37c4a9" | 20 | SRC_URI[GeoIP-dat.md5sum] = "d538e57ad9268fdc7955c6cf9a37c4a9" |
| 21 | SRC_URI[GeoIP-dat.sha256sum] = "b9c05eb8bfcf90a6ddfdc6815caf40a8db2710f0ce3dd48fbd6c24d485ae0449" | 21 | SRC_URI[GeoIP-dat.sha256sum] = "b9c05eb8bfcf90a6ddfdc6815caf40a8db2710f0ce3dd48fbd6c24d485ae0449" |
| 22 | 22 | ||
| 23 | SRC_URI[GeoIPv6-dat.md5sum] = "00dc3b3f53eb5f7bf6915f939998f12c" | 23 | SRC_URI[GeoIPv6-dat.md5sum] = "a908d7a51c3883eb8f693ca197c7a142" |
| 24 | SRC_URI[GeoIPv6-dat.sha256sum] = "e72221fc630094d7256521b307e9142fb77d2167a27de2c11da536a2ba1d1480" | 24 | SRC_URI[GeoIPv6-dat.sha256sum] = "1b06e34eed2c539606a9ab4d97b2140ac80bf9f528d16ad2e3831c75014c2710" |
| 25 | 25 | ||
| 26 | SRC_URI[GeoLiteCity-dat.md5sum] = "d700c137232f8e077ac8db8577f699d9" | 26 | SRC_URI[GeoLiteCity-dat.md5sum] = "d700c137232f8e077ac8db8577f699d9" |
| 27 | SRC_URI[GeoLiteCity-dat.sha256sum] = "90db2e52195e3d1bcdb2c2789209006d09de5c742812dbd9a1b36c12675ec4cd" | 27 | SRC_URI[GeoLiteCity-dat.sha256sum] = "90db2e52195e3d1bcdb2c2789209006d09de5c742812dbd9a1b36c12675ec4cd" |
| 28 | 28 | ||
| 29 | SRC_URI[GeoLiteCityv6-dat.md5sum] = "7f6333d433d8127181ea3c5828287c98" | 29 | SRC_URI[GeoLiteCityv6-dat.md5sum] = "8ac3506ccabaae7e9f7d6301c2654313" |
| 30 | SRC_URI[GeoLiteCityv6-dat.sha256sum] = "c339e20cdf326c18aa3571bcd27845e6daf41ca5bfe9401bc472908aaeb42ac7" | 30 | SRC_URI[GeoLiteCityv6-dat.sha256sum] = "1c5fced1657d09448b3ecc14b65c9536228a627d93ed4159d3438b2c6faa8506" |
| 31 | 31 | ||
| 32 | LICENSE = "LGPL-2.1" | 32 | LICENSE = "LGPL-2.1" |
| 33 | 33 | ||
| @@ -44,10 +44,10 @@ EXTRA_OECONF = "--disable-static \ | |||
| 44 | do_install() { | 44 | do_install() { |
| 45 | make DESTDIR=${D} install | 45 | make DESTDIR=${D} install |
| 46 | install -d ${D}/${datadir}/GeoIP | 46 | install -d ${D}/${datadir}/GeoIP |
| 47 | install ${WORKDIR}/GeoIP.dat ${D}/${datadir}/GeoIP/ | 47 | install ${WORKDIR}/GeoIP.dat.20181120 ${D}/${datadir}/GeoIP/GeoIP.dat |
| 48 | install ${WORKDIR}/GeoIPv6.dat ${D}/${datadir}/GeoIP/ | 48 | install ${WORKDIR}/GeoIPv6.dat.20181120 ${D}/${datadir}/GeoIP/GeoIPv6.dat |
| 49 | install ${WORKDIR}/GeoLiteCity.dat ${D}/${datadir}/GeoIP/ | 49 | install ${WORKDIR}/GeoLiteCity.dat.20181120 ${D}/${datadir}/GeoIP/GeoLiteCity.dat |
| 50 | install ${WORKDIR}/GeoLiteCityv6.dat ${D}/${datadir}/GeoIP/ | 50 | install ${WORKDIR}/GeoLiteCityv6.dat.20181120 ${D}/${datadir}/GeoIP/GeoLiteCityv6.dat |
| 51 | ln -s GeoLiteCity.dat ${D}${datadir}/GeoIP/GeoIPCity.dat | 51 | ln -s GeoLiteCity.dat ${D}${datadir}/GeoIP/GeoIPCity.dat |
| 52 | } | 52 | } |
| 53 | 53 | ||
