geoip-gerekler.paketlendi

This commit is contained in:
milisarge 2017-06-01 19:14:21 +03:00
parent 5dea8ae355
commit 2b7b650ca4
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# Description: cografi ip çözücü veritabanı
# URL: http://www.maxmind.com/app/c
# Packager: milisarge
# Depends on:
name=geoip-database
version=20170601
release=1
source=(
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
)
build() {
umask 022
install -d $PKG/usr/share/GeoIP
for i in GeoIP.dat GeoIPv6.dat; do
gzip -dc $i.gz > $PKG/usr/share/GeoIP/$i
done
}

View File

@ -0,0 +1,22 @@
# Description: cografi ip çözücü veritabanı uygulaması
# URL: http://www.maxmind.com/app/c
# Packager: milisarge
# Depends on: geoip-database
name=geoip
version=1.6.10
release=1
source=(https://github.com/maxmind/${name}-api-c/archive/v${version}.tar.gz)
build() {
cd geoip-api-c-$version
autoreconf -vi
./configure \
--sysconfdir=/etc/geoip \
--prefix=/usr \
--mandir=/usr/man
make
make DESTDIR=$PKG install
}