From cf94dd3672decca6e6c2fbadc1d21827dfdf679a Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 11:39:08 -0400 Subject: [PATCH] Auto sync2gitlab import of mod_intercept_form_submit-1.1.0-5.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - mod_intercept_form_submit.spec | 110 +++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 mod_intercept_form_submit.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6c83731 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/mod_intercept_form_submit-1.1.0.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/mod_intercept_form_submit.spec b/mod_intercept_form_submit.spec new file mode 100644 index 0000000..7212875 --- /dev/null +++ b/mod_intercept_form_submit.spec @@ -0,0 +1,110 @@ +%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}} +%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}} +%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}} +# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4 +%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}} +%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}} + +Summary: Apache module to intercept login form submission and run PAM authentication +Name: mod_intercept_form_submit +Version: 1.1.0 +Release: 5%{?dist} +License: ASL 2.0 +Group: System Environment/Daemons +URL: http://www.adelton.com/apache/mod_intercept_form_submit/ +Source0: http://www.adelton.com/apache/mod_intercept_form_submit/%{name}-%{version}.tar.gz +BuildRequires: httpd-devel +BuildRequires: pkgconfig +Requires: httpd-mmn = %{_httpd_mmn} +Requires: mod_authnz_pam >= 0.7 + +# Suppres auto-provides for module DSO per +# https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Summary +%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$} +%{?filter_setup} + +%description +mod_intercept_form_submit can intercept submission of application login +forms. It retrieves the login and password information from the POST +HTTP request, runs PAM authentication with those credentials, and sets +the REMOTE_USER environment variable if the authentication passes. + +%prep +%setup -q -n %{name}-%{version} + +%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 +install -Dm 755 .libs/mod_intercept_form_submit.so $RPM_BUILD_ROOT%{_httpd_moddir}/mod_intercept_form_submit.so + +%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" +# httpd >= 2.4.x +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 +%endif +%config(noreplace) %{_httpd_confdir}/intercept_form_submit.conf +%{_httpd_moddir}/*.so + +%changelog +* Thu Aug 03 2017 Fedora Release Engineering - 1.1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jul 07 2017 Igor Gnatenko - 1.1.0-3 +- Rebuild due to bug in RPM (RHBZ #1468476) + +* Fri Feb 10 2017 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Nov 23 2016 Jan Pazdziora - 1.1.0-1 +- Logging improvements. + +* Fri May 06 2016 Jan Pazdziora - 1.0.1-1 +- Add support for InterceptGETOnSuccess. + +* Mon Mar 21 2016 Jan Pazdziora - 1.0.0-1 +- 1319094 - the Requires(pre) httpd does not seem to be needed. + +* Thu Feb 04 2016 Fedora Release Engineering - 0.9.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 0.9.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 0.9.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_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 + the same. +- Silence compile warnings by specifying C99. + +* Tue Apr 15 2014 Jan Pazdziora - 0.9.6-1 +- Add support for InterceptFormLoginRealms. + +* Thu Jan 30 2014 Jan Pazdziora - 0.9.5-1 +- 1058809 - .spec changes for Fedora package review. + diff --git a/sources b/sources new file mode 100644 index 0000000..97661a0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (mod_intercept_form_submit-1.1.0.tar.gz) = c20e34793fdb6988c1a73286885d6a1168f5d0a2c8c116776dac40ab8703ba42c97e612200de4aed1bc9d920a58c4d6821e5e01f1cec71ecdebcf392d095da08