From owner-svn-ports-head@FreeBSD.ORG Sun May 12 22:01:26 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 653F3257; Sun, 12 May 2013 22:01:26 +0000 (UTC) (envelope-from sbz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 578E11CE; Sun, 12 May 2013 22:01:26 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4CM1Q90096654; Sun, 12 May 2013 22:01:26 GMT (envelope-from sbz@svn.freebsd.org) Received: (from sbz@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4CM1QWu096652; Sun, 12 May 2013 22:01:26 GMT (envelope-from sbz@svn.freebsd.org) Message-Id: <201305122201.r4CM1QWu096652@svn.freebsd.org> From: Sofian Brabez Date: Sun, 12 May 2013 22:01:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r317982 - in head/security/dsniff: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 May 2013 22:01:26 -0000 Author: sbz Date: Sun May 12 22:01:25 2013 New Revision: 317982 URL: http://svnweb.freebsd.org/changeset/ports/317982 Log: - Fix BROKEN after r317848 commit - Patch Makefile to disable libmissing - Support bmake by using ${ECHO_CMD} instead of ${TRUE} Reported by: linimon Added: head/security/dsniff/files/patch-Makefile.in (contents, props changed) Modified: head/security/dsniff/Makefile Modified: head/security/dsniff/Makefile ============================================================================== --- head/security/dsniff/Makefile Sun May 12 21:42:01 2013 (r317981) +++ head/security/dsniff/Makefile Sun May 12 22:01:25 2013 (r317982) @@ -12,9 +12,8 @@ MAINTAINER= sbz@FreeBSD.org COMMENT= Various sniffing utilities for penetration testing LICENSE= BSD -BROKEN= tries to link with both libnet1.0 and libnet1.1 -BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10 \ +BUILD_DEPENDS= ${LOCALBASE}/lib/libnet10/libnet.a:${PORTSDIR}/net/libnet10 \ ${LOCALBASE}/lib/libnids.a:${PORTSDIR}/net/libnids GNU_CONFIGURE= yes @@ -30,7 +29,13 @@ MAN8= arpspoof.8 ${PORTNAME}.8 macof.8 tcpnice.8 urlsnarf.8 filesnarf.8 dnsspoof.8 msgsnarf.8 \ sshmitm.8 webmitm.8 -LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config +LIBNET_VERSION= 10 +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet${LIBNET_VERSION}-config +LIBNET_INC= "`${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --cflags`" +# ugly hack because net/libnet10 doesn't install shared library, only static archive +# so we can't use libnet-config10 --libs to retrieve linker flags +LIBNET_LIB= "-L${LOCALBASE}/include/libnet${LIBNET_VERSION} \ + ${LOCALBASE}/lib/libnet${LIBNET_VERSION}/libnet.a" .include @@ -38,7 +43,7 @@ LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet1 # the corresponding library and additional linker flags. LIBNIDS_GLIB2?= .if exists(${LOCALBASE}/lib/libnids.a) -LIBNIDS_GLIB2!= nm -u ${LOCALBASE}/lib/libnids.a | ${GREP} g_thread_init || ${TRUE} +LIBNIDS_GLIB2!= nm -u ${LOCALBASE}/lib/libnids.a | ${GREP} g_thread_init || ${ECHO_CMD} .endif .if !empty(LIBNIDS_GLIB2) @@ -58,8 +63,8 @@ post-patch: @${REINPLACE_CMD} -Ee \ 's|libnet-config|${LIBNET_CONFIG:T}|; \ s|test -f \$${prefix}/include/libnet.h|${TRUE}|; \ - s|(LNETINC=).*|\1"`${LIBNET_CONFIG} --cflags`"|; \ - s|(LNETLIB=).*|\1"`${LIBNET_CONFIG} --libs`"|' \ + s|(LNETINC=).*|\1${LIBNET_INC}|; \ + s|(LNETLIB=).*|\1${LIBNET_LIB}|' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} .if !empty(LIBNIDS_GLIB2) Added: head/security/dsniff/files/patch-Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/dsniff/files/patch-Makefile.in Sun May 12 22:01:25 2013 (r317982) @@ -0,0 +1,55 @@ +--- ./Makefile.in.orig 2000-12-15 21:03:26.000000000 +0100 ++++ ./Makefile.in 2013-03-15 07:33:57.000000000 +0100 +@@ -26,7 +26,7 @@ + LNETLIB = @LNETLIB@ + + NIDSINC = @NIDSINC@ +-NIDSLIB = @NIDSLIB@ ++NIDSLIB = @NIDSLIB@ `pkg-config --libs gthread-2.0` `pkg-config --libs gthread-2.0` `pkg-config --libs gthread-2.0` + + DBINC = @DBINC@ + DBLIB = @DBLIB@ +@@ -37,9 +37,8 @@ + X11INC = @X_CFLAGS@ + X11LIB = @X_LIBS@ @X_PRE_LIBS@ -lXmu -lX11 @X_EXTRA_LIBS@ + +-INCS = -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) \ +- -I$(srcdir)/missing +-LIBS = @LIBS@ -L$(srcdir) -lmissing ++INCS = -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) ++LIBS = @LIBS@ -L$(srcdir) -lmd + + INSTALL = @INSTALL@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ +@@ -76,7 +75,7 @@ + .c.o: + $(CC) $(CFLAGS) $(INCS) -c $(srcdir)/$*.c + +-all: libmissing.a $(PROGS) ++all: $(PROGS) + + mount.c: mount.x + rpcgen -h mount.x -o mount.h +@@ -86,13 +85,6 @@ + rpcgen -h nfs_prot.x -o nfs_prot.h + rpcgen -c nfs_prot.x -o nfs_prot.c + +-$(LIBOBJS): +- $(CC) $(CFLAGS) $(INCS) -c $(srcdir)/missing/$*.c +- +-libmissing.a: $(LIBOBJS) +- ar -cr $@ $(LIBOBJS) +- $(RANLIB) $@ +- + dsniff: $(HDRS) $(SRCS) $(OBJS) + $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB) + +@@ -153,7 +145,7 @@ + done + + clean: +- rm -f *.o *~ $(GEN) libmissing.a $(PROGS) webmitm.crt ++ rm -f *.o *~ $(GEN) $(PROGS) webmitm.crt + + distclean: clean + rm -f Makefile config.h config.cache config.log config.status