aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2016-03-20 18:35:56 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2016-03-20 18:35:56 +0000
commite7027c2ccbebad0e910d5f8ff806e8e81a6bcb98 (patch)
tree976e2fda790cc6b375587ee651311e05a811e7d9 /net
parent2bfd1a73e657215a137e9ae0a6381fcf516a01b0 (diff)
downloadports-e7027c2ccbebad0e910d5f8ff806e8e81a6bcb98.tar.gz
ports-e7027c2ccbebad0e910d5f8ff806e8e81a6bcb98.zip
- Cleanup Makefile: remove PLIST_SUB
- Use PORTDOCS and PORTEXAMPLES - Convert to new options target helper
Notes
Notes: svn path=/head/; revision=411473
Diffstat (limited to 'net')
-rw-r--r--net/libnet/Makefile18
-rw-r--r--net/libnet/pkg-plist57
2 files changed, 9 insertions, 66 deletions
diff --git a/net/libnet/Makefile b/net/libnet/Makefile
index da6c118eedb2..55320a676f85 100644
--- a/net/libnet/Makefile
+++ b/net/libnet/Makefile
@@ -24,26 +24,26 @@ USE_CSTD= gnu89
USE_LDCONFIG= yes
USES= libtool
-PLIST_SUB= VERSION=${PORTVERSION}
-
-DOCS= README doc/CHANGELOG doc/CONTRIB \
- doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING doc/PORTED \
- doc/RAWSOCKET_NON_SEQUITUR doc/TODO
-EXAMPLES= sample/*.c
+DOCS= CHANGELOG CONTRIB DESIGN_NOTES MIGRATION PACKET_BUILDING PORTED RAWSOCKET_NON_SEQUITUR README TODO
+PORTDOCS= *
+PORTEXAMPLES= *
BPF_CONFIGURE_OFF= --with-link-layer=none
BPF_CONFIGURE_ON= --with-link-layer=bpf
post-patch:
+ @${MV} ${WRKSRC}/README ${WRKSRC}/doc/
@${REINPLACE_CMD} \
-e 's|@LIBNET_CONFIG_LIBS@|@LIBNET_CONFIG_LIBS@ -L@prefix@/lib|' \
-e 's|@LIBNET_CONFIG_CFLAGS@|@LIBNET_CONFIG_CFLAGS@ -I@prefix@/include|' \
${WRKSRC}/libnet-config.in
-post-install:
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
- cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}/
+ cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}/
+
+post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
- cd ${WRKSRC}/ && ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/sample/*.c ${STAGEDIR}${EXAMPLESDIR}/
.include <bsd.port.mk>
diff --git a/net/libnet/pkg-plist b/net/libnet/pkg-plist
index 1e12623458c9..d3c877184b08 100644
--- a/net/libnet/pkg-plist
+++ b/net/libnet/pkg-plist
@@ -13,60 +13,3 @@ lib/libnet.so.1.7.0
man/man3/libnet-functions.h.3.gz
man/man3/libnet-macros.h.3.gz
man/man3/libnet.h.3.gz
-%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
-%%PORTDOCS%%%%DOCSDIR%%/CONTRIB
-%%PORTDOCS%%%%DOCSDIR%%/DESIGN_NOTES
-%%PORTDOCS%%%%DOCSDIR%%/MIGRATION
-%%PORTDOCS%%%%DOCSDIR%%/PACKET_BUILDING
-%%PORTDOCS%%%%DOCSDIR%%/PORTED
-%%PORTDOCS%%%%DOCSDIR%%/RAWSOCKET_NON_SEQUITUR
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/arp.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bgp4_hdr.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bgp4_notification.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bgp4_open.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bgp4_update.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cdp.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dhcp_discover.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dns.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot1x.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fddi_tcp1.c
-%%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
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icmp_timestamp.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/icmp_unreach.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ieee.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ip_link.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ip_raw.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/isl.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mpls.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ntp.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ospf_hello.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ospf_lsa.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ping_of_death.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rpc_tcp.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rpc_udp.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sebek.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/smurf.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stp.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/synflood.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/synflood6.c
-%%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
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/udp1.c
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/udp2.c