summaryrefslogtreecommitdiff
path: root/audio/cddbd/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2010-02-01 01:38:42 +0000
committerjoerg <joerg>2010-02-01 01:38:42 +0000
commit9c5b7b3e9ee2b7024083de1515ba54fdd5d103d1 (patch)
tree3d88846b8faf3b6635ab2d0e03ff337e1b4bace6 /audio/cddbd/patches
parent8ffee2539497bcd3aed2e9ae2e822f2f8edc0a52 (diff)
downloadpkgsrc-9c5b7b3e9ee2b7024083de1515ba54fdd5d103d1.tar.gz
DESTDIR support
Diffstat (limited to 'audio/cddbd/patches')
-rw-r--r--audio/cddbd/patches/patch-aa19
1 files changed, 16 insertions, 3 deletions
diff --git a/audio/cddbd/patches/patch-aa b/audio/cddbd/patches/patch-aa
index df7d1f35be1..4fa94d894dc 100644
--- a/audio/cddbd/patches/patch-aa
+++ b/audio/cddbd/patches/patch-aa
@@ -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 @@ $NetBSD: patch-aa,v 1.3 2007/08/30 14:12:38 joerg Exp $
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 @@ $NetBSD: patch-aa,v 1.3 2007/08/30 14:12:38 joerg Exp $
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 @@ $NetBSD: patch-aa,v 1.3 2007/08/30 14:12:38 joerg Exp $
+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