51 lines
2.1 KiB
RPMSpec
51 lines
2.1 KiB
RPMSpec
%{!?_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}}
|
|
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
|
|
%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}}
|
|
|
|
Name: mod_intercept_form_submit
|
|
Version: 1.1.0
|
|
Release: 10
|
|
Summary: Apache module to intercept login form submission and run PAM authentication
|
|
License: ASL 2.0
|
|
URL: http://www.adelton.com/apache/mod_intercept_form_submit/
|
|
Source0: http://www.adelton.com/apache/mod_intercept_form_submit/mod_intercept_form_submit-%{version}.tar.gz
|
|
BuildRequires: gcc httpd-devel pkgconfig perl
|
|
Requires: httpd-mmn = %{_httpd_mmn} mod_authnz_pam >= 0.7
|
|
|
|
%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$}
|
|
%{?filter_setup}
|
|
|
|
%description
|
|
Apache module to intercept application's login form submission and run PAM authentication.
|
|
|
|
%prep
|
|
%autosetup -n mod_intercept_form_submit-%{version} -p1
|
|
|
|
%build
|
|
%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99" mod_intercept_form_submit.c
|
|
cat << EOF >> intercept_form_submit.confx
|
|
|
|
# Load the module in %{_httpd_modconfdir}/55-intercept_form_submit.conf
|
|
EOF
|
|
cat intercept_form_submit.conf >> intercept_form_submit.confx
|
|
|
|
%install
|
|
install -Dm 755 .libs/mod_intercept_form_submit.so $RPM_BUILD_ROOT%{_httpd_moddir}/mod_intercept_form_submit.so
|
|
install -Dp -m 0644 intercept_form_submit.module $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-intercept_form_submit.conf
|
|
install -Dp -m 0644 intercept_form_submit.confx $RPM_BUILD_ROOT%{_httpd_confdir}/intercept_form_submit.conf
|
|
|
|
%files
|
|
%doc README LICENSE docs/*
|
|
%config(noreplace) %{_httpd_modconfdir}/55-intercept_form_submit.conf
|
|
%config(noreplace) %{_httpd_confdir}/intercept_form_submit.conf
|
|
%{_httpd_moddir}/*.so
|
|
|
|
%changelog
|
|
* Fri Jan 7 2022 liyanan <liyanan32@huawei.com> - 1.1.0-10
|
|
- Add the perl dependency
|
|
|
|
* Sun Apr 26 2020 chengzihan <chengzihan2@huawei.com> - 1.1.0-9
|
|
- Package init
|