]> git.pld-linux.org Git - packages/apache-mod_auth_pam.git/blame - apache-mod_auth_pam.spec
- release 3 (by relup.sh)
[packages/apache-mod_auth_pam.git] / apache-mod_auth_pam.spec
CommitLineData
1511467c 1%define mod_name auth_pam
c99c3819 2%define apxs /usr/sbin/apxs
1511467c 3Summary: This is the PAM authentication module for Apache
31194a30
ER
4Summary(es.UTF-8): Este módulo proporciona autenticación PAM para Apache
5Summary(pl.UTF-8): Moduł uwierzytelnienia PAM dla Apache
6Summary(pt_BR.UTF-8): Este módulo provê autenticação PAM para o Apache
b85fb670 7Name: apache-mod_auth_pam
33040276 8Version: 1.1.1
167ca038 9Release: 3
33040276 10Epoch: 1
1511467c 11License: GPL
15976960 12Group: Networking/Daemons/HTTP
b85fb670 13Source0: http://pam.sourceforge.net/mod_auth_pam/dist/mod_%{mod_name}-2.0-%{version}.tar.gz
33040276 14# Source0-md5: ab873520ddd2fee7d480dfd53e464e0a
b85fb670 15Source1: %{name}.conf
50a9d920 16URL: http://pam.sourceforge.net/mod_auth_pam/
36073b67 17BuildRequires: %{apxs}
6b743ca1 18BuildRequires: apache-devel >= 2.0
63719a24 19BuildRequires: pam-devel
08b28793 20BuildRequires: rpmbuild(macros) >= 1.268
08b28793 21Requires: apache(modules-api) = %apache_modules_api
1511467c 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
efccd945 24%define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
25%define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
1511467c 26
27%description
28This is an authentication module for Apache that allows you to
73f51453 29authenticate HTTP clients using PAM (pluggable authentication module).
1511467c 30
ff79f3d0
JR
31%description -l es.UTF-8
32Este módulo permite autenticar clientes HTTP usando el directorio PAM.
6653d2d1 33
ff79f3d0
JR
34%description -l pl.UTF-8
35To jest moduł uwierzytelnienia dla Apache pozwalający na
36uwierzytelnianie klientów HTTP przez PAM.
f3e5c2ef 37
ff79f3d0
JR
38%description -l pt_BR.UTF-8
39Este módulo permite que você autentique clientes HTTP usando o
40diretório PAM.
6653d2d1 41
2981a208 42%prep
1d476387 43%setup -q -n mod_%{mod_name}
1511467c 44
45%build
33040276 46%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.la -lpam
47%{apxs} -c mod_auth_sys_group.c -o mod_auth_sys_group.la -lpam
1511467c 48
49%install
50rm -rf $RPM_BUILD_ROOT
efccd945 51install -d $RPM_BUILD_ROOT{%{apachelibdir},/etc/pam.d,%{apacheconfdir}}
1511467c 52
efccd945 53install .libs/mod_*.so $RPM_BUILD_ROOT%{apachelibdir}
33040276 54install samples/httpd $RPM_BUILD_ROOT/etc/pam.d/httpd
efccd945 55install %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/52_mod_auth_pam.conf
1511467c 56
93ffa82a
JB
57%clean
58rm -rf $RPM_BUILD_ROOT
59
1511467c 60%post
08b28793 61%service -q httpd restart
1511467c 62
c9c02328 63%postun
1511467c 64if [ "$1" = "0" ]; then
08b28793 65 %service -q httpd restart
1511467c 66fi
67
87e0e94d 68%triggerpostun -- %{name} < 1:1.1.1-1
efccd945 69if [ -f %{apacheconfdir}/52_mod_auth_pam.conf ]; then
70 echo "Saving old configuration as %{apacheconfdir}/52_mod_auth_pam.conf.rpmsave"
71 cp -f %{apacheconfdir}/52_mod_auth_pam.conf %{apacheconfdir}/52_mod_auth_pam.conf.rpmsave
08b28793 72 echo "Adjusting configuration for apache-mod_auth_pam >= 1.1"
efccd945 73 sed -i -e '{ s/pam_auth_module/auth_pam_module/g; s/etc_group_auth_module/auth_sys_group_module/g; s/mod_auth_pam2.so/mod_auth_pam.so/g; s/mod_auth_etc_group.so/mod_auth_sys_group.so/g; }' %{apacheconfdir}/52_mod_auth_pam.conf
08b28793
ER
74
75 %service -q httpd restart
33040276 76fi
77
1511467c 78%files
79%defattr(644,root,root,755)
33040276 80%doc doc/{configure,faq}.html samples/dot-htaccess README
efccd945 81%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_auth_pam.conf
82%attr(755,root,root) %{apachelibdir}/*.so
0ed828a9 83%config(noreplace) /etc/pam.d/httpd
This page took 0.089535 seconds and 4 git commands to generate.