# the bacula File daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Director daemon
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula File daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Storage daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Director daemon
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula File daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Storage daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Director daemon for the Gentoo release
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula File daemon for the Gentoo release.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Storage daemon for the Gentoo release.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Director daemon
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula File daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Storage daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Director daemon
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula File daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Storage daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
%{?_with_wrap: %{expand: %%global TCPW 1}}
%{?_without_wrap: %{expand: %%global TCPW 0}}
-%define blurb Bacula - It comes by night and sucks the vital essence from your computers.
+%define blurb Bacula - The Leading Open Source Backup Solution.
Summary: Bacula - The Network Backup Solution
Name: %{name}
cd %{name}-%{version}
%serverbuild
%configure \
- --enable-smartalloc \
+ --enable-smartalloc \
%if %{MYSQL}
--with-mysql \
%else
--with-sqlite \
%endif
%if %{GNOME}
- --enable-gnome \
+ --enable-gnome \
%endif
%if %{TCPW}
- --with-tcp-wrappers \
+ --with-tcp-wrappers \
%endif
--sysconfdir=%{_sysconfdir}/%{name} \
--with-scriptdir=%{_libexecdir}/%{name} \
--with-working-dir=%{_localstatedir}/%{name} \
--with-subsys-dir=/var/lock/subsys \
- --with-dir-password="#FAKE#DIR#PASSWORD#" \
- --with-fd-password="#FAKE#FD#PASSWORD#" \
- --with-sd-password="#FAKE#SD#PASSWORD#"
+ --with-dir-password="#FAKE#DIR#PASSWORD#" \
+ --with-fd-password="#FAKE#FD#PASSWORD#" \
+ --with-sd-password="#FAKE#SD#PASSWORD#"
%make
%pre dir -p /usr/bin/perl
umask(0077);
if ( -f "%{_sysconfdir}/%{name}/.pw.sed") {
- if ( -f "%{_sysconfdir}/%{name}/bacula-dir.conf") {
- system "sed -e 's/s!\(.*\)!\(.*\)!/s!\2!\1!/' %{_sysconfdir}/%{name}/.pw.sed > %{_sysconfdir}/%{name}/.upw.sed";
- system "sed -f %{_sysconfdir}/%{name}/.upw.sed %{_sysconfdir}/%{name}/bacula-dir.conf > %{_sysconfdir}/%{name}/bacula-dir.conf.tmp";
- unlink "%{_sysconfdir}/%{name}/bacula-dir.conf";
- rename "%{_sysconfdir}/%{name}/bacula-dir.conf.tmp", "%{_sysconfdir}/%{name}/bacula-dir.conf";
- unlink "%{_sysconfdir}/%{name}/.upw.sed";
- }
+ if ( -f "%{_sysconfdir}/%{name}/bacula-dir.conf") {
+ system "sed -e 's/s!\(.*\)!\(.*\)!/s!\2!\1!/' %{_sysconfdir}/%{name}/.pw.sed > %{_sysconfdir}/%{name}/.upw.sed";
+ system "sed -f %{_sysconfdir}/%{name}/.upw.sed %{_sysconfdir}/%{name}/bacula-dir.conf > %{_sysconfdir}/%{name}/bacula-dir.conf.tmp";
+ unlink "%{_sysconfdir}/%{name}/bacula-dir.conf";
+ rename "%{_sysconfdir}/%{name}/bacula-dir.conf.tmp", "%{_sysconfdir}/%{name}/bacula-dir.conf";
+ unlink "%{_sysconfdir}/%{name}/.upw.sed";
+ }
} else {
- mkdir("%{_sysconfdir}/%{name}");
- open(IN, "/dev/random") or die "$!";
- open(OUT, ">%{_sysconfdir}/%{name}/.pw.sed") or die "$!";
- foreach $c ("DIR","SD","FD") {
- read(IN, $buf, 32);
- my $res = pack("u", $buf);
- $res =~ s/^.//mg;
- $res =~ s/\n//g;
- $res =~ tr|` -_|AA-Za-z0-9+/|;
- print OUT "s!#YOU MUST SET THE $c PASSWORD#!\"$res\"!\n";
- }
- close (IN);
- close (OUT);
+ mkdir("%{_sysconfdir}/%{name}");
+ open(IN, "/dev/random") or die "$!";
+ open(OUT, ">%{_sysconfdir}/%{name}/.pw.sed") or die "$!";
+ foreach $c ("DIR","SD","FD") {
+ read(IN, $buf, 32);
+ my $res = pack("u", $buf);
+ $res =~ s/^.//mg;
+ $res =~ s/\n//g;
+ $res =~ tr|` -_|AA-Za-z0-9+/|;
+ print OUT "s!#YOU MUST SET THE $c PASSWORD#!\"$res\"!\n";
+ }
+ close (IN);
+ close (OUT);
}
%post dir
DB_VER=`mysql bacula -e 'select * from Version;'|tail -n 1 2>/dev/null`
if [ -z "$DB_VER" ]; then
# grant privileges and create tables
- echo "Granting privileges for MySQL user bacula..."
- %{_libexecdir}/%{name}/grant_mysql_privileges > dev/null
- echo "Creating MySQL bacula database..."
- %{_libexecdir}/%{name}/create_mysql_database > dev/null
- echo "Creating bacula tables..."
- %{_libexecdir}/%{name}/make_mysql_tables > dev/null
+ echo "Granting privileges for MySQL user bacula..."
+ %{_libexecdir}/%{name}/grant_mysql_privileges > dev/null
+ echo "Creating MySQL bacula database..."
+ %{_libexecdir}/%{name}/create_mysql_database > dev/null
+ echo "Creating bacula tables..."
+ %{_libexecdir}/%{name}/make_mysql_tables > dev/null
elif [ "$DB_VER" -lt "6" ]; then
- echo "Backing up bacula tables"
- mysqldump -f --opt bacula | bzip2 > %{_localstatedir}/%{name}/bacula_backup.sql.bz2
- echo "Upgrading bacula tables"
- %{_libexecdir}/%{name}/alter_mysql_tables
- echo "If bacula works correctly you can remove the backup file %{_localstatedir}/%{name}/bacula_backup.sql.bz2"
+ echo "Backing up bacula tables"
+ mysqldump -f --opt bacula | bzip2 > %{_localstatedir}/%{name}/bacula_backup.sql.bz2
+ echo "Upgrading bacula tables"
+ %{_libexecdir}/%{name}/alter_mysql_tables
+ echo "If bacula works correctly you can remove the backup file %{_localstatedir}/%{name}/bacula_backup.sql.bz2"
fi
%else
if [ -s %{_localstatedir}/%{name}/bacula.db ]; then
DB_VER=`echo "select * from Version;" | sqlite %{_localstatedir}/%{name}/bacula.db|tail -n 1 2>/dev/null`
- if [ "$DB_VER" -lt "6" ]; then
- echo "Backing up bacula tables"
- echo ".dump" | sqlite %{_localstatedir}/%{name}/bacula.db | bzip2 > %{_localstatedir}/%{name}/bacula_backup.sql.bz2
- echo "Upgrading bacula tables"
- %{_libexecdir}/%{name}/alter_sqlite_tables
- echo "If bacula works correctly you can remove the backup file %{_localstatedir}/%{name}/bacula_backup.sql.bz2"
- fi
+ if [ "$DB_VER" -lt "6" ]; then
+ echo "Backing up bacula tables"
+ echo ".dump" | sqlite %{_localstatedir}/%{name}/bacula.db | bzip2 > %{_localstatedir}/%{name}/bacula_backup.sql.bz2
+ echo "Upgrading bacula tables"
+ %{_libexecdir}/%{name}/alter_sqlite_tables
+ echo "If bacula works correctly you can remove the backup file %{_localstatedir}/%{name}/bacula_backup.sql.bz2"
+ fi
else
# create the tables
- echo "Creating bacula tables..."
- %{_libexecdir}/%{name}/make_sqlite_tables > dev/null
+ echo "Creating bacula tables..."
+ %{_libexecdir}/%{name}/make_sqlite_tables > dev/null
fi
%endif
chmod -R 600 %{_localstatedir}/%{name}/*
for i in %{_sysconfdir}/%{name}/*.conf %{_sysconfdir}/%{name}/*.conf.rpmnew %{_sysconfdir}/%{name}/*.conf.rpmsave; do
- if [ -s $i ]; then
- sed -f %{_sysconfdir}/%{name}/.pw.sed $i > $i.tmp
+ if [ -s $i ]; then
+ sed -f %{_sysconfdir}/%{name}/.pw.sed $i > $i.tmp
# this is needed if upgrading from 1.30a or lower
- sed -e '/SubSys[[:space:]]*Directory/I d' $i.tmp > $i
- rm -f $i.tmp
- fi
+ sed -e '/SubSys[[:space:]]*Directory/I d' $i.tmp > $i
+ rm -f $i.tmp
+ fi
done
%_post_service bacula-dir
umask 077
i=%{_sysconfdir}/%{name}/bacula-fd.conf
if [ -s %{_sysconfdir}/%{name}/.pw.sed -a -s $i ]; then
- sed -e 's/s!\(.*\)!\(.*\)!/s!\2!\1!/' %{_sysconfdir}/%{name}/.pw.sed > %{_sysconfdir}/%{name}/.upw.sed
- sed -f %{_sysconfdir}/%{name}/.upw.sed $i > $i.tmp
- mv -f $i.tmp $i
- rm -f %{_sysconfdir}/%{name}/.upw.sed
+ sed -e 's/s!\(.*\)!\(.*\)!/s!\2!\1!/' %{_sysconfdir}/%{name}/.pw.sed > %{_sysconfdir}/%{name}/.upw.sed
+ sed -f %{_sysconfdir}/%{name}/.upw.sed $i > $i.tmp
+ mv -f $i.tmp $i
+ rm -f %{_sysconfdir}/%{name}/.upw.sed
fi
%post fd
%_post_service bacula-fd
if [ -s %{_sysconfdir}/%{name}/.pw.sed ]; then
- for i in %{_sysconfdir}/%{name}/bacula-fd.conf %{_sysconfdir}/%{name}/bacula-fd.conf.rpmnew %{_sysconfdir}/%{name}/bacula-fd.conf.rpmsave; do
- if [ -s $i ]; then
- sed -f %{_sysconfdir}/%{name}/.pw.sed $i > $i.tmp
+ for i in %{_sysconfdir}/%{name}/bacula-fd.conf %{_sysconfdir}/%{name}/bacula-fd.conf.rpmnew %{_sysconfdir}/%{name}/bacula-fd.conf.rpmsave; do
+ if [ -s $i ]; then
+ sed -f %{_sysconfdir}/%{name}/.pw.sed $i > $i.tmp
# this is needed if upgrading from 1.30a or lower
- sed -e '/SubSys[[:space:]]*Directory/I d' $i.tmp > $i
- rm -f $i.tmp
- fi
- done
+ sed -e '/SubSys[[:space:]]*Directory/I d' $i.tmp > $i
+ rm -f $i.tmp
+ fi
+ done
fi
%preun fd
umask 077
i=%{_sysconfdir}/%{name}/bacula-sd.conf
if [ -s %{_sysconfdir}/%{name}/.pw.sed -a -s $i ]; then
- sed -e 's/s!\(.*\)!\(.*\)!/s!\2!\1!/' %{_sysconfdir}/%{name}/.pw.sed > %{_sysconfdir}/%{name}/.upw.sed
- sed -f %{_sysconfdir}/%{name}/.upw.sed $i > $i.tmp
- mv -f $i.tmp $i
- rm -f %{_sysconfdir}/%{name}/.upw.sed
+ sed -e 's/s!\(.*\)!\(.*\)!/s!\2!\1!/' %{_sysconfdir}/%{name}/.pw.sed > %{_sysconfdir}/%{name}/.upw.sed
+ sed -f %{_sysconfdir}/%{name}/.upw.sed $i > $i.tmp
+ mv -f $i.tmp $i
+ rm -f %{_sysconfdir}/%{name}/.upw.sed
fi
%post sd
%_post_service bacula-sd
if [ -s %{_sysconfdir}/%{name}/.pw.sed ]; then
- for i in %{_sysconfdir}/%{name}/bacula-sd.conf %{_sysconfdir}/%{name}/bacula-sd.conf.rpmnew %{_sysconfdir}/%{name}/bacula-sd.conf.rpmsave; do
- if [ -s $i ]; then
- sed -f %{_sysconfdir}/%{name}/.pw.sed $i > $i.tmp
+ for i in %{_sysconfdir}/%{name}/bacula-sd.conf %{_sysconfdir}/%{name}/bacula-sd.conf.rpmnew %{_sysconfdir}/%{name}/bacula-sd.conf.rpmsave; do
+ if [ -s $i ]; then
+ sed -f %{_sysconfdir}/%{name}/.pw.sed $i > $i.tmp
# this is needed if upgrading from 1.30a or lower
- sed -e '/SubSys[[:space:]]*Directory/I d' $i.tmp > $i
- rm -f $i.tmp
- fi
- done
+ sed -e '/SubSys[[:space:]]*Directory/I d' $i.tmp > $i
+ rm -f $i.tmp
+ fi
+ done
fi
%preun sd
umask 077
i=%{_sysconfdir}/%{name}/console.conf
if [ -s %{_sysconfdir}/%{name}/.pw.sed -a -s $i ]; then
- sed -e 's/s!\(.*\)!\(.*\)!/s!\2!\1!/' %{_sysconfdir}/%{name}/.pw.sed > %{_sysconfdir}/%{name}/.upw.sed
- sed -f %{_sysconfdir}/%{name}/.upw.sed $i > $i.tmp
- mv -f $i.tmp $i
- rm -f %{_sysconfdir}/%{name}/.upw.sed
+ sed -e 's/s!\(.*\)!\(.*\)!/s!\2!\1!/' %{_sysconfdir}/%{name}/.pw.sed > %{_sysconfdir}/%{name}/.upw.sed
+ sed -f %{_sysconfdir}/%{name}/.upw.sed $i > $i.tmp
+ mv -f $i.tmp $i
+ rm -f %{_sysconfdir}/%{name}/.upw.sed
fi
%post console
if [ -s %{_sysconfdir}/%{name}/.pw.sed ]; then
- for i in %{_sysconfdir}/%{name}/console.conf %{_sysconfdir}/%{name}/console.conf.rpmnew %{_sysconfdir}/%{name}/console.conf.rpmsave; do
- if [ -s $i ]; then
- sed -f %{_sysconfdir}/%{name}/.pw.sed $i > $i.tmp
+ for i in %{_sysconfdir}/%{name}/console.conf %{_sysconfdir}/%{name}/console.conf.rpmnew %{_sysconfdir}/%{name}/console.conf.rpmsave; do
+ if [ -s $i ]; then
+ sed -f %{_sysconfdir}/%{name}/.pw.sed $i > $i.tmp
# this is needed if upgrading from 1.30a or lower
- sed -e '/SubSys[[:space:]]*Directory/I d' $i.tmp > $i
- rm -f $i.tmp
- fi
- done
+ sed -e '/SubSys[[:space:]]*Directory/I d' $i.tmp > $i
+ rm -f $i.tmp
+ fi
+ done
fi
%if %{GNOME}
umask 077
i=%{_sysconfdir}/%{name}/gnome-console.conf
if [ -s %{_sysconfdir}/%{name}/.pw.sed -a -s $i ]; then
- sed -e 's/s!\(.*\)!\(.*\)!/s!\2!\1!/' %{_sysconfdir}/%{name}/.pw.sed > %{_sysconfdir}/%{name}/.upw.sed
- sed -f %{_sysconfdir}/%{name}/.upw.sed $i > $i.tmp
- mv -f $i.tmp $i
- rm -f %{_sysconfdir}/%{name}/.upw.sed
+ sed -e 's/s!\(.*\)!\(.*\)!/s!\2!\1!/' %{_sysconfdir}/%{name}/.pw.sed > %{_sysconfdir}/%{name}/.upw.sed
+ sed -f %{_sysconfdir}/%{name}/.upw.sed $i > $i.tmp
+ mv -f $i.tmp $i
+ rm -f %{_sysconfdir}/%{name}/.upw.sed
fi
%post console-gnome
%update_menus
if [ -s %{_sysconfdir}/%{name}/.pw.sed ]; then
- for i in %{_sysconfdir}/%{name}/gnome-console.conf %{_sysconfdir}/%{name}/gnome-console.conf.rpmnew %{_sysconfdir}/%{name}/gnome-console.conf.rpmsave; do
- if [ -s $i ]; then
- sed -f %{_sysconfdir}/%{name}/.pw.sed $i > $i.tmp
+ for i in %{_sysconfdir}/%{name}/gnome-console.conf %{_sysconfdir}/%{name}/gnome-console.conf.rpmnew %{_sysconfdir}/%{name}/gnome-console.conf.rpmsave; do
+ if [ -s $i ]; then
+ sed -f %{_sysconfdir}/%{name}/.pw.sed $i > $i.tmp
# this is needed if upgrading from 1.30a or lower
- sed -e '/SubSys[[:space:]]*Directory/I d' $i.tmp > $i
- rm -f $i.tmp
- fi
- done
+ sed -e '/SubSys[[:space:]]*Directory/I d' $i.tmp > $i
+ rm -f $i.tmp
+ fi
+ done
fi
-
+
%postun console-gnome
%clean_menus
# the bacula Director daemon
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula File daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Storage daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Director daemon
#
# chkconfig: 2345 92 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula File daemon.
#
# chkconfig: 2345 91 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Storage daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
%define mdk 0
%if %{_vendor} == redhat
- %define fedora 1
- %define _dist %(cat /etc/redhat-release)
+ %define fedora 1
+ %define _dist %(cat /etc/redhat-release)
%endif
%if %{_vendor} == suse
- %define suse 1
- %define _dist %(grep -i SuSE /etc/SuSE-release)
+ %define suse 1
+ %define _dist %(grep -i SuSE /etc/SuSE-release)
%endif
%if %{_vendor} == Mandriva
- %define mdk 1
- %define _dist %(grep Mand /etc/mandrake-release)
+ %define mdk 1
+ %define _dist %(grep Mand /etc/mandrake-release)
%endif
%if ! %{fedora} && ! %{suse} && ! %{mdk}
%{error: Unknown platform. Please examine the spec file.}
%define depkgs_qt ../depkgs-qt
# define the basic package description
-%define blurb Bacula - It comes by night and sucks the vital essence from your computers.
+%define blurb Bacula - The Leading Open Source Backup Solution.
%define blurb2 Bacula is a set of computer programs that permit you (or the system
%define blurb3 administrator) to manage backup, recovery, and verification of computer
%define blurb4 data across a network of computers of different kinds. In technical terms,
%define _docsrc .
# define the basic package description
-%define blurb Bacula - It comes by night and sucks the vital essence from your computers.
+%define blurb Bacula - The Leading Open Source Backup Solution.
%define blurb2 Bacula is a set of computer programs that permit you (or the system
%define blurb3 administrator) to manage backup, recovery, and verification of computer
%define blurb4 data across a network of computers of different kinds. In technical terms,
Source: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
# define the basic package description
-%define blurb Bacula - It comes by night and sucks the vital essence from your computers.
+%define blurb Bacula - The Leading Open Source Backup Solution.
%define blurb2 Bacula is a set of computer programs that permit you (or the system
%define blurb3 administrator) to manage backup, recovery, and verification of computer
%define blurb4 data across a network of computers of different kinds. In technical terms,
Source3: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
# define the basic package description
-%define blurb Bacula - It comes by night and sucks the vital essence from your computers.
+%define blurb Bacula - The Leading Open Source Backup Solution.
%define blurb2 Bacula is a set of computer programs that permit you (or the system
%define blurb3 administrator) to manage backup, recovery, and verification of computer
%define blurb4 data across a network of computers of different kinds. In technical terms,
--disable-gnome \
--disable-bwx-console \
--disable-tray-monitor \
- --disable-conio \
- --enable-readline \
+ --disable-conio \
+ --enable-readline \
%if %{mysql}
--with-mysql \
%endif
#! /bin/sh
#
# bacula This shell script takes care of starting and stopping
-# the bacula daemons.
+# the bacula daemons.
#
# This is pretty much watered down version of the RedHat script
# that works on Solaris as well as Linux, but it won't work everywhere.
#
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
PSCMD="@PSCMD@"
RC=0
# Test syntax.
if [ $# = 0 ]; then
- echo "Usage: killproc {program} [signal]"
- return 1
+ echo "Usage: killproc {program} [signal]"
+ return 1
fi
notset=0
# check for third arg to be kill level
if [ "$3" != "" ] ; then
- killlevel=$3
+ killlevel=$3
else
- notset=1
- killlevel="-9"
+ notset=1
+ killlevel="-9"
fi
# Get base program name
# Kill it.
if [ "$pid" != "" ] ; then
- if [ "$notset" = "1" ] ; then
- if ps -p $pid>/dev/null 2>&1; then
- # TERM first, then KILL if not dead
- kill -TERM $pid 2>/dev/null
- sleep 1
- if ps -p $pid >/dev/null 2>&1 ; then
- sleep 1
- if ps -p $pid >/dev/null 2>&1 ; then
- sleep 3
- if ps -p $pid >/dev/null 2>&1 ; then
- kill -KILL $pid 2>/dev/null
- fi
- fi
- fi
- fi
- ps -p $pid >/dev/null 2>&1
- RC=$?
- [ $RC -eq 0 ] && failure "$base shutdown" || success "$base shutdown"
- # RC=$((! $RC))
- # use specified level only
- else
- if ps -p $pid >/dev/null 2>&1; then
- kill $killlevel $pid 2>/dev/null
- RC=$?
- [ $RC -eq 0 ] && success "$base $killlevel" || failure "$base $killlevel"
- fi
- fi
+ if [ "$notset" = "1" ] ; then
+ if ps -p $pid>/dev/null 2>&1; then
+ # TERM first, then KILL if not dead
+ kill -TERM $pid 2>/dev/null
+ sleep 1
+ if ps -p $pid >/dev/null 2>&1 ; then
+ sleep 1
+ if ps -p $pid >/dev/null 2>&1 ; then
+ sleep 3
+ if ps -p $pid >/dev/null 2>&1 ; then
+ kill -KILL $pid 2>/dev/null
+ fi
+ fi
+ fi
+ fi
+ ps -p $pid >/dev/null 2>&1
+ RC=$?
+ [ $RC -eq 0 ] && failure "$base shutdown" || success "$base shutdown"
+ # RC=$((! $RC))
+ # use specified level only
+ else
+ if ps -p $pid >/dev/null 2>&1; then
+ kill $killlevel $pid 2>/dev/null
+ RC=$?
+ [ $RC -eq 0 ] && success "$base $killlevel" || failure "$base $killlevel"
+ fi
+ fi
else
- failure "$base shutdown"
+ failure "$base shutdown"
fi
# Remove pid file if any.
if [ "$notset" = "1" ]; then
- rm -f ${PIDDIR}/$base.$2.pid
+ rm -f ${PIDDIR}/$base.$2.pid
fi
return $RC
}
pid=""
# Test syntax.
if [ $# = 0 ] ; then
- echo "Usage: pidofproc {program}"
- return 1
+ echo "Usage: pidofproc {program}"
+ return 1
fi
# Get base program name
# First try PID file
if [ -f ${PIDDIR}/$base.$2.pid ] ; then
- pid=`head -1 ${PIDDIR}/$base.$2.pid`
- if [ "$pid" != "" ] ; then
- echo $pid
- return 0
- fi
+ pid=`head -1 ${PIDDIR}/$base.$2.pid`
+ if [ "$pid" != "" ] ; then
+ echo $pid
+ return 0
+ fi
fi
# Next try "pidof"
status() {
# Test syntax.
if [ $# = 0 ] ; then
- echo "Usage: status {program}"
- return 1
+ echo "Usage: status {program}"
+ return 1
fi
# Get base program name
return 0
else
pid=`${PSCMD} | awk 'BEGIN { prog=ARGV[1]; ARGC=1 }
- { if ((prog == $2) || (("(" prog ")") == $2) ||
- (("[" prog "]") == $2) ||
- ((prog ":") == $2)) { print $1 ; exit 0 } }' $1`
+ { if ((prog == $2) || (("(" prog ")") == $2) ||
+ (("[" prog "]") == $2) ||
+ ((prog ":") == $2)) { print $1 ; exit 0 } }' $1`
if [ "$pid" != "" ] ; then
- echo "$base (pid $pid) is running..."
- return 0
+ echo "$base (pid $pid) is running..."
+ return 0
fi
fi
# Next try the PID files
if [ -f ${PIDDIR}/$base.$2.pid ] ; then
- pid=`head -1 ${PIDDIR}/$base.$2.pid`
- if [ "$pid" != "" ] ; then
- echo "$base not running, but pid file exists"
- return 1
- fi
+ pid=`head -1 ${PIDDIR}/$base.$2.pid`
+ if [ "$pid" != "" ] ; then
+ echo "$base not running, but pid file exists"
+ return 1
+ fi
fi
# See if the subsys lock exists
if [ -f ${SUBSYSDIR}/$base ] ; then
- echo "$base not running, but subsys locked"
- return 2
+ echo "$base not running, but subsys locked"
+ return 2
fi
echo "$base is stopped"
return 3
rc=$?
return $rc
}
-
# the bacula Director daemon
#
# chkconfig: 2345 92 99
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
case "$1" in
start)
- [ -x ${BACDIRBIN}/bacula-dir ] && {
+ [ -x ${BACDIRBIN}/bacula-dir ] && {
sleep 2
echo -n "Starting the Director daemon: "
OPTIONS=''
fi
${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf
- echo Done.
- }
- ;;
+ echo Done.
+ }
+ ;;
stop)
- [ -x ${BACDIRBIN}/bacula-dir ] && {
+ [ -x ${BACDIRBIN}/bacula-dir ] && {
echo -n "Stopping the Director daemon: "
killproc ${BACDIRBIN}/bacula-dir ${DIR_PORT}
- echo Done.
- }
- ;;
+ echo Done.
+ }
+ ;;
restart)
- $0 stop
- sleep 5
- $0 start
- ;;
+ $0 stop
+ sleep 5
+ $0 start
+ ;;
status)
- [ -x ${BACDIRBIN}/bacula-dir ] && status ${BACDIRBIN}/bacula-dir ${DIR_PORT}
- ;;
+ [ -x ${BACDIRBIN}/bacula-dir ] && status ${BACDIRBIN}/bacula-dir ${DIR_PORT}
+ ;;
*)
- echo "Usage: $0 {start|stop|restart|status}"
- exit 1
- ;;
+ echo "Usage: $0 {start|stop|restart|status}"
+ exit 1
+ ;;
esac
exit 0
# the bacula File daemon.
#
# chkconfig: 2345 91 99
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
case "$1" in
start)
- [ -x ${BACFDBIN}/bacula-fd ] && {
+ [ -x ${BACFDBIN}/bacula-fd ] && {
sleep 2
echo -n "Starting the File daemon: "
OPTIONS=''
fi
${BACFDBIN}/bacula-fd $2 ${OPTIONS} -v -c ${BACFDCFG}/bacula-fd.conf
- echo Done.
- }
- ;;
+ echo Done.
+ }
+ ;;
stop)
- [ -x ${BACFDBIN}/bacula-fd ] && {
+ [ -x ${BACFDBIN}/bacula-fd ] && {
echo -n "Stopping the File daemon: "
killproc ${BACFDBIN}/bacula-fd ${FD_PORT}
- echo Done.
- }
- ;;
+ echo Done.
+ }
+ ;;
restart)
- $0 stop
- sleep 5
- $0 start
- ;;
+ $0 stop
+ sleep 5
+ $0 start
+ ;;
status)
- [ -x ${BACFDBIN}/bacula-fd ] && status ${BACFDBIN}/bacula-fd ${FD_PORT}
- ;;
+ [ -x ${BACFDBIN}/bacula-fd ] && status ${BACFDBIN}/bacula-fd ${FD_PORT}
+ ;;
*)
- echo "Usage: $0 {start|stop|restart|status}"
- exit 1
- ;;
+ echo "Usage: $0 {start|stop|restart|status}"
+ exit 1
+ ;;
esac
exit 0
-
# the bacula Storage daemon.
#
# chkconfig: 2345 90 99
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
case "$1" in
start)
- [ -x ${BACSDBIN}/bacula-sd ] && {
+ [ -x ${BACSDBIN}/bacula-sd ] && {
sleep 2
echo -n "Starting the Storage daemon: "
OPTIONS=''
fi
${BACSDBIN}/bacula-sd $2 ${OPTIONS} -v -c ${BACSDCFG}/bacula-sd.conf
- echo Done.
- }
- ;;
+ echo Done.
+ }
+ ;;
stop)
- [ -x ${BACSDBIN}/bacula-sd ] && {
+ [ -x ${BACSDBIN}/bacula-sd ] && {
echo -n "Stopping the Storage daemon: "
killproc ${BACSDBIN}/bacula-sd ${SD_PORT}
- echo Done.
- }
- ;;
+ echo Done.
+ }
+ ;;
restart)
- $0 stop
- sleep 5
- $0 start
- ;;
+ $0 stop
+ sleep 5
+ $0 start
+ ;;
status)
- [ -x ${BACSDBIN}/bacula-sd ] && status ${BACSDBIN}/bacula-sd ${SD_PORT}
- ;;
+ [ -x ${BACSDBIN}/bacula-sd ] && status ${BACSDBIN}/bacula-sd ${SD_PORT}
+ ;;
*)
- echo "Usage: $0 {start|stop|restart|status}"
- exit 1
- ;;
+ echo "Usage: $0 {start|stop|restart|status}"
+ exit 1
+ ;;
esac
exit 0
-
# the bacula Director daemon
#
# chkconfig: 2345 92 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula File daemon.
#
# chkconfig: 2345 91 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
# the bacula Storage daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
VERSION=2.2.5
MAXINST=1
CATEGORY=application
-DESC=Bacula - It comes by night and sucks the essence from your computers
+DESC=Bacula - The Leading Open Source Backup Solution.
VENDOR=http://www.bacula.org
HOTLINE=none
EMAIL=christian.masopust@siemens.com
# the bacula Director daemon
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# Modified to work on SuSE 1/31/2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
# the bacula File daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# Modified to work on SuSE 1/31/2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
# the bacula Storage daemon.
#
# chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# Modified to work on SuSE 1/31/2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
# Submitted by Volker Sauer <volker@volker-sauer.de> 21Feb04
# Tweaked a bit by Kern to convert it to a .in file
#
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
### BEGIN INIT INFO
# Provides: bacula
msgstr ""
#: src/gnome2-console/interface.c:456
-msgid "It comes by night and sucks the essence from your computers"
+msgid "The Leading Open Source Backup Solution."
msgstr ""
#: src/gnome2-console/interface.c:521 src/gnome2-console/interface.c:536
msgstr ""
#: src/gnome2-console/interface.c:458
-msgid "It comes by night and sucks the essence from your computers"
+msgid "The Leading Open Source Backup Solution."
msgstr ""
#: src/gnome2-console/interface.c:523 src/gnome2-console/interface.c:540
msgstr ""
#: src/gnome2-console/interface.c:458
-msgid "It comes by night and sucks the essence from your computers"
+msgid "The Leading Open Source Backup Solution."
msgstr ""
#: src/gnome2-console/interface.c:523 src/gnome2-console/interface.c:540
# This is pretty much watered down version of the RedHat script
# that works on Solaris as well as Linux, but it won't work everywhere.
#
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
PSCMD="@PSCMD@"
# This is pretty much watered down version of the RedHat script
# that works on Solaris as well as Linux, but it won't work everywhere.
#
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
PSCMD="@PSCMD@"
# This is pretty much watered down version of the RedHat script
# that works on Solaris as well as Linux, but it won't work everywhere.
#
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
PSCMD="@PSCMD@"
# This is pretty much watered down version of the RedHat script
# that works on Solaris as well as Linux, but it won't work everywhere.
#
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# All these are not *really* needed but it makes it
# This is pretty much watered down version of the RedHat script
# that works on Solaris as well as Linux, but it won't work everywhere.
#
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
PSCMD="@PSCMD@"