Index: head/security/dsniff/Makefile =================================================================== --- head/security/dsniff/Makefile (revision 456843) +++ head/security/dsniff/Makefile (revision 456844) @@ -1,42 +1,40 @@ # Created by: Kris Kennaway # $FreeBSD$ PORTNAME= dsniff DISTVERSION= 2.4b1 PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.monkey.org/~dugsong/${PORTNAME}/beta/ \ LOCAL/sbz MAINTAINER= sbz@FreeBSD.org COMMENT= Various sniffing utilities for penetration testing LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= libnet.so:net/libnet BUILD_DEPENDS= ${LOCALBASE}/lib/libnids.a:net/libnids +LIB_DEPENDS= libnet.so:net/libnet -BROKEN_FreeBSD_12= fails to compile: pcaputil.c: '/usr/include/pcap-int.h' file not found -BROKEN_FreeBSD_11= fails to compile: pcaputil.c: '/usr/include/pcap-int.h' file not found +USES= gettext pkgconfig ssl +USE_GNOME= glib20 GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-libnet=${LOCALBASE} DESTDIRNAME= install_prefix -USES= gettext pkgconfig ssl -USE_GNOME= glib20 -WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:C/(.*)..$/\1/} +WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:C/..$//} OPTIONS_DEFINE= X11 OPTIONS_DEFAULT= X11 OPTIONS_SUB= yes X11_USE= xorg=x11,xmu X11_CONFIGURE_WITH=x post-patch: @${REINPLACE_CMD} -e 's,csin,_csin,g' \ ${WRKSRC}/webmitm.c \ ${WRKSRC}/sshmitm.c .include Index: head/security/dsniff/files/patch-pcaputil.c =================================================================== --- head/security/dsniff/files/patch-pcaputil.c (revision 456843) +++ head/security/dsniff/files/patch-pcaputil.c (revision 456844) @@ -1,15 +1,36 @@ ---- ./pcaputil.c.orig 2001-03-15 09:33:04.000000000 +0100 -+++ ./pcaputil.c 2014-07-22 13:20:14.000000000 +0200 -@@ -16,9 +16,10 @@ - #include +--- pcaputil.c.orig 2001-03-15 08:33:04 UTC ++++ pcaputil.c +@@ -17,20 +17,9 @@ #include #include --#include -+#include -+#include - #ifdef BSD + #include +-#ifdef BSD -#include -+#include - #endif +-#endif #include "pcaputil.h" + +-#ifdef BSD +-static int +-bpf_immediate(int fd, int on) +-{ +- return (ioctl(fd, BIOCIMMEDIATE, &on)); +-} +-#endif +- + int + pcap_dloff(pcap_t *pd) + { +@@ -87,12 +76,6 @@ pcap_init(char *intf, char *filter, int + pcap_perror(pd, "pcap_compile"); + return (NULL); + } +-#ifdef BSD +- if (bpf_immediate(pd->fd, 1) < 0) { +- perror("ioctl"); +- return (NULL); +- } +-#endif + return (pd); + } +