1 %define mod_name auth_pgsql
2 Summary: This is the PgSQL authentication module for Apache
3 Summary(pl): Modu³ autentykacji PgSQL dla Apache
4 Summary(pt_BR): Autenticação via PostgreSQL para o Apache
5 Name: apache-mod_%{mod_name}
9 Group: Networking/Daemons
10 Group(de): Netzwerkwesen/Server
11 Group(pl): Sieciowe/Serwery
12 Source0: http://www.giuseppetanzilli.it/mod_%{mod_name}/dist/mod_%{mod_name}-%{version}.tar.gz
13 BuildRequires: postgresql-devel
14 BuildRequires: /usr/sbin/apxs
15 BuildRequires: apache(EAPI)-devel
16 Prereq: /usr/sbin/apxs
17 Requires: apache(EAPI)
18 URL: http://www.giuseppetanzilli.it/mod_auth_pgsql/
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _pkglibdir %(/usr/sbin/apxs -q LIBEXECDIR)
24 This is an authentication module for Apache that allows you to
25 authenticate HTTP clients using postgresql RDBMS.
28 To jest modu³ autentykacji dla Apache pozwalaj±cy na autentykacjê
29 klientów HTTP z u¿yciem bazy danych postgresql.
32 Com o mod_auth_pgsql você pode fazer autenticação no Apache usando o
36 %setup -q -n "mod_%{mod_name}-%{version}"
40 -I %{_includedir}/postgresql \
42 -c mod_%{mod_name}.c \
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_pkglibdir}
49 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
52 rm -rf $RPM_BUILD_ROOT
55 /usr/sbin/apxs -e -a -n auth_pgsql %{_pkglibdir}/mod_%{mod_name}.so 1>&2
56 if [ -f /var/lock/subsys/httpd ]; then
57 /etc/rc.d/init.d/httpd restart 1>&2
61 if [ "$1" = "0" ]; then
62 /usr/sbin/apxs -e -A -n auth_pgsql %{_pkglibdir}/mod_%{mod_name}.so 1>&2
63 if [ -f /var/lock/subsys/httpd ]; then
64 /etc/rc.d/init.d/httpd restart 1>&2
69 %defattr(644,root,root,755)
71 %attr(755,root,root) %{_pkglibdir}/*