Plug the SP into Apache automatically (if the config dir exists).
[shibboleth/sp.git] / shibboleth.spec.in
index e7f07bd..afd2431 100644 (file)
@@ -84,9 +84,20 @@ make check
 %post
 /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/shibboleth.conf ] && exit 0
+cp -p %{_sysconfdir}/shibboleth/apache2.config \
+    %{_sysconfdir}/httpd/conf.d/shibboleth.conf
+
 %postun
 /sbin/ldconfig
 
+# delete the shibboleth apache configuration if we're being removed
+[ "$0" = 0 ] || exit 0
+[ -f %{_sysconfdir}/httpd/conf.d/shibboleth.conf ] && \
+    rm -f %{_sysconfdir}/httpd/conf.d/shibboleth.conf
+
 %triggerin selinux-targeted-policy -- %{name}
 restorecon %{_sbindir}/shar
 
@@ -131,5 +142,9 @@ make -W load
 %{_sysconfdir}/selinux/targeted/src/policy/domain/program/*.te
 
 %changelog
+* Fri Apr  1 2005  Derek Atkins  <derek@ihtfp.com>  - 1.3-0
+- Add selinux-targeted-policy package
+- move shar to sbindir
+
 * Tue Oct 19 2004  Derek Atkins  <derek@ihtfp.com>  - 1.2-1
 - Create SPEC file based on various versions in existence.