From 2b7b650ca41bea1022a9f50aa9641cf6b61aadc2 Mon Sep 17 00:00:00 2001 From: milisarge Date: Thu, 1 Jun 2017 19:14:21 +0300 Subject: [PATCH] geoip-gerekler.paketlendi --- talimatname/genel/geoip-database/talimat | 20 ++++++++++++++++++++ talimatname/genel/geoip/talimat | 22 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 talimatname/genel/geoip-database/talimat create mode 100644 talimatname/genel/geoip/talimat diff --git a/talimatname/genel/geoip-database/talimat b/talimatname/genel/geoip-database/talimat new file mode 100644 index 000000000..353ff73f6 --- /dev/null +++ b/talimatname/genel/geoip-database/talimat @@ -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 +} diff --git a/talimatname/genel/geoip/talimat b/talimatname/genel/geoip/talimat new file mode 100644 index 000000000..6585b451e --- /dev/null +++ b/talimatname/genel/geoip/talimat @@ -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 +}