]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
added bacula addon package
authorTimo Eissler <timo@teissler.de>
Mon, 12 Mar 2012 14:51:17 +0000 (15:51 +0100)
committerTimo Eissler <timo@eissler.pro>
Tue, 15 Jul 2014 19:09:33 +0000 (21:09 +0200)
config/rootfiles/packages/bacula [new file with mode: 0644]
lfs/bacula [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/packages/bacula b/config/rootfiles/packages/bacula
new file mode 100644 (file)
index 0000000..c6021d4
--- /dev/null
@@ -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 (file)
index 0000000..890a512
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# 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 1c10f32348b714555f690142afa36f0212fb36f0..0f5a74f983352abfc613396ca0e71b7253af2474 100755 (executable)
--- 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() {