DESCR

The PostgreSQL Authentication Module (mod_auth_pg) enables Apache to
authenticate users with the information stored in a PostgreSQL database.
This module gets a username and password pair in the standard way or
from a cookie, and you can choose your preferred method.

MESSAGE

===========================================================================
$NetBSD: MESSAGE,v 1.3 2002/09/24 12:30:43 wiz Exp $

In order to use this module in your Apache installation, you need to
add the following to your httpd.conf file:

LoadModule auth_pg_module lib/httpd/mod_auth_pg.so

===========================================================================

Makefile

# $NetBSD: Makefile,v 1.34 2010/02/20 14:58:44 joerg Exp $

DISTNAME= AuthPG-1.4
PKGNAME= ap13-auth-postgresql-1.4
PKGREVISON= 3
CATEGORIES= www databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=authpg/}

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://authpg.sourceforge.net/
COMMENT= Module to allow apache authentication against a Postgresql database

PKG_DESTDIR_SUPPORT= user-destdir

CONFLICTS= ap-auth-postgresql-[0-9]*
CONFLICTS+= ap-auth-pgsql-[0-9]*
CONFLICTS+= ap13-auth-pgsql-[0-9]*

APACHE_MODULE_NAME= mod_auth_pg.so

CPPFLAGS+= -I${PGSQL_PREFIX}/include/postgresql
LDFLAGS+= -lpq -lcrypt

DOCDIR= ${PREFIX}/share/doc/mod_auth_pg
EGDIR= ${PREFIX}/share/examples/mod_auth_pg

INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR}

post-install:
${INSTALL_DATA} ${WRKSRC}/mod_auth_pg.html ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/mod_auth_pg.ko.html ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.ko ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/sample.htaccess ${DESTDIR}${EGDIR}/mod_auth_pg.htaccess
${INSTALL_DATA} ${WRKSRC}/sample.sql ${DESTDIR}${EGDIR}/mod_auth_pg.sql

.include "../../www/apache/module.mk"

.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

PLIST

@comment $NetBSD: PLIST,v 1.3 2009/06/14 22:00:15 joerg Exp $
lib/httpd/mod_auth_pg.so
share/doc/mod_auth_pg/README
share/doc/mod_auth_pg/README.ko
share/doc/mod_auth_pg/mod_auth_pg.html
share/doc/mod_auth_pg/mod_auth_pg.ko.html
share/examples/mod_auth_pg/mod_auth_pg.htaccess
share/examples/mod_auth_pg/mod_auth_pg.sql

distinfo

$NetBSD: distinfo,v 1.5 2006/03/20 19:59:21 joerg Exp $

SHA1 (AuthPG-1.4.tar.gz) = 06c73b8ea8b5e6145e351d5575d26eef4527532e
RMD160 (AuthPG-1.4.tar.gz) = 7fcfeb2ff1321f7bf128321f54da8210e04bc1be
Size (AuthPG-1.4.tar.gz) = 12681 bytes
SHA1 (patch-aa) = 4654bae71c324c9614c3c8334717d8638c57ac42