[142044] trunk/dports/devel

dluke at macports.org dluke at macports.org
Sat Dec 12 04:05:37 PST 2015


Revision: 142044
          https://trac.macports.org/changeset/142044
Author:   dluke at macports.org
Date:     2015-11-02 12:09:20 -0800 (Mon, 02 Nov 2015)
Log Message:
-----------
geoipupdate: new port to update maxmind geoip databases (see libgeoip)

Added Paths:
-----------
    trunk/dports/devel/geoipupdate/
    trunk/dports/devel/geoipupdate/Portfile
    trunk/dports/devel/geoipupdate/files/
    trunk/dports/devel/geoipupdate/files/GeoIP.conf-sample

Added: trunk/dports/devel/geoipupdate/Portfile
===================================================================
--- trunk/dports/devel/geoipupdate/Portfile	                        (rev 0)
+++ trunk/dports/devel/geoipupdate/Portfile	2015-11-02 20:09:20 UTC (rev 142044)
@@ -0,0 +1,36 @@
+# $Id$
+
+PortSystem 1.0
+
+name			geoipupdate
+version			2.2.1
+categories		devel net
+maintainers		nomaintainer
+description		Maxmind geoip databse updater
+license			GPL-2+
+
+long_description	${description}
+
+homepage		http://dev.maxmind.com/geoip/geoipupdate/
+master_sites	https://github.com/maxmind/geoipupdate/releases/download/v${version}/
+
+checksums	rmd160	b55cfb715c9ea615908788933ebecf8a3f2108af \
+			sha256	9547c42cc8620b2c3040fd8df95e8ee45c8b6ebcca7737d641f9526104d5f446
+
+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
+	}
+}


Property changes on: trunk/dports/devel/geoipupdate/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/geoipupdate/files/GeoIP.conf-sample
===================================================================
--- trunk/dports/devel/geoipupdate/files/GeoIP.conf-sample	                        (rev 0)
+++ trunk/dports/devel/geoipupdate/files/GeoIP.conf-sample	2015-11-02 20:09:20 UTC (rev 142044)
@@ -0,0 +1,13 @@
+# The following UserId and LicenseKey are required placeholders:
+UserId 999999
+LicenseKey 000000000000
+
+# Include one or more of the following ProductIds:
+# * GeoLite2-City - GeoLite 2 City
+# * GeoLite2-Country - GeoLite2 Country
+# * GeoLite-Legacy-IPv6-City - GeoLite Legacy IPv6 City
+# * GeoLite-Legacy-IPv6-Country - GeoLite Legacy IPv6 Country
+# * 506 - GeoLite Legacy Country
+# * 517 - GeoLite Legacy ASN
+# * 533 - GeoLite Legacy City
+ProductIds GeoLite2-City GeoLite2-Country GeoLite-Legacy-IPv6-City GeoLite-Legacy-IPv6-Country 506 517 533
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/6128bd8a/attachment.html>


More information about the macports-changes mailing list