1 %define mod_name auth_mysql
2 %define apxs /usr/sbin/apxs
3 Summary: This is the MySQL authentication module for Apache
4 Name: apache-mod_%{mod_name}
8 Group: Networking/Daemons
9 Source0: http://web.oyvax.com/src/mod_auth_mysql-%{version}.tar.gz
10 URL: http://www.diegonet.com/support/mod_auth_mysql.shtml
11 BuildRequires: mysql-devel
12 BuildRequires: %{apxs}
13 BuildRequires: apache(EAPI)-devel
14 Prereq: %{_sbindir}/apxs
15 Requires: apache(EAPI)
16 Requires: apache-mod_auth
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _pkglibdir %(%{apxs} -q LIBEXECDIR)
22 This is an authentication module for Apache that allows you to
23 authenticate HTTP clients using mysql RDBMS.
26 Balíèek mod_auth_mysql slou¾í pro omezení pøístupu k dokumentùm, které
27 poskytuje WWW server Apache. Jména a hesla jsou ulo¾ena v databázi
31 mod_auth_mysql kann verwendet werden, um den Zugriff auf von einem
32 Web- Server bediente Dokumente zu beschränken, indem es die Daten in
33 einer MySQL-Datenbank prüft.
36 mod_auth_mysql puede usarse para limitar el acceso a documentos
37 servidos por un servidor web verificando datos en una base de datos
41 mod_auth_mysql peut être utilisé pour limiter l'accès à des documents
42 servis par un serveur Web en vérifiant les données dans une base de
46 mod_auth_mysql può essere usato per limitare l'accesso a documenti
47 serviti da un server Web controllando i dati in un database MySQL.
50 mod_auth_mysql ¤Ï¡¢MySQL ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î¥Ç¡¼¥¿¤ò¥Á¥§¥Ã¥¯¤¹¤ë¤³¤È
51 ¤Ë¤è¤Ã¤Æ¡¢Web ¥µ¡¼¥Ð¡¼¤¬Ä󶡤¹¤ë¥É¥¥å¥á¥ó¥È¤Ø¤Î¥¢¥¯¥»¥¹¤òÀ©¸Â¤¹¤ë¤³¤È
55 To jest modu³ autentykacji dla Apache pozwalaj±cy na autentykacjê
56 klientów HTTP z u¿yciem bazy danych mysql.
59 Com o mod_auth_mysql você pode fazer autenticação no Apache usando o
63 mod_auth_mysql kan användas för att begränsa åtkomsten till dokument
64 servade av en webbserver genom att kontrollera data i en
68 %setup -q -n mod_%{mod_name}-%{version}
73 --with-mysql=%{_prefix}
75 %{apxs} -c -I %{_includedir}/mysql mod_%{mod_name}.c -o mod_%{mod_name}.so
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT%{_pkglibdir}
81 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
83 gzip -9nf README README-2.20a USAGE
86 rm -rf $RPM_BUILD_ROOT
89 %{_sbindir}/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
90 if [ -f /var/lock/subsys/httpd ]; then
91 /etc/rc.d/init.d/httpd restart 1>&2
95 if [ "$1" = "0" ]; then
96 %{_sbindir}/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
97 if [ -f /var/lock/subsys/httpd ]; then
98 /etc/rc.d/init.d/httpd restart 1>&2
103 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_pkglibdir}/*