]>
Commit | Line | Data |
---|---|---|
76015774 | 1 | %define mod_name auth_ldap |
2 | %define apxs /usr/sbin/apxs1 | |
9c818f17 | 3 | Summary: This is a LDAP authentication module for Apache |
dd242d4b ER |
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 验证模块 | |
76015774 | 20 | Name: apache1-mod_%{mod_name} |
5690e454 | 21 | Version: 1.6.0 |
376aa2a0 | 22 | Release: 4 |
682f7666 | 23 | License: BSD |
9c818f17 | 24 | Group: Networking/Daemons |
5690e454 | 25 | Source0: http://www.rudedog.org/auth_ldap/auth_ldap-%{version}.tar.gz |
ec55f0e9 | 26 | # Source0-md5: ff7de9027fe8852facd27be93462c5cc |
5690e454 | 27 | Patch0: %{name}-makefile.patch |
9c818f17 | 28 | URL: http://www.rudedog.org/auth_ldap/ |
7dc59c87 | 29 | BuildRequires: apache1-apxs |
7579e57c | 30 | BuildRequires: apache1-devel >= 1.3.33-2 |
1ad59264 | 31 | BuildRequires: autoconf |
e0c66b8e | 32 | BuildRequires: openldap-devel >= 2.3.0 |
bb813b4c ER |
33 | BuildRequires: rpmbuild(macros) >= 1.268 |
34 | Requires(triggerpostun): %{apxs} | |
376aa2a0 | 35 | Requires: apache1(EAPI) |
1ad59264 | 36 | Requires: apache1-mod_auth |
aa4f6625 | 37 | Obsoletes: apache-mod_auth_ldap <= 1.6.0 |
9c818f17 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f40756fd | 39 | |
7579e57c ER |
40 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) |
41 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
99acbb95 | 42 | |
f40756fd | 43 | %description |
38f2e708 | 44 | This is an authentication module for Apache that allows you to |
45 | authenticate HTTP clients using user entries in an LDAP directory. | |
f40756fd | 46 | |
96d976cb JR |
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ě | |
5690e454 PG |
50 | LDAP. |
51 | ||
96d976cb | 52 | %description -l da.UTF-8 |
03da1c38 | 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. | |
56 | ||
96d976cb JR |
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. | |
03da1c38 | 61 | |
96d976cb JR |
62 | %description -l es.UTF-8 |
63 | Este paquete contiene un módulo de autenticación para el servidor | |
03da1c38 | 64 | Apache web que le permite autenticar clientes HTTP usando entradas de |
65 | usuario en un directorio LDAP. | |
66 | ||
96d976cb | 67 | %description -l fr.UTF-8 |
03da1c38 | 68 | Ce paquetage contient un module d'authentification pour le serveur Web |
69 | Apache, qui vous permet d'authentifier les clients HTTP en utilisant | |
96d976cb | 70 | les entrées utilisateur dans un répertoire LDAP. |
03da1c38 | 71 | |
96d976cb | 72 | %description -l id.UTF-8 |
03da1c38 | 73 | Ini adalah authentication module untuk Apache yang memungkinkan anda |
74 | melakukan otentikasi HTTP client menggunakan user entry di dalam LADP | |
75 | directory. | |
76 | ||
96d976cb | 77 | %description -l it.UTF-8 |
03da1c38 | 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. | |
81 | ||
96d976cb JR |
82 | %description -l ja.UTF-8 |
83 | このパッケージには Apache Web サーバーで LDAP ディレクトリ内のユーザー | |
84 | エントリを使った HTTP クライアントの認証を可能にするための認証 | |
85 | モジュールが含まれています。 | |
03da1c38 | 86 | |
96d976cb | 87 | %description -l nb.UTF-8 |
03da1c38 | 88 | Denne pakken inneholder en autentiseringsmodul for webtjeneren Apache |
89 | - med auth_ldap installert kan HTTP-klienter autentiseres mot | |
1ad59264 | 90 | brukerinformasjon i en LDAP-katalog. |
03da1c38 | 91 | |
96d976cb JR |
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. | |
595f211f | 95 | |
96d976cb JR |
96 | %description -l pt.UTF-8 |
97 | Este pacote contém um módulo de autenticação para o servidor Web | |
03da1c38 | 98 | Apache que lhe permite autenticar os clientes HTTP usando registos de |
99 | utilizadores numa directoria LDAP. | |
100 | ||
96d976cb JR |
101 | %description -l pt_BR.UTF-8 |
102 | Este módulo permite que você autentique clientes HTTP usando o | |
103 | diretório LDAP. | |
595f211f | 104 | |
96d976cb JR |
105 | %description -l ru.UTF-8 |
106 | Это модуль аутентификации для Apache, позволяющий идентифицировать | |
107 | HTTP-клиентов на основе записей пользователя в каталоге LDAP. | |
03da1c38 | 108 | |
96d976cb JR |
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 | |
03da1c38 | 112 | LDAP-katalog. |
113 | ||
96d976cb JR |
114 | %description -l zh_CN.UTF-8 |
115 | 这是用于 Apache 的验证模块,它允许您使用 LDAP 目录中的用户项验证 HTTP | |
116 | 客户机。 | |
03da1c38 | 117 | |
118 | %prep | |
5690e454 | 119 | %setup -q -n auth_ldap-%{version} |
f40756fd | 120 | %patch0 -p1 |
e43c8efb | 121 | mv -f auth_ldap.c mod_auth_ldap.c |
f40756fd | 122 | |
123 | %build | |
a6d484dc | 124 | %{__autoconf} |
5690e454 | 125 | %configure \ |
1d0db7c9 | 126 | --with-apxs=%{apxs} \ |
5690e454 PG |
127 | --with-ldap-sdk=openldap \ |
128 | --without-ssl | |
129 | ||
a237a8cc | 130 | %{__make} |
f40756fd | 131 | |
132 | %install | |
133 | rm -rf $RPM_BUILD_ROOT | |
7579e57c | 134 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d} |
5690e454 | 135 | |
76015774 | 136 | install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} |
5690e454 | 137 | |
7579e57c ER |
138 | echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ |
139 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf | |
140 | ||
7e601690 JB |
141 | %clean |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
99acbb95 | 144 | %post |
bb813b4c | 145 | %service -q apache restart |
99acbb95 | 146 | |
fc3c6a3f | 147 | %postun |
99acbb95 | 148 | if [ "$1" = "0" ]; then |
bb813b4c | 149 | %service -q apache restart |
99acbb95 PG |
150 | fi |
151 | ||
7579e57c ER |
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 | |
156 | fi | |
157 | ||
f40756fd | 158 | %files |
9c818f17 | 159 | %defattr(644,root,root,755) |
3e80fbe6 | 160 | %doc *.html PROBLEMS |
1ad59264 | 161 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf |
76015774 | 162 | %attr(755,root,root) %{_pkglibdir}/mod_auth_ldap.so |