pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cdb68d161884
branches:  trunk
changeset: 571392:cdb68d161884
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Feb 11 20:27:45 2010 +0000

description:
DESTDIR support

diffstat:

 net/cia/Makefile  |  15 +++++++++------
 net/cidr/Makefile |   6 +++++-
 2 files changed, 14 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r 858d78a237bd -r cdb68d161884 net/cia/Makefile
--- a/net/cia/Makefile  Thu Feb 11 20:25:14 2010 +0000
+++ b/net/cia/Makefile  Thu Feb 11 20:27:45 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2008/05/25 20:49:39 tron Exp $
+# $NetBSD: Makefile,v 1.13 2010/02/11 20:27:45 joerg Exp $
 
 DISTNAME=      cia-20030922
 CATEGORIES=    net
@@ -8,15 +8,18 @@
 OWNER=         tron%NetBSD.org@localhost
 COMMENT=       Simple IP accounting software
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DOC_DIR=       ${PREFIX}/share/doc/cia
 EXAMPLES_DIR=  ${PREFIX}/share/examples/cia
-MAKE_ENV+=     ${BSD_MAKE_ENV}
+
+USE_BSD_MAKEFILE=      yes
+
+INSTALLATION_DIRS+=    bin ${DOC_DIR} ${EXAMPLES_DIR}
 
 post-install:
-       ${INSTALL_DATA_DIR} ${DOC_DIR}
-       ${INSTALL_DATA} ${WRKSRC}/doc/README ${DOC_DIR}
-       ${INSTALL_DATA_DIR} ${EXAMPLES_DIR}
-       ${INSTALL_DATA} ${WRKSRC}/ipstat/examples/*.cfg ${EXAMPLES_DIR}
+       ${INSTALL_DATA} ${WRKSRC}/doc/README ${DESTDIR}${DOC_DIR}
+       ${INSTALL_DATA} ${WRKSRC}/ipstat/examples/*.cfg ${DESTDIR}${EXAMPLES_DIR}
 
 .include "../../net/libpcap/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 858d78a237bd -r cdb68d161884 net/cidr/Makefile
--- a/net/cidr/Makefile Thu Feb 11 20:25:14 2010 +0000
+++ b/net/cidr/Makefile Thu Feb 11 20:27:45 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/10/04 21:53:16 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2010/02/11 20:32:49 joerg Exp $
 #
 
 DISTNAME=      cidr-current
@@ -10,9 +10,13 @@
 HOMEPAGE=      # http://home.netcom.com/~naym/cidr.html
 COMMENT=       RFC 1878 subnet calculator / helper
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}/cidr-2.3
 
 LIBS.SunOS+=   -lnsl -lsocket
 MAKE_ENV+=     LIBS=${LIBS:M*:Q}
 
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index