svn commit: r408272 - in head/net-mgmt: . cdpsnarf cdpsnarf/files
Kurt Jaeger
pi at FreeBSD.org
Fri Feb 5 22:01:38 UTC 2016
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 <rihaz.jerrin at gmail.com>
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 at 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 <bsd.port.mk>
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( " <tasos.laskos at gmail.com>\n" );
+- printf( " <zapotek at segfault.gr>\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
More information about the svn-ports-all
mailing list