From owner-svn-ports-all@freebsd.org Fri Sep 9 15:58:44 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0BCBBD2182; Fri, 9 Sep 2016 15:58:44 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 792D8371; Fri, 9 Sep 2016 15:58:44 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u89FwhRn051905; Fri, 9 Sep 2016 15:58:43 GMT (envelope-from ehaupt@FreeBSD.org) Received: (from ehaupt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u89FwhV1051901; Fri, 9 Sep 2016 15:58:43 GMT (envelope-from ehaupt@FreeBSD.org) Message-Id: <201609091558.u89FwhV1051901@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ehaupt set sender to ehaupt@FreeBSD.org using -f From: Emanuel Haupt Date: Fri, 9 Sep 2016 15:58:43 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2016 15:58:44 -0000 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 +# $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 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/