bacula: several fixes

This commit is contained in:
Timo Eissler
2014-07-18 07:50:24 +02:00
parent 9ac40513c3
commit 859b0382ab
3 changed files with 6 additions and 26 deletions

View File

@@ -15,9 +15,8 @@ etc/bacula/bacula-fd.conf
#etc/bacula/mtx-changer
#etc/bacula/mtx-changer.conf
etc/rc.d/init.d/bacula
#opt/bacula
opt/bacula/working
#root/.rnd
#var/bacula
var/bacula/working
sbin/bacula-fd
#sbin/bconsole
#sbin/btraceback

View File

@@ -80,6 +80,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_APP) && ./configure --enable-client-only
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
mv /sbin/bacula /etc/init.d/bacula
mv -f /sbin/bacula /etc/init.d/bacula
mv -f /opt/bacula /var/
sed -i -e 's#/opt/bacula/working#/var/bacula/working#' /etc/bacula/bacula-fd.conf
rm -f /root/.rnd
@rm -rf $(DIR_APP)
@$(POSTBUILD)

22
make.sh
View File

@@ -804,28 +804,6 @@ buildipfire() {
ipfiremake stunnel
ipfiremake sslscan
ipfiremake bacula
echo Build on $HOSTNAME > $BASEDIR/build/var/ipfire/firebuild
cat /proc/version >> $BASEDIR/build/var/ipfire/firebuild
echo >> $BASEDIR/build/var/ipfire/firebuild
git log -1 >> $BASEDIR/build/var/ipfire/firebuild
echo >> $BASEDIR/build/var/ipfire/firebuild
git status >> $BASEDIR/build/var/ipfire/firebuild
echo >> $BASEDIR/build/var/ipfire/firebuild
cat /proc/cpuinfo >> $BASEDIR/build/var/ipfire/firebuild
echo $PAKFIRE_CORE > $BASEDIR/build/opt/pakfire/db/core/mine
if [ "$(git status -s | wc -l)" == "0" ]; then
GIT_STATUS=""
else
GIT_STATUS="-dirty"
fi
case "$GIT_BRANCH" in
core*|beta?|rc?)
echo "$NAME $VERSION ($MACHINE) - $GIT_BRANCH$GIT_STATUS" > $BASEDIR/build/etc/system-release
;;
*)
echo "$NAME $VERSION ($MACHINE) - Development Build: $GIT_BRANCH/$GIT_LASTCOMMIT$GIT_STATUS" > $BASEDIR/build/etc/system-release
;;
esac
}
buildinstaller() {