# -*- 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 # $Id$ PortSystem 1.0 name GeoLiteCity version 20110501 categories databases devel net maintainers pixilla platforms darwin supported_archs noarch description GeoIP Lite City database (libgeoip) long_description ${description} homepage http://www.maxmind.com/app/geolitecity master_sites http://distfiles.macports.org/GeoLiteCity 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 regex livecheck.url http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_CSV/ livecheck.regex "${name}_(\\d\{8\}).zip"