Name: shibboleth
Summary: Open source system to enable inter-institutional resource sharing
Version: @-VERSION-@
-Release: 4
+Release: 6
#Copyright: University Corporation for Advanced Internet Development, Inc.
Group: System Environment/Libraries
License: Apache style
/sbin/ldconfig
# Plug the shibboleth SP into Apache2 on a Red Hat system.
-[ -d %{_sysconfdir}/httpd/conf.d ] || exit 0
-[ -f %{_sysconfdir}/httpd/conf.d/shib.conf ] && exit 0
-cp -p %{_sysconfdir}/shibboleth/apache2.config \
- %{_sysconfdir}/httpd/conf.d/shib.conf
+if [ -d %{_sysconfdir}/httpd/conf.d ] ; then
+ if [ ! -f %{_sysconfdir}/httpd/conf.d/shib.conf ] ; then
+ sed "s/\/usr\/doc\/shibboleth/\/usr\/share\/doc\/shibboleth-@-VERSION-@/g" \
+ %{_sysconfdir}/shibboleth/apache2.config \
+ > %{_sysconfdir}/httpd/conf.d/shib.conf
+ fi
+fi
+
+# Install the shibd init.d scripts and service
+if [ -d %{_sysconfdir}/init.d ] ; then
+ if [ ! -f %{_sysconfdir}/init.d/shibd ] ; then
+ cp -p %{_sysconfdir}/shibboleth/shibd %{_sysconfdir}/init.d/shibd
+ chmod 755 %{_sysconfdir}/init.d/shibd
+ chkconfig --add shibd
+ fi
+fi
%postun
/sbin/ldconfig
# delete the shibboleth apache configuration if we're being removed
-[ "$0" = 0 ] || exit 0
+[ "$1" = 0 ] || exit 0
[ -f %{_sysconfdir}/httpd/conf.d/shib.conf ] && \
rm -f %{_sysconfdir}/httpd/conf.d/shib.conf
+# clear init.d state
+chkconfig --del shibd
+[ -f %{_sysconfdir}/init.d/shibd ] && \
+ rm -f %{_sysconfdir}/init.d/shibd
+
%triggerin selinux-policy-targeted -- %{name}
restorecon %{_sbindir}/shibd
%config %{_sysconfdir}/shibboleth/sp-example.key
%{_sysconfdir}/shibboleth/*.dist
%{_sysconfdir}/shibboleth/apache*.config
+%{_sysconfdir}/shibboleth/shibd
%exclude %{_bindir}/posttest
%exclude %{_bindir}/test-client
%{_sysconfdir}/selinux/targeted/src/policy/domains/program/*.te
%changelog
+* Fri Sep 23 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-6
+- Minor patches and default config changes
+- pidfile patch
+- Fix shib.conf creation
+- Integrated init.d script
+
+* Thu Sep 1 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-5
+- Applied fix for secadv 20050901 plus rollup of NSAPI fixes
+
* Sun Apr 24 2005 Scott Cantor <cantor.2@osu.edu> - 1.3-1
- Updated test programs and location of schemas.
- move siterefresh to to sbindir