]>
Commit | Line | Data |
---|---|---|
f5f9581b | 1 | %define mod_name authn_sasl |
2 | %define apxs /usr/sbin/apxs | |
3 | Summary: Basic authentication for the Apache Web server using SASL | |
53dfc5c4 | 4 | Summary(pl.UTF-8): Podstawowe uwierzytelnianie (Basic) dla serwera WWW Apache przy użyciu SASL |
f5f9581b | 5 | Name: apache-mod_%{mod_name} |
6 | Version: 1.0 | |
7 | Release: 1 | |
8 | License: BSD | |
9 | Group: Networking/Daemons | |
53dfc5c4 | 10 | Source0: http://dl.sourceforge.net/mod-authn-sasl/mod_authn_sasl-%{version}.tar.bz2 |
f5f9581b | 11 | # Source0-md5: 53e60c13cdb749128da13a91d413789c |
12 | URL: http://mod-authn-sasl.sourceforge.net/ | |
13 | BuildRequires: %{apxs} | |
14 | BuildRequires: apache-devel >= 2.2 | |
15 | BuildRequires: rpmbuild(macros) >= 1.268 | |
16 | Requires: apache(modules-api) = %apache_modules_api | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
20 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
21 | ||
22 | %description | |
23 | This module allows you to use SASL to authenticate a user. | |
24 | ||
53dfc5c4 JB |
25 | %description -l pl.UTF-8 |
26 | Ten moduł umożliwia używanie SASL do uwierzytelniania użytkownika. | |
27 | ||
f5f9581b | 28 | %prep |
29 | %setup -q -n mod_%{mod_name}-%{version} | |
30 | ||
31 | %build | |
32 | %{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.la | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf} | |
37 | ||
38 | install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} | |
39 | echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ | |
40 | $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %post | |
46 | %service -q httpd restart | |
47 | ||
48 | %postun | |
49 | if [ "$1" = "0" ]; then | |
50 | %service -q httpd restart | |
51 | fi | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf | |
56 | %attr(755,root,root) %{_pkglibdir}/*.so |