diff options
author | pav <pav@FreeBSD.org> | 2007-01-31 22:09:55 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-01-31 22:09:55 +0800 |
commit | ccd12ccd577604add511aad4ea4e71c32b3e2f06 (patch) | |
tree | 25b833c135dd7f2323045f819dc7121e621103fc /net-mgmt/ettercap | |
parent | e2f15954f8960a944e8d5b2c28982257d8c6e91f (diff) | |
download | freebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.tar.gz freebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.tar.zst freebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.zip |
- 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
Diffstat (limited to 'net-mgmt/ettercap')
-rw-r--r-- | net-mgmt/ettercap/Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/net-mgmt/ettercap/Makefile b/net-mgmt/ettercap/Makefile index 3a64b1b3fd4a..b84c42e51d99 100644 --- a/net-mgmt/ettercap/Makefile +++ b/net-mgmt/ettercap/Makefile @@ -8,7 +8,7 @@ PORTNAME= ettercap PORTVERSION= 0.7.3 DISTVERSIONPREFIX= NG- -PORTREVISION= 3 +PORTREVISION= 4 PORTEPOCH= 1 CATEGORIES= net-mgmt security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} \ @@ -18,7 +18,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= mnag@FreeBSD.org COMMENT= A network sniffer/interceptor/injector/logger for switched LANs -BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet +BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet OPTIONS= GTK "Build with GTK2+ GUI" on \ ICONV "Build with support for UTF-8" on \ @@ -36,13 +36,16 @@ DOCS= AUTHORS CHANGELOG README README.BINARIES README.BUGS \ README.CVS README.PLATFORMS THANKS TODO TODO.TESTING \ doc/capture doc/decoders doc/dissectors doc/threads +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config + .include <bsd.port.pre.mk> CFLAGS+= ${PTHREAD_CFLAGS} CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -CONFIGURE_ARGS+= --enable-plugins --with-libnet=${LOCALBASE} +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ + LIBS="${LDFLAGS}" +CONFIGURE_ARGS+= --enable-plugins CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} .if ${OSVERSION} < 502111 @@ -88,8 +91,12 @@ CONFIGURE_ARGS+= --without-openssl .endif post-patch: - @${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' \ - ${WRKSRC}/configure + @${REINPLACE_CMD} -Ee \ + 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|; \ + s|test -f /usr/include/libnet\.h|${TRUE}|; \ + s|(LNETINC=).*|\1"`${LIBNET_CONFIG} --cflags`"|; \ + s|(LNETLIB=).*|\1"`${LIBNET_CONFIG} --libs`"|' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} @${REINPLACE_CMD} -E -e 's|(^pkgdatadir.+=).+|\1 ${DATADIR}|' \ ${WRKSRC}/share/Makefile.in |