From 3bfbf2c6baec45a3168b9982ed2c3c8e1b6ce540 Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Mon, 30 Jun 2014 09:34:29 +0200 Subject: [PATCH] Rebase to 0.9.8. --- .gitignore | 1 + mod_intercept_form_submit.spec | 27 +++++++++++++++++---------- sources | 2 +- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 20654e7..a4e0a17 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /mod_intercept_form_submit-0.9.5.tar.gz /mod_intercept_form_submit-0.9.7.tar.gz +/mod_intercept_form_submit-0.9.8.tar.gz diff --git a/mod_intercept_form_submit.spec b/mod_intercept_form_submit.spec index f7d06f8..662cbf8 100644 --- a/mod_intercept_form_submit.spec +++ b/mod_intercept_form_submit.spec @@ -7,8 +7,8 @@ Summary: Apache module to intercept login form submission and run PAM authentication Name: mod_intercept_form_submit -Version: 0.9.7 -Release: 2%{?dist} +Version: 0.9.8 +Release: 1%{?dist} License: ASL 2.0 Group: System Environment/Daemons URL: http://www.adelton.com/apache/mod_intercept_form_submit/ @@ -35,6 +35,14 @@ the REMOTE_USER environment variable if the authentication passes. %build %{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99" mod_intercept_form_submit.c +%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" +echo > intercept_form_submit.confx +echo "# Load the module in %{_httpd_modconfdir}/55-intercept_form_submit.conf" >> intercept_form_submit.confx +cat intercept_form_submit.conf >> intercept_form_submit.confx +%else +cat intercept_form_submit.module > intercept_form_submit.confx +cat intercept_form_submit.conf >> intercept_form_submit.confx +%endif %install rm -rf $RPM_BUILD_ROOT @@ -42,24 +50,23 @@ install -Dm 755 .libs/mod_intercept_form_submit.so $RPM_BUILD_ROOT%{_httpd_moddi %if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" # httpd >= 2.4.x -install -Dp -m 0644 intercept_form_submit.conf $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-intercept_form_submit.conf -%else -# httpd <= 2.2.x -install -Dp -m 0644 intercept_form_submit.conf $RPM_BUILD_ROOT%{_httpd_confdir}/intercept_form_submit.conf +install -Dp -m 0644 intercept_form_submit.module $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-intercept_form_submit.conf %endif +install -Dp -m 0644 intercept_form_submit.confx $RPM_BUILD_ROOT%{_httpd_confdir}/intercept_form_submit.conf %files %doc README LICENSE docs/* %if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" %config(noreplace) %{_httpd_modconfdir}/55-intercept_form_submit.conf -%else -%config(noreplace) %{_httpd_confdir}/intercept_form_submit.conf %endif +%config(noreplace) %{_httpd_confdir}/intercept_form_submit.conf %{_httpd_moddir}/*.so %changelog -* Sat Jun 07 2014 Fedora Release Engineering - 0.9.7-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild +* Mon Jun 30 2014 Jan Pazdziora - 0.9.8-1 +- 1109923 - Fix module loading/configuration for Apache 2.4. +- Document the runtime dependency on pam_authenticate_with_login_password. +- Comment/code cleanup. * Tue May 13 2014 Jan Pazdziora - 0.9.7-1 - No longer call lookup_identity_hook explicitly, hook order does diff --git a/sources b/sources index 2f3d78e..34f1fb8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -906f0ba68259328dd9279335c8d3eb81 mod_intercept_form_submit-0.9.7.tar.gz +77c0def32e09c149b3906fae2bae2a32 mod_intercept_form_submit-0.9.8.tar.gz