pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libnet11 Set LICENSE=2-clause-bsd, add user-dest...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bff836441be9
branches:  trunk
changeset: 568252:bff836441be9
user:      obache <obache%pkgsrc.org@localhost>
date:      Wed Dec 09 07:39:30 2009 +0000

description:
Set LICENSE=2-clause-bsd, add user-destdir support, and some cosmetic fixes.

diffstat:

 devel/libnet11/Makefile |  50 +++++++++++++++++++++++-------------------------
 1 files changed, 24 insertions(+), 26 deletions(-)

diffs (77 lines):

diff -r cb21a6fde0ce -r bff836441be9 devel/libnet11/Makefile
--- a/devel/libnet11/Makefile   Wed Dec 09 06:26:59 2009 +0000
+++ b/devel/libnet11/Makefile   Wed Dec 09 07:39:30 2009 +0000
@@ -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 @@
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 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 @@
 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
-
-       ${INSTALL_DATA} ${WRKSRC}/doc/html/*.html \
-               ${PREFIX}/share/doc/libnet11/html
-       ${INSTALL_DATA} ${WRKSRC}/doc/html/*.css \
-               ${PREFIX}/share/doc/libnet11/html
-       ${INSTALL_DATA} ${WRKSRC}/doc/html/*.png\
-               ${PREFIX}/share/doc/libnet11/html
-       ${INSTALL_DATA} ${WRKSRC}/doc/html/*.dot\
-               ${PREFIX}/share/doc/libnet11/html
+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 \
+               ${DESTDIR}${PREFIX}/share/doc/libnet11/html
+       ${INSTALL_DATA} ${WRKSRC}/doc/html/*.css \
+               ${DESTDIR}${PREFIX}/share/doc/libnet11/html
+       ${INSTALL_DATA} ${WRKSRC}/doc/html/*.png\
+               ${DESTDIR}${PREFIX}/share/doc/libnet11/html
+       ${INSTALL_DATA} ${WRKSRC}/doc/html/*.dot\
+               ${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"



Home | Main Index | Thread Index | Old Index