diff options
author | obache <obache@pkgsrc.org> | 2009-12-09 07:39:30 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2009-12-09 07:39:30 +0000 |
commit | 417970df3475b39d7743b4b0866a48e07679d833 (patch) | |
tree | 200488e605de6410246b1cfb89a3ec4dfef29288 /devel/libnet11 | |
parent | 3e4e16ffe5935ea53d05dd8e5b39e8e57e175092 (diff) | |
download | pkgsrc-417970df3475b39d7743b4b0866a48e07679d833.tar.gz |
Set LICENSE=2-clause-bsd, add user-destdir support, and some cosmetic fixes.
Diffstat (limited to 'devel/libnet11')
-rw-r--r-- | devel/libnet11/Makefile | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/devel/libnet11/Makefile b/devel/libnet11/Makefile index 36a7165daef..1aa2f14cffd 100644 --- a/devel/libnet11/Makefile +++ b/devel/libnet11/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2009/07/17 18:00:15 adrianp Exp $ +# $NetBSD: Makefile,v 1.8 2009/12/09 07:39:30 obache Exp $ DISTNAME= libnet-1.1.2.1 PKGNAME= ${DISTNAME:S/libnet/libnet11/} @@ -8,8 +8,10 @@ MASTER_SITES= http://www.packetfactory.net/libnet/dist/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.packetfactory.net/libnet/ COMMENT= C library for portable packet creation and injection +LICENSE= 2-clause-bsd PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir CONFLICTS= libnet-[0-9]* USE_LIBTOOL= yes @@ -23,35 +25,31 @@ LNDOCS= DESIGN_NOTES MIGRATION PACKET_BUILDING RAWSOCKET_NON_SEQUITUR LNMAN= libnet-functions.h.3 libnet-headers.h.3 libnet-macros.h.3 \ libnet.h.3 libnet_802_1q_hdr.3 libnet_802_1x_hdr.3 -post-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libnet11 - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libnet11/html - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/libnet11 - ${INSTALL_MAN_DIR} ${PREFIX}/${PKGMANDIR}/man3 +INSTALLATION_DIRS+= bin +INSTALLATION_DIRS+= share/doc/libnet11/html +INSTALLATION_DIRS+= share/examples/libnet11 +INSTALLATION_DIRS+= ${PKGMANDIR}/man3 +post-install: ${INSTALL_DATA} ${WRKSRC}/doc/html/*.html \ - ${PREFIX}/share/doc/libnet11/html + ${DESTDIR}${PREFIX}/share/doc/libnet11/html ${INSTALL_DATA} ${WRKSRC}/doc/html/*.css \ - ${PREFIX}/share/doc/libnet11/html + ${DESTDIR}${PREFIX}/share/doc/libnet11/html ${INSTALL_DATA} ${WRKSRC}/doc/html/*.png\ - ${PREFIX}/share/doc/libnet11/html + ${DESTDIR}${PREFIX}/share/doc/libnet11/html ${INSTALL_DATA} ${WRKSRC}/doc/html/*.dot\ - ${PREFIX}/share/doc/libnet11/html - + ${DESTDIR}${PREFIX}/share/doc/libnet11/html ${INSTALL_DATA} ${WRKSRC}/sample/*.c \ - ${PREFIX}/share/examples/libnet11 - -. for f in ${LNMAN} + ${DESTDIR}${PREFIX}/share/examples/libnet11 +.for f in ${LNMAN} ${INSTALL_MAN} ${WRKSRC}/doc/man/man3/${f} \ - ${PREFIX}/${PKGMANDIR}/man3/${f:S/libnet/libnet11/} -. endfor - -. for f in ${LNDOCS} + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/${f:S/libnet/libnet11/} +.endfor +.for f in ${LNDOCS} ${INSTALL_DATA} ${WRKSRC}/doc/${f} \ - ${PREFIX}/share/doc/libnet11/ -. endfor - + ${DESTDIR}${PREFIX}/share/doc/libnet11/ +.endfor ${INSTALL_SCRIPT} ${WRKSRC}/libnet-config \ - ${PREFIX}/bin/libnet11-config + ${DESTDIR}${PREFIX}/bin/libnet11-config .include "../../mk/bsd.pkg.mk" |