From 05bc554ce4fc33d2a8e689d6236ac9c23a3d88c9 Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Tue, 7 Oct 2003 10:26:44 +0000 Subject: [PATCH] Add mod_auth_pgsql 2.0.2b1, an Apache 2 module for authentication against PostgreSQL databases. PR: 57655 Submitted by: Clement Laforet --- www/Makefile | 1 + www/mod_auth_pgsql2/Makefile | 33 +++++++++++++++++++++++++++++++++ www/mod_auth_pgsql2/distinfo | 1 + www/mod_auth_pgsql2/pkg-descr | 6 ++++++ www/mod_auth_pgsql2/pkg-plist | 5 +++++ 5 files changed, 46 insertions(+) create mode 100644 www/mod_auth_pgsql2/Makefile create mode 100644 www/mod_auth_pgsql2/distinfo create mode 100644 www/mod_auth_pgsql2/pkg-descr create mode 100644 www/mod_auth_pgsql2/pkg-plist diff --git a/www/Makefile b/www/Makefile index 5ede1c170322..8670f37d4b0c 100644 --- a/www/Makefile +++ b/www/Makefile @@ -191,6 +191,7 @@ SUBDIR += mod_auth_mysql_another SUBDIR += mod_auth_pam SUBDIR += mod_auth_pgsql + SUBDIR += mod_auth_pgsql2 SUBDIR += mod_auth_pwcheck SUBDIR += mod_backhand SUBDIR += mod_bandwidth diff --git a/www/mod_auth_pgsql2/Makefile b/www/mod_auth_pgsql2/Makefile new file mode 100644 index 000000000000..594fd4887991 --- /dev/null +++ b/www/mod_auth_pgsql2/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: mod_auth_pgsql2 +# Date created: Mon Oct 6 +# Whom: Clement Laforet +# +# $FreeBSD$ + +PORTNAME= mod_auth_pgsql +PORTVERSION= 2.0.2b1 +CATEGORIES= www +MASTER_SITES= http://www.giuseppetanzilli.it/mod_auth_pgsql2/dist/ + +MAINTAINER= sheeepkiller@cultdeadsheep.org +COMMENT= Allows users to use PostgreSQL databases for user authentication + +BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2 +RUN_DEPENDS= ${BUILD_DEPENDS} +LIB_DEPENDS= pq.3:${PORTSDIR}/databases/postgresql7 + +APXS?= ${LOCALBASE}/sbin/apxs +PG_INC?= ${LOCALBASE}/include +PG_LIBS?= ${LOCALBASE}/lib -lpq + +do-build: + @(cd ${WRKSRC} && ${APXS} -I ${PG_INC} -L ${PG_LIBS} -c ${PORTNAME}.c) + +do-install: + @(cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.la) +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/mod_auth_pgsql.html ${DOCSDIR} +.endif + +.include diff --git a/www/mod_auth_pgsql2/distinfo b/www/mod_auth_pgsql2/distinfo new file mode 100644 index 000000000000..ac61200b1c5f --- /dev/null +++ b/www/mod_auth_pgsql2/distinfo @@ -0,0 +1 @@ +MD5 (mod_auth_pgsql-2.0.2b1.tar.gz) = 8216fde4597c288537ff4fec508a4b41 diff --git a/www/mod_auth_pgsql2/pkg-descr b/www/mod_auth_pgsql2/pkg-descr new file mode 100644 index 000000000000..24f3a377b3c8 --- /dev/null +++ b/www/mod_auth_pgsql2/pkg-descr @@ -0,0 +1,6 @@ +This add-on module allows the apache web server to use a PostgreSQL +database for user and/or group authentication. For large user lists this +can offer a significate speed up over apache's standard flat file +format. + +WWW: http://www.giuseppetanzilli.it/mod_auth_pgsql2/ diff --git a/www/mod_auth_pgsql2/pkg-plist b/www/mod_auth_pgsql2/pkg-plist new file mode 100644 index 000000000000..2dd545b64b6b --- /dev/null +++ b/www/mod_auth_pgsql2/pkg-plist @@ -0,0 +1,5 @@ +libexec/apache2/mod_auth_pgsql.so +@exec %D/sbin/apxs -e -a -n auth_pgsql %D/%f +%%PORTDOCS%%%%DOCSDIR%%/mod_auth_pgsql.html +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@unexec echo "===> If you do not plan on reinstalling mod_auth_pgsql, you must manually remove"; echo "===> references to it in httpd.conf."