Blame SPECS/mod_intercept_form_submit.spec

9e8905
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
9e8905
%{!?_httpd_apxs:       %{expand: %%global _httpd_apxs       %%{_sbindir}/apxs}}
9e8905
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
9e8905
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
9e8905
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
9e8905
%{!?_httpd_moddir:    %{expand: %%global _httpd_moddir    %%{_libdir}/httpd/modules}}
9e8905
9e8905
Summary: Apache module to intercept login form submission and run PAM authentication
9e8905
Name: mod_intercept_form_submit
9e8905
Version: 0.9.8
9e8905
Release: 2%{?dist}
9e8905
License: ASL 2.0
9e8905
Group: System Environment/Daemons
9e8905
URL: http://www.adelton.com/apache/mod_intercept_form_submit/
9e8905
Source0: http://www.adelton.com/apache/mod_intercept_form_submit/%{name}-%{version}.tar.gz
9e8905
BuildRequires: httpd-devel
9e8905
BuildRequires: pkgconfig
9e8905
Requires(pre): httpd
9e8905
Requires: httpd-mmn = %{_httpd_mmn}
9e8905
Requires: mod_authnz_pam >= 0.7
9e8905
9e8905
# Suppres auto-provides for module DSO per
9e8905
# https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Summary
9e8905
%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$}
9e8905
%{?filter_setup}
9e8905
9e8905
%description
9e8905
mod_intercept_form_submit can intercept submission of application login
9e8905
forms. It retrieves the login and password information from the POST
9e8905
HTTP request, runs PAM authentication with those credentials, and sets
9e8905
the REMOTE_USER environment variable if the authentication passes.
9e8905
9e8905
%prep
9e8905
%setup -q -n %{name}-%{version}
9e8905
9e8905
%build
9e8905
%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99" mod_intercept_form_submit.c
9e8905
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
9e8905
echo > intercept_form_submit.confx
9e8905
echo "# Load the module in %{_httpd_modconfdir}/55-intercept_form_submit.conf" >> intercept_form_submit.confx
9e8905
cat intercept_form_submit.conf >> intercept_form_submit.confx
9e8905
%else
9e8905
cat intercept_form_submit.module > intercept_form_submit.confx
9e8905
cat intercept_form_submit.conf >> intercept_form_submit.confx
9e8905
%endif
9e8905
9e8905
%install
9e8905
rm -rf $RPM_BUILD_ROOT
9e8905
install -Dm 755 .libs/mod_intercept_form_submit.so $RPM_BUILD_ROOT%{_httpd_moddir}/mod_intercept_form_submit.so
9e8905
9e8905
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
9e8905
# httpd >= 2.4.x
9e8905
install -Dp -m 0644 intercept_form_submit.module $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-intercept_form_submit.conf
9e8905
%endif
9e8905
install -Dp -m 0644 intercept_form_submit.confx $RPM_BUILD_ROOT%{_httpd_confdir}/intercept_form_submit.conf
9e8905
9e8905
%files
9e8905
%doc README LICENSE docs/*
9e8905
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
9e8905
%config(noreplace) %{_httpd_modconfdir}/55-intercept_form_submit.conf
9e8905
%endif
9e8905
%config(noreplace) %{_httpd_confdir}/intercept_form_submit.conf
9e8905
%{_httpd_moddir}/*.so
9e8905
9e8905
%changelog
9e8905
* Mon Jun 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.8-1
9e8905
- 1109923 - Fix module loading/configuration for Apache 2.4.
9e8905
- Document the runtime dependency on pam_authenticate_with_login_password.
9e8905
- Comment/code cleanup.
9e8905
9e8905
* Tue May 13 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.7-1
9e8905
- No longer call lookup_identity_hook explicitly, hook order does
9e8905
  the same.
9e8905
- Silence compile warnings by specifying C99.
9e8905
9e8905
* Tue Apr 15 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.6-1
9e8905
- Add support for InterceptFormLoginRealms.
9e8905
9e8905
* Thu Jan 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.5-1
9e8905
- 1058809 - .spec changes for Fedora package review.
9e8905