summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2017-08-05 21:30:09 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-12 06:57:24 +0700
commit747063233d6acc4a64bb90b38c365c1c1ffa884e (patch)
tree3db84c08b91f43848b6ddb8480cb769f8c95d3e2 /system
parentdb0699f0f3c98705b6e5b1218e11445cac51bea5 (diff)
downloadslackbuilds-747063233d6acc4a64bb90b38c365c1c1ffa884e.tar.gz
system/bacula: Fix install with ROOT=.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/bacula/bacula.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/bacula/bacula.SlackBuild b/system/bacula/bacula.SlackBuild
index df400cb781..0b927e27b5 100644
--- a/system/bacula/bacula.SlackBuild
+++ b/system/bacula/bacula.SlackBuild
@@ -208,7 +208,7 @@ cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-sed -i "s#%sysconfdir%#$SYSCONFDIR#g" $PKG/install/doinst.sh
+sed -i "s#%sysconfdir%#$(echo "$SYSCONFDIR" | sed 's:^/*::')#g" $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}