rpms/BackupPC/EL-5 BackupPC.spec,1.4,1.5
Johan Cwiklinski
trasher at fedoraproject.org
Sat Aug 23 09:47:18 UTC 2008
Author: trasher
Update of /cvs/extras/rpms/BackupPC/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv917
Modified Files:
BackupPC.spec
Log Message:
Put the correct nologin path and fix SELinux issue
Index: BackupPC.spec
===================================================================
RCS file: /cvs/extras/rpms/BackupPC/EL-5/BackupPC.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- BackupPC.spec 29 Nov 2007 07:12:59 -0000 1.4
+++ BackupPC.spec 23 Aug 2008 09:46:47 -0000 1.5
@@ -6,7 +6,7 @@
Name: BackupPC
Version: 3.1.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: BackupPC - high-performance backup system
Group: Applications/System
@@ -163,7 +163,7 @@
%pre
-%{_sbindir}/useradd -d %{_localstatedir}/lib/%{name} -r -s %{_bindir}/nologin backuppc 2> /dev/null || :
+%{_sbindir}/useradd -d %{_localstatedir}/lib/%{name} -r -s /sbin/nologin backuppc 2> /dev/null || :
%preun
@@ -174,6 +174,7 @@
%post
%if %{useselinux}
+(
# Install/update Selinux policy
semodule -i %{_datadir}/selinux/packages/%{name}/%{name}.pp
# files owned by RPM
@@ -182,6 +183,7 @@
restorecon -R %{_sysconfdir}/%{name}
restorecon -R %{_localstatedir}/lib/%{name}
restorecon -R %{_localstatedir}/log/%{name}
+) &>/dev/null
%endif
chkconfig --add backuppc || :
service httpd condrestart > /dev/null 2>&1 || :
@@ -192,8 +194,10 @@
service httpd condrestart > /dev/null 2>&1 || :
%if %{useselinux}
if [ "$1" -eq "0" ]; then
+ (
# Remove the SElinux policy.
semodule -r %{name} || :
+ )&>/dev/null
fi
%endif
@@ -222,6 +226,10 @@
%endif
%changelog
+* Sat Aug 23 2008 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-2
+- using /dev/null with SELinux policy to avoid broken pipe errors (bug #432149)
+- correcting nologin path
+
* Thu Nov 29 2007 Johan Cwiklinski <johan AT x-tnd DOT be> 3.1.0-1
- New upstream version
- Added samba-client as a dependency
More information about the fedora-extras-commits
mailing list