Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2014 14:24:14 +0000 (UTC)
From:      Renato Botelho <garga@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r351948 - in head/security/dsniff: . files
Message-ID:  <201404231424.s3NEOEuH073930@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: garga
Date: Wed Apr 23 14:24:13 2014
New Revision: 351948
URL: http://svnweb.freebsd.org/changeset/ports/351948
QAT: https://qat.redports.org/buildarchive/r351948/

Log:
  Fix build with clang:
    . Add direct dependency to net/bpf.h
    . Rename symbol csin to avoid conflict with complex.h
  
  Approved by:	portmgr (blanket)

Modified:
  head/security/dsniff/Makefile
  head/security/dsniff/files/patch-pcaputil.c

Modified: head/security/dsniff/Makefile
==============================================================================
--- head/security/dsniff/Makefile	Wed Apr 23 14:22:47 2014	(r351947)
+++ head/security/dsniff/Makefile	Wed Apr 23 14:24:13 2014	(r351948)
@@ -55,6 +55,9 @@ post-patch:
 		 s|(LNETINC=).*|\1${LIBNET_INC}|; \
 		 s|(LNETLIB=).*|\1${LIBNET_LIB}|' \
 		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+	@${REINPLACE_CMD} -e 's,csin,_csin,g' \
+		${WRKSRC}/webmitm.c \
+		${WRKSRC}/sshmitm.c
 
 .if !empty(LIBNIDS_GLIB2)
 pre-configure:

Modified: head/security/dsniff/files/patch-pcaputil.c
==============================================================================
--- head/security/dsniff/files/patch-pcaputil.c	Wed Apr 23 14:22:47 2014	(r351947)
+++ head/security/dsniff/files/patch-pcaputil.c	Wed Apr 23 14:24:13 2014	(r351948)
@@ -1,10 +1,11 @@
 --- ./pcaputil.c.orig	Tue Nov 14 12:51:08 2000
 +++ ./pcaputil.c	Mon Sep 25 16:26:13 2006
-@@ -13,9 +13,9 @@
+@@ -13,9 +13,10 @@
  #include <stdlib.h>
  #include <string.h>
  #include <err.h>
 -#include <pcap.h>
++#include <net/bpf.h>
 +#include </usr/include/pcap.h>
  #ifdef BSD
 -#include <pcap-int.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404231424.s3NEOEuH073930>