commit
3a26f8665b
BIN
mod_intercept_form_submit-1.1.0.tar.gz
Normal file
BIN
mod_intercept_form_submit-1.1.0.tar.gz
Normal file
Binary file not shown.
47
mod_intercept_form_submit.spec
Normal file
47
mod_intercept_form_submit.spec
Normal file
@ -0,0 +1,47 @@
|
||||
%{!?_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: 9
|
||||
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
|
||||
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
|
||||
* Sun Apr 26 2020 chengzihan <chengzihan2@huawei.com> - 1.1.0-9
|
||||
- Package init
|
||||
4
mod_intercept_form_submit.yaml
Normal file
4
mod_intercept_form_submit.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: git
|
||||
src_repo: https://fedorapeople.org/cgit/adelton/public_git/mod_intercept_form_submit.git
|
||||
tag_prefix: mod_intercept_form_submit-
|
||||
seperator: .
|
||||
Loading…
x
Reference in New Issue
Block a user