pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

initial commit of geoloc



Module Name:	pkgsrc-wip
Committed By:	David Carlier <devnexen%gmail.com@localhost>
Pushed By:	devnexen
Date:		Fri Nov 6 13:51:12 2015 +0000
Changeset:	279c5ce7cad44d01bacf63ab597905b16c4f0c7c

Modified Files:
	Makefile
Added Files:
	geoloc/DESCR
	geoloc/Makefile
	geoloc/PLIST
	geoloc/distinfo

Log Message:
initial commit of geoloc

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=279c5ce7cad44d01bacf63ab597905b16c4f0c7c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile        |  1 +
 geoloc/DESCR    |  5 +++++
 geoloc/Makefile | 39 +++++++++++++++++++++++++++++++++++++++
 geoloc/PLIST    |  5 +++++
 geoloc/distinfo |  6 ++++++
 5 files changed, 56 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 3a441ec..968a84f 100644
--- a/Makefile
+++ b/Makefile
@@ -793,6 +793,7 @@ SUBDIR+=	geekcode
 SUBDIR+=	gemrb
 SUBDIR+=	geners
 SUBDIR+=	genus2reduction
+SUBDIR+=	geoloc
 SUBDIR+=	gerris
 SUBDIR+=	gerris-snapshot
 SUBDIR+=	getdp
diff --git a/geoloc/DESCR b/geoloc/DESCR
new file mode 100644
index 0000000..07619f0
--- /dev/null
+++ b/geoloc/DESCR
@@ -0,0 +1,5 @@
+geoloc
+
+Simple Unix socket which delivers some Geolocalisation's data
+per IP address request. It is API agnostic, hence several backends
+could be supported (for the moment GeoIP and IP2location).
diff --git a/geoloc/Makefile b/geoloc/Makefile
new file mode 100644
index 0000000..708d801
--- /dev/null
+++ b/geoloc/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD$
+
+DISTNAME=	geoloc-${V}
+V=		1.0
+MASTER_SITES=	${MASTER_SITE_GITHUB:=devnexen/}
+HOMEPAGE=	${MASTER_SITE_GITHUB:=devnexen/geoloc/}
+GITHUB_TAG=	v1.0
+EXTRACT_SUFX=	.zip
+
+CATEGORIES=	net
+
+MAINTAINER=	devnexen%gmail.com@localhost
+COMMENT=	The geoloc app is an unix socket which delivers geo data
+
+LICENSE=	2-clause-bsd
+
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++
+
+CMAKE_ARGS=	-DGEOLOC_INSTALL_PATH=${PKGDIR}
+
+CONF_FILES=	${WRKSRC}/geolocd/geolocd.conf ${PREFIX}/etc/geolocd.conf
+
+YACC=		yacc
+USE_TOOLS=	yacc
+
+post-extract:
+		cd ${WRKSRC} && ${YACC} -o geolocd/y.tab.c geolocd/parse.y
+
+pre-install:
+		${MKDIR} ${DESTDIR}/${PREFIX}/sbin && cp ${WRKSRC}/build/geolocd ${DESTDIR}/${PREFIX}/sbin \
+		&& cp ${WRKSRC}/build/geolocctl ${DESTDIR}/${PREFIX}/sbin && \
+		${MKDIR} ${DESTDIR}/${PREFIX}/etc && cp ${WRKSRC}/geolocd/geolocd.conf ${DESTDIR}/${PREFIX}/etc && \
+		${MKDIR} ${DESTDIR}/${PREFIX}/man8 && cp ${WRKSRC}/geolocd/geolocd.8 ${DESTDIR}/${PREFIX}/man8 && \
+		${MKDIR} ${DESTDIR}/${PREFIX}/man5 && cp ${WRKSRC}/geolocd/geolocd.conf.5 ${DESTDIR}/${PREFIX}/man5 && \
+		${MKDIR} ${DESTDIR}/${PREFIX}/man1 && cp ${WRKSRC}/geolocctl/geolocctl.1 ${DESTDIR}/${PREFIX}/man1
+
+.include "../../net/GeoIP/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/geoloc/PLIST b/geoloc/PLIST
new file mode 100644
index 0000000..6987dbb
--- /dev/null
+++ b/geoloc/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+sbin/geolocd
+sbin/geolocctl
+man1/geolocctl.1
+man8/geolocd.8
diff --git a/geoloc/distinfo b/geoloc/distinfo
new file mode 100644
index 0000000..1ded2a6
--- /dev/null
+++ b/geoloc/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (geoloc-1.0.zip) = 9367d512089b632f9fa039d9c8d8705ffa15bcd1
+RMD160 (geoloc-1.0.zip) = 2b0ab7e5e6d205ced4d70fd47ac4d9e5fc770299
+SHA512 (geoloc-1.0.zip) = 4a53c2bae0f5dab7c28ac34c03ace7aeef7ca81e8aa7fc738adbba4f1180cbe9ffb576128856f2a6f771e769f31fe9c375bc48a4fb917056f5e635294292d3f9
+Size (geoloc-1.0.zip) = 24308 bytes


Home | Main Index | Thread Index | Old Index