Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bacula: new package #39

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/backup/includes/bacula
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/bacula/
62 changes: 62 additions & 0 deletions config/rootfiles/packages/bacula
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#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
etc/rc.d/init.d/bacula
usr/lib/bpipe-fd.so
usr/lib/libbac-5.2.13.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/libbacfind-5.2.13.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/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
#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
91 changes: 91 additions & 0 deletions lfs/bacula
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
###############################################################################
# #
# 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.13

THISAPP = bacula-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = bacula
PAK_VER = 2

DEPS = ""

###############################################################################
# Top-level Rules
###############################################################################

objects = $(DL_FILE)

$(DL_FILE) = $(DL_FROM)/$(DL_FILE)

$(DL_FILE)_MD5 = 43417bae0c221afb1f30a581c9e0f2fe

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 \
--prefix=/usr \
--sysconfdir=/etc/bacula \
--with-working-dir=/var/bacula/working \
--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
rm -f /root/.rnd
@rm -rf $(DIR_APP)
@$(POSTBUILD)

1 change: 1 addition & 0 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ buildipfire() {
ipfiremake iotop
ipfiremake stunnel
ipfiremake sslscan
ipfiremake bacula
}

buildinstaller() {
Expand Down
26 changes: 26 additions & 0 deletions src/paks/bacula/install.sh
Original file line number Diff line number Diff line change
@@ -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 <info@ipfire.org>. #
# #
############################################################################
#
. /opt/pakfire/lib/functions.sh
extract_files
restore_backup ${NAME}
27 changes: 27 additions & 0 deletions src/paks/bacula/uninstall.sh
Original file line number Diff line number Diff line change
@@ -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 <info@ipfire.org>. #
# #
############################################################################
#
. /opt/pakfire/lib/functions.sh
extract_backup_includes
make_backup ${NAME}
remove_files
26 changes: 26 additions & 0 deletions src/paks/bacula/update.sh
Original file line number Diff line number Diff line change
@@ -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 <info@ipfire.org>. #
# #
############################################################################
#
. /opt/pakfire/lib/functions.sh
./uninstall.sh
./install.sh