Index: head/security/arpCounterattack/Makefile =================================================================== --- head/security/arpCounterattack/Makefile (revision 502483) +++ head/security/arpCounterattack/Makefile (revision 502484) @@ -1,29 +1,30 @@ # Created by: Boris Kochergin # $FreeBSD$ PORTNAME= arpCounterattack PORTVERSION= 1.2.0 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= security MASTER_SITES= http://isis.poly.edu/~bk/${PORTNAME}/ \ http://bk.macroblock.net/${PORTNAME}/ MAINTAINER= ports@FreeBSD.org COMMENT= Detects and remedies ARP attacks -LIB_DEPENDS= libdnet.so:net/libdnet +LIB_DEPENDS= libdnet.so:net/libdnet \ + libpcap.so:net/libpcap USES= compiler:c++11-lib tar:tbz USE_CSTD= c++11 -SUB_FILES= pkg-message - USE_RC_SUBR= ${PORTNAME} + +SUB_FILES= pkg-message do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/etc/arpCounterattack ${INSTALL_PROGRAM} ${WRKSRC}/arpCounterattack \ ${STAGEDIR}${PREFIX}/sbin ${INSTALL_DATA} ${WRKSRC}/arpCounterattack.conf.sample \ ${WRKSRC}/oui.txt ${STAGEDIR}${PREFIX}/etc/arpCounterattack .include Index: head/security/arpCounterattack/files/patch-address.hpp =================================================================== --- head/security/arpCounterattack/files/patch-address.hpp (revision 502483) +++ head/security/arpCounterattack/files/patch-address.hpp (revision 502484) @@ -1,29 +1,29 @@ ---- address.hpp.orig 2010-09-28 18:12:26.000000000 +0000 +--- address.hpp.orig 2010-09-28 18:12:26 UTC +++ address.hpp @@ -28,7 +28,7 @@ #include #include -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__DragonFly__) #include #endif #ifdef __linux__ @@ -44,7 +44,7 @@ std::string textToEthernet(const std::string &textEthernetAddress) { ether_addr binaryEthernetAddress; ether_aton_r(textEthernetAddress.c_str(), &binaryEthernetAddress); - #ifdef __FreeBSD__ + #if defined(__FreeBSD__) || defined(__DragonFly__) return std::string((char*)binaryEthernetAddress.octet, ETHER_ADDR_LEN); #endif #ifdef __linux__ -@@ -60,7 +60,7 @@ std::string textToEthernet(const std::st +@@ -60,7 +60,7 @@ std::string textToEthernet(const std::string &textEthe std::string ethernetToText(const char *binaryEthernetAddress) { ether_addr _binaryEthernetAddress; char textEthernetAddress[17]; - #ifdef __FreeBSD__ + #if defined(__FreeBSD__) || defined(__DragonFly__) memcpy(_binaryEthernetAddress.octet, binaryEthernetAddress, ETHER_ADDR_LEN); #endif #ifdef __linux__ Index: head/security/arpCounterattack/files/patch-arpCounterattack.cpp =================================================================== --- head/security/arpCounterattack/files/patch-arpCounterattack.cpp (revision 502483) +++ head/security/arpCounterattack/files/patch-arpCounterattack.cpp (revision 502484) @@ -1,19 +1,26 @@ ---- arpCounterattack.cpp.orig 2010-11-04 01:26:49.000000000 +0000 +--- arpCounterattack.cpp.orig 2019-03-13 08:10:31 UTC +++ arpCounterattack.cpp -@@ -25,7 +25,7 @@ +@@ -25,13 +25,14 @@ #include #include #include -#include +#include #include #ifdef __FreeBSD__ -@@ -47,7 +47,6 @@ + #include + #endif + ++#include + #include + #include + #include +@@ -47,7 +48,6 @@ #include "string.hpp" using namespace std; -using namespace tr1; const string programName = "ARP Counterattack 1.2.0"; string pidFileName = "/var/run/arpCounterattack.pid";