Date: Tue, 8 Jul 2014 11:47:14 +0000 (UTC) From: Pawel Pekala <pawel@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r361222 - in head/security/doscan: . files Message-ID: <201407081147.s68BlEYp020271@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pawel Date: Tue Jul 8 11:47:14 2014 New Revision: 361222 URL: http://svnweb.freebsd.org/changeset/ports/361222 QAT: https://qat.redports.org/buildarchive/r361222/ Log: - Fix build with clang (add missing inlcudes in few files) - Add staging support - Convert to new LIB_DEPENDS format, options framework - Fix spelling mistakes, remove old maintainer contact from pkg-descr MFH: 2014Q3 Added: head/security/doscan/files/patch-src__event_queue_poll.cc (contents, props changed) head/security/doscan/files/patch-src__half_duplex.cc (contents, props changed) head/security/doscan/files/patch-src__proto_http_proxy.cc (contents, props changed) head/security/doscan/files/patch-src__tcp_server.cc (contents, props changed) Modified: head/security/doscan/Makefile head/security/doscan/pkg-descr Modified: head/security/doscan/Makefile ============================================================================== --- head/security/doscan/Makefile Tue Jul 8 11:42:50 2014 (r361221) +++ head/security/doscan/Makefile Tue Jul 8 11:47:14 2014 (r361222) @@ -7,29 +7,25 @@ PORTREVISION= 3 CATEGORIES= security net MASTER_SITES= http://static.enyo.de/fw/releases/doscan/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Tool to quickly scan your network for machines listening on a TCP port -LIB_DEPENDS= pcre.3:${PORTSDIR}/devel/pcre +LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre GNU_CONFIGURE= yes USES= gmake + PORTDOCS= README -MAN1= doscan.1 +PLIST_FILES= bin/doscan man/man1/doscan.1.gz -PLIST_FILES= bin/doscan +OPTIONS_DEFINE= DOCS -NO_STAGE= yes post-patch: ${REINPLACE_CMD} -e 's|ony o|on yo|' \ ${WRKSRC}/doc/doscan.1 post-install: -.ifndef(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for file in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -.endfor -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> Added: head/security/doscan/files/patch-src__event_queue_poll.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/doscan/files/patch-src__event_queue_poll.cc Tue Jul 8 11:47:14 2014 (r361222) @@ -0,0 +1,10 @@ +--- ./src/event_queue_poll.cc.orig 2014-07-08 13:37:17.446327398 +0200 ++++ ./src/event_queue_poll.cc 2014-07-08 13:37:46.925961262 +0200 +@@ -22,6 +22,7 @@ + + #include <cerrno> + #include <cstdio> ++#include <cstdlib> + #include <unistd.h> + + void Added: head/security/doscan/files/patch-src__half_duplex.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/doscan/files/patch-src__half_duplex.cc Tue Jul 8 11:47:14 2014 (r361222) @@ -0,0 +1,10 @@ +--- ./src/half_duplex.cc.orig 2014-07-08 13:35:10.175988570 +0200 ++++ ./src/half_duplex.cc 2014-07-08 13:35:42.546019678 +0200 +@@ -22,6 +22,7 @@ + + #include <cerrno> + #include <cstdio> ++#include <cstdlib> + #include <fcntl.h> + #include <string> + #include <sys/fcntl.h> Added: head/security/doscan/files/patch-src__proto_http_proxy.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/doscan/files/patch-src__proto_http_proxy.cc Tue Jul 8 11:47:14 2014 (r361222) @@ -0,0 +1,10 @@ +--- ./src/proto_http_proxy.cc.orig 2014-07-08 13:39:24.466003083 +0200 ++++ ./src/proto_http_proxy.cc 2014-07-08 13:40:02.286093067 +0200 +@@ -36,6 +36,7 @@ + #include <string> + #include <sys/types.h> + #include <sys/socket.h> ++#include <time.h> + + static bool proxy_start(subnets&); + static void proxy_open(scan_host_t *); Added: head/security/doscan/files/patch-src__tcp_server.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/doscan/files/patch-src__tcp_server.cc Tue Jul 8 11:47:14 2014 (r361222) @@ -0,0 +1,10 @@ +--- ./src/tcp_server.cc.orig 2014-07-08 13:38:28.586070857 +0200 ++++ ./src/tcp_server.cc 2014-07-08 13:38:54.175974881 +0200 +@@ -22,6 +22,7 @@ + + #include <cerrno> + #include <cstdio> ++#include <cstdlib> + #include <fcntl.h> + #include <netinet/in.h> + #include <sys/fcntl.h> Modified: head/security/doscan/pkg-descr ============================================================================== --- head/security/doscan/pkg-descr Tue Jul 8 11:42:50 2014 (r361221) +++ head/security/doscan/pkg-descr Tue Jul 8 11:47:14 2014 (r361222) @@ -6,19 +6,17 @@ are sparsely populated with hosts), with Load distribution: doscan scans the addresses in a seemingly random order. If your scan host is connected to a central router, this ensures that the load is distributed across your network, and you are -stress-tesing just a single router, and not your edge devices. +stress-testing just a single router, and not your edge devices. Low memory consumption: memory usage is proportional to the number of hosts which have responded so far, and to the number of parallel connections. The total number of addresses does not influence memory usage in any way. Can collect responses: doscan optionally records data which is sent by the hosts which are being scanned. You can even specify a regular -expresson to extract part of a server banner, and a message to send to +expression to extract part of a server banner, and a message to send to trigger a response (great for determining HTTP server versions). Extensibility: It is possible to add special handlers for TCP-based protocols, using a straightforward interface. It supports scanning the vulnerable Microsoft DCOM implementation. WWW: http://www.enyo.de/fw/software/doscan/ - -Janos Mohacsi <janos.mohacsi@bsd.hu>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407081147.s68BlEYp020271>