]> git.pld-linux.org Git - packages/apache-mod_auth_kerb.git/blob - apache-mod_auth_kerb.spec
78eb6c18df92d687324b3368a854021518459e0d
[packages/apache-mod_auth_kerb.git] / apache-mod_auth_kerb.spec
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}
6 Version:        5.0
7 %define pre rc4
8 Release:        0.%{pre}.1
9 Epoch:          1
10 License:        GPL
11 Group:          Networking/Daemons
12 Source0:        http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}-%{pre}.tar.gz
13 # Source0-md5:  a717d5875e3f67c73b5d505ee4e46733
14 Source1:        %{name}.conf
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)
22
23 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR)
24
25 %description
26 This is an authentication module for Apache that allows you to
27 authenticate HTTP clients using user entries in an kerb directory.
28
29 %description -l pl
30 To jest modu³ autentykacji dla Apache pozwalaj±cy na autentykacjê
31 klientów HTTP z u¿yciem wpisów w katalogu kerby.
32
33 %prep
34 %setup -q -n mod_%{mod_name}-%{version}-%{pre}
35
36 %build
37 %configure
38 make
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd/httpd.conf}
43
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
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 if [ -f /var/lock/subsys/httpd ]; then
52         /etc/rc.d/init.d/httpd restart 1>&2
53 fi
54
55 %preun
56 if [ "$1" = "0" ]; then
57         if [ -f /var/lock/subsys/httpd ]; then
58                 /etc/rc.d/init.d/httpd restart 1>&2
59         fi
60 fi
61
62 %files
63 %defattr(644,root,root,755)
64 %doc README
65 %attr(755,root,root) %{_pkglibdir}/*
66 %{_sysconfdir}/httpd/httpd.conf/20_%{mod_name}.conf
This page took 0.09149 seconds and 3 git commands to generate.