auto-import setroubleshoot-0.25-1 on branch devel from

setroubleshoot-0.25-1.src.rpm
This commit is contained in:
Daniel J Walsh 2006-08-21 15:18:36 +00:00
parent e468f83c97
commit db2425ca6c
4 changed files with 20 additions and 17 deletions

View File

@ -1 +1 @@
setroubleshoot-0.24.tar.gz setroubleshoot-0.25.tar.gz

View File

@ -26,43 +26,39 @@ PATH=/sbin:/bin:/usr/bin:/usr/sbin
# Silently exit is SELinux is not enabled # Silently exit is SELinux is not enabled
[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 0 [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 1
# Check that we are root ... so non-root users stop here # Check that we are root ... so non-root users stop here
test `id -u` = 0 || exit 4 test `id -u` = 0 || exit 4
# Check config
test -x /usr/sbin/setroubleshoot || exit 5
RETVAL=0 RETVAL=0
prog="setroubleshoot" prog="setroubleshootd"
exe="setroubleshootd"
start(){ start(){
echo -n $"Starting $prog: " echo -n $"Starting $prog: "
unset HOME MAIL USER USERNAME unset HOME MAIL USER USERNAME
daemon $exe "$EXTRAOPTIONS" daemon $prog "$EXTRAOPTIONS"
RETVAL=$? RETVAL=$?
echo echo
if test $RETVAL = 0 ; then if test $RETVAL = 0 ; then
touch /var/lock/subsys/setroubleshoot touch /var/lock/subsys/$prog
fi fi
return $RETVAL return $RETVAL
} }
stop(){ stop(){
echo -n $"Stopping $prog: " echo -n $"Stopping $prog: "
killproc $exe killproc $prog
RETVAL=$? RETVAL=$?
echo echo
rm -f /var/lock/subsys/setroubleshoot rm -f /var/lock/subsys/$prog
return $RETVAL return $RETVAL
} }
reload(){ reload(){
echo -n $"Reloading configuration: " echo -n $"Reloading configuration: "
killproc $exe -HUP killproc $prog -HUP
RETVAL=$? RETVAL=$?
echo echo
return $RETVAL return $RETVAL
@ -74,7 +70,7 @@ restart(){
} }
condrestart(){ condrestart(){
[ -e /var/lock/subsys/setroubleshoot ] && restart [ -e /var/lock/subsys/$prog ] && restart
return 0 return 0
} }
@ -88,7 +84,7 @@ case "$1" in
stop stop
;; ;;
status) status)
status $exe status $prog
;; ;;
restart) restart)
restart restart
@ -100,7 +96,7 @@ case "$1" in
condrestart condrestart
;; ;;
*) *)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|rotate}" echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
RETVAL=3 RETVAL=3
esac esac

View File

@ -1,6 +1,6 @@
Summary: Helps troubleshoot SELinux problems Summary: Helps troubleshoot SELinux problems
Name: setroubleshoot Name: setroubleshoot
Version: 0.24 Version: 0.25
Release: 1 Release: 1
License: GPL License: GPL
Group: Applications/System Group: Applications/System
@ -58,8 +58,10 @@ rm -rf %{buildroot}
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install
%{__install} -D -m755 %{SOURCE1} %{buildroot}/etc/rc.d/init.d/%{name} %{__install} -D -m755 %{SOURCE1} %{buildroot}/etc/rc.d/init.d/%{name}
%{__install} -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} %{__install} -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
touch %{buildroot}%{pkgvardatadir}/database.xml
%post %post
[ -f %{pkgvardatadir}/database.xml ] && chmod 644 %{pkgvardatadir}/database.xml
/usr/bin/update-desktop-database %{_datadir}/applications /usr/bin/update-desktop-database %{_datadir}/applications
/sbin/chkconfig --add %{name} /sbin/chkconfig --add %{name}
/sbin/service %{name} condrestart >/dev/null 2>&1 /sbin/service %{name} condrestart >/dev/null 2>&1
@ -92,12 +94,17 @@ rm -rf %{buildroot}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %{pkgrundir} %dir %{pkgrundir}
%dir %{pkgvardatadir} %dir %{pkgvardatadir}
%ghost %attr(0644,root,root) %{pkgvardatadir}/database.xml
/etc/rc.d/init.d/%{name} /etc/rc.d/init.d/%{name}
%{_sysconfdir}/xdg/autostart/* %{_sysconfdir}/xdg/autostart/*
#%{_datadir}/applications/*.desktop #%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*png %{_datadir}/pixmaps/*png
%changelog %changelog
* Mon Aug 21 2006 Dan Walsh <dwalsh@redhat.com> - 0.25-1
- Fix 64 bit issue that caused runaway problem
* Sun Aug 20 2006 Dan Walsh <dwalsh@redhat.com> - 0.24-1 * Sun Aug 20 2006 Dan Walsh <dwalsh@redhat.com> - 0.24-1
- add missing runcmd - add missing runcmd

View File

@ -1 +1 @@
cb87682917d9567396c8d61c98cac8b9 setroubleshoot-0.24.tar.gz adfbe964a43e47c7afbcf7102f01f6d8 setroubleshoot-0.25.tar.gz