diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2015-08-23 15:12:09 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2015-08-23 15:12:09 +0800 |
commit | b4dbe7df300dd1aab4120b33c58165b5ee904057 (patch) | |
tree | 24096f1b1fc777b9df5e79ac4a073bbd8f9b2a4c /net/go-geoip | |
parent | abcc944d14067696b3593f1941dc31b2b3642685 (diff) | |
download | freebsd-ports-gnome-b4dbe7df300dd1aab4120b33c58165b5ee904057.tar.gz freebsd-ports-gnome-b4dbe7df300dd1aab4120b33c58165b5ee904057.tar.zst freebsd-ports-gnome-b4dbe7df300dd1aab4120b33c58165b5ee904057.zip |
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
Diffstat (limited to 'net/go-geoip')
-rw-r--r-- | net/go-geoip/Makefile | 29 | ||||
-rw-r--r-- | net/go-geoip/distinfo | 2 | ||||
-rw-r--r-- | net/go-geoip/pkg-descr | 7 | ||||
-rw-r--r-- | net/go-geoip/pkg-plist | 8 |
4 files changed, 46 insertions, 0 deletions
diff --git a/net/go-geoip/Makefile b/net/go-geoip/Makefile new file mode 100644 index 000000000000..e4d2f54c3cca --- /dev/null +++ b/net/go-geoip/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= geoip +PORTVERSION= 0.0.0.20131016 +CATEGORIES= net +MASTER_SITES= GH GHC +PKGNAMEPREFIX= go- + +MAINTAINER= kuriyama@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> diff --git a/net/go-geoip/distinfo b/net/go-geoip/distinfo new file mode 100644 index 000000000000..80f458b470ea --- /dev/null +++ b/net/go-geoip/distinfo @@ -0,0 +1,2 @@ +SHA256 (geoip-0.0.0.20131016_GH0.tar.gz) = 90607958d4301d0ea7a51828290cbe9c8ec5914dc8b1d5150c27894e4ea315d5 +SIZE (geoip-0.0.0.20131016_GH0.tar.gz) = 5758 diff --git a/net/go-geoip/pkg-descr b/net/go-geoip/pkg-descr new file mode 100644 index 000000000000..ef538a5c47d6 --- /dev/null +++ b/net/go-geoip/pkg-descr @@ -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 diff --git a/net/go-geoip/pkg-plist b/net/go-geoip/pkg-plist new file mode 100644 index 000000000000..5b745eef32e9 --- /dev/null +++ b/net/go-geoip/pkg-plist @@ -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 |