summaryrefslogtreecommitdiff
path: root/system/bareos
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2017-08-05 21:30:37 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-12 06:57:25 +0700
commit1b6423cdb5734cc31b462bdbfadd94deebc3fef7 (patch)
tree5b7e2187255bc17b747fc91e4b76e02980d72160 /system/bareos
parent747063233d6acc4a64bb90b38c365c1c1ffa884e (diff)
downloadslackbuilds-1b6423cdb5734cc31b462bdbfadd94deebc3fef7.tar.gz
system/bareos: Fix install with ROOT=.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/bareos')
-rw-r--r--system/bareos/bareos.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/bareos/bareos.SlackBuild b/system/bareos/bareos.SlackBuild
index 40662da7d9..4bfbcd5eaf 100644
--- a/system/bareos/bareos.SlackBuild
+++ b/system/bareos/bareos.SlackBuild
@@ -214,7 +214,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}