From 469f20cdf79b4f68dc7969ce6a0b53f2321a01dc Mon Sep 17 00:00:00 2001 From: Timo Eissler Date: Mon, 12 Mar 2012 15:51:17 +0100 Subject: [PATCH 1/7] added bacula addon package --- config/rootfiles/packages/bacula | 61 +++++++++++++++++++++++ lfs/bacula | 85 ++++++++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 147 insertions(+) create mode 100644 config/rootfiles/packages/bacula create mode 100644 lfs/bacula diff --git a/config/rootfiles/packages/bacula b/config/rootfiles/packages/bacula new file mode 100644 index 0000000000..c6021d444a --- /dev/null +++ b/config/rootfiles/packages/bacula @@ -0,0 +1,61 @@ +#etc/bacula +#etc/bacula/bacula +#etc/bacula/bacula-ctl-dir +etc/bacula/bacula-ctl-fd +#etc/bacula/bacula-ctl-sd +etc/bacula/bacula-fd.conf +#etc/bacula/bacula_config +#etc/bacula/bconsole +#etc/bacula/bconsole.conf +#etc/bacula/btraceback.dbx +#etc/bacula/btraceback.gdb +#etc/bacula/btraceback.mdb +#etc/bacula/disk-changer +#etc/bacula/dvd-handler +#etc/bacula/mtx-changer +#etc/bacula/mtx-changer.conf +sbin/bacula +sbin/bacula-fd +#sbin/bconsole +#sbin/btraceback +usr/lib/bpipe-fd.so +usr/lib/libbac-5.2.6.so +usr/lib/libbac.la +usr/lib/libbac.so +usr/lib/libbaccfg-5.2.6.so +usr/lib/libbaccfg.la +usr/lib/libbaccfg.so +usr/lib/libbacfind-5.2.6.so +usr/lib/libbacfind.la +usr/lib/libbacfind.so +usr/lib/libbacpy-5.2.6.so +usr/lib/libbacpy.la +usr/lib/libbacpy.so +#usr/share/doc/bacula +#usr/share/doc/bacula/ChangeLog +#usr/share/doc/bacula/INSTALL +#usr/share/doc/bacula/LICENSE +#usr/share/doc/bacula/README +#usr/share/doc/bacula/ReleaseNotes +#usr/share/doc/bacula/VERIFYING +#usr/share/doc/bacula/technotes +#usr/share/man/man1/bacula-bwxconsole.1.gz +#usr/share/man/man1/bacula-tray-monitor.1.gz +#usr/share/man/man1/bat.1.gz +#usr/share/man/man1/bsmtp.1.gz +#usr/share/man/man8/bacula-dir.8.gz +#usr/share/man/man8/bacula-fd.8.gz +#usr/share/man/man8/bacula-sd.8.gz +#usr/share/man/man8/bacula.8.gz +#usr/share/man/man8/bconsole.8.gz +#usr/share/man/man8/bcopy.8.gz +#usr/share/man/man8/bextract.8.gz +#usr/share/man/man8/bls.8.gz +#usr/share/man/man8/bregex.8.gz +#usr/share/man/man8/bscan.8.gz +#usr/share/man/man8/btape.8.gz +#usr/share/man/man8/btraceback.8.gz +#usr/share/man/man8/bwild.8.gz +#usr/share/man/man8/dbcheck.8.gz +var/bacula +var/bacula/working diff --git a/lfs/bacula b/lfs/bacula new file mode 100644 index 0000000000..890a51208e --- /dev/null +++ b/lfs/bacula @@ -0,0 +1,85 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2009 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 5.2.6 + +THISAPP = bacula-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = http://downloads.sourceforge.net/project/bacula/bacula/$(VER)/ +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = bacula +PAK_VER = 1 + +DEPS = "" + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 914483b92539598678542bd2ddb28043 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure --enable-client-only + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + mv /sbin/bacula /etc/init.d/bacula + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 84df80d7b4..ac13cb0592 100755 --- a/make.sh +++ b/make.sh @@ -765,6 +765,7 @@ buildipfire() { ipfiremake nginx ipfiremake sendEmail ipfiremake sysbench + 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 From 008c392e7827a4907c4a6942fe814967c86ddc18 Mon Sep 17 00:00:00 2001 From: Timo Eissler Date: Mon, 12 Mar 2012 15:51:17 +0100 Subject: [PATCH 2/7] added bacula addon package --- config/rootfiles/packages/bacula | 61 +++++++++++++++++++++++ lfs/bacula | 85 ++++++++++++++++++++++++++++++++ make.sh | 23 +++++++++ 3 files changed, 169 insertions(+) create mode 100644 config/rootfiles/packages/bacula create mode 100644 lfs/bacula diff --git a/config/rootfiles/packages/bacula b/config/rootfiles/packages/bacula new file mode 100644 index 0000000000..c6021d444a --- /dev/null +++ b/config/rootfiles/packages/bacula @@ -0,0 +1,61 @@ +#etc/bacula +#etc/bacula/bacula +#etc/bacula/bacula-ctl-dir +etc/bacula/bacula-ctl-fd +#etc/bacula/bacula-ctl-sd +etc/bacula/bacula-fd.conf +#etc/bacula/bacula_config +#etc/bacula/bconsole +#etc/bacula/bconsole.conf +#etc/bacula/btraceback.dbx +#etc/bacula/btraceback.gdb +#etc/bacula/btraceback.mdb +#etc/bacula/disk-changer +#etc/bacula/dvd-handler +#etc/bacula/mtx-changer +#etc/bacula/mtx-changer.conf +sbin/bacula +sbin/bacula-fd +#sbin/bconsole +#sbin/btraceback +usr/lib/bpipe-fd.so +usr/lib/libbac-5.2.6.so +usr/lib/libbac.la +usr/lib/libbac.so +usr/lib/libbaccfg-5.2.6.so +usr/lib/libbaccfg.la +usr/lib/libbaccfg.so +usr/lib/libbacfind-5.2.6.so +usr/lib/libbacfind.la +usr/lib/libbacfind.so +usr/lib/libbacpy-5.2.6.so +usr/lib/libbacpy.la +usr/lib/libbacpy.so +#usr/share/doc/bacula +#usr/share/doc/bacula/ChangeLog +#usr/share/doc/bacula/INSTALL +#usr/share/doc/bacula/LICENSE +#usr/share/doc/bacula/README +#usr/share/doc/bacula/ReleaseNotes +#usr/share/doc/bacula/VERIFYING +#usr/share/doc/bacula/technotes +#usr/share/man/man1/bacula-bwxconsole.1.gz +#usr/share/man/man1/bacula-tray-monitor.1.gz +#usr/share/man/man1/bat.1.gz +#usr/share/man/man1/bsmtp.1.gz +#usr/share/man/man8/bacula-dir.8.gz +#usr/share/man/man8/bacula-fd.8.gz +#usr/share/man/man8/bacula-sd.8.gz +#usr/share/man/man8/bacula.8.gz +#usr/share/man/man8/bconsole.8.gz +#usr/share/man/man8/bcopy.8.gz +#usr/share/man/man8/bextract.8.gz +#usr/share/man/man8/bls.8.gz +#usr/share/man/man8/bregex.8.gz +#usr/share/man/man8/bscan.8.gz +#usr/share/man/man8/btape.8.gz +#usr/share/man/man8/btraceback.8.gz +#usr/share/man/man8/bwild.8.gz +#usr/share/man/man8/dbcheck.8.gz +var/bacula +var/bacula/working diff --git a/lfs/bacula b/lfs/bacula new file mode 100644 index 0000000000..890a51208e --- /dev/null +++ b/lfs/bacula @@ -0,0 +1,85 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2009 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 5.2.6 + +THISAPP = bacula-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = http://downloads.sourceforge.net/project/bacula/bacula/$(VER)/ +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = bacula +PAK_VER = 1 + +DEPS = "" + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 914483b92539598678542bd2ddb28043 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure --enable-client-only + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + mv /sbin/bacula /etc/init.d/bacula + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 1c10f32348..0f5a74f983 100755 --- a/make.sh +++ b/make.sh @@ -803,6 +803,29 @@ buildipfire() { ipfiremake iotop 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() { From 9ac40513c3209c45cc5e393ca074572fecadf7f0 Mon Sep 17 00:00:00 2001 From: Timo Eissler Date: Wed, 16 Jul 2014 17:58:15 +0200 Subject: [PATCH 3/7] bacula: new package --- config/rootfiles/packages/bacula | 15 ++++++++------- lfs/bacula | 8 ++++---- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/config/rootfiles/packages/bacula b/config/rootfiles/packages/bacula index c6021d444a..b9c8346beb 100644 --- a/config/rootfiles/packages/bacula +++ b/config/rootfiles/packages/bacula @@ -14,21 +14,24 @@ etc/bacula/bacula-fd.conf #etc/bacula/dvd-handler #etc/bacula/mtx-changer #etc/bacula/mtx-changer.conf -sbin/bacula +etc/rc.d/init.d/bacula +#opt/bacula +opt/bacula/working +#root/.rnd sbin/bacula-fd #sbin/bconsole #sbin/btraceback usr/lib/bpipe-fd.so -usr/lib/libbac-5.2.6.so +usr/lib/libbac-5.2.13.so usr/lib/libbac.la usr/lib/libbac.so -usr/lib/libbaccfg-5.2.6.so +usr/lib/libbaccfg-5.2.13.so usr/lib/libbaccfg.la usr/lib/libbaccfg.so -usr/lib/libbacfind-5.2.6.so +usr/lib/libbacfind-5.2.13.so usr/lib/libbacfind.la usr/lib/libbacfind.so -usr/lib/libbacpy-5.2.6.so +usr/lib/libbacpy-5.2.13.so usr/lib/libbacpy.la usr/lib/libbacpy.so #usr/share/doc/bacula @@ -57,5 +60,3 @@ usr/lib/libbacpy.so #usr/share/man/man8/btraceback.8.gz #usr/share/man/man8/bwild.8.gz #usr/share/man/man8/dbcheck.8.gz -var/bacula -var/bacula/working diff --git a/lfs/bacula b/lfs/bacula index 890a51208e..8d9631c930 100644 --- a/lfs/bacula +++ b/lfs/bacula @@ -24,15 +24,15 @@ include Config -VER = 5.2.6 +VER = 5.2.13 THISAPP = bacula-$(VER) DL_FILE = $(THISAPP).tar.gz -DL_FROM = http://downloads.sourceforge.net/project/bacula/bacula/$(VER)/ +DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = bacula -PAK_VER = 1 +PAK_VER = 2 DEPS = "" @@ -44,7 +44,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 914483b92539598678542bd2ddb28043 +$(DL_FILE)_MD5 = 43417bae0c221afb1f30a581c9e0f2fe install : $(TARGET) From 859b0382ab8a52f72de86f13165df695672dfde3 Mon Sep 17 00:00:00 2001 From: Timo Eissler Date: Fri, 18 Jul 2014 07:50:24 +0200 Subject: [PATCH 4/7] bacula: several fixes --- config/rootfiles/packages/bacula | 5 ++--- lfs/bacula | 5 ++++- make.sh | 22 ---------------------- 3 files changed, 6 insertions(+), 26 deletions(-) diff --git a/config/rootfiles/packages/bacula b/config/rootfiles/packages/bacula index b9c8346beb..8fadc7abf4 100644 --- a/config/rootfiles/packages/bacula +++ b/config/rootfiles/packages/bacula @@ -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 diff --git a/lfs/bacula b/lfs/bacula index 8d9631c930..54864b2295 100644 --- a/lfs/bacula +++ b/lfs/bacula @@ -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) diff --git a/make.sh b/make.sh index 0f5a74f983..9361f78a5c 100755 --- a/make.sh +++ b/make.sh @@ -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() { From 6d3854a89c7070347ded284eadf3da823ebb3d10 Mon Sep 17 00:00:00 2001 From: Timo Eissler Date: Wed, 23 Jul 2014 06:20:07 +0200 Subject: [PATCH 5/7] bacula: several fixes --- config/backup/includes/bacula | 1 + config/rootfiles/packages/bacula | 27 ++++++++++++++------------- lfs/bacula | 11 +++++++---- 3 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 config/backup/includes/bacula diff --git a/config/backup/includes/bacula b/config/backup/includes/bacula new file mode 100644 index 0000000000..8d5c119f95 --- /dev/null +++ b/config/backup/includes/bacula @@ -0,0 +1 @@ +/etc/bacula/ diff --git a/config/rootfiles/packages/bacula b/config/rootfiles/packages/bacula index 8fadc7abf4..908434795b 100644 --- a/config/rootfiles/packages/bacula +++ b/config/rootfiles/packages/bacula @@ -15,24 +15,23 @@ etc/bacula/bacula-fd.conf #etc/bacula/mtx-changer #etc/bacula/mtx-changer.conf etc/rc.d/init.d/bacula -#var/bacula -var/bacula/working -sbin/bacula-fd -#sbin/bconsole -#sbin/btraceback usr/lib/bpipe-fd.so usr/lib/libbac-5.2.13.so -usr/lib/libbac.la -usr/lib/libbac.so +#usr/lib/libbac.la +#usr/lib/libbac.so usr/lib/libbaccfg-5.2.13.so -usr/lib/libbaccfg.la -usr/lib/libbaccfg.so +#usr/lib/libbaccfg.la +#usr/lib/libbaccfg.so usr/lib/libbacfind-5.2.13.so -usr/lib/libbacfind.la -usr/lib/libbacfind.so +#usr/lib/libbacfind.la +#usr/lib/libbacfind.so usr/lib/libbacpy-5.2.13.so -usr/lib/libbacpy.la -usr/lib/libbacpy.so +#usr/lib/libbacpy.la +#usr/lib/libbacpy.so +#usr/sbin/bacula +usr/sbin/bacula-fd +#usr/sbin/bconsole +#usr/sbin/btraceback #usr/share/doc/bacula #usr/share/doc/bacula/ChangeLog #usr/share/doc/bacula/INSTALL @@ -59,3 +58,5 @@ usr/lib/libbacpy.so #usr/share/man/man8/btraceback.8.gz #usr/share/man/man8/bwild.8.gz #usr/share/man/man8/dbcheck.8.gz +#var/bacula +var/bacula/working diff --git a/lfs/bacula b/lfs/bacula index 54864b2295..4d2fed6d44 100644 --- a/lfs/bacula +++ b/lfs/bacula @@ -77,12 +77,15 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && ./configure --enable-client-only + cd $(DIR_APP) && ./configure \ + --prefix=/usr \ + --sysconfdir=/etc/bacula \ + --with-working-dir=/var/bacula/working \ + --enable-client-only cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install - 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 + ln -s etc/bacula/bacula-ctl-fd /etc/rc.d/init.d/bacula rm -f /root/.rnd @rm -rf $(DIR_APP) @$(POSTBUILD) + From f76c78222f8c972dff9282729467b6bd65f4c24a Mon Sep 17 00:00:00 2001 From: Timo Eissler Date: Wed, 23 Jul 2014 17:31:59 +0200 Subject: [PATCH 6/7] bacula: small fix for init script --- lfs/bacula | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs/bacula b/lfs/bacula index 4d2fed6d44..0e7d39ba62 100644 --- a/lfs/bacula +++ b/lfs/bacula @@ -84,7 +84,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) --enable-client-only cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install - ln -s etc/bacula/bacula-ctl-fd /etc/rc.d/init.d/bacula + ln -s /etc/bacula/bacula-ctl-fd /etc/rc.d/init.d/bacula rm -f /root/.rnd @rm -rf $(DIR_APP) @$(POSTBUILD) From 65f7e8aedbb86228d7dbdeb5e74ca93dc3fb2d7d Mon Sep 17 00:00:00 2001 From: Timo Eissler Date: Thu, 7 Aug 2014 16:30:26 +0200 Subject: [PATCH 7/7] bacula: add pak install/update/uninstall scripts --- src/paks/bacula/install.sh | 26 ++++++++++++++++++++++++++ src/paks/bacula/uninstall.sh | 27 +++++++++++++++++++++++++++ src/paks/bacula/update.sh | 26 ++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 src/paks/bacula/install.sh create mode 100644 src/paks/bacula/uninstall.sh create mode 100644 src/paks/bacula/update.sh diff --git a/src/paks/bacula/install.sh b/src/paks/bacula/install.sh new file mode 100644 index 0000000000..682363b5c7 --- /dev/null +++ b/src/paks/bacula/install.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +extract_files +restore_backup ${NAME} diff --git a/src/paks/bacula/uninstall.sh b/src/paks/bacula/uninstall.sh new file mode 100644 index 0000000000..731fc42e7b --- /dev/null +++ b/src/paks/bacula/uninstall.sh @@ -0,0 +1,27 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +extract_backup_includes +make_backup ${NAME} +remove_files diff --git a/src/paks/bacula/update.sh b/src/paks/bacula/update.sh new file mode 100644 index 0000000000..89c40d0d7c --- /dev/null +++ b/src/paks/bacula/update.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +./uninstall.sh +./install.sh