Initial import of mod_auth_pgsql.

This module allows user authentication (and can log authenthication
requests) against information stored in a PostgreSQL database.

ok simon@ ajacoutot@
This commit is contained in:
pea 2009-01-30 12:50:39 +00:00
parent 346053f969
commit 0b483f8ab3
6 changed files with 85 additions and 0 deletions

View File

@ -0,0 +1,39 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/01/30 12:50:39 pea Exp $
COMMENT = Apache PostgreSQL authentication module
DISTNAME = mod_auth_pgsql-0.9.12
CATEGORIES = www
HOMEPAGE = http://www.giuseppetanzilli.it/mod_auth_pgsql
MASTER_SITES = ${HOMEPAGE}/dist/
MODULES = apache-module
MAINTAINER = Pierre-Emmanuel Andre <pea@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MODAPACHE_NAME = auth_pgsql
LIB_DEPENDS = pq.>=5:postgresql-client-*:databases/postgresql
NO_REGRESS = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-pgsql-lib=${LOCALBASE}/lib \
--with-pgsql-include=${LOCALBASE}/include/postgresql
post-build:
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_auth_pgsql
${INSTALL_DATA} ${WRKSRC}/mod_auth_pgsql.html \
${PREFIX}/share/doc/mod_auth_pgsql
${MODAPACHE_INSTALL}
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (mod_auth_pgsql-0.9.12.tar.gz) = e+QDt0h8E82wI8xSbuLhOg==
RMD160 (mod_auth_pgsql-0.9.12.tar.gz) = w+NFXH29C8jbsSEEBl2uZmlpgg0=
SHA1 (mod_auth_pgsql-0.9.12.tar.gz) = 1DntjY9OGqtDbX9YcyC2gOgJmos=
SHA256 (mod_auth_pgsql-0.9.12.tar.gz) = 9odr/beIOVMH0eHyentqteAxjmQ5PfNSEC54uwQ8HkQ=
SIZE (mod_auth_pgsql-0.9.12.tar.gz) = 30527

View File

@ -0,0 +1,15 @@
This module allows user authentication (and can log authenthication
requests) against information stored in a PostgreSQL database.
* Authentication
One database, and one (or two) tables. One table holds the
username and the encryped (or plain) password. The other table
holds the username and the names of the group to which the user
belongs. It is possible to have username, groupname and
password in the same table.
* Access Logging
Every authentication access is logged in the same database of
the authentication table, but in different table. User name and
date of the request are logged. As option, it can log password,
ip address, request line.

View File

@ -0,0 +1,11 @@
To finish the install of mod_auth_pgsql, you need
to enable the module using the following command
${PREFIX}/sbin/${MODAPACHE_ENABLE}
You should also read
${PREFIX}/share/doc/mod_auth_pgsql/mod_auth_pgsql.html
If you already have Apache running on your machine,
you should not use "apachectl restart" - instead,
you should fully stop and then restart the server.

View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/01/30 12:50:39 pea Exp $
lib/${MODAPACHE_MODULE}
@exec-update test -f ${MODAPACHE_FINAL} && cp -fp %D/%F ${MODAPACHE_FINAL}
sbin/${MODAPACHE_ENABLE}
share/doc/mod_auth_pgsql/
share/doc/mod_auth_pgsql/mod_auth_pgsql.html
@unexec-delete rm -f ${MODAPACHE_FINAL}

View File

@ -0,0 +1,8 @@
To completely deinstall the mod_auth_pgsql package you
should edit /var/www/conf/httpd.conf and remove the
line that starts with
LoadModule auth_pgsql_module
Do not do this if you plan on re-installing the
mod_auth_pgsql package before the next apache restart.