|
|
@ -1,7 +1,7 @@
|
|
|
|
Name: trousers
|
|
|
|
Name: trousers
|
|
|
|
Summary: TCG's Software Stack v1.2
|
|
|
|
Summary: TCG's Software Stack v1.2
|
|
|
|
Version: 0.3.9
|
|
|
|
Version: 0.3.9
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
License: CPL
|
|
|
|
License: CPL
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Url: http://trousers.sourceforge.net
|
|
|
|
Url: http://trousers.sourceforge.net
|
|
|
@ -74,24 +74,13 @@ useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin \
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
if [ $1 -eq 1 ] ; then
|
|
|
|
%systemd_post tcsd.service
|
|
|
|
# Initial installation
|
|
|
|
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
%systemd_preun tcsd.service
|
|
|
|
# Package removal, not upgrade
|
|
|
|
|
|
|
|
/bin/systemctl --no-reload disable tcsd.service > /dev/null 2>&1 || :
|
|
|
|
|
|
|
|
/bin/systemctl stop tcsd.service > /dev/null 2>&1 || :
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%postun
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
%systemd_postun_with_restart tcsd.service
|
|
|
|
if [ $1 -ge 1 ] ; then
|
|
|
|
|
|
|
|
# Package upgrade, not uninstall
|
|
|
|
|
|
|
|
/bin/systemctl try-restart tcsd.service >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%defattr(-, root, root, -)
|
|
|
@ -120,6 +109,9 @@ fi
|
|
|
|
%{_libdir}/libtddl.a
|
|
|
|
%{_libdir}/libtddl.a
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Aug 30 2012 Steve Grubb <sgrubb@redhat.com> 0.3.9-4
|
|
|
|
|
|
|
|
- Make daemon full RELRO
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 27 2012 Steve Grubb <sgrubb@redhat.com> 0.3.9-3
|
|
|
|
* Mon Aug 27 2012 Steve Grubb <sgrubb@redhat.com> 0.3.9-3
|
|
|
|
- bz #836476 - Provide native systemd service
|
|
|
|
- bz #836476 - Provide native systemd service
|
|
|
|
|
|
|
|
|
|
|
|