# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                GeoLiteCity
version             20110501
categories          databases devel net
maintainers         nomaintainer
supported_archs     noarch
platforms           any
description         GeoIP Lite City database (libgeoip)
long_description    {*}${description}
homepage            http://www.maxmind.com/app/geolitecity
master_sites        macports_distfiles

checksums           sha1    14d0f0838c10cc9a984da5361d0bad44b13710ee \
                    rmd160  75d9d9940a8585b97dda157d7acc39def4bff1bb

depends_lib         port:libgeoip

use_configure       no
build {}

destroot  {
    set datadir ${destroot}${prefix}/share/GeoIP
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -m 755 -d ${datadir}
    xinstall ${worksrcpath}/GeoLiteCity.dat ${datadir}/GeoIPCity.dat
    xinstall -m 755 -d ${docdir}
    xinstall ${worksrcpath}/LICENSE.txt ${docdir}/LICENSE.txt
}

livecheck.type      none
