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 /net-mgmt/angst | |
parent | e6b247dce1d9f6355a583ef6269fdbba110eaea8 (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 'net-mgmt/angst')
-rw-r--r-- | net-mgmt/angst/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/net-mgmt/angst/Makefile b/net-mgmt/angst/Makefile index 248b6c911500..110fc8a3a8a8 100644 --- a/net-mgmt/angst/Makefile +++ b/net-mgmt/angst/Makefile @@ -8,7 +8,7 @@ PORTNAME= angst PORTVERSION= 0.4b -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ ${MASTER_SITE_PACKETSTORM:S:%SUBDIR%:sniffers/angst:} @@ -17,17 +17,19 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= An active sniffer -BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10 - -LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet-config +BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10 MAN8= angst.8 PLIST_FILES= sbin/angst +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config + post-patch: - @${REINPLACE_CMD} -e "s,^CC,#CC,g ; \ - s,^CFLAGS,#CFLAGS,g ; \ - s,libnet-config,${LIBNET_CONFIG},g" ${WRKSRC}/Makefile + @${REINPLACE_CMD} -Ee \ + 's,^(CC|CFLAGS).*,#&,; \ + s,libnet-config,${LIBNET_CONFIG},; \ + s,--defines,& --cflags,' \ + ${WRKSRC}/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin |