# install the libbweb files
cp -p %{bweb}-%{version}/lib/*.pm $RPM_BUILD_ROOT%{perl_sitearch}/
-chmod 644 $RPM_BUILD_ROOT%{perl_site_arch}/*.pm
+chmod 644 $RPM_BUILD_ROOT%{perl_sitearch}/*.pm
# install the brestore files
cp -p %{brestore}-%{version}/brestore.pl $RPM_BUILD_ROOT/usr/bin/
cp -p %{brestore}-%{version}/brestore.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/brestore.desktop
%else
cp -p %{brestore}-%{version}/brestore.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/brestore.desktop
-cp -p brestore.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/brestore
-cp -p brestore.pamd $RPM_BUILD_ROOT/etc/pam.d/brestore
+cp -p %{brestore}-%{version}/brestore.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/brestore
+cp -p %{brestore}-%{version}/brestore.pamd $RPM_BUILD_ROOT/etc/pam.d/brestore
ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/brestore
%endif
cp -p %{brestore}-%{version}/brestore.png $RPM_BUILD_ROOT/usr/share/pixmaps/
%changelog
* Sun Sep 24 2006 D. Scott Barninger <barninger at fairfieldcomputers.com>
- it's bweb not brestore that needs to add dataowner to group bacula
-- brestore will need to run xsu or usermod
+- brestore will need to run xsu or consolehelper
* Sun Sep 03 2006 D. Scott Barninger <barninger at fairfieldcomputers.com>
- seems that groupmod -A or -R is only available on SuSE
- use awk or add warning for other platforms