1 %define mod_name auth_kerb
2 %define apxs /usr/sbin/apxs
3 Summary: This is the kerb authentication module for Apache
4 Summary(pl): Modu³ autentykacji kerb dla Apache
5 Name: apache-mod_%{mod_name}
11 Group: Networking/Daemons
12 Source0: http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}-%{pre}.tar.gz
13 # Source0-md5: a717d5875e3f67c73b5d505ee4e46733
15 URL: http://modauthkerb.sourceforge.net/
16 BuildRequires: %{apxs}
17 BuildRequires: apache-devel
18 BuildRequires: gdbm-devel
19 BuildRequires: heimdal-devel
20 Requires(post,preun): %{apxs}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _pkglibdir %(%{apxs} -q LIBEXECDIR)
26 This is an authentication module for Apache that allows you to
27 authenticate HTTP clients using user entries in an kerb directory.
30 To jest modu³ autentykacji dla Apache pozwalaj±cy na autentykacjê
31 klientów HTTP z u¿yciem wpisów w katalogu kerby.
34 %setup -q -n mod_%{mod_name}-%{version}-%{pre}
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd/httpd.conf}
44 install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
45 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/20_%{mod_name}.conf
48 rm -rf $RPM_BUILD_ROOT
51 if [ -f /var/lock/subsys/httpd ]; then
52 /etc/rc.d/init.d/httpd restart 1>&2
56 if [ "$1" = "0" ]; then
57 if [ -f /var/lock/subsys/httpd ]; then
58 /etc/rc.d/init.d/httpd restart 1>&2
63 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_pkglibdir}/*
66 %{_sysconfdir}/httpd/httpd.conf/20_%{mod_name}.conf