aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/arp-sk/Makefile15
-rw-r--r--net/arping/Makefile11
-rw-r--r--net/arprelease/Makefile12
-rw-r--r--net/despoof/Makefile21
-rw-r--r--net/despoof/pkg-plist4
-rw-r--r--net/gspoof/Makefile12
-rw-r--r--net/gspoof/files/patch-configure30
-rw-r--r--net/libnet-devel/Makefile23
-rw-r--r--net/libnet-devel/files/patch-Makefile.in10
-rw-r--r--net/libnet-devel/files/patch-include__Makefile.in11
-rw-r--r--net/libnet-devel/files/patch-include__libnet__Makefile.in11
-rw-r--r--net/libnet-devel/files/patch-libnet-config.in13
-rw-r--r--net/libnet-devel/files/patch-src__Makefile.in20
-rw-r--r--net/libnet-devel/pkg-plist30
-rw-r--r--net/libnet/Makefile12
-rw-r--r--net/libnet/files/patch-include__Makefile.in11
-rw-r--r--net/libnet/files/patch-include__libnet__Makefile.in11
-rw-r--r--net/libnet/files/patch-libnet-config.in13
-rw-r--r--net/libnet/files/patch-src__Makefile.in11
-rw-r--r--net/libnet/pkg-plist22
-rw-r--r--net/libnet10/Makefile24
-rw-r--r--net/libnet10/files/patch-Makefile.in24
-rw-r--r--net/libnet10/files/patch-aa29
-rw-r--r--net/libnet10/files/patch-ab20
-rw-r--r--net/libnet10/files/patch-libnet-config.in13
-rw-r--r--net/libnet10/pkg-plist62
-rw-r--r--net/libnids/Makefile18
-rw-r--r--net/nast/Makefile26
-rw-r--r--net/nast/files/patch-configure57
-rw-r--r--net/nemesis/Makefile10
-rw-r--r--net/netwib/Makefile13
-rw-r--r--net/py-libnet/Makefile10
-rw-r--r--net/pynids/Makefile30
-rw-r--r--net/pynids/files/patch-setup.py17
-rw-r--r--net/tcptraceroute-devel/Makefile10
-rw-r--r--net/tcptraceroute-devel/files/patch-Makefile6
-rw-r--r--net/tcptraceroute/Makefile10
-rw-r--r--net/tcptraceroute/files/patch-Makefile6
-rw-r--r--net/ttlscan/Makefile8
-rw-r--r--net/xboxproxy/Makefile12
-rw-r--r--net/xboxproxy/files/patch-configure32
-rw-r--r--net/xipdump/Makefile14
42 files changed, 543 insertions, 211 deletions
diff --git a/net/arp-sk/Makefile b/net/arp-sk/Makefile
index b4806b8fece4..bc9ed3bfce7a 100644
--- a/net/arp-sk/Makefile
+++ b/net/arp-sk/Makefile
@@ -8,7 +8,7 @@
PORTNAME= arp-sk
PORTVERSION= 0.0.16
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://sid.rstack.org/arp-sk/files/
EXTRACT_SUFX= .tgz
@@ -16,15 +16,24 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A tool designed to manipulate ARP tables of all kinds of equipment
-BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
GNU_CONFIGURE= yes
+CFLAGS+= `${LIBNET_CONFIG} --cflags`
MAN1= arp-sk.1
PLIST_FILES= sbin/arp-sk
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
+
post-patch:
- @${REINPLACE_CMD} -e "s, -pedantic -g,," ${WRKSRC}/configure
+ @${REINPLACE_CMD} -Ee \
+ 's| -pedantic -g||; \
+ s|test -f \$${prefix}/include/libnet\.h|${TRUE}|; \
+ s|\$$NETINC/libnet\.h|libnet.h|; \
+ s|(NETINC=).*|\1"`${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --cflags`"|; \
+ s|(NETLIB=).*|\1"`${LIBNET_CONFIG} --libs`"|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/arp-sk ${PREFIX}/sbin
diff --git a/net/arping/Makefile b/net/arping/Makefile
index 64c9f73f54cd..6d252be275c8 100644
--- a/net/arping/Makefile
+++ b/net/arping/Makefile
@@ -7,27 +7,30 @@
PORTNAME= arping
PORTVERSION= 2.05
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.habets.pp.se/pub/synscan/
MAINTAINER= gavin.atkinson@ury.york.ac.uk
COMMENT= ARP level "ping" utility
-BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
LDFLAGS+= -lpcap
MAN8= arping.8
PLIST_FILES= sbin/arping
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
do-build:
cd ${WRKSRC} && \
${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
- -DUSE_NETIF=1 -DFREEBSD=1 -c `libnet-config --defines` \
- `libnet-config --cflags` ${PORTNAME}.c && \
+ -DUSE_NETIF=1 -DFREEBSD=1 -c `${LIBNET_CONFIG} --defines` \
+ `${LIBNET_CONFIG} --cflags` ${PORTNAME}.c && \
${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
-DUSE_NETIF=1 -DFREEBSD=1 -o ${PORTNAME} ${PORTNAME}.o \
- `libnet-config --libs` ${LDFLAGS}
+ `${LIBNET_CONFIG} --libs` ${LDFLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/arping ${PREFIX}/sbin
diff --git a/net/arprelease/Makefile b/net/arprelease/Makefile
index 71fa99e54495..9e7d92bc7bc8 100644
--- a/net/arprelease/Makefile
+++ b/net/arprelease/Makefile
@@ -7,7 +7,7 @@
PORTNAME= arprelease
PORTVERSION= 1.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -15,19 +15,19 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Libnet tool to flush arp cache entries from devices (eg. routers)
-BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= bin/arprelease
-LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet-config
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
do-build:
(cd ${WRKSRC} && \
- ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
- -o arprelease arprelease.c \
- `${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --libs`)
+ ${CC} ${CFLAGS} `${LIBNET_CONFIG} --defines` \
+ `${LIBNET_CONFIG} --cflags` -o arprelease arprelease.c \
+ `${LIBNET_CONFIG} --libs`)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/arprelease ${PREFIX}/bin
diff --git a/net/despoof/Makefile b/net/despoof/Makefile
index 347b4c01c8a3..9ad19be9b7a9 100644
--- a/net/despoof/Makefile
+++ b/net/despoof/Makefile
@@ -7,7 +7,7 @@
PORTNAME= despoof
PORTVERSION= 0.9
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net security
MASTER_SITES= http://www.bindview.com/Resources/RAZOR/Files/ \
${MASTER_SITE_PACKETSTORM}
@@ -17,11 +17,24 @@ EXTRACT_SUFX= .tgz
MAINTAINER= roam@FreeBSD.org
COMMENT= Command-line anti-spoofing detection utility
-BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
+
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|-I$${LOCALBASE}/include ||; \
+ s|-L$${LOCALBASE}/lib ||; \
+ s|--defines|& --cflags|; \
+ s|libnet-config|${LIBNET_CONFIG}|; \
+ s|-lnet |`${LIBNET_CONFIG} --libs` |' \
+ ${WRKSRC}/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/despoof ${PREFIX}/bin
- ${MKDIR} ${PREFIX}/share/doc/despoof
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/despoof
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
.include <bsd.port.mk>
diff --git a/net/despoof/pkg-plist b/net/despoof/pkg-plist
index 649e235a9c9b..d0a161f4f02c 100644
--- a/net/despoof/pkg-plist
+++ b/net/despoof/pkg-plist
@@ -1,3 +1,3 @@
bin/despoof
-share/doc/despoof/README
-@dirrm share/doc/despoof
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
diff --git a/net/gspoof/Makefile b/net/gspoof/Makefile
index d3447339a29d..a6c35c3090ca 100644
--- a/net/gspoof/Makefile
+++ b/net/gspoof/Makefile
@@ -8,7 +8,7 @@
PORTNAME= gspoof
PORTVERSION= 3.2
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -16,15 +16,19 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Console/GTK+ TCP/IP Packets Forger
-BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
USE_GNOME= gnometarget gtk20
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-libnet-prefix=${LOCALBASE}
+
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
post-patch:
- @${REINPLACE_CMD} -e 's|-Wall -O2|$${CFLAGS}|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e \
+ 's|-Wall -O2|$${CFLAGS}|g; \
+ s|libnet-config|${LIBNET_CONFIG}|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -e 's|-Wall -O2|@CFLAGS@|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|/usr/local/share|${PREFIX}/share|g ; \
s|/usr/share|${X11BASE}/share|g' ${WRKSRC}/gtk.c
diff --git a/net/gspoof/files/patch-configure b/net/gspoof/files/patch-configure
new file mode 100644
index 000000000000..9721ae803bb6
--- /dev/null
+++ b/net/gspoof/files/patch-configure
@@ -0,0 +1,30 @@
+--- ./configure.orig Tue Dec 23 07:54:42 2003
++++ ./configure Wed Sep 27 18:23:26 2006
+@@ -2505,24 +2505,12 @@
+ as_ac_File=`echo "ac_cv_file_$LIBNET_PREFIX/lib/libnet.a" | $as_tr_sh`
+ echo "$as_me:$LINENO: checking for $LIBNET_PREFIX/lib/libnet.a" >&5
+ echo $ECHO_N "checking for $LIBNET_PREFIX/lib/libnet.a... $ECHO_C" >&6
+-if eval "test \"\${$as_ac_File+set}\" = set"; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- test "$cross_compiling" = yes &&
+- { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
+-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
+- { (exit 1); exit 1; }; }
+-if test -r "$LIBNET_PREFIX/lib/libnet.a"; then
+- eval "$as_ac_File=yes"
+-else
+- eval "$as_ac_File=no"
+-fi
+-fi
++eval "$as_ac_File=yes"
+ echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
+ echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
+ if test `eval echo '${'$as_ac_File'}'` = yes; then
+- LDFLAGS="-L$LIBNET_PREFIX/lib"
+- CPPFLAGS="-I$LIBNET_PREFIX/include"
++ LDFLAGS="`libnet-config --libs`"
++ CPPFLAGS="`libnet-config --cflags`"
+ else
+ { { echo "$as_me:$LINENO: error:
+ Libnet-1.1.1 Packet Shaping Library is required!
diff --git a/net/libnet-devel/Makefile b/net/libnet-devel/Makefile
index 4ef7cabdbe0e..dd445dff8fb3 100644
--- a/net/libnet-devel/Makefile
+++ b/net/libnet-devel/Makefile
@@ -7,43 +7,48 @@
PORTNAME= libnet
PORTVERSION= 1.1.3.r1
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.packetfactory.net/libnet/dist/
-PKGNAMESUFFIX= -devel
+PKGNAMESUFFIX= ${SHORT_VER}-devel
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r1$//}-RC-01
MAINTAINER= ports@FreeBSD.org
COMMENT= A C library for creating IP packets (development version)
-CONFLICTS= libnet*-1.*
-
-DEPRECATED= distfile and homepage disappeared
-EXPIRATION_DATE= 2007-01-04
-
+USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${PORTNAME}
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${SHORT_VER}
+EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}${SHORT_VER}
DOCS= README doc/BUGS doc/CHANGELOG doc/CONTRIB doc/COPYING \
doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING doc/PORTED \
doc/RAWSOCKET_NON_SEQUITUR doc/TODO
EXAMPLES= sample/*.c
+SHORT_VER= 113
+
.include <bsd.port.pre.mk>
post-patch:
.if ${OSVERSION} < 500000
- ${REINPLACE_CMD} -e "s|stdint.h|inttypes.h|g" \
+ ${REINPLACE_CMD} -e "s|stdint\.h|inttypes.h|g" \
${WRKSRC}/include/libnet/libnet-types.h
.else
${DO_NADA}
.endif
post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/libnet-config ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/libnet-config \
+ ${PREFIX}/bin/libnet${SHORT_VER}-config
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
+ @cd ${PREFIX}/lib && \
+ ${LN} -sf libnet${SHORT_VER}/libnet.so libnet-1.1.3.so.1 && \
+ ${LN} -sf libnet-1.1.3.so.1 libnet-1.1.3.so
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
diff --git a/net/libnet-devel/files/patch-Makefile.in b/net/libnet-devel/files/patch-Makefile.in
new file mode 100644
index 000000000000..59863e03e93c
--- /dev/null
+++ b/net/libnet-devel/files/patch-Makefile.in
@@ -0,0 +1,10 @@
+--- ./Makefile.in.orig Thu Dec 2 21:27:39 2004
++++ ./Makefile.in Sat Jan 20 14:10:35 2007
+@@ -208,7 +208,6 @@
+ DISTCLEANFILES = *~
+ SUBDIRS = include src sample
+ EXTRA_DIST = Makefile.am.common
+-bin_SCRIPTS = libnet-config
+ all: all-recursive
+
+ .SUFFIXES:
diff --git a/net/libnet-devel/files/patch-include__Makefile.in b/net/libnet-devel/files/patch-include__Makefile.in
new file mode 100644
index 000000000000..e427c836bb55
--- /dev/null
+++ b/net/libnet-devel/files/patch-include__Makefile.in
@@ -0,0 +1,11 @@
+--- ./include/Makefile.in.orig Thu Dec 2 21:27:37 2004
++++ ./include/Makefile.in Sat Sep 30 21:22:18 2006
+@@ -171,7 +171,7 @@
+ host_cpu = @host_cpu@
+ host_os = @host_os@
+ host_vendor = @host_vendor@
+-includedir = @includedir@
++includedir = @includedir@/libnet113
+ infodir = @infodir@
+ install_sh = @install_sh@
+ libdir = @libdir@
diff --git a/net/libnet-devel/files/patch-include__libnet__Makefile.in b/net/libnet-devel/files/patch-include__libnet__Makefile.in
new file mode 100644
index 000000000000..aa25fbe63ea8
--- /dev/null
+++ b/net/libnet-devel/files/patch-include__libnet__Makefile.in
@@ -0,0 +1,11 @@
+--- ./include/libnet/Makefile.in.orig Thu Dec 2 21:27:37 2004
++++ ./include/libnet/Makefile.in Sat Sep 30 21:23:15 2006
+@@ -163,7 +163,7 @@
+ host_cpu = @host_cpu@
+ host_os = @host_os@
+ host_vendor = @host_vendor@
+-includedir = @includedir@
++includedir = @includedir@/libnet113
+ infodir = @infodir@
+ install_sh = @install_sh@
+ libdir = @libdir@
diff --git a/net/libnet-devel/files/patch-libnet-config.in b/net/libnet-devel/files/patch-libnet-config.in
new file mode 100644
index 000000000000..5e99ee54fa5a
--- /dev/null
+++ b/net/libnet-devel/files/patch-libnet-config.in
@@ -0,0 +1,13 @@
+--- ./libnet-config.in.orig Sat Jan 3 17:31:00 2004
++++ ./libnet-config.in Sat Sep 30 21:20:02 2006
+@@ -8,8 +8,8 @@
+ # @configure_input@
+
+ libnet_defines="@LIBNET_CONFIG_DEFINES@"
+-libnet_cflags="@LIBNET_CONFIG_CFLAGS@"
+-libnet_libs="@LIBNET_CONFIG_LIBS@ -lnet"
++libnet_cflags="@LIBNET_CONFIG_CFLAGS@ -I@prefix@/include/libnet113"
++libnet_libs="@LIBNET_CONFIG_LIBS@ -L@prefix@/lib/libnet113 -lnet"
+
+ usage()
+ {
diff --git a/net/libnet-devel/files/patch-src__Makefile.in b/net/libnet-devel/files/patch-src__Makefile.in
new file mode 100644
index 000000000000..e7032b79c724
--- /dev/null
+++ b/net/libnet-devel/files/patch-src__Makefile.in
@@ -0,0 +1,20 @@
+--- ./src/Makefile.in.orig Thu Dec 2 21:27:39 2004
++++ ./src/Makefile.in Sat Sep 30 22:47:10 2006
+@@ -205,7 +205,7 @@
+ includedir = @includedir@
+ infodir = @infodir@
+ install_sh = @install_sh@
+-libdir = @libdir@
++libdir = @libdir@/libnet113
+ libexecdir = @libexecdir@
+ localstatedir = @localstatedir@
+ mandir = @mandir@
+@@ -273,7 +273,7 @@
+ libnet_write.c
+
+ libnet_la_LIBADD = @LTLIBOBJS@
+-libnet_la_LDFLAGS = -version-info 1:3:1 -Wl
++libnet_la_LDFLAGS = -version-info 1:3:1 -Wl -soname=libnet-1.1.3.so.1
+ all: all-am
+
+ .SUFFIXES:
diff --git a/net/libnet-devel/pkg-plist b/net/libnet-devel/pkg-plist
index 6fb0e60ec242..4fae456a596a 100644
--- a/net/libnet-devel/pkg-plist
+++ b/net/libnet-devel/pkg-plist
@@ -1,15 +1,17 @@
-bin/libnet-config
-include/libnet.h
-include/libnet/libnet-asn1.h
-include/libnet/libnet-functions.h
-include/libnet/libnet-headers.h
-include/libnet/libnet-macros.h
-include/libnet/libnet-structures.h
-include/libnet/libnet-types.h
-lib/libnet.a
-lib/libnet.la
-lib/libnet.so
-lib/libnet.so.1
+bin/libnet113-config
+include/libnet113/libnet.h
+include/libnet113/libnet/libnet-asn1.h
+include/libnet113/libnet/libnet-functions.h
+include/libnet113/libnet/libnet-headers.h
+include/libnet113/libnet/libnet-macros.h
+include/libnet113/libnet/libnet-structures.h
+include/libnet113/libnet/libnet-types.h
+lib/libnet113/libnet.a
+lib/libnet113/libnet.la
+lib/libnet113/libnet.so
+lib/libnet113/libnet.so.1
+lib/libnet-1.1.3.so
+lib/libnet-1.1.3.so.1
%%PORTDOCS%%%%DOCSDIR%%/BUGS
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
%%PORTDOCS%%%%DOCSDIR%%/CONTRIB
@@ -67,4 +69,6 @@ lib/libnet.so.1
%%EXAMPLESDIR%%/udp2.c
@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm include/libnet
+@dirrm lib/libnet113
+@dirrm include/libnet113/libnet
+@dirrm include/libnet113
diff --git a/net/libnet/Makefile b/net/libnet/Makefile
index f6e2b4fd96bd..2f8754c7d7b0 100644
--- a/net/libnet/Makefile
+++ b/net/libnet/Makefile
@@ -7,20 +7,21 @@
PORTNAME= libnet
PORTVERSION= 1.1.2.1
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net
MASTER_SITES= http://www.packetfactory.net/libnet/dist/
+PKGNAMESUFFIX= 11
MAINTAINER= shipley@dis.org
COMMENT= A C library for creating IP packets
-CONFLICTS= libnet-devel-1.1.*\
- libnet10-1.0.*
-
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${PORTNAME}
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
+EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}${PKGNAMESUFFIX}
DOCS= README doc/BUGS doc/CHANGELOG doc/CONTRIB doc/COPYING \
doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING doc/PORTED \
@@ -28,7 +29,8 @@ DOCS= README doc/BUGS doc/CHANGELOG doc/CONTRIB doc/COPYING \
EXAMPLES= sample/*.c
post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/libnet-config ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/libnet-config \
+ ${PREFIX}/bin/libnet${PKGNAMESUFFIX}-config
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
diff --git a/net/libnet/files/patch-include__Makefile.in b/net/libnet/files/patch-include__Makefile.in
new file mode 100644
index 000000000000..4114b4aaf60c
--- /dev/null
+++ b/net/libnet/files/patch-include__Makefile.in
@@ -0,0 +1,11 @@
+--- ./include/Makefile.in.orig Thu Mar 11 15:50:20 2004
++++ ./include/Makefile.in Tue Sep 26 15:23:43 2006
+@@ -40,7 +40,7 @@
+ libdir = @libdir@
+ infodir = @infodir@
+ mandir = @mandir@
+-includedir = @includedir@
++includedir = @includedir@/libnet11
+ oldincludedir = /usr/include
+ pkgdatadir = $(datadir)/@PACKAGE@
+ pkglibdir = $(libdir)/@PACKAGE@
diff --git a/net/libnet/files/patch-include__libnet__Makefile.in b/net/libnet/files/patch-include__libnet__Makefile.in
new file mode 100644
index 000000000000..ea7a54013fc1
--- /dev/null
+++ b/net/libnet/files/patch-include__libnet__Makefile.in
@@ -0,0 +1,11 @@
+--- ./include/libnet/Makefile.in.orig Thu Mar 11 15:50:20 2004
++++ ./include/libnet/Makefile.in Tue Sep 26 15:19:23 2006
+@@ -40,7 +40,7 @@
+ libdir = @libdir@
+ infodir = @infodir@
+ mandir = @mandir@
+-includedir = @includedir@
++includedir = @includedir@/libnet11
+ oldincludedir = /usr/include
+ pkgdatadir = $(datadir)/@PACKAGE@
+ pkglibdir = $(libdir)/@PACKAGE@
diff --git a/net/libnet/files/patch-libnet-config.in b/net/libnet/files/patch-libnet-config.in
new file mode 100644
index 000000000000..e653ad961f88
--- /dev/null
+++ b/net/libnet/files/patch-libnet-config.in
@@ -0,0 +1,13 @@
+--- ./libnet-config.in.orig Sat Jan 3 17:31:00 2004
++++ ./libnet-config.in Tue Sep 26 15:19:23 2006
+@@ -8,8 +8,8 @@
+ # @configure_input@
+
+ libnet_defines="@LIBNET_CONFIG_DEFINES@"
+-libnet_cflags="@LIBNET_CONFIG_CFLAGS@"
+-libnet_libs="@LIBNET_CONFIG_LIBS@ -lnet"
++libnet_cflags="@LIBNET_CONFIG_CFLAGS@ -I@prefix@/include/libnet11"
++libnet_libs="@LIBNET_CONFIG_LIBS@ -L@prefix@/lib/libnet11 -lnet"
+
+ usage()
+ {
diff --git a/net/libnet/files/patch-src__Makefile.in b/net/libnet/files/patch-src__Makefile.in
new file mode 100644
index 000000000000..75522a845d0e
--- /dev/null
+++ b/net/libnet/files/patch-src__Makefile.in
@@ -0,0 +1,11 @@
+--- ./src/Makefile.in.orig Thu Mar 11 15:50:20 2004
++++ ./src/Makefile.in Tue Sep 26 15:19:23 2006
+@@ -43,7 +43,7 @@
+ sysconfdir = @sysconfdir@
+ sharedstatedir = @sharedstatedir@
+ localstatedir = @localstatedir@
+-libdir = @libdir@
++libdir = @libdir@/libnet11
+ infodir = @infodir@
+ mandir = @mandir@
+ includedir = @includedir@
diff --git a/net/libnet/pkg-plist b/net/libnet/pkg-plist
index d34cc252a33a..6d136643c9f7 100644
--- a/net/libnet/pkg-plist
+++ b/net/libnet/pkg-plist
@@ -1,12 +1,12 @@
-bin/libnet-config
-include/libnet.h
-include/libnet/libnet-asn1.h
-include/libnet/libnet-functions.h
-include/libnet/libnet-headers.h
-include/libnet/libnet-macros.h
-include/libnet/libnet-structures.h
-include/libnet/libnet-types.h
-lib/libnet.a
+bin/libnet11-config
+include/libnet11/libnet.h
+include/libnet11/libnet/libnet-asn1.h
+include/libnet11/libnet/libnet-functions.h
+include/libnet11/libnet/libnet-headers.h
+include/libnet11/libnet/libnet-macros.h
+include/libnet11/libnet/libnet-structures.h
+include/libnet11/libnet/libnet-types.h
+lib/libnet11/libnet.a
%%PORTDOCS%%%%DOCSDIR%%/BUGS
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
%%PORTDOCS%%%%DOCSDIR%%/CONTRIB
@@ -96,4 +96,6 @@ lib/libnet.a
%%EXAMPLESDIR%%/udp2.c
@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm include/libnet
+@dirrm lib/libnet11
+@dirrm include/libnet11/libnet
+@dirrm include/libnet11
diff --git a/net/libnet10/Makefile b/net/libnet10/Makefile
index 175ccfeca713..84bd9f37c0d4 100644
--- a/net/libnet10/Makefile
+++ b/net/libnet10/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libnet
PORTVERSION= 1.0.2a
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= net
MASTER_SITES= http://www.packetfactory.net/libnet/dist/
@@ -16,28 +16,24 @@ PKGNAMESUFFIX= 10
MAINTAINER= shipley@dis.org
COMMENT= A C library for creating IP packets
-CONFLICTS= libnet-devel-1.1.*\
- libnet-1.1.*
-
-USE_AUTOTOOLS= autoconf:213
-
+USE_AUTOTOOLS= autoconf:259
WRKSRC= ${WRKDIR}/Libnet-${PORTVERSION}
-MAN3= libnet.3
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
+MAN3= libnet${PKGNAMESUFFIX}.3
post-install:
- ${INSTALL_MAN} ${WRKSRC}/doc/libnet.3 ${PREFIX}/man/man3
+ ${INSTALL_MAN} ${WRKSRC}/doc/libnet.3 \
+ ${MANPREFIX}/man/man3/libnet${PKGNAMESUFFIX}.3
.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/share/doc/libnet
- @${MKDIR} ${PREFIX}/share/doc/libnet/examples
- @${MKDIR} ${PREFIX}/share/doc/libnet/ancillary
+ @${MKDIR} ${DOCSDIR}/ancillary ${DOCSDIR}/examples
.for i in CHANGELOG CHANGELOG-NEWFUNCTIONS COPYING README TODO-1.0 TODO-1.1
- ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/libnet
+ ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
.for i in README.asn.1 README.bpf README.legacy-applications README.libnet-config README.linux README.rawsockets
- ${INSTALL_DATA} ${WRKSRC}/doc/Ancillary/${i} ${PREFIX}/share/doc/libnet/ancillary
+ ${INSTALL_DATA} ${WRKSRC}/doc/Ancillary/${i} ${DOCSDIR}/ancillary
.endfor
.for i in libnet-example-1.c libnet-example-2.c libnet-example-3.c libnet-example-4.c
- ${INSTALL_DATA} ${WRKSRC}/example/${i} ${PREFIX}/share/doc/libnet/examples
+ ${INSTALL_DATA} ${WRKSRC}/example/${i} ${DOCSDIR}/examples
.endfor
.endif
diff --git a/net/libnet10/files/patch-Makefile.in b/net/libnet10/files/patch-Makefile.in
new file mode 100644
index 000000000000..6fc8a0495af1
--- /dev/null
+++ b/net/libnet10/files/patch-Makefile.in
@@ -0,0 +1,24 @@
+--- Makefile.in.orig Mon Feb 5 14:51:41 2001
++++ Makefile.in Mon Sep 25 18:26:09 2006
+@@ -14,8 +14,8 @@
+ exec_prefix = @exec_prefix@
+ srcdir = @srcdir@
+ BIN_PREFIX = @bindir@/
+-INC_PREFIX = @includedir@/
+-LIB_PREFIX = @libdir@/
++INC_PREFIX = @includedir@/libnet10/
++LIB_PREFIX = @libdir@/libnet10/
+ MAN_PREFIX = @MAN_PREFIX@
+
+ LIBNET = libnet
+@@ -108,8 +108,8 @@
+ $(INSTALL_DATA) $(INCLUDE-M) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
+ $(INSTALL_DATA) $(INCLUDE-A) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
+ $(INSTALL_DATA) $(INCLUDE-O) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
+- $(INSTALL_DATA) $(MAN) $(DESTDIR)$(MAN_PREFIX)
+- $(INSTALL_DATA) $(CONFIG) $(DESTDIR)$(BIN_PREFIX)
++ $(INSTALL_DATA) $(MAN) $(DESTDIR)$(MAN_PREFIX)libnet10.3
++ $(INSTALL_DATA) $(CONFIG) $(DESTDIR)$(BIN_PREFIX)$(CONFIG:S/libnet/libnet10/)
+
+
+
diff --git a/net/libnet10/files/patch-aa b/net/libnet10/files/patch-aa
deleted file mode 100644
index 57137897cbc7..000000000000
--- a/net/libnet10/files/patch-aa
+++ /dev/null
@@ -1,29 +0,0 @@
---- configure.in.orig Wed Jan 17 12:59:30 2001
-+++ configure.in Mon Jul 2 19:18:50 2001
-@@ -50,10 +50,10 @@
- dnl Use these compiler flags if we have gcc.
- dnl
- if test $ac_cv_prog_gcc = yes; then
--dnl if test -z $CFLAGS; then
-- CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
-- CFLAGS="$CCOPTS"
--dnl fi
-+ if test -z "$CFLAGS"; then
-+ CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
-+ CFLAGS="$CCOPTS"
-+ fi
- fi
-
- dnl
-@@ -163,8 +163,9 @@
- LIB_PREFIX="$prefix/lib/aout"
- INC_PREFIX="$prefix/include/"
- BIN_PREFIX="$prefix/bin/"
-- AC_MSG_RESULT(Note: support/bpf-lkm/etherspoof contains the lkm source \
--required to spoof ethernet frames)
-+dnl etherspoof lkm is horrible and only necesary on < RELENG_4
-+dnl AC_MSG_RESULT(Note: support/bpf-lkm/etherspoof contains the lkm source \
-+dnl required to spoof ethernet frames)
- ln -sf FreeBSD support/bpf-lkm/etherspoof
- ;;
-
diff --git a/net/libnet10/files/patch-ab b/net/libnet10/files/patch-ab
deleted file mode 100644
index 9106f9921b2a..000000000000
--- a/net/libnet10/files/patch-ab
+++ /dev/null
@@ -1,20 +0,0 @@
---- Makefile.in.orig Mon Feb 5 09:51:41 2001
-+++ Makefile.in Mon Jul 2 19:41:27 2001
-@@ -96,7 +96,7 @@
- $(ENSUREDIR) $(DESTDIR)$(LIB_PREFIX) 755
- $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX)$(LIBNET) 755
- $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX) 755
-- $(ENSUREDIR) $(DESTDIR)$(MAN_PREFIX) 755
-+# $(ENSUREDIR) $(DESTDIR)$(MAN_PREFIX) 755
- $(ENSUREDIR) $(DESTDIR)$(BIN_PREFIX) 755
- $(INSTALL_DATA) $(LIB) $(DESTDIR)$(LIB_PREFIX)
- rm -f $(DESTDIR)$(LIB_PREFIX)$(LIBPWRITE).a
-@@ -108,7 +108,7 @@
- $(INSTALL_DATA) $(INCLUDE-M) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
- $(INSTALL_DATA) $(INCLUDE-A) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
- $(INSTALL_DATA) $(INCLUDE-O) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
-- $(INSTALL_DATA) $(MAN) $(DESTDIR)$(MAN_PREFIX)
-+# $(INSTALL_DATA) $(MAN) $(DESTDIR)$(MAN_PREFIX)
- $(INSTALL_DATA) $(CONFIG) $(DESTDIR)$(BIN_PREFIX)
-
-
diff --git a/net/libnet10/files/patch-libnet-config.in b/net/libnet10/files/patch-libnet-config.in
new file mode 100644
index 000000000000..7be6f3841eaf
--- /dev/null
+++ b/net/libnet10/files/patch-libnet-config.in
@@ -0,0 +1,13 @@
+--- libnet-config.in.orig Tue Dec 12 15:33:42 2000
++++ libnet-config.in Mon Sep 25 18:02:39 2006
+@@ -8,8 +8,8 @@
+ # @configure_input@
+
+ libnet_defines="@LIBNET_CONFIG_DEFINES@"
+-libnet_cflags="@LIBNET_CONFIG_CFLAGS@"
+-libnet_libs="@LIBNET_CONFIG_LIBS@ -lnet"
++libnet_cflags="@LIBNET_CONFIG_CFLAGS@ -I@prefix@/include/libnet10"
++libnet_libs="@LIBNET_CONFIG_LIBS@ -L@prefix@/lib/libnet10 -lnet"
+
+ usage()
+ {
diff --git a/net/libnet10/pkg-plist b/net/libnet10/pkg-plist
index 212baac7b536..50e22574bac5 100644
--- a/net/libnet10/pkg-plist
+++ b/net/libnet10/pkg-plist
@@ -1,30 +1,32 @@
-bin/libnet-config
-include/libnet.h
-include/libnet/libnet-asn1.h
-include/libnet/libnet-functions.h
-include/libnet/libnet-headers.h
-include/libnet/libnet-macros.h
-include/libnet/libnet-ospf.h
-include/libnet/libnet-structures.h
-lib/libnet.a
-lib/libpwrite.a
-share/doc/libnet/CHANGELOG
-share/doc/libnet/CHANGELOG-NEWFUNCTIONS
-share/doc/libnet/COPYING
-share/doc/libnet/README
-share/doc/libnet/TODO-1.0
-share/doc/libnet/TODO-1.1
-share/doc/libnet/examples/libnet-example-1.c
-share/doc/libnet/examples/libnet-example-2.c
-share/doc/libnet/examples/libnet-example-3.c
-share/doc/libnet/examples/libnet-example-4.c
-share/doc/libnet/ancillary/README.asn.1
-share/doc/libnet/ancillary/README.bpf
-share/doc/libnet/ancillary/README.legacy-applications
-share/doc/libnet/ancillary/README.libnet-config
-share/doc/libnet/ancillary/README.linux
-share/doc/libnet/ancillary/README.rawsockets
-@dirrm share/doc/libnet/ancillary
-@dirrm share/doc/libnet/examples
-@dirrm share/doc/libnet
-@dirrm include/libnet
+bin/libnet10-config
+include/libnet10/libnet.h
+include/libnet10/libnet/libnet-asn1.h
+include/libnet10/libnet/libnet-functions.h
+include/libnet10/libnet/libnet-headers.h
+include/libnet10/libnet/libnet-macros.h
+include/libnet10/libnet/libnet-ospf.h
+include/libnet10/libnet/libnet-structures.h
+lib/libnet10/libnet.a
+lib/libnet10/libpwrite.a
+%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
+%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG-NEWFUNCTIONS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO-1.0
+%%PORTDOCS%%%%DOCSDIR%%/TODO-1.1
+%%PORTDOCS%%%%DOCSDIR%%/examples/libnet-example-1.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/libnet-example-2.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/libnet-example-3.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/libnet-example-4.c
+%%PORTDOCS%%%%DOCSDIR%%/ancillary/README.asn.1
+%%PORTDOCS%%%%DOCSDIR%%/ancillary/README.bpf
+%%PORTDOCS%%%%DOCSDIR%%/ancillary/README.legacy-applications
+%%PORTDOCS%%%%DOCSDIR%%/ancillary/README.libnet-config
+%%PORTDOCS%%%%DOCSDIR%%/ancillary/README.linux
+%%PORTDOCS%%%%DOCSDIR%%/ancillary/README.rawsockets
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/ancillary
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm lib/libnet10
+@dirrm include/libnet10/libnet
+@dirrm include/libnet10
diff --git a/net/libnids/Makefile b/net/libnids/Makefile
index 76103a1eb6e7..7b63389a8c1a 100644
--- a/net/libnids/Makefile
+++ b/net/libnids/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libnids
PORTVERSION= 1.21
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -20,19 +20,23 @@ OPTIONS= LIBNET "Include code requiring libnet" ON \
GLIB2 "Use GLIB2 for multiprocessing support" ON
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
MAKE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
+MAN3= libnids.3
+
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_LIBNET)
.if !defined(WITHOUT_LIBNET10)
-BUILD_DEPENDS+= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
.else
-BUILD_DEPENDS+= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
+BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
.endif
.else
CONFIGURE_ARGS+= --disable-libnet
@@ -44,7 +48,11 @@ LIB_DEPENDS+= glib-2.0:${PORTSDIR}/devel/glib20
CONFIGURE_ARGS+= --disable-libglib
.endif
-MAN3= libnids.3
+post-patch:
+ @${REINPLACE_CMD} -Ee \
+ 's|(LNET_CFLAGS=).*|\1"`${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --cflags`"|; \
+ s|(LNETLIB=).*|\1"`${LIBNET_CONFIG} --libs`"|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
do-install:
${INSTALL_DATA} ${WRKSRC}/src/nids.h ${PREFIX}/include
diff --git a/net/nast/Makefile b/net/nast/Makefile
index 23e1b799c308..9a384d2d86e1 100644
--- a/net/nast/Makefile
+++ b/net/nast/Makefile
@@ -7,7 +7,7 @@
PORTNAME= nast
PORTVERSION= 0.2.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= http://download.berlios.de/${PORTNAME}/ \
http://voodoo.bawue.com/download/
@@ -16,33 +16,27 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Nast is a packet sniffer
-BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
-
-LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet-config
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
MAN8= nast.8
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
USE_GMAKE= yes
PLIST_FILES= bin/nast
-.include <bsd.port.pre.mk>
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
-pre-everything::
- @${ECHO_MSG} ""
- @${ECHO_MSG} ""#######################################################
- @${ECHO_MSG} ""
- @${ECHO_MSG} "You need ${PORTSDIR}/net/libnet-devel to build this port
- @${ECHO_MSG} ""
- @${ECHO_MSG} ""#######################################################
- @${ECHO_MSG} ""
+.include <bsd.port.pre.mk>
post-patch:
- @${REINPLACE_CMD} -e 's|CFLAGS="-Wall -O2 -pthread"||g' \
- ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e \
+ 's|CFLAGS="-Wall -O2 -pthread"||g; \
+ s|libnet-config|${LIBNET_CONFIG}|; \
+ s|-lnet|`${LIBNET_CONFIG} --libs`|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
diff --git a/net/nast/files/patch-configure b/net/nast/files/patch-configure
new file mode 100644
index 000000000000..a2fd431efbcb
--- /dev/null
+++ b/net/nast/files/patch-configure
@@ -0,0 +1,57 @@
+--- ./configure.orig Wed Sep 27 18:27:36 2006
++++ ./configure Wed Sep 27 19:04:20 2006
+@@ -2337,52 +2337,8 @@
+ #
+
+ filechk="yes"
+-echo "$as_me:$LINENO: checking for /usr/lib/libnet.a" >&5
+-echo $ECHO_N "checking for /usr/lib/libnet.a... $ECHO_C" >&6
+-if test "${ac_cv_file__usr_lib_libnet_a+set}" = set; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- test "$cross_compiling" = yes &&
+- { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
+-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
+- { (exit 1); exit 1; }; }
+-if test -r "/usr/lib/libnet.a"; then
+- ac_cv_file__usr_lib_libnet_a=yes
+-else
+- ac_cv_file__usr_lib_libnet_a=no
+-fi
+-fi
+-echo "$as_me:$LINENO: result: $ac_cv_file__usr_lib_libnet_a" >&5
+-echo "${ECHO_T}$ac_cv_file__usr_lib_libnet_a" >&6
+-if test $ac_cv_file__usr_lib_libnet_a = yes; then
+- :
+-else
+- filechk="no"
+-fi
+-
+-if test "$filechk" = "no"; then
+- echo "$as_me:$LINENO: checking for /usr/local/lib/libnet.a" >&5
+-echo $ECHO_N "checking for /usr/local/lib/libnet.a... $ECHO_C" >&6
+-if test "${ac_cv_file__usr_local_lib_libnet_a+set}" = set; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- test "$cross_compiling" = yes &&
+- { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
+-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
+- { (exit 1); exit 1; }; }
+-if test -r "/usr/local/lib/libnet.a"; then
+- ac_cv_file__usr_local_lib_libnet_a=yes
+-else
+- ac_cv_file__usr_local_lib_libnet_a=no
+-fi
+-fi
+-echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_lib_libnet_a" >&5
+-echo "${ECHO_T}$ac_cv_file__usr_local_lib_libnet_a" >&6
+-if test $ac_cv_file__usr_local_lib_libnet_a = yes; then
+- filechk="yes" ; LDFLAGS="-L/usr/local/lib"; CPPFLAGS="-I/usr/local/include"
+-fi
+-
+-fi
++CPPFLAGS="`libnet-config --cflags`"
++LDFLAGS="`libnet-config --libs`"
+
+ if test "$filechk" = "no"; then { { echo "$as_me:$LINENO: error:
+
diff --git a/net/nemesis/Makefile b/net/nemesis/Makefile
index 30d67a8cda47..b34ccf3cf42e 100644
--- a/net/nemesis/Makefile
+++ b/net/nemesis/Makefile
@@ -7,7 +7,7 @@
PORTNAME= nemesis
PORTVERSION= 1.4
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= net security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@@ -16,7 +16,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= molter@tin.it
COMMENT= Command-line network packet creation and injection suite
-BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libnet-includes="${LOCALBASE}/include" \
@@ -27,4 +27,10 @@ MAN1= nemesis-arp.1 nemesis-dns.1 nemesis-ethernet.1 nemesis-icmp.1 \
nemesis-tcp.1 nemesis-udp.1 nemesis.1
PLIST_FILES= bin/nemesis
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|libnet-config|${LIBNET_CONFIG}|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+
.include <bsd.port.mk>
diff --git a/net/netwib/Makefile b/net/netwib/Makefile
index 7fabc2e24f94..fc755928fd24 100644
--- a/net/netwib/Makefile
+++ b/net/netwib/Makefile
@@ -7,6 +7,7 @@
PORTNAME= netwib
PORTVERSION= 5.35.0
+PORTREVISION= 1
CATEGORIES= net devel ipv6
MASTER_SITES= http://www.laurentconstantin.com/common/netw/netwib/download/v5/ \
http://membres.lycos.fr/lauconstantin/common/netw/netwib/download/v5/ \
@@ -16,7 +17,7 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}-src.tgz ${PORTNAME}-${PORTVERSION}-doc_htm
MAINTAINER= janos.mohacsi@bsd.hu
COMMENT= Netwib network programming library
-BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
RUN_DEPENDS= ${BUILD_DEPENDS}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/src
@@ -32,10 +33,20 @@ MAN3+= netwib${SHORTPORTVERSION}.3 netwib${SHORTPORTVERSION}_dat.3 \
PLIST_SUB+= SHORTPORTVERSION=${SHORTPORTVERSION}
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
+
+post-patch:
+ @${REINPLACE_CMD} -Ee \
+ 's|libnet-config|${LIBNET_CONFIG}|; \
+ s|-lnet|`${LIBNET_CONFIG} --libs`|; \
+ s|^(gccIncLnet=).*|\1"`${LIBNET_CONFIG} --cflags`"|' \
+ ${WRKSRC}/genemake
+
do-configure:
@${REINPLACE_CMD} \
-e 's|%%PREFIX%%|${PREFIX}|' \
-e 's|%%CFLAGS%%|${CFLAGS}|' \
+ -e 's|gcc|${CC}|' \
${WRKSRC}/config.dat
(cd ${WRKSRC} ; ${SH} ${WRKSRC}/genemake )
diff --git a/net/py-libnet/Makefile b/net/py-libnet/Makefile
index c9498089b520..b482f9ebeeda 100644
--- a/net/py-libnet/Makefile
+++ b/net/py-libnet/Makefile
@@ -8,7 +8,7 @@
PORTNAME= libnet
PORTVERSION= 1.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pylibnet
@@ -19,7 +19,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Python module for the libnet packet construction library
BUILD_DEPENDS= ${LOCALBASE}/bin/swig1.1:${PORTSDIR}/devel/swig11 \
- libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+ ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
@@ -27,13 +27,15 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src
MAKE_ARGS= SWIG=${LOCALBASE}/bin/swig1.1 \
LIBNET_INCLUDES=-I${LOCALBASE}/include \
PYTHON_INCLUDES=-I${PYTHON_INCLUDEDIR} \
- CFLAGS="${CFLAGS} `libnet-config --defines` -fPIC" \
- LIBNET_LIB=${LOCALBASE}/lib/libnet.a \
+ CFLAGS="${CFLAGS} `${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --cflags` -fPIC" \
+ LIBNET_LIB="`${LIBNET_CONFIG} --libs`" \
CC=${CC}
PLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/libnet.py \
lib/%%PYTHON_VERSION%%/site-packages/libnetcmodule.so
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
diff --git a/net/pynids/Makefile b/net/pynids/Makefile
index 84ff78016213..8d4f8b27060c 100644
--- a/net/pynids/Makefile
+++ b/net/pynids/Makefile
@@ -7,7 +7,7 @@
PORTNAME= pynids
PORTVERSION= 0.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net python
MASTER_SITES= http://pilcrow.madison.wi.us/pynids/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,7 +17,8 @@ DIST_SUBDIR= python
MAINTAINER= corsmith@gmail.com
COMMENT= Python interface to libnids
-BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+PATCH_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
+BUILD_DEPENDS:= ${PATCH_DEPENDS}
USE_PYTHON= yes
USE_PYDISTUTILS= yes
@@ -27,10 +28,31 @@ CFLAGS+= -fPIC
PLIST_FILES= %%PYTHON_SITELIBDIR%%/nidsmodule.so
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
+.include <bsd.port.pre.mk>
+
+.if exists(${LIBNET_CONFIG})
+LIBNET_CFLAGS!= ${LIBNET_CONFIG} --cflags
+LIBNET_LIBS!= ${LIBNET_CONFIG} --libs
+.endif
+
+post-extract:
+ @cd ${WRKSRC} && ${TAR} xf libnids-1.19.tar
+
post-patch:
${CP} -f ${TEMPLATES}/config.guess ${WRKSRC}
${CHMOD} a+rx ${WRKSRC}/config.guess
${CP} -f ${TEMPLATES}/config.sub ${WRKSRC}
${CHMOD} a+rx ${WRKSRC}/config.sub
-
-.include <bsd.port.mk>
+ @${REINPLACE_CMD} -e \
+ 's|/usr/local/include|${LIBNET_CFLAGS:S/-I//}|; \
+ s|/usr/local/lib|${LIBNET_LIBS:N-l*:S/-L//}|' \
+ ${WRKSRC}/setup.py
+ @${REINPLACE_CMD} -Ee \
+ 's|(LNET_CFLAGS=).*|\1"`${LIBNET_CONFIG} --defines` ${LIBNET_CFLAGS}"|; \
+ s|(LNETLIB=).*|\1"${LIBNET_LIBS}"|; \
+ s|gcc|${CC}|' \
+ ${WRKSRC}/libnids-1.19/configure
+
+.include <bsd.port.post.mk>
diff --git a/net/pynids/files/patch-setup.py b/net/pynids/files/patch-setup.py
index e8db653b4cce..c72e1e256e8f 100644
--- a/net/pynids/files/patch-setup.py
+++ b/net/pynids/files/patch-setup.py
@@ -1,5 +1,5 @@
---- setup.py.orig Tue Feb 1 06:50:11 2005
-+++ setup.py Sun Aug 7 00:08:43 2005
+--- ./setup.py.orig Tue Feb 1 02:50:11 2005
++++ ./setup.py Sat Sep 30 17:49:08 2006
@@ -9,7 +9,7 @@
from distutils.core import setup, Extension
from distutils.command.build import build # nidsMaker
@@ -9,10 +9,19 @@
pathjoin = os.path.join
-@@ -38,6 +38,8 @@
+@@ -32,12 +32,15 @@
+ def buildNids(self):
+ # extremely crude package builder
+ try:
+- os.stat(self.NIDSDIR)
++ os.stat(self.NIDSDIR + '/.done')
+ return None # assume already built
+ except OSError:
pass
- spawn(['tar', '-xf', self.NIDSTAR], search_path = 1)
+- spawn(['tar', '-xf', self.NIDSTAR], search_path = 1)
++ spawn(['touch', self.NIDSDIR + '/.done'], search_path = 1)
++
+ shutil.copyfile("config.guess",pathjoin(self.NIDSDIR,"config.guess"))
+ shutil.copyfile("config.sub",pathjoin(self.NIDSDIR,"config.sub"))
os.chdir(self.NIDSDIR)
diff --git a/net/tcptraceroute-devel/Makefile b/net/tcptraceroute-devel/Makefile
index b1aa9cd585d3..85a40f770c37 100644
--- a/net/tcptraceroute-devel/Makefile
+++ b/net/tcptraceroute-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= tcptraceroute
PORTVERSION= 1.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://michael.toren.net/code/tcptraceroute/ \
http://sunpoet.net/distfiles/
@@ -15,10 +15,16 @@ MASTER_SITES= http://michael.toren.net/code/tcptraceroute/ \
MAINTAINER= sunpoet@sunpoet.net
COMMENT= A traceroute implementation using TCP packets
-BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
MAN8= tcptraceroute.8
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|libnet-config|${LIBNET_CONFIG}|' \
+ ${WRKSRC}/${MAKEFILE}
+
post-install:
@${CHMOD} u+s ${PREFIX}/sbin/tcptraceroute
diff --git a/net/tcptraceroute-devel/files/patch-Makefile b/net/tcptraceroute-devel/files/patch-Makefile
index 6564b05352a2..f137ff657f9d 100644
--- a/net/tcptraceroute-devel/files/patch-Makefile
+++ b/net/tcptraceroute-devel/files/patch-Makefile
@@ -9,8 +9,8 @@
-DESTDIR=/usr/local/bin
+CC?= cc
+CFLAGS?= -O -pipe -Wall
-+LNETINC= -I${LOCALBASE}/include
-+LNETLIB= -L${LOCALBASE}/lib
++LNETINC= `libnet-config --cflags`
++LNETLIB= `libnet-config --libs`
+
+BINDIR= ${PREFIX}/sbin
+MANDIR= ${PREFIX}/man
@@ -22,7 +22,7 @@
+ $(CC) $(CFLAGS) `libnet-config --defines` $(LNETINC) \
-o tcptraceroute tcptraceroute.c \
- `libnet-config --libs` -lpcap
-+ $(LNETLIB) `libnet-config --libs` -lpcap
++ $(LNETLIB) -lpcap
static:
$(MAKE) tcptraceroute CFLAGS="$(CFLAGS) -static"
diff --git a/net/tcptraceroute/Makefile b/net/tcptraceroute/Makefile
index b1aa9cd585d3..85a40f770c37 100644
--- a/net/tcptraceroute/Makefile
+++ b/net/tcptraceroute/Makefile
@@ -7,7 +7,7 @@
PORTNAME= tcptraceroute
PORTVERSION= 1.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://michael.toren.net/code/tcptraceroute/ \
http://sunpoet.net/distfiles/
@@ -15,10 +15,16 @@ MASTER_SITES= http://michael.toren.net/code/tcptraceroute/ \
MAINTAINER= sunpoet@sunpoet.net
COMMENT= A traceroute implementation using TCP packets
-BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
MAN8= tcptraceroute.8
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|libnet-config|${LIBNET_CONFIG}|' \
+ ${WRKSRC}/${MAKEFILE}
+
post-install:
@${CHMOD} u+s ${PREFIX}/sbin/tcptraceroute
diff --git a/net/tcptraceroute/files/patch-Makefile b/net/tcptraceroute/files/patch-Makefile
index 6564b05352a2..f137ff657f9d 100644
--- a/net/tcptraceroute/files/patch-Makefile
+++ b/net/tcptraceroute/files/patch-Makefile
@@ -9,8 +9,8 @@
-DESTDIR=/usr/local/bin
+CC?= cc
+CFLAGS?= -O -pipe -Wall
-+LNETINC= -I${LOCALBASE}/include
-+LNETLIB= -L${LOCALBASE}/lib
++LNETINC= `libnet-config --cflags`
++LNETLIB= `libnet-config --libs`
+
+BINDIR= ${PREFIX}/sbin
+MANDIR= ${PREFIX}/man
@@ -22,7 +22,7 @@
+ $(CC) $(CFLAGS) `libnet-config --defines` $(LNETINC) \
-o tcptraceroute tcptraceroute.c \
- `libnet-config --libs` -lpcap
-+ $(LNETLIB) `libnet-config --libs` -lpcap
++ $(LNETLIB) -lpcap
static:
$(MAKE) tcptraceroute CFLAGS="$(CFLAGS) -static"
diff --git a/net/ttlscan/Makefile b/net/ttlscan/Makefile
index 3b192bcc0744..19ce50d55220 100644
--- a/net/ttlscan/Makefile
+++ b/net/ttlscan/Makefile
@@ -8,7 +8,7 @@
PORTNAME= ttlscan
PORTVERSION= 0.1.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.wormulon.net/files/ttlscan/
@@ -16,13 +16,15 @@ MAINTAINER= mich@FreeBSD.org
COMMENT= A tcp based scanner, showing ttl responses
BUILD_DEPENDS= ${LOCALBASE}/include/dnet.h:${PORTSDIR}/net/libdnet \
- libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+ ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
LDFLAGS+= -lpcap -ldnet
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib -D_XOPEN_SOURCE \
- `libnet-config --defines` ${PORTNAME}.c -o ${PORTNAME} `libnet-config --libs` ${LDFLAGS})
+ `${LIBNET_CONFIG} --defines --cflags` ${PORTNAME}.c -o ${PORTNAME} `${LIBNET_CONFIG} --libs` ${LDFLAGS})
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
diff --git a/net/xboxproxy/Makefile b/net/xboxproxy/Makefile
index a93ef509d8cb..f85797679ec7 100644
--- a/net/xboxproxy/Makefile
+++ b/net/xboxproxy/Makefile
@@ -6,7 +6,7 @@
PORTNAME= xboxproxy
PORTVERSION= 2.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.csh.rit.edu/~psionic/projects/xboxproxy/
DISTNAME= proxy-${PORTVERSION}
@@ -14,13 +14,15 @@ DISTNAME= proxy-${PORTVERSION}
MAINTAINER= ports@mawer.org
COMMENT= A proxy for the XBox system link protocol
-BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-prefix=xbox
PLIST_FILES= bin/xboxproxy
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
@@ -28,4 +30,10 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
CONFIGURE_ARGS+= --with-pcap=${LOCALBASE}
.endif
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|libnet-config|${LIBNET_CONFIG}|g; \
+ s|-lnet|`${LIBNET_CONFIG} --libs`|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+
.include <bsd.port.post.mk>
diff --git a/net/xboxproxy/files/patch-configure b/net/xboxproxy/files/patch-configure
new file mode 100644
index 000000000000..709d3a1753e6
--- /dev/null
+++ b/net/xboxproxy/files/patch-configure
@@ -0,0 +1,32 @@
+--- ./configure.orig Thu Oct 6 23:51:26 2005
++++ ./configure Wed Sep 27 17:29:04 2006
+@@ -2867,7 +2867,7 @@
+
+ # Checks for libraries.
+ LIBNET_LDFLAGS="`libnet-config --libs`"
+-LIBNET_CFLAGS="`libnet-config --defines` -D__GLIBC__"
++LIBNET_CFLAGS="`libnet-config --defines` `libnet-config --cflags` -D__GLIBC__"
+
+ # Checks for header files.
+
+@@ -5111,19 +5111,7 @@
+ as_ac_File=`echo "ac_cv_file_${dirname}/lib/libnet.a" | $as_tr_sh`
+ echo "$as_me:$LINENO: checking for ${dirname}/lib/libnet.a" >&5
+ echo $ECHO_N "checking for ${dirname}/lib/libnet.a... $ECHO_C" >&6
+-if eval "test \"\${$as_ac_File+set}\" = set"; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- test "$cross_compiling" = yes &&
+- { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
+-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
+- { (exit 1); exit 1; }; }
+-if test -r "${dirname}/lib/libnet.a"; then
+- eval "$as_ac_File=yes"
+-else
+- eval "$as_ac_File=no"
+-fi
+-fi
++eval "$as_ac_File=yes"
+ echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
+ echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
+ if test `eval echo '${'$as_ac_File'}'` = yes; then
diff --git a/net/xipdump/Makefile b/net/xipdump/Makefile
index 1781c589fe59..057eb15bf772 100644
--- a/net/xipdump/Makefile
+++ b/net/xipdump/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xipdump
PORTVERSION= 1.5.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.lse.epita.fr/twiki/pub/Projects/XipDump/
EXTRACT_SUFX= .tgz
@@ -15,20 +15,20 @@ EXTRACT_SUFX= .tgz
MAINTAINER= umeno@rr.iij4u.or.jp
COMMENT= Displays ip packets using X window
-BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
USE_X_PREFIX= yes
-LIBNET_CONFIG= ${LOCALBASE}/bin/libnet-config
-CFLAGS+= `${LIBNET_CONFIG} --cflags` `${LIBNET_CONFIG} --defines`
-CFLAGS+= -I${LOCALBASE}/include
-LIBS= `${LIBNET_CONFIG} --libs`
GNU_CONFIGURE= yes
-CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${LIBS}"
+CONFIGURE_ENV= LDFLAGS="`${LIBNET_CONFIG} --libs`"
+CFLAGS+= `${LIBNET_CONFIG} --cflags` `${LIBNET_CONFIG} --defines` \
+ -I/usr/include
PLIST= ${WRKDIR}/PLIST
MAN8= xipdump.8
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
post-build:
@${CP} ${PKGDIR}/pkg-plist ${PLIST}
@(cd ${WRKSRC}/data; ${FIND} pkc pkt ! -type d | \