From: Scott Barninger Date: Thu, 19 Feb 2004 22:38:28 +0000 (+0000) Subject: Added updatedb scripts package to spec file X-Git-Tag: Release-7.0.0~9691 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=87dc047966122a0151671b6bc04cd0e12b85744f;p=bacula%2Fbacula Added updatedb scripts package to spec file git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1061 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/platforms/redhat/bacula.spec.in b/bacula/platforms/redhat/bacula.spec.in index 099d00df64..620f11888e 100644 --- a/bacula/platforms/redhat/bacula.spec.in +++ b/bacula/platforms/redhat/bacula.spec.in @@ -255,6 +255,26 @@ to build a boot floppy disk. You need to have the bacula-sqlite, bacula-mysql or bacula-client package for your platform installed and configured before installing this package. +%package updatedb + +Summary: Bacula - The Network Backup Solution +Group: System Environment/Daemons +Requires: coreutils, util-linux, libc5, bacula-fd + +%description updatedb +Bacula - It comes by night and sucks the vital essence from your computers. + +Bacula is a set of computer programs that permit you (or the system +administrator) to manage backup, recovery, and verification of computer +data across a network of computers of different kinds. In technical terms, +it is a network client/server based backup program. Bacula is relatively +easy to use and efficient, while offering many advanced storage management +features that make it easy to find and recover lost or damaged files. +Bacula source code has been released under the GPL version 2 license. + +This package installs scripts for updating older versions of the bacula +database. + %prep %setup -b 1 @@ -324,6 +344,7 @@ mkdir -p $RPM_BUILD_ROOT/usr/share/gnome/apps/System mkdir -p $RPM_BUILD_ROOT/usr/share/applications mkdir -p $RPM_BUILD_ROOT/etc/bacula/rescue mkdir -p $RPM_BUILD_ROOT/etc/bacula/rescue/tomsrtbt +mkdir -p $RPM_BUILD_ROOT/etc/bacula/updatedb %if ! %{mysql} mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir} @@ -404,6 +425,9 @@ cp src/filed/static-bacula-fd $RPM_BUILD_ROOT/etc/bacula/rescue/bacula-fd # this is the tom's root boot disk cp ../%{tomsrtbt}/* $RPM_BUILD_ROOT/etc/bacula/rescue/tomsrtbt/ +# install the updatedb scripts +cp updatedb/* $RPM_BUILD_ROOT/etc/bacula/updatedb/ + %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT" @@ -783,7 +807,16 @@ rm -f /etc/bacula/rescue/start_network rm -f /etc/bacula/rescue/sfdisk rm -rf /etc/bacula/rescue/diskinfo/* +%files updatedb +%defattr(-,root,root) +%attr(0644,root,root) /etc/bacula/updatedb/* + +%post updatedb +echo "The database update scripts were installed to /etc/bacula/updatedb" + %changelog +* Thu Feb 19 2004 D. Scott Barninger +- added updatedb package * Thu Feb 12 2004 D. Scott Barninger - added postgresql package * Wed Feb 11 2004 D. Scott Barninger diff --git a/bacula/platforms/suse/bacula.spec.in b/bacula/platforms/suse/bacula.spec.in index 099d00df64..620f11888e 100644 --- a/bacula/platforms/suse/bacula.spec.in +++ b/bacula/platforms/suse/bacula.spec.in @@ -255,6 +255,26 @@ to build a boot floppy disk. You need to have the bacula-sqlite, bacula-mysql or bacula-client package for your platform installed and configured before installing this package. +%package updatedb + +Summary: Bacula - The Network Backup Solution +Group: System Environment/Daemons +Requires: coreutils, util-linux, libc5, bacula-fd + +%description updatedb +Bacula - It comes by night and sucks the vital essence from your computers. + +Bacula is a set of computer programs that permit you (or the system +administrator) to manage backup, recovery, and verification of computer +data across a network of computers of different kinds. In technical terms, +it is a network client/server based backup program. Bacula is relatively +easy to use and efficient, while offering many advanced storage management +features that make it easy to find and recover lost or damaged files. +Bacula source code has been released under the GPL version 2 license. + +This package installs scripts for updating older versions of the bacula +database. + %prep %setup -b 1 @@ -324,6 +344,7 @@ mkdir -p $RPM_BUILD_ROOT/usr/share/gnome/apps/System mkdir -p $RPM_BUILD_ROOT/usr/share/applications mkdir -p $RPM_BUILD_ROOT/etc/bacula/rescue mkdir -p $RPM_BUILD_ROOT/etc/bacula/rescue/tomsrtbt +mkdir -p $RPM_BUILD_ROOT/etc/bacula/updatedb %if ! %{mysql} mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir} @@ -404,6 +425,9 @@ cp src/filed/static-bacula-fd $RPM_BUILD_ROOT/etc/bacula/rescue/bacula-fd # this is the tom's root boot disk cp ../%{tomsrtbt}/* $RPM_BUILD_ROOT/etc/bacula/rescue/tomsrtbt/ +# install the updatedb scripts +cp updatedb/* $RPM_BUILD_ROOT/etc/bacula/updatedb/ + %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT" @@ -783,7 +807,16 @@ rm -f /etc/bacula/rescue/start_network rm -f /etc/bacula/rescue/sfdisk rm -rf /etc/bacula/rescue/diskinfo/* +%files updatedb +%defattr(-,root,root) +%attr(0644,root,root) /etc/bacula/updatedb/* + +%post updatedb +echo "The database update scripts were installed to /etc/bacula/updatedb" + %changelog +* Thu Feb 19 2004 D. Scott Barninger +- added updatedb package * Thu Feb 12 2004 D. Scott Barninger - added postgresql package * Wed Feb 11 2004 D. Scott Barninger