apache-mod_auth_pam/apache-mod_auth_pam.spec
Silvan Calarco b139def9c1 update to 1.1.1
rebased versione without 2.0 prefix [release 1.1.1-1mamba;Sun Aug 01 2021]
2024-01-05 20:28:58 +01:00

84 lines
2.6 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
%define minver %(echo %version | cut -d. -f3-5)
Name: apache-mod_auth_pam
Epoch: 1
Version: 1.1.1
Release: 1mamba
Summary: An apache module that implements Basic authentication on top of PAM
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://pam.sourceforge.net/mod_auth_pam/
Source: http://pam.sourceforge.net/mod_auth_pam/dist/mod_auth_pam-2.0-%{version}.tar.gz
Source1: %{name}-httpd
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: libapr1-devel
BuildRequires: pam-devel
Requires: apache >= 2.4.0
Requires: pam >= 0.81
%description
The PAM authentication module implements Basic authentication on top of the Pluggable Authentication Module library.
Thereby it supports standard unix passwd, shadow, NIS, SMB auth and radius authentication transparently and easily interchangeable, wherever the HTTP protocol allows it.
%prep
%setup -q -n mod_auth_pam
%build
%make APXS=%{_bindir}/apxs
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
install -D -m 0644 .libs/mod_auth_pam.so %{buildroot}%{_libdir}/apache/mod_auth_pam.so
install -D -m 0644 .libs/mod_auth_sys_group.so %{buildroot}%{_libdir}/apache/mod_auth_sys_group.so
install -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/httpd
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post
if [ $1 -ge 1 ]; then
apxs -e -a -n auth_pam %{_libdir}/apache/mod_auth_pam.so > /dev/null
apxs -e -a -n auth_sys_group %{_libdir}/apache/mod_auth_sys_group.so > /dev/null
service httpd condrestart
fi
exit 0
%preun
if [ $1 -eq 0 ]; then
#erase
apxs -e -A -n auth_pam %{_libdir}/apache/mod_auth_pam.so > /dev/null
apxs -e -A -n auth_sys_group %{_libdir}/apache/mod_auth_sys_group.so > /dev/null
service httpd condrestart
fi
exit 0
%files
%defattr(-,root,root)
%{_sysconfdir}/pam.d/httpd
%{_libdir}/apache/mod_auth_pam.so
%{_libdir}/apache/mod_auth_sys_group.so
%doc README
%changelog
* Sun Aug 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
- update to 1.1.1
- rebased versione without 2.0 prefix
* Sat Jun 13 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1.1.1-2mamba
- rebuilt with apache 2.4.x
* Fri Feb 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1.1.1-1mamba
- update to 2.0.1.1.1
* Mon Jul 14 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-2mamba
- specfile updated
* Mon May 15 2006 Silvan Calarco <silvan.calarco@qilinux.it> 1.1.1-1qilnx
- package created by autospec