X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibboleth.spec.in;h=234725ac395bb3e98675d0215a790c78e171cc1b;hb=1fe0319f91a3f03cf47ab1f5aade814d3cdc67dd;hp=b68a4a16c9ba0a41065db748f17905c6f5f63cb3;hpb=33954b3805fec56076119abfce5b86f09224226b;p=shibboleth%2Fcpp-sp.git diff --git a/shibboleth.spec.in b/shibboleth.spec.in index b68a4a1..234725a 100644 --- a/shibboleth.spec.in +++ b/shibboleth.spec.in @@ -67,6 +67,8 @@ BuildRequires: systemd-rpm-macros, systemd-devel, pkgconfig %endif %endif +%{!?_tmpfilesdir:%global _tmpfilesdir /usr/lib/tmpfiles.d} + %define runuser shibd %if "%{_vendor}" == "suse" %define pkgdocdir %{_docdir}/shibboleth @@ -92,9 +94,9 @@ Requires: xerces-c-devel >= 3.1 %else Requires: libxerces-c-devel >= 3.1 %endif -Requires: libxml-security-c-devel >= 1.4.0 -Requires: libxmltooling-devel >= 1.5.0 -Requires: libsaml-devel >= 2.5.0 +Requires: libxml-security-c-devel >= 1.7.3 +Requires: libxmltooling-devel >= 1.5.5 +Requires: libsaml-devel >= 2.5.5 %{?_with_log4cpp:Requires: liblog4cpp-devel >= 1.0} %{!?_with_log4cpp:Requires: liblog4shib-devel >= 1.0.4} @@ -169,6 +171,13 @@ SYSTEMD_SHIBD="no" %{__mkdir} -p $RPM_BUILD_ROOT%{_unitdir} echo "%attr(0444,-,-) %{_unitdir}/shibd.service" >> rpm.filelist SYSTEMD_SHIBD="$RPM_BUILD_ROOT%{_unitdir}/shibd.service" + + # Get run directory created at boot time. + %{__mkdir} -p $RPM_BUILD_ROOT%{_tmpfilesdir} + echo "%attr(0444,-,-) %{_tmpfilesdir}/%{name}.conf" >> rpm.filelist + cat > $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf <= 1210 %service_add_post shibd.service + systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf %else # This adds the proper /etc/rc*.d links for the script # and populates the sysconfig/shibd file. @@ -441,6 +451,9 @@ exit 0 %config %{_initrddir}/shibd %{_sbindir}/rcshibd %endif +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 || 0%{?centos_version} >= 700 +%{_tmpfilesdir}/%{name}.conf +%endif %{_sysconfdir}/shibboleth/*.dist %{_sysconfdir}/shibboleth/apache*.config %{_sysconfdir}/shibboleth/shibd-* @@ -458,6 +471,9 @@ exit 0 %doc %{pkgdocdir}/api %changelog +* Thu Jul 23 2015 Scott Cantor - 2.5.5-2 +- Fix use of /var/run/shibboleth on newer tmpfs platforms + * Thu Jul 2 2015 Scott Cantor - 2.5.5-1 - Revamp with systemd support for RH/CentOS 7+ and SUSE 12.1+