svn commit: r395074 - in head/net: . go-geoip
Jun Kuriyama
kuriyama at FreeBSD.org
Sun Aug 23 07:12:11 UTC 2015
Author: kuriyama
Date: Sun Aug 23 07:12:09 2015
New Revision: 395074
URL: https://svnweb.freebsd.org/changeset/ports/395074
Log:
This package wraps the libgeoip C library for access from Go
(golang).
You can download the free GeoLite Country database or you can
subscribe to updates.
WWW: https://github.com/abh/geoip
Added:
head/net/go-geoip/
head/net/go-geoip/Makefile (contents, props changed)
head/net/go-geoip/distinfo (contents, props changed)
head/net/go-geoip/pkg-descr (contents, props changed)
head/net/go-geoip/pkg-plist (contents, props changed)
Modified:
head/net/Makefile
Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile Sun Aug 23 06:49:59 2015 (r395073)
+++ head/net/Makefile Sun Aug 23 07:12:09 2015 (r395074)
@@ -161,6 +161,7 @@
SUBDIR += gnu-radius
SUBDIR += go-amqp
SUBDIR += go-cs
+ SUBDIR += go-geoip
SUBDIR += go.net
SUBDIR += gofish
SUBDIR += gogoc
Added: head/net/go-geoip/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/go-geoip/Makefile Sun Aug 23 07:12:09 2015 (r395074)
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+PORTNAME= geoip
+PORTVERSION= 0.0.0.20131016
+CATEGORIES= net
+MASTER_SITES= GH GHC
+PKGNAMEPREFIX= go-
+
+MAINTAINER= kuriyama at FreeBSD.org
+COMMENT= Go library to wrap the libgeoip C library
+
+LICENSE= MIT
+
+LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP
+
+USES= compiler
+USE_GITHUB= yes
+GH_ACCOUNT= abh
+GH_PROJECT= ${PORTNAME}
+GH_TAGNAME= da13074
+
+GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
+
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/lang/go/files/bsd.go.mk"
+.if ${COMPILER_TYPE} == clang && ${CC} == cc
+CC= clang
+.endif
+.include <bsd.port.post.mk>
Added: head/net/go-geoip/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/go-geoip/distinfo Sun Aug 23 07:12:09 2015 (r395074)
@@ -0,0 +1,2 @@
+SHA256 (geoip-0.0.0.20131016_GH0.tar.gz) = 90607958d4301d0ea7a51828290cbe9c8ec5914dc8b1d5150c27894e4ea315d5
+SIZE (geoip-0.0.0.20131016_GH0.tar.gz) = 5758
Added: head/net/go-geoip/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/go-geoip/pkg-descr Sun Aug 23 07:12:09 2015 (r395074)
@@ -0,0 +1,7 @@
+This package wraps the libgeoip C library for access from Go
+(golang).
+
+You can download the free GeoLite Country database or you can
+subscribe to updates.
+
+WWW: https://github.com/abh/geoip
Added: head/net/go-geoip/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/go-geoip/pkg-plist Sun Aug 23 07:12:09 2015 (r395074)
@@ -0,0 +1,8 @@
+%%GO_LIBDIR%%/%%GO_PKGNAME%%.a
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/LICENSE
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/README.md
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/const.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/db/download
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/ex/geoip-demo.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/geoip.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/geoip_test.go
More information about the svn-ports-head
mailing list