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