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