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