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/packit | |
parent | e6b247dce1d9f6355a583ef6269fdbba110eaea8 (diff) | |
download | ports-eb81a88093e7d71530eebb2957f8ba4317b26ee6.tar.gz ports-eb81a88093e7d71530eebb2957f8ba4317b26ee6.zip |
Notes
Diffstat (limited to 'net-mgmt/packit')
-rw-r--r-- | net-mgmt/packit/Makefile | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/net-mgmt/packit/Makefile b/net-mgmt/packit/Makefile index df114749328a..23886e6f339d 100644 --- a/net-mgmt/packit/Makefile +++ b/net-mgmt/packit/Makefile @@ -7,7 +7,7 @@ PORTNAME= packit PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt MASTER_SITES= http://packit.sourceforge.net/downloads/ EXTRACT_SUFX= .tgz @@ -15,16 +15,16 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Network auditing tool -BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet +BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet + +GNU_CONFIGURE= yes +CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="`${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --cflags`" -LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet-config MAN8= packit.8 PLIST_FILES= sbin/packit -GNU_CONFIGURE= yes -CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LIBS="-L${LOCALBASE}/lib" +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config .if defined(WITHOUT_CAPTURE) CONFIGURE_ARGS+= --without-capture @@ -33,13 +33,8 @@ CONFIGURE_ARGS+= --without-capture CONFIGURE_ARGS+= --without-injection .endif -pre-everything:: - @${ECHO_MSG} "" - @${ECHO_MSG} ""####################################################### - @${ECHO_MSG} "" - @${ECHO_MSG} "You need ${PORTSDIR}/net/libnet to build this port - @${ECHO_MSG} "" - @${ECHO_MSG} ""####################################################### - @${ECHO_MSG} "" +post-patch: + @${REINPLACE_CMD} -e 's|-lnet|`${LIBNET_CONFIG} --libs`|' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} .include <bsd.port.mk> |