Skip to content
Permalink
b2141918ce
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 62 lines (45 sloc) 1.19 KB
#!/usr/bin/env beesh
# 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]=""
# BEE_CONFIGURE=compat
# BEE_BUILDTYPE=
BEE_EXTRACT_STRIP=2
# EXCLUDE=()
build_in_sourcedir
mee_extract() {
bee_extract "${@}"
}
mee_patch() {
# bee_patch "${@}"
# gzip --force -d -c "${F}/GeoLiteCity.dat.gz" > ${S}/GeoLiteCity.dat
gzip --force -d -c "${@}" > ${S}/GeoLiteCity.dat
}
mee_patch_post() {
# do NOT put downloaded patches in /usr/share/bee
unset bee_PATCHFILES
}
mee_configure() {
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
}
mee_build() {
grep LIBTOOL ${S}/Makefile
bee_build
}
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
}