diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2007-01-31 14:09:55 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2007-01-31 14:09:55 +0000 |
commit | eb81a88093e7d71530eebb2957f8ba4317b26ee6 (patch) | |
tree | 9290c97700f22b8ed6b87a10fda7d195dac09f04 /security/yersinia/Makefile | |
parent | - Use new USE_CDRTOOLS variable (diff) |
- Patch net/libnet* to versioned libraries and header files, so they can
coexist
PR: ports/103861
Submitted by: alepulver
Tested by: pointyhat
With hat: portmgr
Notes
Notes:
svn path=/head/; revision=183770
Diffstat (limited to 'security/yersinia/Makefile')
-rw-r--r-- | security/yersinia/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/security/yersinia/Makefile b/security/yersinia/Makefile index 70db8301fe6f..d053c67a531e 100644 --- a/security/yersinia/Makefile +++ b/security/yersinia/Makefile @@ -7,14 +7,14 @@ PORTNAME= yersinia PORTVERSION= 0.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= http://www.yersinia.net/download/ MAINTAINER= se@FreeBSD.org COMMENT= Layer 2 vulnerability scanner (switches, spanning tree, 802.1q ...) -BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet +BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet .if !defined(WITHOUT_GTK) .if exists(${LOCALBASE}/include/gtk-2.0/gtk/gtk.h) @@ -30,6 +30,9 @@ CONFIGURE_ARGS+= --disable-gtk CONFLICTS= yersinia-gtk-[0-9]* .endif GNU_CONFIGURE= yes +CONFIGURE_ENV= LIBNET_CONFIG="${LIBNET_CONFIG}" + +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config .include <bsd.port.pre.mk> @@ -41,6 +44,10 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap MAN8= yersinia.8 PLIST_FILES= sbin/yersinia +post-patch: + @${REINPLACE_CMD} -e 's|-lnet|`${LIBNET_CONFIG} --libs`|' \ + ${WRKSRC}/src/Makefile.in + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/yersinia ${PREFIX}/sbin/ ${INSTALL_MAN} ${WRKSRC}/yersinia.8 ${PREFIX}/man/man8/ |