From owner-svn-ports-all@freebsd.org Fri May 11 20:30:20 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73AA0FCB363; Fri, 11 May 2018 20:30:20 +0000 (UTC) (envelope-from seanc@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 18B06691E5; Fri, 11 May 2018 20:30:20 +0000 (UTC) (envelope-from seanc@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E69BF14725; Fri, 11 May 2018 20:30:19 +0000 (UTC) (envelope-from seanc@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4BKUJEj047829; Fri, 11 May 2018 20:30:19 GMT (envelope-from seanc@FreeBSD.org) Received: (from seanc@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4BKUJjK047824; Fri, 11 May 2018 20:30:19 GMT (envelope-from seanc@FreeBSD.org) Message-Id: <201805112030.w4BKUJjK047824@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: seanc set sender to seanc@FreeBSD.org using -f From: Sean Chittenden Date: Fri, 11 May 2018 20:30:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r469691 - in head/sysutils: . sockaddr X-SVN-Group: ports-head X-SVN-Commit-Author: seanc X-SVN-Commit-Paths: in head/sysutils: . sockaddr X-SVN-Commit-Revision: 469691 X-SVN-Commit-Repository: ports 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.25 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, 11 May 2018 20:30:20 -0000 Author: seanc Date: Fri May 11 20:30:18 2018 New Revision: 469691 URL: https://svnweb.freebsd.org/changeset/ports/469691 Log: Add a new port: sysutils/sockaddr Sockaddr is a command-line utility that makes it easy to query network address information from the local server. With sockaddr it is possible to create a list of the RFC 1918 addresses on a server, obtain the default gateway, or public IP addresses and use this information in other shell scripts. See the website for additional templating and IP math functions. Reviewed by: mat, swills Approved by: swills (mentor) Differential Revision: https://reviews.freebsd.org/D14570 Added: head/sysutils/sockaddr/ head/sysutils/sockaddr/Makefile (contents, props changed) head/sysutils/sockaddr/distinfo (contents, props changed) head/sysutils/sockaddr/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Fri May 11 20:14:54 2018 (r469690) +++ head/sysutils/Makefile Fri May 11 20:30:18 2018 (r469691) @@ -1184,6 +1184,7 @@ SUBDIR += snmp_exporter SUBDIR += snooze SUBDIR += snowlog + SUBDIR += sockaddr SUBDIR += socket SUBDIR += socklog SUBDIR += solaar Added: head/sysutils/sockaddr/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/sockaddr/Makefile Fri May 11 20:30:18 2018 (r469691) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= sockaddr +DISTVERSION= g20180320 +CATEGORIES= sysutils + +MAINTAINER= seanc@FreeBSD.org +COMMENT= Command line utility for querying IP information + +LICENSE= MPL20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= go:lang/go + +USE_GITHUB= yes +GH_SUBDIR= src/github.com/hashicorp/go-sockaddr +GH_ACCOUNT= hashicorp +GH_PROJECT= go-sockaddr +GH_TAGNAME= 7165ee1 + +PLIST_FILES= bin/sockaddr + +post-extract: + @${CP} -rp ${WRKSRC}/cmd/${PORTNAME}/vendor/* ${WRKSRC}/src/ + +do-build: + @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/${PORTNAME}/ && \ + ${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOPATH=${WRKSRC} \ + ${LOCALBASE}/bin/go build -ldflags "-X main.version=${DISTVERSIONPREFIX}${PORTVERSION} -w -s" \ + -o ${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/hashicorp/go-sockaddr/cmd/${PORTNAME}/${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include Added: head/sysutils/sockaddr/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/sockaddr/distinfo Fri May 11 20:30:18 2018 (r469691) @@ -0,0 +1,3 @@ +TIMESTAMP = 1525900279 +SHA256 (hashicorp-go-sockaddr-g20180320-7165ee1_GH0.tar.gz) = 51a6c981da7aa9d9dd7ca9044115804cc40b6b1d926610c12ba2bf549a6daf2d +SIZE (hashicorp-go-sockaddr-g20180320-7165ee1_GH0.tar.gz) = 661149 Added: head/sysutils/sockaddr/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/sockaddr/pkg-descr Fri May 11 20:30:18 2018 (r469691) @@ -0,0 +1,8 @@ +Sockaddr is a command-line utility that makes it easy to query network +address information from the local server. With sockaddr it is possible +to create a list of the RFC 1918 addresses on a server, obtain the +default gateway, or public IP addresses and use this information in other +shell scripts. See the website for additional templating and IP math +functions. + +WWW: https://github.com/hashicorp/go-sockaddr/tree/master/cmd/sockaddr