On 05/06/2006 03:40 PM, Scott Barninger wrote:
Bacula-1.38 RPM Release Notes
[...]
*************************************
* Fix for daemon user/group problem *
*************************************
Prior to the 1.38.8 release the pre-install scripts attempted to create
the
user bacula with primary group as both bacula and disk which failed.
There was
still a problem with these scripts in 1.38.8, noted in bug 605, on
RedHat
platforms which by default attempt to create a group with same name as
the user
(bacula) and failed because it had already been created.
This has (I think) now been corrected with the addition of the -g
parameter to
the useradd commands and should work.
I think the order of user and groups has to be reversed.
The following code in the preinstall script fails on my FC5 box with:
usermod: user bacula,disk does not exist
----------------------------------------
if [ "$IS_ROOT" != "root" ]; then
/usr/sbin/usermod bacula -G bacula,disk
fi
----------------------------------------
However,
/usr/sbin/usermod -G bacula,disk bacula
... works as expected.
Besides, the src-rpms build really smooth, even on FC5 (using the
attached small spec-file patch). Thanks!
Cheers,
--leo
--
-----------------------------------------------------------------------
[EMAIL PROTECTED] Fax: +43-1-31336-906050
Zentrum fuer Informatikdienste - Wirtschaftsuniversitaet Wien - Austria
--- SPECS/bacula.spec 2006-05-06 20:26:04.000000000 +0200
+++ bacula.spec 2006-05-17 13:39:27.825655250 +0200
@@ -40,6 +40,8 @@
%{?build_fc3:%define fc3 1}
%define fc4 0
%{?build_fc4:%define fc4 1}
+%define fc5 0
+%{?build_fc5:%define fc5 1}
# Whitebox Enterprise build
%define wb3 0
%{?build_wb3:%define wb3 1}
@@ -70,7 +72,7 @@
%{?build_mdv:%define mdk 1}
# test for a platform definition
-%if ! %{rh7} && ! %{rh8} && ! %{rh9} && ! %{fc1} && ! %{fc3} && ! %{fc4} && ! %{wb3} && ! %{su9} && ! %{su10} && ! %{mdk}
+%if ! %{rh7} && ! %{rh8} && ! %{rh9} && ! %{fc1} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{wb3} && ! %{su9} && ! %{su10} && ! %{mdk}
%{error: You must specify a platform. Please examine the spec file.}
exit 1
%endif
@@ -113,7 +115,7 @@
%if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4}
%define _dist %(grep Red /etc/redhat-release)
%endif
-%if %{fc1} || %{fc4}
+%if %{fc1} || %{fc4} || %{fc5}
%define _dist %(grep Fedora /etc/redhat-release)
%endif
%if %{centos4} || %{centos3}
@@ -268,11 +270,12 @@
BuildRequires: GConf2-devel
BuildRequires: freetype-devel
%endif
-%if %{fc4}
+%if %{fc4} || %{fc5}
BuildRequires: libtermcap-devel
BuildRequires: glibc-devel >= 2.3
%endif
-%if %{fc4} && %{gconsole}
+%if %{gconsole}
+%if %{fc4} || %{fc5}
BuildRequires: gtk2-devel >= 2.6
BuildRequires: libgnomeui-devel >= 2.10
BuildRequires: ORBit2-devel
@@ -283,11 +286,12 @@
BuildRequires: GConf2-devel
BuildRequires: freetype-devel
%endif
-%if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4}
+%endif
+%if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5}
BuildRequires: libtermcap-devel
BuildRequires: glibc-devel >= 2.3
%endif
-%if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && %{gconsole}
+%if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && %{gconsole}
BuildRequires: gtk2-devel >= 2.0
BuildRequires: libgnomeui-devel >= 2.0
BuildRequires: ORBit2-devel
@@ -568,7 +572,8 @@
Requires: GConf2
Requires: freetype
%endif
-%if %{gconsole} && %{fc4}
+%if %{gconsole}
+%if %{fc4} || %{fc5}
Requires: gtk2 >= 2.6
Requires: libgnomeui >= 2.10
Requires: glibc >= 2.3
@@ -580,7 +585,8 @@
Requires: GConf2
Requires: freetype
%endif
-%if %{gconsole} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4}
+%endif
+%if %{gconsole} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5}
Requires: gtk2 >= 2.0
Requires: libgnomeui >= 2.0
Requires: glibc >= 2.3
@@ -634,9 +640,11 @@
Requires: gtk2 >= 2.4
%endif
-%if %{wxconsole} && %{fc4}
+%if %{wxconsole}
+%if %{fc4} || %{fc5}
Requires: gtk2 >= 2.6
%endif
+%endif
%if %{wxconsole}
%description wxconsole
@@ -864,7 +872,7 @@
cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
%endif
-%if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{mdk}
+%if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{mdk}
%define iftrick 1
%else
%define iftrick 0
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users