Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 71 lines (53 sloc) 2.12 KB
#!/usr/bin/env beesh
# BEE_VERSION GeoIP-1.6.12-0
# no vars since this is the latest for all time
# SRCURL[0]="/src/mariux/download/GeoIP-1.4.8.tar.gz"
# SRCURL[0]="https://github.com/maxmind/geoip-api-c/archive/v1.6.12.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/727e5d6df9e9fc039dbc3a323cc56d2e/v1.6.12.tar.gz"
# PATCHURL[0]="/src/mariux/download/GeoIP-1.4.8-1-GeoLiteCity.dat.gz"'
# wget "https://dl.miyuru.lk/geoip/maxmind/country/maxmind4.dat.gz"
PATCHURL+=("https://beehive.molgen.mpg.de/bac1b69ed20af58d7d3cd5996dc668dd/country-maxmind4.dat.gz GeoIP.dat.gz")
# wget "https://dl.miyuru.lk/geoip/maxmind/country/maxmind6.dat.gz"
PATCHURL+=("https://beehive.molgen.mpg.de/db5a3a163eec06a6e4cf2606b1f0ac03/country-maxmind6.dat.gz GeoIPv6.dat.gz")
# wget "https://dl.miyuru.lk/geoip/maxmind/city/maxmind.dat.gz"
PATCHURL+=("https://beehive.molgen.mpg.de/5516cba225ef9983a122a8d73d0b5411/maxmind.dat.gz GeoIPCityv6.dat.gz")
# wget "https://dl.miyuru.lk/geoip/maxmind/city/maxmind4.dat.gz"
PATCHURL+=("https://beehive.molgen.mpg.de/0d59a57a2403df3551860728c82fe280/maxmind4.dat.gz GeoIPCity.dat.gz")
# wget "https://dl.miyuru.lk/geoip/maxmind/asn/maxmind4.dat.gz"
PATCHURL+=("https://beehive.molgen.mpg.de/49cea350c4a9e63cd515af70a3103799/asn-maxmind4.dat.gz GeoIPASNum.dat.gz")
# wget https://dl.miyuru.lk/geoip/maxmind/asn/maxmind6.dat.gz"
PATCHURL+=("https://beehive.molgen.mpg.de/c39da1becbdc5cdb5d88bd08e48071f3/asn-maxmind6.dat.gz GeoIPASNumv6.dat.gz")
# BEE_CONFIGURE=compat
BEE_BUILDTYPE=autotools
BEE_EXTRACT_STRIP=1
# EXCLUDE=()
build_in_sourcedir
mee_extract() {
bee_extract "${@}"
}
mee_patch() {
for i in "${@}"; do
cp -v $i ${S}/data
done
}
mee_patch_post() {
# do NOT put downloaded patches in /usr/share/bee
unset bee_PATCHFILES
./bootstrap
}
mee_configure() {
bee_configure \
--enable-shared=no
}
#mee_build() {
# bee_build
#}
mee_install() {
bee_install
mkdir -p ${D}/usr/share/GeoIP
cp -v ${S}/data/*.dat ${D}/usr/share/GeoIP/
rm -vrf ${D}/usr/include
rm -vrf ${D}/usr/lib
rm -vrf ${D}/etc
rm -vrf ${D}/usr/bin/geoipupdate ${D}/usr/share/man/man1/geoipupdate.1
}