# $Id: Portfile 149920 2016-07-05 21:19:33Z ryandesign@macports.org $ PortSystem 1.0 PortGroup github 1.0 github.setup maxmind geoipupdate 2.2.2 v categories devel net maintainers nomaintainer description Maxmind geoip databse updater license GPL-2+ long_description ${description} homepage http://dev.maxmind.com/geoip/geoipupdate/ github.tarball_from releases checksums rmd160 bbfae53ac8af2b2b59196c92e4f96d3c827c8c34 \ sha256 156ab7604255a9c62c4a442c76d48d024ac813c6542639bffa93b28e2a781621 platforms darwin depends_lib port:zlib port:curl post-destroot { #- default conf gets installed as GeoIP.conf.default delete ${destroot}${prefix}/etc/GeoIP.conf #- install a sample that gets the free databases xinstall -m 644 ${filespath}/GeoIP.conf-sample ${destroot}${prefix}/etc/GeoIP.conf-sample } post-activate { #- set up to use the free DBs if we don't already have a configuration if {![file exists ${prefix}/etc/GeoIP.conf]} { file copy ${prefix}/etc/GeoIP.conf-sample ${prefix}/etc/GeoIP.conf } }