diff options
author | Olli Hauer <ohauer@FreeBSD.org> | 2013-03-28 13:03:40 +0000 |
---|---|---|
committer | Olli Hauer <ohauer@FreeBSD.org> | 2013-03-28 13:03:40 +0000 |
commit | 3fb0fe4a4aabb4bef2a34d1d9da717c12cc3b714 (patch) | |
tree | cfcc25485ee9f0a965fde9d4b6575c357d0cb5bc /net | |
parent | 8334bd8845447af2004d17480636fe938fd3c7ed (diff) | |
download | ports-3fb0fe4a4aabb4bef2a34d1d9da717c12cc3b714.tar.gz ports-3fb0fe4a4aabb4bef2a34d1d9da717c12cc3b714.zip |
Notes
Diffstat (limited to 'net')
-rw-r--r-- | net/sflowtool/Makefile | 14 | ||||
-rw-r--r-- | net/sflowtool/distinfo | 4 | ||||
-rw-r--r-- | net/sflowtool/files/patch-src__sflowtool.c | 31 | ||||
-rw-r--r-- | net/sflowtool/pkg-descr | 5 |
4 files changed, 11 insertions, 43 deletions
diff --git a/net/sflowtool/Makefile b/net/sflowtool/Makefile index 6339bcf18be3..9c09e6f4f7ed 100644 --- a/net/sflowtool/Makefile +++ b/net/sflowtool/Makefile @@ -1,12 +1,8 @@ -# New ports collection makefile for: sflowtool -# Date created: 21 Mar 2006 -# Whom: Gregory Edigarov <greg@bestnet.kharkov.ua> -# +# Created by: Gregory Edigarov <greg@bestnet.kharkov.ua> # $FreeBSD$ -# PORTNAME= sflowtool -PORTVERSION= 3.18 +PORTVERSION= 3.28 CATEGORIES= net MASTER_SITES= http://www.inmon.com/bin/ @@ -21,12 +17,14 @@ PORTDOCS= README PORTEXAMPLES= README ipTopTalkers ipTrafficMatrix sflowRRDChart.cgi \ sflowRRDLoad sflowenable +.include <bsd.port.options.mk> + post-install: -.ifndef(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR} .endif -.ifndef(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} . for f in ${PORTEXAMPLES} @${INSTALL_DATA} ${WRKSRC}/scripts/$f ${EXAMPLESDIR}/ diff --git a/net/sflowtool/distinfo b/net/sflowtool/distinfo index 6482853b6b91..0954819e4de6 100644 --- a/net/sflowtool/distinfo +++ b/net/sflowtool/distinfo @@ -1,2 +1,2 @@ -SHA256 (sflowtool-3.18.tar.gz) = b671156553915fcba84d90d932e12599c67a183fea86a8956d58cc9f4a22ac5e -SIZE (sflowtool-3.18.tar.gz) = 148020 +SHA256 (sflowtool-3.28.tar.gz) = ef8b37244965a241098ae6c1927ae15a28c06532fd6fc33937d6e634314a4103 +SIZE (sflowtool-3.28.tar.gz) = 166990 diff --git a/net/sflowtool/files/patch-src__sflowtool.c b/net/sflowtool/files/patch-src__sflowtool.c deleted file mode 100644 index 0b2a76e7e8fa..000000000000 --- a/net/sflowtool/files/patch-src__sflowtool.c +++ /dev/null @@ -1,31 +0,0 @@ ---- ./src/sflowtool.c.orig 2011-01-26 04:35:22.270624572 +0300 -+++ ./src/sflowtool.c 2011-01-26 04:36:29.375609602 +0300 -@@ -3238,14 +3238,14 @@ - static int openInputUDPSocket(u_int16_t port) - { - int soc; -- struct sockaddr_in6 myaddr_in; -+ struct sockaddr_in myaddr_in; - long save_fd; - - /* Create socket */ -- memset((char *)&myaddr_in, 0, sizeof(struct sockaddr_in6)); -- myaddr_in.sin6_family = AF_INET6; -- //myaddr_in.sin_addr.s_addr = INADDR_ANY; -- myaddr_in.sin6_port = htons(port); -+ memset((char *)&myaddr_in, 0, sizeof(struct sockaddr_in)); -+ myaddr_in.sin_family = AF_INET; -+ myaddr_in.sin_addr.s_addr = INADDR_ANY; -+ myaddr_in.sin_port = htons(port); - - if ((soc = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) { - fprintf(stderr, "socket() failed, %s\n", strerror(errno)); -@@ -3260,7 +3260,7 @@ - #endif /* WIN32 */ - - /* Bind the socket */ -- if (bind(soc, (struct sockaddr *)&myaddr_in, sizeof(struct sockaddr_in6)) == -1) { -+ if (bind(soc, (struct sockaddr *)&myaddr_in, sizeof(struct sockaddr_in)) == -1) { - fprintf(stderr, "bind() failed, port = %d : %s\n", port, strerror(errno)); - exit(-7); - } diff --git a/net/sflowtool/pkg-descr b/net/sflowtool/pkg-descr index 690e28e49f2d..c51fee08cd76 100644 --- a/net/sflowtool/pkg-descr +++ b/net/sflowtool/pkg-descr @@ -1,5 +1,6 @@ This tool receives sFlow data, and generates either a simple-to-parse -tagged-ASCII output, or binary output in tcpdump(1) format. It can also generate -Cisco NetFlow version 5 datagrams and send them to a destination UDP host:port. +tagged-ASCII output, or binary output in tcpdump(1) format. It can also +generate Cisco NetFlow version 5 datagrams and send them to a destination +UDP host:port. WWW: http://www.inmon.com/technology/sflowTools.php |