pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc DESTDIR support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/ee5a1342297a
branches: trunk
changeset: 522620:ee5a1342297a
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Dec 15 17:35:20 2006 +0000
description:
DESTDIR support.
diffstat:
mail/dovecot/Makefile | 10 +++++-----
pkgtools/pkglint/Makefile | 24 +++++++++++-------------
2 files changed, 16 insertions(+), 18 deletions(-)
diffs (78 lines):
diff -r f62bdd162992 -r ee5a1342297a mail/dovecot/Makefile
--- a/mail/dovecot/Makefile Fri Dec 15 17:34:27 2006 +0000
+++ b/mail/dovecot/Makefile Fri Dec 15 17:35:20 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.75 2006/11/19 10:36:34 ghen Exp $
+# $NetBSD: Makefile,v 1.76 2006/12/15 17:35:20 joerg Exp $
DISTNAME= dovecot-1.0.rc15
PKGNAME= ${DISTNAME:S/.rc/rc/}
@@ -10,6 +10,7 @@
COMMENT= Secure IMAP and POP3 server
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
@@ -49,11 +50,10 @@
> ${WRKDIR}/mkcert.sh
post-install:
- ${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKDIR}/dovecot-example.conf \
- ${EGDIR}/dovecot.conf.default
- ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${EGDIR}
- ${INSTALL_SCRIPT} ${WRKDIR}/mkcert.sh ${EGDIR}
+ ${DESTDIR}${EGDIR}/dovecot.conf.default
+ ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${DESTDIR}${EGDIR}
+ ${INSTALL_SCRIPT} ${WRKDIR}/mkcert.sh ${DESTDIR}${EGDIR}
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r f62bdd162992 -r ee5a1342297a pkgtools/pkglint/Makefile
--- a/pkgtools/pkglint/Makefile Fri Dec 15 17:34:27 2006 +0000
+++ b/pkgtools/pkglint/Makefile Fri Dec 15 17:35:20 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.353 2006/11/01 09:14:45 joerg Exp $
+# $NetBSD: Makefile,v 1.354 2006/12/15 17:38:40 joerg Exp $
#
DISTNAME= pkglint-4.73
@@ -15,6 +15,7 @@
DEPENDS+= p5-pkgsrc-Dewey>=1.0:../../pkgtools/p5-pkgsrc-Dewey
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= perl:run
@@ -54,19 +55,16 @@
cd ${FILESDIR} && ${CP} lintpkgsrc.0 lintpkgsrc.1 lintpkgsrc.pl pkglint.0 pkglint.1 pkglint.pl plist-clash.pl ${WRKSRC}
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${PREFIX}/bin/pkglint
- ${INSTALL_SCRIPT} ${WRKSRC}/lintpkgsrc.pl ${PREFIX}/bin/lintpkgsrc
- ${INSTALL_SCRIPT} ${WRKSRC}/plist-clash.pl ${PREFIX}/bin/plist-clash
- ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.0 ${PREFIX}/${PKGMANDIR}/cat1
+ ${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${DESTDIR}${PREFIX}/bin/pkglint
+ ${INSTALL_SCRIPT} ${WRKSRC}/lintpkgsrc.pl ${DESTDIR}${PREFIX}/bin/lintpkgsrc
+ ${INSTALL_SCRIPT} ${WRKSRC}/plist-clash.pl ${DESTDIR}${PREFIX}/bin/plist-clash
+ ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
.if !empty(MANINSTALL:Mmaninstall)
- ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.endif
- ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${PREFIX}/${PKGMANDIR}/cat1
- ${INSTALL_DATA} ${FILESDIR}/makevars.map ${PREFIX}/share/pkglint/
- ${INSTALL_DATA} ${FILESDIR}/deprecated.map ${PREFIX}/share/pkglint/
-
-post-install:
- ${PREFIX}/bin/pkglint -q 1>&2
+ ${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
+ ${INSTALL_DATA} ${FILESDIR}/makevars.map ${DESTDIR}${PREFIX}/share/pkglint/
+ ${INSTALL_DATA} ${FILESDIR}/deprecated.map ${DESTDIR}${PREFIX}/share/pkglint/
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index