]> git.pld-linux.org Git - packages/apache1-mod_auth_ldap.git/blame - apache1-mod_auth_ldap.spec
- todos
[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
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 11Summary: This is a LDAP authentication module for Apache
dd242d4b
ER
12Summary(cs.UTF-8): Autentizační modul LDAP pro WWW server Apache
13Summary(da.UTF-8): En LDAP-autenticeringsmodul for Apache
14Summary(de.UTF-8): Ein LDAP Authentifizierungsmodul für Apache
15Summary(es.UTF-8): Este módulo proporciona autenticación LDAP para Apache
16Summary(fr.UTF-8): Module d'authentification LDAP pour Apache
17Summary(id.UTF-8): Module LDAP authentication untuk Apache
18Summary(it.UTF-8): Modulo di autenticazione LDPA per Apache
19Summary(ja.UTF-8): Apache 用の LDAP 認証モジュール
20Summary(nb.UTF-8): En LDAP-autentiseringsmodul for Apache
21Summary(pl.UTF-8): Moduł uwierzytelnienia LDAP dla Apache
22Summary(pt.UTF-8): Um módulo de autenticação de LDAP para o Apache
23Summary(pt_BR.UTF-8): Este módulo provê autenticação LDAP para o Apache
24Summary(ru.UTF-8): Аутентификационный модуль LDAP для сервера Apache
25Summary(sl.UTF-8): Avtentikacijski modul LDAP za Apache
26Summary(sv.UTF-8): En LDAP autentiseringsmodul för Apache
27Summary(zh_CN.UTF-8): 这是用于 Apache 的 LDAP 验证模块
76015774 28Name: apache1-mod_%{mod_name}
30d1cbe6 29Version: 1.6.1
10779d43 30Release: 2
682f7666 31License: BSD
9c818f17 32Group: Networking/Daemons
5690e454 33Source0: http://www.rudedog.org/auth_ldap/auth_ldap-%{version}.tar.gz
30d1cbe6 34# Source0-md5: a78d8c5fc77086562ca056c226c97992
5690e454 35Patch0: %{name}-makefile.patch
9c818f17 36URL: http://www.rudedog.org/auth_ldap/
6ce6e68f 37BuildRequires: apache1-devel >= 1.3.39
1ad59264 38BuildRequires: autoconf
07ea46ea
ER
39BuildRequires: lynx
40BuildRequires: openldap-devel >= 2.3.0
30d1cbe6 41%{?with_ssl:BuildRequires: mozldap-devel}
bb813b4c 42BuildRequires: rpmbuild(macros) >= 1.268
376aa2a0 43Requires: apache1(EAPI)
1ad59264 44Requires: apache1-mod_auth
77bf1e14 45Obsoletes: apache-mod_auth_ldap < 1.6.0
9c818f17 46BuildRoot: %{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 52This is an authentication module for Apache that allows you to
53authenticate HTTP clients using user entries in an LDAP directory.
f40756fd 54
96d976cb
JR
55%description -l cs.UTF-8
56Balíček obsahuje autentizační modul pro WWW server Apache, který
57umožňuje autentizovat HTTP klienty proti položkám v adresářové službě
5690e454
PG
58LDAP.
59
96d976cb 60%description -l da.UTF-8
03da1c38 61Denne pakke indeholder en autenticeringsmodul for webtjeneren Apache -
62med auth_ldap installeret kan HTTP-klienter autenticeres mod
63brugerinformation i et LDAP-katalog.
64
96d976cb
JR
65%description -l de.UTF-8
66Dieses Paket enthält ein Authentifizierungs-Modul für den Apache
67Webserver, das Ihnen ermöglicht, HTTP-Clients mit Hilfe von
68Benutzereinträgen in einem LDAP-Verzeichniss zu authentifizieren.
03da1c38 69
96d976cb
JR
70%description -l es.UTF-8
71Este paquete contiene un módulo de autenticación para el servidor
03da1c38 72Apache web que le permite autenticar clientes HTTP usando entradas de
73usuario en un directorio LDAP.
74
96d976cb 75%description -l fr.UTF-8
03da1c38 76Ce paquetage contient un module d'authentification pour le serveur Web
77Apache, qui vous permet d'authentifier les clients HTTP en utilisant
96d976cb 78les entrées utilisateur dans un répertoire LDAP.
03da1c38 79
96d976cb 80%description -l id.UTF-8
03da1c38 81Ini adalah authentication module untuk Apache yang memungkinkan anda
82melakukan otentikasi HTTP client menggunakan user entry di dalam LADP
83directory.
84
96d976cb 85%description -l it.UTF-8
03da1c38 86Questo pacchetto contiene un modulo di autenticazione per il Web
87server Apache che consente di autenticare i client HTTP tramite gli
88inserimenti 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 96Denne 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
101W pakiecie znajduje się moduł do Apache, który pozwala na
102uwierzytelnianie klientów HTTP przy użyciu LDAP.
595f211f 103
96d976cb
JR
104%description -l pt.UTF-8
105Este pacote contém um módulo de autenticação para o servidor Web
03da1c38 106Apache que lhe permite autenticar os clientes HTTP usando registos de
107utilizadores numa directoria LDAP.
108
96d976cb
JR
109%description -l pt_BR.UTF-8
110Este módulo permite que você autentique clientes HTTP usando o
111diretório LDAP.
595f211f 112
96d976cb
JR
113%description -l ru.UTF-8
114Это модуль аутентификации для Apache, позволяющий идентифицировать
115HTTP-клиентов на основе записей пользователя в каталоге LDAP.
03da1c38 116
96d976cb
JR
117%description -l sv.UTF-8
118Detta paket innehåller en autenticeringsmodul för webbservern Apache
119som låter dig autenticera HTTP-klienter med använderposter i en
03da1c38 120LDAP-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 129mv -f auth_ldap.c mod_auth_ldap.c
f40756fd 130
07ea46ea
ER
131lynx -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
144rm -rf $RPM_BUILD_ROOT
7579e57c 145install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
5690e454 146
76015774 147install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
5690e454 148
7579e57c
ER
149echo '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
153rm -rf $RPM_BUILD_ROOT
154
99acbb95 155%post
bb813b4c 156%service -q apache restart
99acbb95 157
fc3c6a3f 158%postun
99acbb95 159if [ "$1" = "0" ]; then
bb813b4c 160 %service -q apache restart
99acbb95
PG
161fi
162
7579e57c
ER
163%triggerpostun -- apache1-mod_%{mod_name} < 1.6.0-1.1
164# check that they're not using old apache.conf
165if 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
167fi
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
This page took 0.087261 seconds and 4 git commands to generate.