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 uwierzytelniaj±cy przez CHECKPASSWD
5 Name: apache-mod_%{mod_name}
9 Group: Networking/Daemons
10 Source0: mod_%{mod_name}-%{version}.tar.gz
11 # Source0-md5: 7f699981ada026656affe2e35409bdf2
12 Patch0: %{name}-aplog.patch
13 BuildRequires: %{apxs}
14 BuildRequires: apache(EAPI)-devel
15 Requires(post,preun): %{apxs}
16 Requires: apache(EAPI)
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _pkglibdir %(%{apxs} -q LIBEXECDIR)
22 This is an authentication module for Apache that uses an external
23 application compatible with DJB's "checkpasswd". The application may
24 be setuid, which gives you a possibility to verify passwords using
28 To jest modu³ uwierzytelniaj±cy dla Apache który wykorzystuje
29 zewnêtrzn± aplikacjê kompatybiln± z "checkpasswd" DJB. Aplikacja mo¿e
30 byæ suidowana, co daje mo¿liwo¶æ weryfikowania hase³ wykorzystuj±c
31 zwyk³y plik /etc/shadow.
34 %setup -q -c -n "mod_%{mod_name}-%{version}"
39 -c mod_%{mod_name}.c \
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{_pkglibdir}
46 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
49 rm -rf $RPM_BUILD_ROOT
52 %{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
53 if [ -f /var/lock/subsys/httpd ]; then
54 /etc/rc.d/init.d/httpd restart 1>&2
58 if [ "$1" = "0" ]; then
59 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
60 if [ -f /var/lock/subsys/httpd ]; then
61 /etc/rc.d/init.d/httpd restart 1>&2
66 %defattr(644,root,root,755)
68 %attr(755,root,root) %{_pkglibdir}/*