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 Patch0: %{name}-version.patch
14 BuildRequires: postgresql-devel
15 BuildRequires: /usr/sbin/apxs
16 BuildRequires: apache(EAPI)-devel
17 Prereq: /usr/sbin/apxs
18 Requires: apache(EAPI)
19 URL: http://www.giuseppetanzilli.it/mod_auth_pgsql/
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _pkglibdir %(/usr/sbin/apxs -q LIBEXECDIR)
25 This is an authentication module for Apache that allows you to
26 authenticate HTTP clients using postgresql RDBMS.
29 To jest modu³ autentykacji dla Apache pozwalaj±cy na autentykacjê
30 klientów HTTP z u¿yciem bazy danych postgresql.
33 Com o mod_auth_pgsql você pode fazer autenticação no Apache usando o
37 %setup -q -n "mod_%{mod_name}-%{version}"
42 -I %{_includedir}/postgresql \
44 -c mod_%{mod_name}.c \
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{_pkglibdir}
51 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
54 rm -rf $RPM_BUILD_ROOT
57 /usr/sbin/apxs -e -a -n auth_pgsql %{_pkglibdir}/mod_%{mod_name}.so 1>&2
58 if [ -f /var/lock/subsys/httpd ]; then
59 /etc/rc.d/init.d/httpd restart 1>&2
63 if [ "$1" = "0" ]; then
64 /usr/sbin/apxs -e -A -n auth_pgsql %{_pkglibdir}/mod_%{mod_name}.so 1>&2
65 if [ -f /var/lock/subsys/httpd ]; then
66 /etc/rc.d/init.d/httpd restart 1>&2
71 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_pkglibdir}/*