mod_authnz_pam package init
This commit is contained in:
parent
bc5155a9ad
commit
467ef31d0b
BIN
mod_authnz_pam-1.2.0.tar.gz
Normal file
BIN
mod_authnz_pam-1.2.0.tar.gz
Normal file
Binary file not shown.
39
mod_authnz_pam.spec
Normal file
39
mod_authnz_pam.spec
Normal file
@ -0,0 +1,39 @@
|
||||
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
|
||||
Name: mod_authnz_pam
|
||||
Version: 1.2.0
|
||||
Release: 2
|
||||
Summary: PAM Basic Authentication provider and check.
|
||||
License: ASL 2.0
|
||||
URL: http://www.adelton.com/apache/mod_authnz_pam/
|
||||
Source0: http://www.adelton.com/apache/mod_authnz_pam/mod_authnz_pam-%{version}.tar.gz
|
||||
BuildRequires: gcc httpd-devel pam-devel pkgconfig
|
||||
Requires: httpd-mmn = %{_httpd_mmn} pam
|
||||
|
||||
%description
|
||||
mod_authnz_pam is a supplementary authentication module, supplementing
|
||||
authorization module completed by other modules. It can also provide
|
||||
[name, password] authentication through the PAM stack.
|
||||
|
||||
%prep
|
||||
%autosetup -n mod_authnz_pam-%{version} -p1 -S git
|
||||
|
||||
%build
|
||||
%{_bindir}/apxs -c -Wc,"%{optflags} -Wall -pedantic -std=c99" -lpam mod_authnz_pam.c
|
||||
echo > authnz_pam.confx
|
||||
echo "# Load the module in %{_sysconfdir}/httpd/conf.modules.d/55-authnz_pam.conf" >> authnz_pam.confx
|
||||
cat authnz_pam.conf >> authnz_pam.confx
|
||||
|
||||
%install
|
||||
install -Dm 755 .libs/mod_authnz_pam.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules/mod_authnz_pam.so
|
||||
install -Dp -m 0644 authnz_pam.module $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/55-authnz_pam.conf
|
||||
install -Dp -m 0644 authnz_pam.confx $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/authnz_pam.conf
|
||||
|
||||
%files
|
||||
%doc README LICENSE
|
||||
%config(noreplace) %{_sysconfdir}/httpd/conf.modules.d/55-authnz_pam.conf
|
||||
%config(noreplace) %{_sysconfdir}/httpd/conf.d/authnz_pam.conf
|
||||
%{_libdir}/httpd/modules/*.so
|
||||
|
||||
%changelog
|
||||
* Wed Apr 22 2020 Jeffery.Gao <gaojianxing@huawei.com> - 1.2.0-2
|
||||
- Package init
|
||||
4
mod_authnz_pam.yaml
Normal file
4
mod_authnz_pam.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version-control: NA
|
||||
src_repo: NA
|
||||
tag_prefix: NA
|
||||
seperator: NA
|
||||
Loading…
x
Reference in New Issue
Block a user