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
This commit is contained in:
Jun Kuriyama 2015-08-23 07:12:09 +00:00
parent 2b0c269208
commit 605c6e20c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395074
5 changed files with 47 additions and 0 deletions

View File

@ -161,6 +161,7 @@
SUBDIR += gnu-radius
SUBDIR += go-amqp
SUBDIR += go-cs
SUBDIR += go-geoip
SUBDIR += go.net
SUBDIR += gofish
SUBDIR += gogoc

29
net/go-geoip/Makefile Normal file
View File

@ -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>

2
net/go-geoip/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (geoip-0.0.0.20131016_GH0.tar.gz) = 90607958d4301d0ea7a51828290cbe9c8ec5914dc8b1d5150c27894e4ea315d5
SIZE (geoip-0.0.0.20131016_GH0.tar.gz) = 5758

7
net/go-geoip/pkg-descr Normal file
View File

@ -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

8
net/go-geoip/pkg-plist Normal file
View File

@ -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