]> git.pld-linux.org Git - packages/apache1-mod_auth_ldap.git/blob - apache1-mod_auth_ldap.spec
28446b3f27ce8b5a973efcf016851ba610cb3876
[packages/apache1-mod_auth_ldap.git] / apache1-mod_auth_ldap.spec
1 %define mod_name        auth_ldap
2 %define apxs    /usr/sbin/apxs1
3 Summary:        This is a LDAP authentication module for Apache
4 Summary(cs):    Autentizaèní modul LDAP pro WWW server Apache
5 Summary(da):    En LDAP-autenticeringsmodul for Apache
6 Summary(de):    Ein LDAP Authentifizierungsmodul für Apache
7 Summary(es):    Este módulo proporciona autenticación LDAP para Apache
8 Summary(fr):    Module d'authentification LDAP pour Apache
9 Summary(id):    Module LDAP authentication untuk Apache
10 Summary(it):    Modulo di autenticazione LDPA per Apache
11 Summary(ja):    Apache ÍѤΠLDAP Ç§¾Ú¥â¥¸¥å¡¼¥ë
12 Summary(nb):    En LDAP-autentiseringsmodul for Apache
13 Summary(pl):    Modu³ uwierzytelnienia LDAP dla Apache
14 Summary(pt):    Um módulo de autenticação de LDAP para o Apache
15 Summary(pt_BR): Este módulo provê autenticação LDAP para o Apache
16 Summary(ru):    áÕÔÅÎÔÉÆÉËÁÃÉÏÎÎÙÊ ÍÏÄÕÌØ LDAP ÄÌÑ ÓÅÒ×ÅÒÁ Apache
17 Summary(sl):    Avtentikacijski modul LDAP za Apache
18 Summary(sv):    En LDAP autentiseringsmodul för Apache
19 Summary(zh_CN): ÕâÊÇÓÃÓÚ Apache µÄ LDAP Ñé֤ģ¿é
20 Name:           apache1-mod_%{mod_name}
21 Version:        1.6.0
22 Release:        2
23 License:        BSD
24 Group:          Networking/Daemons
25 Source0:        http://www.rudedog.org/auth_ldap/auth_ldap-%{version}.tar.gz
26 # Source0-md5:  ff7de9027fe8852facd27be93462c5cc
27 Patch0:         %{name}-makefile.patch
28 URL:            http://www.rudedog.org/auth_ldap/
29 BuildRequires:  autoconf
30 BuildRequires:  apache1-devel >= 1.3.33-2
31 BuildRequires:  openldap-devel
32 BuildRequires:  %{apxs}
33 PreReq:         apache1 >= 1.3.33-2
34 PreReq:         apache1-mod_auth
35 Requires(triggerpostun):        %{apxs}
36 Obsoletes:      apache-mod_%{mod_name} <= %{version}
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
40 %define         _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
41
42 %description
43 This is an authentication module for Apache that allows you to
44 authenticate HTTP clients using user entries in an LDAP directory.
45
46 %description -l cs
47 Balíèek obsahuje autentizaèní modul pro WWW server Apache, který
48 umo¾òuje autentizovat HTTP klienty proti polo¾kám v adresáøové slu¾bì
49 LDAP.
50
51 %description -l da
52 Denne pakke indeholder en autenticeringsmodul for webtjeneren Apache -
53 med auth_ldap installeret kan HTTP-klienter autenticeres mod
54 brugerinformation i et LDAP-katalog.
55
56 %description -l de
57 Dieses Paket enthält ein Authentifizierungs-Modul für den Apache
58 Webserver, das Ihnen ermöglicht, HTTP-Clients mit Hilfe von
59 Benutzereinträgen in einem LDAP-Verzeichniss zu authentifizieren.
60
61 %description -l es
62 Este paquete contiene un módulo de autenticación para el servidor
63 Apache web que le permite autenticar clientes HTTP usando entradas de
64 usuario en un directorio LDAP.
65
66 %description -l fr
67 Ce paquetage contient un module d'authentification pour le serveur Web
68 Apache, qui vous permet d'authentifier les clients HTTP en utilisant
69 les entrées utilisateur dans un répertoire LDAP.
70
71 %description -l id
72 Ini adalah authentication module untuk Apache yang memungkinkan anda
73 melakukan otentikasi HTTP client menggunakan user entry di dalam LADP
74 directory.
75
76 %description -l it
77 Questo pacchetto contiene un modulo di autenticazione per il Web
78 server Apache che consente di autenticare i client HTTP tramite gli
79 inserimenti utente in una directory LDPA.
80
81 %description -l ja
82 ¤³¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ï Apache Web ¥µ¡¼¥Ð¡¼¤Ç LDAP ¥Ç¥£¥ì¥¯¥È¥êÆâ¤Î¥æ¡¼¥¶¡¼
83 ¥¨¥ó¥È¥ê¤ò»È¤Ã¤¿ HTTP ¥¯¥é¥¤¥¢¥ó¥È¤Îǧ¾Ú¤ò²Äǽ¤Ë¤¹¤ë¤¿¤á¤Îǧ¾Ú
84 ¥â¥¸¥å¡¼¥ë¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
85
86 %description -l nb
87 Denne pakken inneholder en autentiseringsmodul for webtjeneren Apache
88 - med auth_ldap installert kan HTTP-klienter autentiseres mot
89 brukerinformasjon i en LDAP-katalog.
90
91 %description -l pl
92 W pakiecie znajduje siê modu³ do Apache, który pozwala na
93 uwierzytelnianie klientów HTTP przy u¿yciu LDAP.
94
95 %description -l pt
96 Este pacote contém um módulo de autenticação para o servidor Web
97 Apache que lhe permite autenticar os clientes HTTP usando registos de
98 utilizadores numa directoria LDAP.
99
100 %description -l pt_BR
101 Este módulo permite que você autentique clientes HTTP usando o
102 diretório LDAP.
103
104 %description -l ru
105 üÔÏ ÍÏÄÕÌØ ÁÕÔÅÎÔÉÆÉËÁÃÉÉ ÄÌÑ Apache, ÐÏÚ×ÏÌÑÀÝÉÊ ÉÄÅÎÔÉÆÉÃÉÒÏ×ÁÔØ
106 HTTP-ËÌÉÅÎÔÏ× ÎÁ ÏÓÎÏ×Å ÚÁÐÉÓÅÊ ÐÏÌØÚÏ×ÁÔÅÌÑ × ËÁÔÁÌÏÇÅ LDAP.
107
108 %description -l sv
109 Detta paket innehåller en autenticeringsmodul för webbservern Apache
110 som låter dig autenticera HTTP-klienter med använderposter i en
111 LDAP-katalog.
112
113 %description -l zh_CN
114 ÕâÊÇÓÃÓÚ Apache µÄÑé֤ģ¿é£¬ËüÔÊÐíÄúʹÓàLDAP Ä¿Â¼ÖеÄÓû§ÏîÑéÖ¤ HTTP
115 ¿Í»§»ú¡£
116
117 %prep
118 %setup -q -n auth_ldap-%{version}
119 %patch0 -p1
120 mv -f auth_ldap.c mod_auth_ldap.c
121
122 %build
123 %{__autoconf}
124 %configure \
125         --with-apxs=%{apxs} \
126         --with-ldap-sdk=openldap \
127         --without-ssl
128
129 %{__make}
130
131 %install
132 rm -rf $RPM_BUILD_ROOT
133 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
134
135 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
136
137 echo 'LoadModule %{mod_name}_module     modules/mod_%{mod_name}.so' > \
138         $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
139
140 %clean
141 rm -rf $RPM_BUILD_ROOT
142
143 %post
144 if [ -f /var/lock/subsys/apache ]; then
145         /etc/rc.d/init.d/apache restart 1>&2
146 fi
147
148 %postun
149 if [ "$1" = "0" ]; then
150         if [ -f /var/lock/subsys/apache ]; then
151                 /etc/rc.d/init.d/apache restart 1>&2
152         fi
153 fi
154
155 %triggerpostun -- apache1-mod_%{mod_name} < 1.6.0-1.1
156 # check that they're not using old apache.conf
157 if grep -q '^Include conf\.d' /etc/apache/apache.conf; then
158         %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
159 fi
160
161 %files
162 %defattr(644,root,root,755)
163 %doc *.html PROBLEMS
164 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
165 %attr(755,root,root) %{_pkglibdir}/mod_auth_ldap.so
This page took 0.145642 seconds and 3 git commands to generate.