Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
GeoIP: fix local installation
- remove bad bee name
- be0ify
- use local archives
- fix autoconf
- remove dev support
- boil down
  • Loading branch information
wwwutz committed Sep 27, 2019
1 parent b08bbb7 commit b214191
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions GeoIP-1.4.8-1.x86_64.bee → GeoIP.be0
@@ -1,7 +1,12 @@
#!/usr/bin/env beesh

SRCURL[0]="http://www.maxmind.com/download/geoip/api/c/GeoIP-${PKGVERSION}.tar.gz"
PATCHURL[0]="http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz"
# BEE_VERSION GeoIP-1.4.8-2

# no vars since this is the latest for all time

SRCURL[0]="/src/mariux/download/GeoIP-1.4.8.tar.gz"

PATCHURL[0]="/src/mariux/download/GeoIP-1.4.8-1-GeoLiteCity.dat.gz"

#PATCHURL[0]=""

Expand All @@ -26,10 +31,18 @@ mee_patch() {
gzip --force -d -c "${@}" > ${S}/GeoLiteCity.dat
}

mee_patch_post() {
# do NOT put downloaded patches in /usr/share/bee
unset bee_PATCHFILES
}

mee_configure() {
cp -vax /usr/share/libtool/config/ltmain.sh ${S}
autoreconf -i
cp -vax /usr/share/libtool/config/ltmain.sh ${S}
CFLAGS=-Wno-unused-but-set-variable \
bee_configure \
--disable-dependency-tracking \
--enable-shared=no \
--with-gnu-ld
}

Expand All @@ -42,4 +55,8 @@ mee_install() {
bee_install
mkdir -p ${D}/usr/share/GeoIP
mv -v ${S}/GeoLiteCity.dat ${D}/usr/share/GeoIP/GeoIPCity.dat
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
}

0 comments on commit b214191

Please sign in to comment.