]> git.pld-linux.org Git - packages/apache1-mod_auth_ldap.git/blob - apache1-mod_auth_ldap.spec
- todos
[packages/apache1-mod_auth_ldap.git] / apache1-mod_auth_ldap.spec
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
5 #
6 # Conditional build:
7 %bcond_with     ssl     # build with ssl (requires netscape sdk), tls is available with openldap
8
9 %define         mod_name        auth_ldap
10 %define         apxs    /usr/sbin/apxs1
11 Summary:        This is a LDAP authentication module for Apache
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 验证模块
28 Name:           apache1-mod_%{mod_name}
29 Version:        1.6.1
30 Release:        2
31 License:        BSD
32 Group:          Networking/Daemons
33 Source0:        http://www.rudedog.org/auth_ldap/auth_ldap-%{version}.tar.gz
34 # Source0-md5:  a78d8c5fc77086562ca056c226c97992
35 Patch0:         %{name}-makefile.patch
36 URL:            http://www.rudedog.org/auth_ldap/
37 BuildRequires:  apache1-devel >= 1.3.39
38 BuildRequires:  autoconf
39 BuildRequires:  lynx
40 BuildRequires:  openldap-devel >= 2.3.0
41 %{?with_ssl:BuildRequires:      mozldap-devel}
42 BuildRequires:  rpmbuild(macros) >= 1.268
43 Requires:       apache1(EAPI)
44 Requires:       apache1-mod_auth
45 Obsoletes:      apache-mod_auth_ldap < 1.6.0
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
49 %define         _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
50
51 %description
52 This is an authentication module for Apache that allows you to
53 authenticate HTTP clients using user entries in an LDAP directory.
54
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ě
58 LDAP.
59
60 %description -l da.UTF-8
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
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.
69
70 %description -l es.UTF-8
71 Este paquete contiene un módulo de autenticación para el servidor
72 Apache web que le permite autenticar clientes HTTP usando entradas de
73 usuario en un directorio LDAP.
74
75 %description -l fr.UTF-8
76 Ce paquetage contient un module d'authentification pour le serveur Web
77 Apache, qui vous permet d'authentifier les clients HTTP en utilisant
78 les entrées utilisateur dans un répertoire LDAP.
79
80 %description -l id.UTF-8
81 Ini adalah authentication module untuk Apache yang memungkinkan anda
82 melakukan otentikasi HTTP client menggunakan user entry di dalam LADP
83 directory.
84
85 %description -l it.UTF-8
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
90 %description -l ja.UTF-8
91 このパッケージには Apache Web サーバーで LDAP ディレクトリ内のユーザー
92 エントリを使った HTTP クライアントの認証を可能にするための認証
93 モジュールが含まれています。
94
95 %description -l nb.UTF-8
96 Denne pakken inneholder en autentiseringsmodul for webtjeneren Apache
97 - med auth_ldap installert kan HTTP-klienter autentiseres mot
98   brukerinformasjon i en LDAP-katalog.
99
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.
103
104 %description -l pt.UTF-8
105 Este pacote contém um módulo de autenticação para o servidor Web
106 Apache que lhe permite autenticar os clientes HTTP usando registos de
107 utilizadores numa directoria LDAP.
108
109 %description -l pt_BR.UTF-8
110 Este módulo permite que você autentique clientes HTTP usando o
111 diretório LDAP.
112
113 %description -l ru.UTF-8
114 Это модуль аутентификации для Apache, позволяющий идентифицировать
115 HTTP-клиентов на основе записей пользователя в каталоге LDAP.
116
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
120 LDAP-katalog.
121
122 %description -l zh_CN.UTF-8
123 这是用于 Apache 的验证模块,它允许您使用 LDAP 目录中的用户项验证 HTTP
124 客户机。
125
126 %prep
127 %setup -q -n auth_ldap-%{version}
128 %patch0 -p1
129 mv -f auth_ldap.c mod_auth_ldap.c
130
131 lynx -nolist -dump auth_ldap.html > auth_ldap.txt
132
133 %build
134 %{__autoconf}
135 %configure \
136         --with-apxs=%{apxs} \
137         --with-ldap-sdk=openldap \
138         --with-shared-cache \
139         --with%{!?with_ssl:out}-ssl
140
141 %{__make}
142
143 %install
144 rm -rf $RPM_BUILD_ROOT
145 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
146
147 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
148
149 echo 'LoadModule %{mod_name}_module     modules/mod_%{mod_name}.so' > \
150         $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
151
152 %clean
153 rm -rf $RPM_BUILD_ROOT
154
155 %post
156 %service -q apache restart
157
158 %postun
159 if [ "$1" = "0" ]; then
160         %service -q apache restart
161 fi
162
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
166         sed -i -e '/^\(Add\|Load\)Module.*mod_%{mod_name}\.\(so\|c\)/d' /etc/apache/apache.conf
167 fi
168
169 %files
170 %defattr(644,root,root,755)
171 %doc *.html PROBLEMS auth_ldap.txt
172 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
173 %attr(755,root,root) %{_pkglibdir}/mod_auth_ldap.so
This page took 0.451808 seconds and 3 git commands to generate.