1 %define mod_name auth_checkpasswd
2 %define apxs /usr/sbin/apxs
3 Summary: This is the CHECKPASSWD authentication module for Apache
4 Summary(pl): To jest modu³ Apache autentykuj±cy przez CHECKPASSWD
5 Name: apache-mod_%{mod_name}
9 Group: Networking/Daemons
10 Source0: mod_%{mod_name}-%{version}.tar.gz
11 BuildRequires: %{apxs}
12 BuildRequires: apache(EAPI)-devel
13 Prereq: %{_sbindir}/apxs
14 Requires: apache(EAPI)
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _pkglibdir %(%{apxs} -q LIBEXECDIR)
20 This is an authentication module for Apache that uses an external
21 application compatibile with DJB's "checkpasswd". The application may
22 be setuid, which gives you a possibility to verify passwords using
26 To jest modu³ autentykuj±cy dla Apache który wykorzystuje zewnêtrzn±
27 aplikacjê kompatybiln± z "checkpasswd" DJB. Aplikacja mo¿e byæ
28 suidowana, co daje mo¿liwo¶æ weryfikowania hase³ wykorzystuj±c zwyk³y
32 %setup -q -c -n "mod_%{mod_name}-%{version}"
36 -c mod_%{mod_name}.c \
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_pkglibdir}
43 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
48 %{_sbindir}/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
49 if [ -f /var/lock/subsys/httpd ]; then
50 /etc/rc.d/init.d/httpd restart 1>&2
54 if [ "$1" = "0" ]; then
55 %{_sbindir}/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
56 if [ -f /var/lock/subsys/httpd ]; then
57 /etc/rc.d/init.d/httpd restart 1>&2
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_pkglibdir}/*