Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Sep 2016 15:58:43 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421621 - in head/net-mgmt: . gnu-ipcalc
Message-ID:  <201609091558.u89FwhV1051901@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Fri Sep  9 15:58:43 2016
New Revision: 421621
URL: https://svnweb.freebsd.org/changeset/ports/421621

Log:
  Add gnu-ipcalc 0.1.8, modern network address calculation tool for IPv4
  and IPv6.

Added:
  head/net-mgmt/gnu-ipcalc/
  head/net-mgmt/gnu-ipcalc/Makefile   (contents, props changed)
  head/net-mgmt/gnu-ipcalc/distinfo   (contents, props changed)
  head/net-mgmt/gnu-ipcalc/pkg-descr   (contents, props changed)
Modified:
  head/net-mgmt/Makefile

Modified: head/net-mgmt/Makefile
==============================================================================
--- head/net-mgmt/Makefile	Fri Sep  9 15:10:57 2016	(r421620)
+++ head/net-mgmt/Makefile	Fri Sep  9 15:58:43 2016	(r421621)
@@ -69,6 +69,7 @@
     SUBDIR += flowviewer
     SUBDIR += fprobe
     SUBDIR += glpi-plugins-fusioninventory-server
+    SUBDIR += gnu-ipcalc
     SUBDIR += grepcidr
     SUBDIR += grepip
     SUBDIR += gsnmp

Added: head/net-mgmt/gnu-ipcalc/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/gnu-ipcalc/Makefile	Fri Sep  9 15:58:43 2016	(r421621)
@@ -0,0 +1,43 @@
+# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	ipcalc
+PORTVERSION=	0.1.8
+CATEGORIES=	net-mgmt
+PKGNAMEPREFIX=	gnu-
+
+MAINTAINER=	ehaupt@FreeBSD.org
+COMMENT=	Modern network address calculation tool for IPv4 and IPv6
+
+LICENSE=	GPLv2
+
+CONFLICTS_INSTALL=	ipcalc-[0-9]*
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	nmav
+
+OPTIONS_DEFINE=	GEOIP
+OPTIONS_DEFAULT=GEOIP
+
+GEOIP_LIB_DEPENDS=	libGeoIP.so:net/GeoIP
+
+CFLAGS+=	-I${LOCALBASE}/include \
+		-DLIBPATH="\"${LOCALBASE}/lib\"" \
+		-DVERSION="\"${PORTVERSION}\""
+
+GEOIP_CFLAGS+=	-DUSE_DYN_GEOIP -DUSE_GEOIP
+
+PLIST_FILES=	bin/ipcalc man/man1/ipcalc.1.gz
+
+do-build:
+	${CC} ${CFLAGS} \
+		${WRKSRC}/ipcalc.c \
+		${WRKSRC}/ipcalc-geoip.c \
+		${WRKSRC}/ipcalc-reverse.c \
+			-o ${WRKSRC}/ipcalc
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
+
+.include <bsd.port.mk>

Added: head/net-mgmt/gnu-ipcalc/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/gnu-ipcalc/distinfo	Fri Sep  9 15:58:43 2016	(r421621)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1473432181
+SHA256 (nmav-ipcalc-0.1.8_GH0.tar.gz) = 760af9c3b34fcbb9c5c4f9adc2dd03458ebc47c184a9656f34963ba9fcbef2cb
+SIZE (nmav-ipcalc-0.1.8_GH0.tar.gz) = 24783

Added: head/net-mgmt/gnu-ipcalc/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/gnu-ipcalc/pkg-descr	Fri Sep  9 15:58:43 2016	(r421621)
@@ -0,0 +1,11 @@
+This is a modern tool to assist in network address calculations for IPv4 and
+IPv6. It acts both as a tool to output human readable information about a
+network or address, as well as a tool suitable to be used by scripts or other
+programs.
+
+It supports printing a summary about the provided network address, multiple
+command line options per information to be printed, transparent IPv6 support,
+and in addition it will use libGeoIP if available to provide geographic
+information.
+
+WWW: https://github.com/nmav/ipcalc/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609091558.u89FwhV1051901>