From owner-svn-ports-head@freebsd.org Fri Feb 5 22:01:38 2016 Return-Path: Delivered-To: svn-ports-head@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 14F96A9E139; Fri, 5 Feb 2016 22:01:38 +0000 (UTC) (envelope-from pi@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 CD47BC6A; Fri, 5 Feb 2016 22:01:37 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u15M1aj1077286; Fri, 5 Feb 2016 22:01:36 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u15M1a9x077278; Fri, 5 Feb 2016 22:01:36 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201602052201.u15M1a9x077278@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Fri, 5 Feb 2016 22:01:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r408272 - in head/net-mgmt: . cdpsnarf cdpsnarf/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 22:01:38 -0000 Author: pi Date: Fri Feb 5 22:01:36 2016 New Revision: 408272 URL: https://svnweb.freebsd.org/changeset/ports/408272 Log: New port: net-mgmt/cdpsnarf CDPSnarf is a network sniffer exclusively written to extract information from CDP packets. It provides all the information a "show cdp neighbors detail" command would return on a Cisco router and even more. Features: Time intervals between CDP advertisements Source MAC address CDP Version TTL Checksum Device ID Software version Platform Addresses Port ID Capabilities Duplex Save packets in PCAP dump file format Read packets from PCAP dump files Debugging information (using the "-d" flag) Tested with IPv4 and IPv6 WWW: https://github.com/Zapotek/cdpsnarf PR: 206841 Submitted by: Rihaz Jerrin Added: head/net-mgmt/cdpsnarf/ head/net-mgmt/cdpsnarf/Makefile (contents, props changed) head/net-mgmt/cdpsnarf/distinfo (contents, props changed) head/net-mgmt/cdpsnarf/files/ head/net-mgmt/cdpsnarf/files/patch-cdpsnarf.c (contents, props changed) head/net-mgmt/cdpsnarf/pkg-descr (contents, props changed) head/net-mgmt/cdpsnarf/pkg-plist (contents, props changed) Modified: head/net-mgmt/Makefile Modified: head/net-mgmt/Makefile ============================================================================== --- head/net-mgmt/Makefile Fri Feb 5 21:45:51 2016 (r408271) +++ head/net-mgmt/Makefile Fri Feb 5 22:01:36 2016 (r408272) @@ -28,6 +28,7 @@ SUBDIR += ccnet SUBDIR += cdpd SUBDIR += cdpr + SUBDIR += cdpsnarf SUBDIR += centreon-clib SUBDIR += check_ipmi_sensor SUBDIR += check_logfiles Added: head/net-mgmt/cdpsnarf/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/cdpsnarf/Makefile Fri Feb 5 22:01:36 2016 (r408272) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= cdpsnarf +PORTVERSION= 0.1.6 +DISTVERSIONPREFIX= v +CATEGORIES= net-mgmt +MASTER_SITES= GH + +MAINTAINER= rihaz.jerrin@gmail.com +COMMENT= Tool to extract information from CDP packets + +LICENSE= GPLv2 + +LIB_DEPENDS= libpcap.so:${PORTSDIR}/net/libpcap + +USE_GITHUB= yes +GH_ACCOUNT= Zapotek + +post-patch: + ${REINPLACE_CMD} -e 's|gcc|cc|' ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + +.include Added: head/net-mgmt/cdpsnarf/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/cdpsnarf/distinfo Fri Feb 5 22:01:36 2016 (r408272) @@ -0,0 +1,2 @@ +SHA256 (Zapotek-cdpsnarf-v0.1.6_GH0.tar.gz) = 0e170c5d3e849c3a51d04005421ae2a1f367ccef0dae32a547d1dd8e33043f3a +SIZE (Zapotek-cdpsnarf-v0.1.6_GH0.tar.gz) = 18997 Added: head/net-mgmt/cdpsnarf/files/patch-cdpsnarf.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/cdpsnarf/files/patch-cdpsnarf.c Fri Feb 5 22:01:36 2016 (r408272) @@ -0,0 +1,14 @@ +--- cdpsnarf.c.orig 2016-02-05 16:29:16 UTC ++++ cdpsnarf.c +@@ -194,11 +194,6 @@ int main( int argc, char *argv[] ) { + int i = 0; + + printf( "CDPSnarf %s [%s] initiated.\n", VERSION, SVN_REV ); +- printf( " Author: Anastasios \"Zapotek\" Laskos\n" ); +- printf( " \n" ); +- printf( " \n" ); +- printf( " Website: http://www.segfault.gr\n" ); +- printf( " http://github.com/Zapotek/cdpsnarf\n\n" ); + + // get command line arguments + while( ( c = getopt( argc, argv, "i:dhw:r:" ) ) != -1 ) { Added: head/net-mgmt/cdpsnarf/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/cdpsnarf/pkg-descr Fri Feb 5 22:01:36 2016 (r408272) @@ -0,0 +1,24 @@ +CDPSnarf is a network sniffer exclusively written to +extract information from CDP packets. It provides all +the information a "show cdp neighbors detail" command +would return on a Cisco router and even more. + +A feature list follows: + Time intervals between CDP advertisements + Source MAC address + CDP Version + TTL + Checksum + Device ID + Software version + Platform + Addresses + Port ID + Capabilities + Duplex + Save packets in PCAP dump file format + Read packets from PCAP dump files + Debugging information (using the "-d" flag) + Tested with IPv4 and IPv6 + +Source: https://github.com/Zapotek/cdpsnarf Added: head/net-mgmt/cdpsnarf/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/cdpsnarf/pkg-plist Fri Feb 5 22:01:36 2016 (r408272) @@ -0,0 +1,2 @@ +bin/cdpsnarf +%%DOCSDIR%%/README