pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b021ec126e20
branches:  trunk
changeset: 570569:b021ec126e20
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Feb 01 01:38:42 2010 +0000

description:
DESTDIR support

diffstat:

 audio/cddbd/Makefile         |   9 +++++++--
 audio/cddbd/distinfo         |   4 ++--
 audio/cddbd/patches/patch-aa |  19 ++++++++++++++++---
 audio/terminatorx/Makefile   |   4 +++-
 4 files changed, 28 insertions(+), 8 deletions(-)

diffs (114 lines):

diff -r 0ce976234c75 -r b021ec126e20 audio/cddbd/Makefile
--- a/audio/cddbd/Makefile      Mon Feb 01 01:25:29 2010 +0000
+++ b/audio/cddbd/Makefile      Mon Feb 01 01:38:42 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2007/12/29 10:13:08 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2010/02/01 01:38:42 joerg Exp $
 #
 
 DISTNAME=      cddbd-1.3.1
@@ -14,15 +14,20 @@
 HOMEPAGE=      http://www.freedb.org/en/download__server_software.4.html
 COMMENT=       Internet CD Database Server
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 MAKE_FILE=     makefile
 
+INSTALLATION_DIRS+=    bin
+
 do-configure:
        cd ${WRKSRC};                                                   \
        ${SETENV} BASEDIR=${PREFIX:Q}/share ${SH} config.sh
 
 do-install:
        cd ${WRKSRC};                                                   \
-       ${SETENV} INSTALL=${INSTALL:Q} BINDIR=${PREFIX:Q}/bin           \
+       ${SETENV} INSTALL=${INSTALL:Q} DESTDIR=${DESTDIR}               \
+         BINDIR=${DESTDIR}${PREFIX}/bin        \
          BINPERM=${BINMODE:Q} BINOWNER=${BINOWN:Q}                     \
          BINGROUP=${BINGRP:Q} ${SH} install.sh
 
diff -r 0ce976234c75 -r b021ec126e20 audio/cddbd/distinfo
--- a/audio/cddbd/distinfo      Mon Feb 01 01:25:29 2010 +0000
+++ b/audio/cddbd/distinfo      Mon Feb 01 01:38:42 2010 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2007/08/30 14:12:38 joerg Exp $
+$NetBSD: distinfo,v 1.6 2010/02/01 01:38:42 joerg Exp $
 
 SHA1 (cddbd-1.3.1.tar.gz) = 2e8ab932750e54e6058edbcc6107835c9be7840c
 RMD160 (cddbd-1.3.1.tar.gz) = a2b666407db9d6415f430a9df8ef4a96fa24572c
@@ -6,7 +6,7 @@
 SHA1 (cddbd-1.3.1.patch1.gz) = 08a96dac6c95cf6c289922215be6e6c99cd9f49e
 RMD160 (cddbd-1.3.1.patch1.gz) = 6e0343ded77336cec190682581ad8b9ee78f46d8
 Size (cddbd-1.3.1.patch1.gz) = 416 bytes
-SHA1 (patch-aa) = d7bd76f66e0a4d2cf08ced19b2c4ed684efa7064
+SHA1 (patch-aa) = 9ae4099537d81c792c6183837d25a7015edf5873
 SHA1 (patch-ab) = 6a84d5d1c9c811dc6d5faf8e806b065bc79e0959
 SHA1 (patch-ac) = 3701b82b47444eb8196069580e46f31d1d800160
 SHA1 (patch-ad) = afca1d372bf7e7bf4fc47b9100a914d6f16e431b
diff -r 0ce976234c75 -r b021ec126e20 audio/cddbd/patches/patch-aa
--- a/audio/cddbd/patches/patch-aa      Mon Feb 01 01:25:29 2010 +0000
+++ b/audio/cddbd/patches/patch-aa      Mon Feb 01 01:38:42 2010 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.3 2007/08/30 14:12:38 joerg Exp $
+$NetBSD: patch-aa,v 1.4 2010/02/01 01:38:42 joerg Exp $
 
 --- install.sh.orig    1996-12-22 03:49:54.000000000 +0000
 +++ install.sh
@@ -78,6 +78,15 @@
                return 0
        else
                $ECHO "\t$2 NOT installed"
+@@ -330,7 +328,7 @@ done
+ 
+ # Find other directories
+ 
+-BASEDIR=`cat .accessfile`
++BASEDIR=${DESTDIR}`cat .accessfile`
+ WORKDIR=${BASEDIR}
+ CDDBDIR=`dirname ${BASEDIR}`
+ 
 @@ -588,7 +586,7 @@ fi
  
  $ECHO "permissions:  default connect nopost noupdate noget" >> access
@@ -87,7 +96,7 @@
  if getyn "Do you want to create the motd file now"
  then
        if [ "$EDITOR" = "" ]
-@@ -624,7 +622,7 @@ makedir $WORKDIR $DPERM $OWNID $GRPID
+@@ -624,10 +622,10 @@ makedir $WORKDIR $DPERM $OWNID $GRPID
  $ECHO "\nInstalling cddbd files..."
  
  # Binaries
@@ -95,7 +104,11 @@
 +instfile cddbd ${BINDIR}/cddbd $BINPERM $BINOWNER $BINGROUP
  
  # Configuration files
- instfile access `cat .accessfile`/access $FPERM $OWNID $GRPID
+-instfile access `cat .accessfile`/access $FPERM $OWNID $GRPID
++instfile access ${BASEDIR}/access $FPERM $OWNID $GRPID
+ instfile sites $SITE $FPERM $OWNID $GRPID
+ 
+ if [ -f motd ]
 @@ -635,7 +633,7 @@ then
        instfile motd $MOTD $FPERM $OWNID $GRPID
  fi
diff -r 0ce976234c75 -r b021ec126e20 audio/terminatorx/Makefile
--- a/audio/terminatorx/Makefile        Mon Feb 01 01:25:29 2010 +0000
+++ b/audio/terminatorx/Makefile        Mon Feb 01 01:38:42 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2009/08/26 19:57:13 sno Exp $
+# $NetBSD: Makefile,v 1.18 2010/02/01 01:43:59 joerg Exp $
 #
 
 DISTNAME=      terminatorX-3.82
@@ -12,6 +12,8 @@
 HOMEPAGE=      http://terminatorx.org/
 COMMENT=       Realtime audio synthesizer
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      mpg123-[0-9]*:../../audio/mpg123
 DEPENDS+=      sox-[0-9]*:../../audio/sox
 DEPENDS+=      vorbis-tools-[0-9]*:../../audio/vorbis-tools



Home | Main Index | Thread Index | Old Index