#Maintainer: Dimitris Jemos <djemos~at~slackel~dot~gr>

pkgname=GeoIP
pkgver=1.4.8
pkgrel=1rl
source=(http://www.maxmind.com/download/geoip/api/c/$pkgname-$pkgver.tar.gz)
sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname
docs=("readme" "install" "copying" "changelog" "authors" "todo")
url=http://www.maxmind.com/geoip
options=('noautodotnew')
dotnew=('etc/GeoIP.conf')

slackdesc=\
(
 #|-----handy-ruler------------------------------------------------------|
   "GeoIP (GeoIP API and database)"
   "GeoIP is the proprietary technology that drives MaxMind's IP"
   "geolocation data and services. GeoIP provides businesses with a"
   "non-invasive way to determine geographical and other information"
   "about their Internet visitors in real-time."
   "To name a few applications, GeoIP can be used for delivering"
   "customized content, targeted ads and web log statistics"
   "" 
   "Homepage: http://www.maxmind.com/download/geoip/api/c/"
)

build() {
       cd $SRC/$pkgname-$pkgver || return 1
        libtoolize -f
      ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc \
      --disable-static \
      --mandir=/usr/man \
      --program-prefix= \
      --program-suffix= \
      --build=$arch-slackware-linux

        make -j $numjobs || return 1
        make install DESTDIR=$PKG || return 1
}