aboutsummaryrefslogtreecommitdiff
path: root/net/libnet
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2013-02-18 21:13:02 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2013-02-18 21:13:02 +0000
commitfcb98a504a4b2d61662773d959b7cc3ee239eb09 (patch)
tree6c12a9e824cf39ccd0922fe8c2e9a8017ad5fc34 /net/libnet
parent154ea12c2bcc68e342c6a93a66297844b157ee60 (diff)
downloadports-fcb98a504a4b2d61662773d959b7cc3ee239eb09.tar.gz
ports-fcb98a504a4b2d61662773d959b7cc3ee239eb09.zip
Notes
Diffstat (limited to 'net/libnet')
-rw-r--r--net/libnet/Makefile77
-rw-r--r--net/libnet/distinfo4
-rw-r--r--net/libnet/files/patch-Makefile.in10
-rw-r--r--net/libnet/files/patch-configure80
-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-libnet.h.in12
-rw-r--r--net/libnet/files/patch-libnet_checksum.c23
-rw-r--r--net/libnet/files/patch-src__Makefile.in11
-rw-r--r--net/libnet/pkg-plist68
11 files changed, 107 insertions, 213 deletions
diff --git a/net/libnet/Makefile b/net/libnet/Makefile
index e880c1a8ea07..9de58b1f71bd 100644
--- a/net/libnet/Makefile
+++ b/net/libnet/Makefile
@@ -2,39 +2,84 @@
# $FreeBSD$
PORTNAME= libnet
-PORTVERSION= 1.1.2.1
-PORTREVISION= 4
+PORTVERSION= 1.1.6
PORTEPOCH= 1
CATEGORIES= net
-MASTER_SITES= http://www.packetfactory.net/libnet/dist/ \
- ${MASTER_SITE_GENTOO}
+MASTER_SITES= SF/libnet-dev
MASTER_SITE_SUBDIR= distfiles
-PKGNAMESUFFIX= 11
+PKGNAMESUFFIX= 11${PKGNAMESUFFIX2}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A C library for creating IP packets
+LATEST_LINK= ${PORTNAME}${SHORT_VER}
+
+USE_AUTOTOOLS= libtool
+USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-CFLAGS+= -fPIC
-USE_CSTD= gnu89
+#CFLAGS+= -fPIC
+#USE_CSTD= gnu89
+CONFIGURE_ARGS= --with-link-layer=${LIBNET_LINK}
-WRKSRC= ${WRKDIR}/${PORTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
-EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}${PKGNAMESUFFIX}
+SHORT_VER= 11
+SHORT_NAME= ${PORTNAME}${SHORT_VER}
+DOCSDIR= ${PREFIX}/share/doc/${SHORT_NAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/${SHORT_NAME}
+USE_LDCONFIG= ${PREFIX}/lib/${SHORT_NAME}
+PLIST_SUB= SVER=${SHORT_VER} SNAME=${SHORT_NAME} VERSION=${PORTVERSION}
-DOCS= README doc/BUGS doc/CHANGELOG doc/CONTRIB doc/COPYING \
+MAN3= libnet-functions.h.3 libnet-macros.h.3 libnet.h.3
+DOCS= README doc/CHANGELOG doc/CONTRIB doc/COPYING \
doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING doc/PORTED \
- doc/RAWSOCKET_NON_SEQUITUR doc/TODO doc/html/*
+ doc/RAWSOCKET_NON_SEQUITUR doc/TODO
EXAMPLES= sample/*.c
+OPTIONS_DEFINE= EXAMPLES DOCS
+OPTIONS_RADIO= LINK
+OPTIONS_RADIO_LINK= SNOOP PF BPF
+OPTIONS_DEFAULT= BPF
+SNOOP_DESC= link layer (snoop.h)
+PF_DESC= link layer pf
+BPF_DESC= link layer bpf
+
+.include <bsd.port.options.mk>
+
+LIBNET_LINK= none
+
+.if ${PORT_OPTIONS:MSNOOP}
+LIBNET_LINK= snoop
+.endif
+
+.if ${PORT_OPTIONS:MPF}
+LIBNET_LINK= pf
+.endif
+
+.if ${PORT_OPTIONS:MBPF}
+LIBNET_LINK= bpf
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} \
+ -e 's|@LIBNET_CONFIG_LIBS@|@LIBNET_CONFIG_LIBS@ -L@prefix@/lib/${SHORT_NAME}|' \
+ -e 's|@LIBNET_CONFIG_CFLAGS@|@LIBNET_CONFIG_CFLAGS@ -I@prefix@/include/${SHORT_NAME}|' \
+ ${WRKSRC}/libnet-config.in
+ ${REINPLACE_CMD} -e 's|^includedir =.*|includedir = @includedir@/${SHORT_NAME}|' \
+ ${WRKSRC}/include/Makefile.in \
+ ${WRKSRC}/include/libnet/Makefile.in
+ ${REINPLACE_CMD} -e 's|^libdir =.*|libdir = @libdir@/${SHORT_NAME}|' \
+ -e 's|^libnet_la_LDFLAGS =\(.*\)|libnet_la_LDFLAGS =\1 -soname=libnet-${SHORT_NAME}.so.1|' \
+ ${WRKSRC}/src/Makefile.in
+
post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/libnet-config \
- ${PREFIX}/bin/libnet${PKGNAMESUFFIX}-config
-.if !defined(NOPORTEXAMPLES)
+ ${INSTALL_SCRIPT} ${WRKSRC}/libnet-config ${PREFIX}/bin/${SHORT_NAME}-config
+ @cd ${PREFIX}/lib && \
+ ${LN} -sf ${SHORT_NAME}/libnet.so libnet-${PORTVERSION}.so.8 && \
+ ${LN} -sf libnet-${PORTVERSION}.so.8 libnet-${PORTVERSION}.so
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
diff --git a/net/libnet/distinfo b/net/libnet/distinfo
index 862e39136d78..a68fdb318450 100644
--- a/net/libnet/distinfo
+++ b/net/libnet/distinfo
@@ -1,2 +1,2 @@
-SHA256 (libnet-1.1.2.1.tar.gz) = ab01882a3d0556176018c09342cd0731f7cbc8e687795009894c3326942c76ff
-SIZE (libnet-1.1.2.1.tar.gz) = 1021236
+SHA256 (libnet-1.1.6.tar.gz) = d392bb5825c4b6b672fc93a0268433c86dc964e1500c279dc6d0711ea6ec467a
+SIZE (libnet-1.1.6.tar.gz) = 1202970
diff --git a/net/libnet/files/patch-Makefile.in b/net/libnet/files/patch-Makefile.in
new file mode 100644
index 000000000000..59863e03e93c
--- /dev/null
+++ b/net/libnet/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/files/patch-configure b/net/libnet/files/patch-configure
deleted file mode 100644
index cf0bb5e39d4a..000000000000
--- a/net/libnet/files/patch-configure
+++ /dev/null
@@ -1,80 +0,0 @@
-
---- configure.orig 2004-03-02 04:02:37.000000000 +0800
-+++ configure 2008-04-29 11:48:34.000000000 +0800
-@@ -3852,38 +3852,10 @@
- echo "$as_me:$LINENO: checking link-layer packet interface type" >&5
- echo $ECHO_N "checking link-layer packet interface type... $ECHO_C" >&6
-
--if test -r /dev/bpf0 ; then
-- LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
-- echo "$as_me:$LINENO: result: found bpf" >&5
-+#if test -r /dev/bpf0 ; then
-+LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
-+echo "$as_me:$LINENO: result: bpf has been here evar since da world began ..." >&5
- echo "${ECHO_T}found bpf" >&6
--elif test -r /usr/include/net/pfilt.h ; then
-- LIBOBJS="$LIBOBJS libnet_link_pf.$ac_objext"
-- echo "$as_me:$LINENO: result: found pf" >&5
--echo "${ECHO_T}found pf" >&6
--elif test -r /dev/nit ; then
-- LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext"
-- echo "$as_me:$LINENO: result: found snit" >&5
--echo "${ECHO_T}found snit" >&6
--elif test -r /usr/include/sys/net/nit.h ; then
-- LIBOBJS="$LIBOBJS libnet_link_nit.$ac_objext"
-- echo "$as_me:$LINENO: result: found nit" >&5
--echo "${ECHO_T}found nit" >&6
--elif test -r /usr/include/net/raw.h ; then
-- LIBOBJS="$LIBOBJS libnet_link_snoop.$ac_objext"
-- echo "$as_me:$LINENO: result: found snoop" >&5
--echo "${ECHO_T}found snoop" >&6
--elif test -r /usr/include/sys/dlpi.h ; then
-- LIBOBJS="$LIBOBJS libnet_link_dlpi.$ac_objext"
-- echo "$as_me:$LINENO: result: found dlpi" >&5
--echo "${ECHO_T}found dlpi" >&6
-- cat >>confdefs.h <<\_ACEOF
--#define HAVE_DLPI 1
--_ACEOF
--
--elif test -r /usr/include/linux/socket.h ; then
-- LIBOBJS="$LIBOBJS libnet_link_linux.$ac_objext"
-- echo "$as_me:$LINENO: result: found linux primitives" >&5
--echo "${ECHO_T}found linux primitives" >&6
-
- echo "$as_me:$LINENO: checking for packet socket (PF_SOCKET)" >&5
- echo $ECHO_N "checking for packet socket (PF_SOCKET)... $ECHO_C" >&6
-@@ -3987,32 +3959,6 @@
-
- echo "$as_me:$LINENO: result: $ac_cv_libnet_linux_procfs" >&5
- echo "${ECHO_T}$ac_cv_libnet_linux_procfs" >&6
-- if test $ac_cv_libnet_linux_procfs = yes ; then
--
--cat >>confdefs.h <<\_ACEOF
--#define HAVE_LINUX_PROCFS 1
--_ACEOF
--
-- fi
--elif test -c /dev/bpf0 ; then # check again in case not readable
-- LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
-- echo "$as_me:$LINENO: result: found bpf" >&5
--echo "${ECHO_T}found bpf" >&6
--elif test -c /dev/nit ; then # check again in case not readable
-- LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext"
-- echo "$as_me:$LINENO: result: found snit" >&5
--echo "${ECHO_T}found snit" >&6
--elif test "$target_os" = "cygwin" ; then
-- LIBOBJS="$LIBOBJS libnet_link_win32.$ac_objext"
-- echo "$as_me:$LINENO: result: found win32 wpcap" >&5
--echo "${ECHO_T}found win32 wpcap" >&6
--else
-- LIBOBJS="$LIBOBJS libnet_link_none.$ac_objext"
-- { echo "$as_me:$LINENO: WARNING: could not find a link-layer packet interface" >&5
--echo "$as_me: WARNING: could not find a link-layer packet interface" >&2;}
-- { echo "$as_me:$LINENO: WARNING: link-layer packet injection will not be available" >&5
--echo "$as_me: WARNING: link-layer packet injection will not be available" >&2;}
--fi
-
- echo -n "scanning available packet construction modules: "
- for dir in src/*build*c ; do
-
-
diff --git a/net/libnet/files/patch-include__Makefile.in b/net/libnet/files/patch-include__Makefile.in
deleted file mode 100644
index 4114b4aaf60c..000000000000
--- a/net/libnet/files/patch-include__Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./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
deleted file mode 100644
index ea7a54013fc1..000000000000
--- a/net/libnet/files/patch-include__libnet__Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./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
deleted file mode 100644
index e653ad961f88..000000000000
--- a/net/libnet/files/patch-libnet-config.in
+++ /dev/null
@@ -1,13 +0,0 @@
---- ./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-libnet.h.in b/net/libnet/files/patch-libnet.h.in
new file mode 100644
index 000000000000..384bc0ad7941
--- /dev/null
+++ b/net/libnet/files/patch-libnet.h.in
@@ -0,0 +1,12 @@
+--- include/libnet.h.in.orig 2012-03-06 01:45:46.000000000 +0100
++++ include/libnet.h.in 2012-04-18 20:37:06.000000000 +0200
+@@ -81,6 +81,9 @@
+ #if !defined(__WIN32__)
+ # include <sys/socket.h>
+ # include <net/if.h>
++# if (__FreeBSD__)
++# include <netinet/in.h>
++# endif
+ #else /* __WIN32__ */
+ # if (__CYGWIN__)
+ # include <sys/socket.h>
diff --git a/net/libnet/files/patch-libnet_checksum.c b/net/libnet/files/patch-libnet_checksum.c
deleted file mode 100644
index dd7b9b07d440..000000000000
--- a/net/libnet/files/patch-libnet_checksum.c
+++ /dev/null
@@ -1,23 +0,0 @@
---- src/libnet_checksum.c.orig Mon Mar 1 22:26:12 2004
-+++ src/libnet_checksum.c Mon Aug 25 15:44:12 2008
-@@ -42,8 +42,10 @@
- libnet_in_cksum(u_int16_t *addr, int len)
- {
- int sum;
-+ u_int16_t last_byte;
-
- sum = 0;
-+ last_byte = 0;
-
- while (len > 1)
- {
-@@ -52,7 +54,8 @@
- }
- if (len == 1)
- {
-- sum += *(u_int16_t *)addr;
-+ *(u_int8_t*)&last_byte = *(u_int8_t*)addr;
-+ sum += last_byte;
- }
-
- return (sum);
diff --git a/net/libnet/files/patch-src__Makefile.in b/net/libnet/files/patch-src__Makefile.in
deleted file mode 100644
index 75522a845d0e..000000000000
--- a/net/libnet/files/patch-src__Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./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 20a661ff8d69..f6f3c622a014 100644
--- a/net/libnet/pkg-plist
+++ b/net/libnet/pkg-plist
@@ -1,13 +1,17 @@
-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
+bin/%%SNAME%%-config
+include/%%SNAME%%/libnet.h
+include/%%SNAME%%/libnet/libnet-asn1.h
+include/%%SNAME%%/libnet/libnet-functions.h
+include/%%SNAME%%/libnet/libnet-headers.h
+include/%%SNAME%%/libnet/libnet-macros.h
+include/%%SNAME%%/libnet/libnet-structures.h
+include/%%SNAME%%/libnet/libnet-types.h
+lib/%%SNAME%%/libnet.a
+lib/%%SNAME%%/libnet.la
+lib/%%SNAME%%/libnet.so
+lib/%%SNAME%%/libnet.so.8
+lib/libnet-%%VERSION%%.so
+lib/libnet-%%VERSION%%.so.8
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
%%PORTDOCS%%%%DOCSDIR%%/CONTRIB
%%PORTDOCS%%%%DOCSDIR%%/COPYING
@@ -18,39 +22,6 @@ lib/libnet11/libnet.a
%%PORTDOCS%%%%DOCSDIR%%/RAWSOCKET_NON_SEQUITUR
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%%%DOCSDIR%%/acconfig_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/annotated.html
-%%PORTDOCS%%%%DOCSDIR%%/bpf_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/config_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/doxygen.css
-%%PORTDOCS%%%%DOCSDIR%%/doxygen.png
-%%PORTDOCS%%%%DOCSDIR%%/files.html
-%%PORTDOCS%%%%DOCSDIR%%/functions.html
-%%PORTDOCS%%%%DOCSDIR%%/functions_vars.html
-%%PORTDOCS%%%%DOCSDIR%%/getopt_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/globals.html
-%%PORTDOCS%%%%DOCSDIR%%/globals_defs.html
-%%PORTDOCS%%%%DOCSDIR%%/globals_func.html
-%%PORTDOCS%%%%DOCSDIR%%/gnuc_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/graph_legend.dot
-%%PORTDOCS%%%%DOCSDIR%%/graph_legend.html
-%%PORTDOCS%%%%DOCSDIR%%/ifaddrlist_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/in__systm_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/index.html
-%%PORTDOCS%%%%DOCSDIR%%/libnet-asn1_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/libnet-functions_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/libnet-functions_8h.html
-%%PORTDOCS%%%%DOCSDIR%%/libnet-headers_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/libnet-headers_8h.html
-%%PORTDOCS%%%%DOCSDIR%%/libnet-macros_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/libnet-macros_8h.html
-%%PORTDOCS%%%%DOCSDIR%%/libnet-structures_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/libnet-types_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/libnet_8h-source.html
-%%PORTDOCS%%%%DOCSDIR%%/libnet_8h.html
-%%PORTDOCS%%%%DOCSDIR%%/structlibnet__802__1q__hdr.html
-%%PORTDOCS%%%%DOCSDIR%%/structlibnet__802__1x__hdr.html
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/arp-new.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/arp.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bgp4_hdr.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bgp4_notification.c
@@ -64,7 +35,9 @@ lib/libnet11/libnet.a
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fddi_tcp2.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/get_addr.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gre.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hsrp.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icmp6_echoreq.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icmp6_unreach.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icmp_echo_cq.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icmp_redirect.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icmp_timeexceed.c
@@ -89,6 +62,9 @@ lib/libnet11/libnet.a
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/synflood6_frag.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcp1.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcp2.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_ipv4.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_ipv4_options.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_ipv6_icmpv4.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tftp.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tring_tcp1.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tring_tcp2.c
@@ -96,6 +72,6 @@ lib/libnet11/libnet.a
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/udp2.c
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm lib/libnet11
-@dirrm include/libnet11/libnet
-@dirrm include/libnet11
+@dirrm lib/%%SNAME%%
+@dirrm include/%%SNAME%%/libnet
+@dirrm include/%%SNAME%%