]> git.pld-linux.org Git - packages/apache1-mod_auth_any.git/blobdiff - apache1-mod_auth_any.spec
- tabs in preamble
[packages/apache1-mod_auth_any.git] / apache1-mod_auth_any.spec
index b75931a9e33a769efeb7da8478347147bb95243c..81fd16d008bba3fcf4cb30d3911edba18d1d5842 100644 (file)
-%define                mod_name        auth_any
-Summary:       This is the any authentication module for Apache
-Summary(pl):   To jest modu³ dowolnej autentykacji dla Apache
-Name:          apache-mod_%{mod_name}
-Version:       1.2
-Release:       1
-License:       GPL
+%define        mod_name        auth_any
+%define        apxs    /usr/sbin/apxs1
+Summary:       Basic authentication for the Apache Web server using arbitrary shell commands
+Summary(cs.UTF-8):     Základní autentizace pro WWW server Apache pomocí shellových příkazů
+Summary(da.UTF-8):     En autenticeringsmodul for webtjeneren Apache hvor man kan bruge vilkårlige skal-kommandoer
+Summary(de.UTF-8):     Authentifizierung für den Apache Web-Server, der arbiträre Shell-Befehle verwendet
+Summary(fr.UTF-8):     Authentification de base pour le serveur Web Apache utilisant des commandes shell arbitraires
+Summary(it.UTF-8):     Autenticazione di base per il server Web Apache mediante comandi arbitrari della shell
+Summary(nb.UTF-8):     En autentiseringsmodul for webtjeneren Apache der en kan bruke skall-kommandoer
+Summary(pl.UTF-8):     Podstawowy moduł uwierzytelnienia dla Apache, używający poleceń powłoki
+Summary(pt.UTF-8):     Um módulo de autenticação de LDAP para o servidor Web Apache
+Summary(sl.UTF-8):     Osnovna avtentikacija za spletni strežnik Apache, z uporabo poljubnih lupinskih ukazov
+Summary(sv.UTF-8):     Grundläggande autentisering för webbservern Apache med valfria skalkommandon
+Name:          apache1-mod_%{mod_name}
+Version:       1.5
+Release:       2
+Epoch:         1
+License:       BSD
 Group:         Networking/Daemons
-Group(de):     Netzwerkwesen/Server
-Group(pl):     Sieciowe/Serwery
-Source0:       ftp://ftp.itlab.musc.edu/pub/toolbox/mod_%{mod_name}/mod_%{mod_name}-%{version}.tar.gz
-URL:           http://www.itlab.musc.edu/~nafees/mod_%{mod_name}.html
-Prereq:                /usr/sbin/apxs
-Requires:      apache(EAPI)
-BuildRequires: /usr/sbin/apxs
-BuildRequires: apache(EAPI)-devel
+Source0:       http://www.itlab.musc.edu/webNIS/dist/mod_%{mod_name}-%{version}.tar.gz
+# Source0-md5: a78780db253dd2dc33138f8b644423d2
+URL:           http://www.itlab.musc.edu/webNIS/mod_auth_any.html
+BuildRequires: %{apxs}
+BuildRequires: apache1-devel >= 1.3.33-2
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(triggerpostun):       %{apxs}
+Requires:      apache1(EAPI)
+Obsoletes:     apache-mod_auth_any <= 1:1.5
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _pkglibdir      %(/usr/sbin/apxs -q LIBEXECDIR)
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
 
 %description
 This module allows you to use any command line program (such as
 webNIS) to authenticate a user.
 
-%description -l pl
-Ten modu³ pozwala na u¿ycie dowolnego programu dzia³aj±cego z linii
-poleceñ (jak np. webNIS) do autentykacji u¿ytkownika.
+%description -l cs.UTF-8
+Balíček mod_auth_any slouží pro omezení přístupu k dokumentům, které
+poskytuje WWW server Apache. Jména a hesla jsou kontrolována pomocí
+jakéhokoliv příkazu (jeho návratovým kódem).
 
-%prep 
+%description -l de.UTF-8
+Mod_auth_any kann verwendet werden, um den Zugriff auf von einem Web-
+Server bediente Dokumente zu beschränken, indem es den Rückcode eines
+gegebenen arbiträren Befehls prüft.
+
+%description -l es.UTF-8
+Mod_auth_any puede usarse para limitar el acceso a documentos servidos
+desde un servidor web verificando el código de retorno de un comando
+arbitrario especificado.
+
+%description -l fr.UTF-8
+Mod_auth_any peut être utilisé pour limiter l'accès à des documents
+servis par un serveur Web en vérifiant le code de retour d'une
+commande spécifiée arbitraire.
+
+%description -l it.UTF-8
+Mod_auth_any può essere utilizzato per limitare l'accesso ai documenti
+serviti da un server Web controllando il codice di ritorno di un dato
+comando arbitrario.
+
+%description -l ja.UTF-8
+Mod_auth_any は任意に指定されたコマンドの戻りコードをチェックすること
+によって、Web サーバーが提供するドキュメントへのアクセスを制限すること
+ができます。
+
+%description -l pl.UTF-8
+Ten moduł pozwala na użycie dowolnego programu działającego z linii
+poleceń (jak np. webNIS) do uwierzytelniania użytkownika.
+
+%description -l sv.UTF-8
+Mod_auth_any kan användas för att begränsa åtkomsten till dokument
+servade av en webbserver genom att kontrollera returkoden från ett
+godtyckligt angivet kommando.
+
+%prep
 %setup -q -n mod_%{mod_name}
 
 %build
-/usr/sbin/apxs -c src/mod_%{mod_name}.c -o mod_%{mod_name}.so
+%{apxs} -c src/mod_%{mod_name}.c -o mod_%{mod_name}.so
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_pkglibdir}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
 
 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
-
-gzip -9nf docs/*
+echo 'LoadModule %{mod_name}_module    modules/mod_%{mod_name}.so' > \
+       $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/usr/sbin/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
-fi
+%service -q apache restart
 
-%preun
+%postun
 if [ "$1" = "0" ]; then
-       /usr/sbin/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
-       fi
+       %service -q apache restart
+fi
+
+%triggerpostun -- apache1-mod_%{mod_name} < 1:1.4-1.1
+# check that they're not using old apache.conf
+if grep -q '^Include conf\.d' /etc/apache/apache.conf; then
+       %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
 fi
 
 %files
 %defattr(644,root,root,755)
+%doc docs/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
 %attr(755,root,root) %{_pkglibdir}/*
-%doc docs/*.gz
This page took 0.102702 seconds and 4 git commands to generate.