pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d2b626d0b237
branches:  trunk
changeset: 570277:d2b626d0b237
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jan 27 19:13:37 2010 +0000

description:
DESTDIR support

diffstat:

 sysutils/lilo/Makefile        |  22 ++++++++++++----------
 sysutils/logrot/Makefile      |   7 ++++++-
 sysutils/magicrescue/Makefile |   6 +++++-
 sysutils/mbmon/Makefile       |   8 +++++---
 sysutils/mdf2iso/Makefile     |   6 ++++--
 sysutils/memconf/Makefile     |   4 ++--
 sysutils/mencvcd/Makefile     |   6 ++++--
 sysutils/mesure/Makefile      |   8 +++++++-
 8 files changed, 45 insertions(+), 22 deletions(-)

diffs (210 lines):

diff -r 6861f5f1f12b -r d2b626d0b237 sysutils/lilo/Makefile
--- a/sysutils/lilo/Makefile    Wed Jan 27 19:12:29 2010 +0000
+++ b/sysutils/lilo/Makefile    Wed Jan 27 19:13:37 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2008/08/30 08:10:29 dholland Exp $
+# $NetBSD: Makefile,v 1.5 2010/01/27 19:13:37 joerg Exp $
 
 DISTNAME=              lilo-22.8.src
 PKGREVISION=           1
@@ -11,6 +11,8 @@
 HOMEPAGE=              http://lilo.go.dyndns.org/
 COMMENT=               Generic boot loader for Linux
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 # This is LInux LOader; it can load different operating systems.
 # Build untested on other operating systems.
 ONLY_FOR_PLATFORM=     Linux-*-*
@@ -52,14 +54,14 @@
                        share/lilo share/doc/lilo
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/lilo ${PREFIX}/sbin/lilo
-       ${INSTALL_SCRIPT} ${WRKSRC}/mkrescue ${PREFIX}/sbin/mkrescue
-       ${INSTALL_SCRIPT} ${WRKSRC}/keytab-lilo.pl ${PREFIX}/sbin/keytab-lilo
-       ${INSTALL_MAN} ${WRKSRC}/manPages/lilo.8 ${PREFIX}/${PKGMANDIR}/man8
-       ${INSTALL_MAN} ${WRKSRC}/manPages/lilo.conf.5 ${PREFIX}/${PKGMANDIR}/man5
-       ${INSTALL_MAN} ${WRKSRC}/manPages/mkrescue.8 ${PREFIX}/${PKGMANDIR}/man8
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/lilo
-       ${INSTALL_DATA} ${WRKSRC}/sample/lilo.sample.conf ${PREFIX}/share/lilo
-       ${INSTALL_DATA} ${FILESDIR}/lilo.conf.example ${PREFIX}/share/lilo
+       ${INSTALL_PROGRAM} ${WRKSRC}/lilo ${DESTDIR}${PREFIX}/sbin/lilo
+       ${INSTALL_SCRIPT} ${WRKSRC}/mkrescue ${DESTDIR}${PREFIX}/sbin/mkrescue
+       ${INSTALL_SCRIPT} ${WRKSRC}/keytab-lilo.pl ${DESTDIR}${PREFIX}/sbin/keytab-lilo
+       ${INSTALL_MAN} ${WRKSRC}/manPages/lilo.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+       ${INSTALL_MAN} ${WRKSRC}/manPages/lilo.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+       ${INSTALL_MAN} ${WRKSRC}/manPages/mkrescue.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/lilo
+       ${INSTALL_DATA} ${WRKSRC}/sample/lilo.sample.conf ${DESTDIR}${PREFIX}/share/lilo
+       ${INSTALL_DATA} ${FILESDIR}/lilo.conf.example ${DESTDIR}${PREFIX}/share/lilo
 
 .include "../../mk/bsd.pkg.mk"
diff -r 6861f5f1f12b -r d2b626d0b237 sysutils/logrot/Makefile
--- a/sysutils/logrot/Makefile  Wed Jan 27 19:12:29 2010 +0000
+++ b/sysutils/logrot/Makefile  Wed Jan 27 19:13:37 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2005/05/30 04:05:46 lukem Exp $
+# $NetBSD: Makefile,v 1.9 2010/01/27 19:15:32 joerg Exp $
 #
 
 DISTNAME=      logrot-1.7
@@ -9,9 +9,14 @@
 HOMEPAGE=      http://www.mewburn.net/luke/software.html
 COMMENT=       Rotate log files in a safe and configurable manner
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE= YES
 
 OPSYSVARS+=            CONFIGURE_ARGS
 CONFIGURE_ARGS.NetBSD+=        --with-pidfile=/var/run/syslogd.pid
 
+INSTALL_MAKE_FLAGS+=   bindir=${DESTDIR}${PREFIX}/bin \
+                       mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
 .include "../../mk/bsd.pkg.mk"
diff -r 6861f5f1f12b -r d2b626d0b237 sysutils/magicrescue/Makefile
--- a/sysutils/magicrescue/Makefile     Wed Jan 27 19:12:29 2010 +0000
+++ b/sysutils/magicrescue/Makefile     Wed Jan 27 19:13:37 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/07/09 15:12:15 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2010/01/27 19:17:08 joerg Exp $
 #
 
 DISTNAME=              magicrescue-1.1.4
@@ -9,6 +9,8 @@
 HOMEPAGE=              http://jbj.rapanden.dk/magicrescue/release/
 COMMENT=               Recover files from a block device by scanning for magic bytes
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_TOOLS+=            perl:run
 HAS_CONFIGURE=         yes
 
@@ -22,4 +24,6 @@
                        tools/pngextract.pl \
                        tools/script_rename.pl
 
+INSTALL_MAKE_FLAGS+=   PREFIX=${DESTDIR}${PREFIX}
+
 .include "../../mk/bsd.pkg.mk"
diff -r 6861f5f1f12b -r d2b626d0b237 sysutils/mbmon/Makefile
--- a/sysutils/mbmon/Makefile   Wed Jan 27 19:12:29 2010 +0000
+++ b/sysutils/mbmon/Makefile   Wed Jan 27 19:13:37 2010 +0000
@@ -1,6 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2007/01/07 09:14:12 rillig Exp $
+# $NetBSD: Makefile,v 1.16 2010/01/27 19:17:41 joerg Exp $
 #
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 .include "../../sysutils/mbmon/Makefile.common"
 
 PKGNAME=       mbmon-205
@@ -14,7 +16,7 @@
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/mbmon ${PREFIX}/bin
-       ${INSTALL_MAN} ${WRKSRC}/mbmon.1 ${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_PROGRAM} ${WRKSRC}/mbmon ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/mbmon.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 
 .include "../../mk/bsd.pkg.mk"
diff -r 6861f5f1f12b -r d2b626d0b237 sysutils/mdf2iso/Makefile
--- a/sysutils/mdf2iso/Makefile Wed Jan 27 19:12:29 2010 +0000
+++ b/sysutils/mdf2iso/Makefile Wed Jan 27 19:13:37 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2006/10/16 12:14:46 obache Exp $
+# $NetBSD: Makefile,v 1.5 2010/01/27 19:18:07 joerg Exp $
 #
 
 DISTNAME=      mdf2iso-0.3.0-src
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://mdf2iso.berlios.de/
 COMMENT=       Utility to convert Alcohol 120% images to ISO-9660 format
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 INSTALLATION_DIRS=     bin
 
 WRKSRC=                        ${WRKDIR}/mdf2iso
@@ -19,6 +21,6 @@
        cd ${WRKSRC} && cc ${CFLAGS} src/mdf2iso.c -o mdf2iso
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/mdf2iso ${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/mdf2iso ${DESTDIR}${PREFIX}/bin
 
 .include "../../mk/bsd.pkg.mk"
diff -r 6861f5f1f12b -r d2b626d0b237 sysutils/memconf/Makefile
--- a/sysutils/memconf/Makefile Wed Jan 27 19:12:29 2010 +0000
+++ b/sysutils/memconf/Makefile Wed Jan 27 19:13:37 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2005/06/17 04:49:48 jlam Exp $
+# $NetBSD: Makefile,v 1.11 2010/01/27 19:18:30 joerg Exp $
 #
 
 DISTNAME=              memconf
@@ -18,6 +18,6 @@
 INSTALLATION_DIRS=     sbin
 
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/memconf ${PREFIX}/sbin/memconf
+       ${INSTALL_SCRIPT} ${WRKSRC}/memconf ${DESTDIR}${PREFIX}/sbin/memconf
 
 .include "../../mk/bsd.pkg.mk"
diff -r 6861f5f1f12b -r d2b626d0b237 sysutils/mencvcd/Makefile
--- a/sysutils/mencvcd/Makefile Wed Jan 27 19:12:29 2010 +0000
+++ b/sysutils/mencvcd/Makefile Wed Jan 27 19:13:37 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2008/05/25 14:45:18 tron Exp $
+# $NetBSD: Makefile,v 1.14 2010/01/27 19:19:27 joerg Exp $
 
 DISTNAME=      mencvcd
 PKGNAME=       ${DISTNAME}-0.3
@@ -12,6 +12,8 @@
 HOMEPAGE=      http://hammelmann.gmxhome.de/projects_en.html
 COMMENT=       Script for converting movie files into (S)VCD format
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      cdrdao>=1.1.9:../../sysutils/cdrdao
 DEPENDS+=      lame>=3.96.1:../../audio/lame
 DEPENDS+=      mjpegtools>=1.6.2:../../multimedia/mjpegtools
@@ -30,6 +32,6 @@
 USE_TOOLS+=    bash:run
 
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/mencvcd ${PREFIX}/bin/mencvcd
+       ${INSTALL_SCRIPT} ${WRKSRC}/mencvcd ${DESTDIR}${PREFIX}/bin/mencvcd
 
 .include "../../mk/bsd.pkg.mk"
diff -r 6861f5f1f12b -r d2b626d0b237 sysutils/mesure/Makefile
--- a/sysutils/mesure/Makefile  Wed Jan 27 19:12:29 2010 +0000
+++ b/sysutils/mesure/Makefile  Wed Jan 27 19:13:37 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/05/22 17:27:22 zafer Exp $
+# $NetBSD: Makefile,v 1.4 2010/01/27 19:21:58 joerg Exp $
 #
 
 DISTNAME=              mesure-0.5
@@ -10,11 +10,17 @@
 HOMEPAGE=              http://www.nopcode.org/?t=mesure
 COMMENT=               Tool to measure different kind of streams
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE=         yes
 USE_TOOLS+=            gmake
 
 NOT_FOR_PLATFORM+=     OpenBSD-*-*
 
+INSTALL_MAKE_FLAGS+=   PREFIX=${DESTDIR}${PREFIX} \
+                       MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR} \
+                       DATADIR=${DESTDIR}${PREFIX}/share
+
 .include "../../devel/gmp/buildlink3.mk"
 .include "../../net/libpcap/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index