1 %define mod_name auth_ldap
2 %define apxs /usr/sbin/apxs1
3 Summary: This is a LDAP authentication module for Apache
4 Summary(cs.UTF-8): Autentizační modul LDAP pro WWW server Apache
5 Summary(da.UTF-8): En LDAP-autenticeringsmodul for Apache
6 Summary(de.UTF-8): Ein LDAP Authentifizierungsmodul für Apache
7 Summary(es.UTF-8): Este módulo proporciona autenticación LDAP para Apache
8 Summary(fr.UTF-8): Module d'authentification LDAP pour Apache
9 Summary(id.UTF-8): Module LDAP authentication untuk Apache
10 Summary(it.UTF-8): Modulo di autenticazione LDPA per Apache
11 Summary(ja.UTF-8): Apache 用の LDAP 認証モジュール
12 Summary(nb.UTF-8): En LDAP-autentiseringsmodul for Apache
13 Summary(pl.UTF-8): Moduł uwierzytelnienia LDAP dla Apache
14 Summary(pt.UTF-8): Um módulo de autenticação de LDAP para o Apache
15 Summary(pt_BR.UTF-8): Este módulo provê autenticação LDAP para o Apache
16 Summary(ru.UTF-8): Аутентификационный модуль LDAP для сервера Apache
17 Summary(sl.UTF-8): Avtentikacijski modul LDAP za Apache
18 Summary(sv.UTF-8): En LDAP autentiseringsmodul för Apache
19 Summary(zh_CN.UTF-8): 这是用于 Apache 的 LDAP 验证模块
20 Name: apache1-mod_%{mod_name}
24 Group: Networking/Daemons
25 Source0: http://www.rudedog.org/auth_ldap/auth_ldap-%{version}.tar.gz
26 # Source0-md5: ff7de9027fe8852facd27be93462c5cc
27 Patch0: %{name}-makefile.patch
28 URL: http://www.rudedog.org/auth_ldap/
29 BuildRequires: apache1-apxs
30 BuildRequires: apache1-devel >= 1.3.33-2
31 BuildRequires: autoconf
32 BuildRequires: openldap-devel >= 2.3.0
33 BuildRequires: rpmbuild(macros) >= 1.268
34 Requires(triggerpostun): %{apxs}
35 Requires: apache1(EAPI)
36 Requires: apache1-mod_auth
37 Obsoletes: apache-mod_auth_ldap <= 1.6.0
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
41 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
44 This is an authentication module for Apache that allows you to
45 authenticate HTTP clients using user entries in an LDAP directory.
47 %description -l cs.UTF-8
48 Balíček obsahuje autentizační modul pro WWW server Apache, který
49 umožňuje autentizovat HTTP klienty proti položkám v adresářové službě
52 %description -l da.UTF-8
53 Denne pakke indeholder en autenticeringsmodul for webtjeneren Apache -
54 med auth_ldap installeret kan HTTP-klienter autenticeres mod
55 brugerinformation i et LDAP-katalog.
57 %description -l de.UTF-8
58 Dieses Paket enthält ein Authentifizierungs-Modul für den Apache
59 Webserver, das Ihnen ermöglicht, HTTP-Clients mit Hilfe von
60 Benutzereinträgen in einem LDAP-Verzeichniss zu authentifizieren.
62 %description -l es.UTF-8
63 Este paquete contiene un módulo de autenticación para el servidor
64 Apache web que le permite autenticar clientes HTTP usando entradas de
65 usuario en un directorio LDAP.
67 %description -l fr.UTF-8
68 Ce paquetage contient un module d'authentification pour le serveur Web
69 Apache, qui vous permet d'authentifier les clients HTTP en utilisant
70 les entrées utilisateur dans un répertoire LDAP.
72 %description -l id.UTF-8
73 Ini adalah authentication module untuk Apache yang memungkinkan anda
74 melakukan otentikasi HTTP client menggunakan user entry di dalam LADP
77 %description -l it.UTF-8
78 Questo pacchetto contiene un modulo di autenticazione per il Web
79 server Apache che consente di autenticare i client HTTP tramite gli
80 inserimenti utente in una directory LDPA.
82 %description -l ja.UTF-8
83 このパッケージには Apache Web サーバーで LDAP ディレクトリ内のユーザー
84 エントリを使った HTTP クライアントの認証を可能にするための認証
87 %description -l nb.UTF-8
88 Denne pakken inneholder en autentiseringsmodul for webtjeneren Apache
89 - med auth_ldap installert kan HTTP-klienter autentiseres mot
90 brukerinformasjon i en LDAP-katalog.
92 %description -l pl.UTF-8
93 W pakiecie znajduje się moduł do Apache, który pozwala na
94 uwierzytelnianie klientów HTTP przy użyciu LDAP.
96 %description -l pt.UTF-8
97 Este pacote contém um módulo de autenticação para o servidor Web
98 Apache que lhe permite autenticar os clientes HTTP usando registos de
99 utilizadores numa directoria LDAP.
101 %description -l pt_BR.UTF-8
102 Este módulo permite que você autentique clientes HTTP usando o
105 %description -l ru.UTF-8
106 Это модуль аутентификации для Apache, позволяющий идентифицировать
107 HTTP-клиентов на основе записей пользователя в каталоге LDAP.
109 %description -l sv.UTF-8
110 Detta paket innehåller en autenticeringsmodul för webbservern Apache
111 som låter dig autenticera HTTP-klienter med använderposter i en
114 %description -l zh_CN.UTF-8
115 这是用于 Apache 的验证模块,它允许您使用 LDAP 目录中的用户项验证 HTTP
119 %setup -q -n auth_ldap-%{version}
121 mv -f auth_ldap.c mod_auth_ldap.c
126 --with-apxs=%{apxs} \
127 --with-ldap-sdk=openldap \
133 rm -rf $RPM_BUILD_ROOT
134 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
136 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
138 echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
139 $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
142 rm -rf $RPM_BUILD_ROOT
145 %service -q apache restart
148 if [ "$1" = "0" ]; then
149 %service -q apache restart
152 %triggerpostun -- apache1-mod_%{mod_name} < 1.6.0-1.1
153 # check that they're not using old apache.conf
154 if grep -q '^Include conf\.d' /etc/apache/apache.conf; then
155 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
159 %defattr(644,root,root,755)
161 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
162 %attr(755,root,root) %{_pkglibdir}/mod_auth_ldap.so