ports/57394: net/libnet-devel: install doc and examples
Marco Molteni
molter at tin.it
Tue Sep 30 08:30:23 UTC 2003
>Number: 57394
>Category: ports
>Synopsis: net/libnet-devel: install doc and examples
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 30 01:30:19 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Marco Molteni
>Release: FreeBSD 4.8-STABLE i386
>Organization:
Citello Networks
>Environment:
System: FreeBSD cobweb.example.org 4.8-STABLE
>Description:
net/libnet-devel does not install the documentation and the
examples provided in the tarball. Included patch fixes this.
>How-To-Repeat:
install the port and look for the docs ;-)
>Fix:
apply following patch; feel free to edit to taste
diff -u -rN /usr/ports/net/libnet-devel/Makefile /usr/ports/net/libnet-marco/Makefile
--- /usr/ports/net/libnet-devel/Makefile Wed Mar 19 01:00:39 2003
+++ /usr/ports/net/libnet-marco/Makefile Sun Sep 28 17:18:00 2003
@@ -21,7 +21,27 @@
MAN3= libnet.3
+LIBNET_DOCDIR=${PREFIX}/share/doc/libnet
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/libnet-config ${PREFIX}/bin
+ @${ECHO} Installing documentation
+ @${MKDIR} ${LIBNET_DOCDIR}
+ @${MKDIR} ${LIBNET_DOCDIR}/Ancillary
+ @${MKDIR} ${LIBNET_DOCDIR}/sample
+.for i in README VERSION
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${LIBNET_DOCDIR}
+.endfor
+.for i in BUGS CHANGELOG CONTRIB COPYING DESIGN_NOTES MIGRATION \
+ PACKET_BUILDING PORTED RAWSOCKET_NON_SEQUITUR \
+ SUPPORTED_PROTOCOLS TODO
+ ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${LIBNET_DOCDIR}
+.endfor
+.for i in README.asn.1 README.bpf README.legacy-applications \
+ README.libnet-config README.linux README.rawsockets \
+ README.asn.1
+ ${INSTALL_DATA} ${WRKSRC}/doc/Ancillary/${i} ${LIBNET_DOCDIR}/Ancillary
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/sample/*.[ch] ${LIBNET_DOCDIR}/sample
+
.include <bsd.port.mk>
diff -u -rN /usr/ports/net/libnet-devel/pkg-plist /usr/ports/net/libnet-marco/pkg-plist
--- /usr/ports/net/libnet-devel/pkg-plist Tue Jan 14 05:48:13 2003
+++ /usr/ports/net/libnet-marco/pkg-plist Sun Sep 28 17:27:40 2003
@@ -6,4 +6,47 @@
include/libnet/libnet-macros.h
include/libnet/libnet-structures.h
lib/libnet.a
+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
+share/doc/libnet/BUGS
+share/doc/libnet/CHANGELOG
+share/doc/libnet/CONTRIB
+share/doc/libnet/COPYING
+share/doc/libnet/DESIGN_NOTES
+share/doc/libnet/MIGRATION
+share/doc/libnet/PACKET_BUILDING
+share/doc/libnet/PORTED
+share/doc/libnet/RAWSOCKET_NON_SEQUITUR
+share/doc/libnet/README
+share/doc/libnet/SUPPORTED_PROTOCOLS
+share/doc/libnet/TODO
+share/doc/libnet/VERSION
+share/doc/libnet/sample/arp.c
+share/doc/libnet/sample/cdp.c
+share/doc/libnet/sample/dhcp_discover.c
+share/doc/libnet/sample/get_addr.c
+share/doc/libnet/sample/icmp6_echoreq.c
+share/doc/libnet/sample/icmp_timestamp.c
+share/doc/libnet/sample/icmp_unreach.c
+share/doc/libnet/sample/ieee.c
+share/doc/libnet/sample/isl.c
+share/doc/libnet/sample/libnet_test.h
+share/doc/libnet/sample/ntp.c
+share/doc/libnet/sample/ospf_hello.c
+share/doc/libnet/sample/ospf_lsa.c
+share/doc/libnet/sample/ping_of_death.c
+share/doc/libnet/sample/stp.c
+share/doc/libnet/sample/synflood.c
+share/doc/libnet/sample/synflood6.c
+share/doc/libnet/sample/tcp1.c
+share/doc/libnet/sample/tcp2.c
+share/doc/libnet/sample/udp1.c
+share/doc/libnet/sample/udp2.c
@dirrm include/libnet
+ at dirrm share/doc/libnet
+ at dirrm share/doc/libnet/Ancillary
+ at dirrm share/doc/libnet/sample
--
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list