From: Kern Sibbald Date: Wed, 29 Jul 2009 11:34:57 +0000 (+0000) Subject: Tweak bacula.spec defines X-Git-Tag: Release-5.0.0~446 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5f6ac1ea5202bb86f66237da7f56bfaf87603415;p=bacula%2Fbacula Tweak bacula.spec defines git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9116 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/platforms/redhat/bacula.spec b/bacula/platforms/redhat/bacula.spec index 96f088e68e..99b0bf13f4 100644 --- a/bacula/platforms/redhat/bacula.spec +++ b/bacula/platforms/redhat/bacula.spec @@ -4,6 +4,55 @@ # Platform Build Configuration +# basic defines for every build +%define _version 3.0.2 +%define _release 1 +%define depkgs_version 18Feb09 +%define depkgs_qt_version 28Jul09 +%define _rescuever 3.0.2 +%define docs_version 3.0.2 +%define _packager D. Scott Barninger + +%define single_dir 0 +%{?single_dir_install:%define single_dir 1} + +# Installation Directory locations +%if %{single_dir} +%define _prefix /opt/bacula +%define _sbindir /opt/bacula/bin +%define _subsysdir /opt/bacula/working +%define sqlite_bindir /opt/bacula/sqlite +%define _mandir /usr/share/man +%define sysconf_dir /opt/bacula/etc +%define script_dir /opt/bacula/scripts +%define working_dir /opt/bacula/working +%define pid_dir /opt/bacula/working +%define plugin_dir /opt/bacula/plugins +%define lib_dir /opt/bacula/lib +%else +%define _prefix /usr +%define _sbindir %_prefix/sbin +%define _subsysdir /var/lock/subsys +%define sqlite_bindirf %_libdir/bacula/sqlite +%define _mandir %_prefix/share/man +%define sysconf_dir /etc/bacula +%define script_dir %_libdir/bacula +%define working_dir /var/lib/bacula +%define pid_dir /var/run +%define plugin_dir %_libdir/bacula/plugins +%define lib_dir %_libdir/bacula/lib +%endif + +# Daemon user:group Don't change them unless you know what you are doing +%define director_daemon_user bacula +%define storage_daemon_user bacula +%define file_daemon_user root +%define daemon_group bacula +# group that has write access to tape devices, usually disk on Linux +%define storage_daemon_group disk + + + BuildRequires: libacl-devel # probems with mandriva build: @@ -155,53 +204,6 @@ BuildRequires: suse-release %endif # opensuse-bs? -# basic defines for every build -%define _version 3.0.2 -%define _release 1 -%define depkgs_version 18Feb09 -%define depkgs_qt_version 28Jul09 -%define _rescuever 3.0.2 -%define docs_version 3.0.2 -%define _packager D. Scott Barninger - -%define single_dir 0 -%{?single_dir_install:%define single_dir 1} - -# Installation Directory locations -%if %{single_dir} -%define _prefix /opt/bacula -%define _sbindir /opt/bacula/bin -%define _subsysdir /opt/bacula/working -%define sqlite_bindir /opt/bacula/sqlite -%define _mandir /usr/share/man -%define sysconf_dir /opt/bacula/etc -%define script_dir /opt/bacula/scripts -%define working_dir /opt/bacula/working -%define pid_dir /opt/bacula/working -%define plugin_dir /opt/bacula/plugins -%define lib_dir /opt/bacula/lib -%else -%define _prefix /usr -%define _sbindir %_prefix/sbin -%define _subsysdir /var/lock/subsys -%define sqlite_bindirf %_libdir/bacula/sqlite -%define _mandir %_prefix/share/man -%define sysconf_dir /etc/bacula -%define script_dir %_libdir/bacula -%define working_dir /var/lib/bacula -%define pid_dir /var/run -%define plugin_dir %_libdir/bacula/plugins -%define lib_dir %_libdir/bacula/lib -%endif - -# Daemon user:group Don't change them unless you know what you are doing -%define director_daemon_user bacula -%define storage_daemon_user bacula -%define file_daemon_user root -%define daemon_group bacula -# group that has write access to tape devices, usually disk on Linux -%define storage_daemon_group disk - # any patches for this release # be sure to check the setup section for patch macros