]>
Commit | Line | Data |
---|---|---|
30d1cbe6 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with ssl # build with ssl (requires netscape sdk), tls is available with openldap | |
4 | # | |
76015774 | 5 | %define mod_name auth_ldap |
6 | %define apxs /usr/sbin/apxs1 | |
9c818f17 | 7 | Summary: This is a LDAP authentication module for Apache |
dd242d4b ER |
8 | Summary(cs.UTF-8): Autentizační modul LDAP pro WWW server Apache |
9 | Summary(da.UTF-8): En LDAP-autenticeringsmodul for Apache | |
10 | Summary(de.UTF-8): Ein LDAP Authentifizierungsmodul für Apache | |
11 | Summary(es.UTF-8): Este módulo proporciona autenticación LDAP para Apache | |
12 | Summary(fr.UTF-8): Module d'authentification LDAP pour Apache | |
13 | Summary(id.UTF-8): Module LDAP authentication untuk Apache | |
14 | Summary(it.UTF-8): Modulo di autenticazione LDPA per Apache | |
15 | Summary(ja.UTF-8): Apache 用の LDAP 認証モジュール | |
16 | Summary(nb.UTF-8): En LDAP-autentiseringsmodul for Apache | |
17 | Summary(pl.UTF-8): Moduł uwierzytelnienia LDAP dla Apache | |
18 | Summary(pt.UTF-8): Um módulo de autenticação de LDAP para o Apache | |
19 | Summary(pt_BR.UTF-8): Este módulo provê autenticação LDAP para o Apache | |
20 | Summary(ru.UTF-8): Аутентификационный модуль LDAP для сервера Apache | |
21 | Summary(sl.UTF-8): Avtentikacijski modul LDAP za Apache | |
22 | Summary(sv.UTF-8): En LDAP autentiseringsmodul för Apache | |
23 | Summary(zh_CN.UTF-8): 这是用于 Apache 的 LDAP 验证模块 | |
76015774 | 24 | Name: apache1-mod_%{mod_name} |
30d1cbe6 ER |
25 | Version: 1.6.1 |
26 | Release: 1 | |
682f7666 | 27 | License: BSD |
9c818f17 | 28 | Group: Networking/Daemons |
5690e454 | 29 | Source0: http://www.rudedog.org/auth_ldap/auth_ldap-%{version}.tar.gz |
30d1cbe6 | 30 | # Source0-md5: a78d8c5fc77086562ca056c226c97992 |
5690e454 | 31 | Patch0: %{name}-makefile.patch |
9c818f17 | 32 | URL: http://www.rudedog.org/auth_ldap/ |
6ce6e68f | 33 | BuildRequires: apache1-devel >= 1.3.39 |
1ad59264 | 34 | BuildRequires: autoconf |
07ea46ea ER |
35 | BuildRequires: lynx |
36 | BuildRequires: openldap-devel >= 2.3.0 | |
30d1cbe6 | 37 | %{?with_ssl:BuildRequires: mozldap-devel} |
bb813b4c | 38 | BuildRequires: rpmbuild(macros) >= 1.268 |
376aa2a0 | 39 | Requires: apache1(EAPI) |
1ad59264 | 40 | Requires: apache1-mod_auth |
77bf1e14 | 41 | Obsoletes: apache-mod_auth_ldap < 1.6.0 |
9c818f17 | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f40756fd | 43 | |
7579e57c ER |
44 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) |
45 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
99acbb95 | 46 | |
f40756fd | 47 | %description |
38f2e708 | 48 | This is an authentication module for Apache that allows you to |
49 | authenticate HTTP clients using user entries in an LDAP directory. | |
f40756fd | 50 | |
96d976cb JR |
51 | %description -l cs.UTF-8 |
52 | Balíček obsahuje autentizační modul pro WWW server Apache, který | |
53 | umožňuje autentizovat HTTP klienty proti položkám v adresářové službě | |
5690e454 PG |
54 | LDAP. |
55 | ||
96d976cb | 56 | %description -l da.UTF-8 |
03da1c38 | 57 | Denne pakke indeholder en autenticeringsmodul for webtjeneren Apache - |
58 | med auth_ldap installeret kan HTTP-klienter autenticeres mod | |
59 | brugerinformation i et LDAP-katalog. | |
60 | ||
96d976cb JR |
61 | %description -l de.UTF-8 |
62 | Dieses Paket enthält ein Authentifizierungs-Modul für den Apache | |
63 | Webserver, das Ihnen ermöglicht, HTTP-Clients mit Hilfe von | |
64 | Benutzereinträgen in einem LDAP-Verzeichniss zu authentifizieren. | |
03da1c38 | 65 | |
96d976cb JR |
66 | %description -l es.UTF-8 |
67 | Este paquete contiene un módulo de autenticación para el servidor | |
03da1c38 | 68 | Apache web que le permite autenticar clientes HTTP usando entradas de |
69 | usuario en un directorio LDAP. | |
70 | ||
96d976cb | 71 | %description -l fr.UTF-8 |
03da1c38 | 72 | Ce paquetage contient un module d'authentification pour le serveur Web |
73 | Apache, qui vous permet d'authentifier les clients HTTP en utilisant | |
96d976cb | 74 | les entrées utilisateur dans un répertoire LDAP. |
03da1c38 | 75 | |
96d976cb | 76 | %description -l id.UTF-8 |
03da1c38 | 77 | Ini adalah authentication module untuk Apache yang memungkinkan anda |
78 | melakukan otentikasi HTTP client menggunakan user entry di dalam LADP | |
79 | directory. | |
80 | ||
96d976cb | 81 | %description -l it.UTF-8 |
03da1c38 | 82 | Questo pacchetto contiene un modulo di autenticazione per il Web |
83 | server Apache che consente di autenticare i client HTTP tramite gli | |
84 | inserimenti utente in una directory LDPA. | |
85 | ||
96d976cb JR |
86 | %description -l ja.UTF-8 |
87 | このパッケージには Apache Web サーバーで LDAP ディレクトリ内のユーザー | |
88 | エントリを使った HTTP クライアントの認証を可能にするための認証 | |
89 | モジュールが含まれています。 | |
03da1c38 | 90 | |
96d976cb | 91 | %description -l nb.UTF-8 |
03da1c38 | 92 | Denne pakken inneholder en autentiseringsmodul for webtjeneren Apache |
93 | - med auth_ldap installert kan HTTP-klienter autentiseres mot | |
1ad59264 | 94 | brukerinformasjon i en LDAP-katalog. |
03da1c38 | 95 | |
96d976cb JR |
96 | %description -l pl.UTF-8 |
97 | W pakiecie znajduje się moduł do Apache, który pozwala na | |
98 | uwierzytelnianie klientów HTTP przy użyciu LDAP. | |
595f211f | 99 | |
96d976cb JR |
100 | %description -l pt.UTF-8 |
101 | Este pacote contém um módulo de autenticação para o servidor Web | |
03da1c38 | 102 | Apache que lhe permite autenticar os clientes HTTP usando registos de |
103 | utilizadores numa directoria LDAP. | |
104 | ||
96d976cb JR |
105 | %description -l pt_BR.UTF-8 |
106 | Este módulo permite que você autentique clientes HTTP usando o | |
107 | diretório LDAP. | |
595f211f | 108 | |
96d976cb JR |
109 | %description -l ru.UTF-8 |
110 | Это модуль аутентификации для Apache, позволяющий идентифицировать | |
111 | HTTP-клиентов на основе записей пользователя в каталоге LDAP. | |
03da1c38 | 112 | |
96d976cb JR |
113 | %description -l sv.UTF-8 |
114 | Detta paket innehåller en autenticeringsmodul för webbservern Apache | |
115 | som låter dig autenticera HTTP-klienter med använderposter i en | |
03da1c38 | 116 | LDAP-katalog. |
117 | ||
96d976cb JR |
118 | %description -l zh_CN.UTF-8 |
119 | 这是用于 Apache 的验证模块,它允许您使用 LDAP 目录中的用户项验证 HTTP | |
120 | 客户机。 | |
03da1c38 | 121 | |
122 | %prep | |
5690e454 | 123 | %setup -q -n auth_ldap-%{version} |
f40756fd | 124 | %patch0 -p1 |
e43c8efb | 125 | mv -f auth_ldap.c mod_auth_ldap.c |
f40756fd | 126 | |
07ea46ea ER |
127 | lynx -nolist -dump auth_ldap.html > auth_ldap.txt |
128 | ||
f40756fd | 129 | %build |
a6d484dc | 130 | %{__autoconf} |
5690e454 | 131 | %configure \ |
1d0db7c9 | 132 | --with-apxs=%{apxs} \ |
5690e454 | 133 | --with-ldap-sdk=openldap \ |
30d1cbe6 | 134 | --with%{!?with_ssl:out}-ssl |
5690e454 | 135 | |
a237a8cc | 136 | %{__make} |
f40756fd | 137 | |
138 | %install | |
139 | rm -rf $RPM_BUILD_ROOT | |
7579e57c | 140 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d} |
5690e454 | 141 | |
76015774 | 142 | install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} |
5690e454 | 143 | |
7579e57c ER |
144 | echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ |
145 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf | |
146 | ||
7e601690 JB |
147 | %clean |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
99acbb95 | 150 | %post |
bb813b4c | 151 | %service -q apache restart |
99acbb95 | 152 | |
fc3c6a3f | 153 | %postun |
99acbb95 | 154 | if [ "$1" = "0" ]; then |
bb813b4c | 155 | %service -q apache restart |
99acbb95 PG |
156 | fi |
157 | ||
7579e57c ER |
158 | %triggerpostun -- apache1-mod_%{mod_name} < 1.6.0-1.1 |
159 | # check that they're not using old apache.conf | |
160 | if grep -q '^Include conf\.d' /etc/apache/apache.conf; then | |
07ea46ea | 161 | sed -i -e '/^\(Add\|Load\)Module.*mod_%{mod_name}\.\(so\|c\)/d' /etc/apache/apache.conf |
7579e57c ER |
162 | fi |
163 | ||
f40756fd | 164 | %files |
9c818f17 | 165 | %defattr(644,root,root,755) |
07ea46ea | 166 | %doc *.html PROBLEMS auth_ldap.txt |
1ad59264 | 167 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf |
76015774 | 168 | %attr(755,root,root) %{_pkglibdir}/mod_auth_ldap.so |