From owner-freebsd-ports Fri Nov 10 15: 0:10 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id EDC2937B4C5 for ; Fri, 10 Nov 2000 15:00:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA22352; Fri, 10 Nov 2000 15:00:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from mail.virtual-estates.net (video-collage.com [160.79.196.177]) by hub.freebsd.org (Postfix) with ESMTP id DB98E37B479 for ; Fri, 10 Nov 2000 14:51:56 -0800 (PST) Received: (from root@localhost) by mail.virtual-estates.net (8.9.3+3.2W/8.9.3) id RAA05601; Fri, 10 Nov 2000 17:51:50 -0500 (EST) Message-Id: <200011102251.RAA05601@mail.virtual-estates.net> Date: Fri, 10 Nov 2000 17:51:50 -0500 (EST) From: Mikhail Teterin Reply-To: mi@aldan.algebra.com To: FreeBSD-gnats-submit@freebsd.org Cc: vladimir.kloz@dtg.cz, jim@thehouselys.net X-Send-Pr-Version: 3.2 Subject: ports/22757: new port www/mod_auth_pgsql Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22757 >Category: ports >Synopsis: new port www/mod_auth_pgsql >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Nov 10 15:00:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 2.2.8-STABLE i386 >Organization: Virtual Estates, Inc. >Environment: >Description: Functionally equivalent to the mod_auth_mysql, but uses PostgreSQL database as a back-end. Most of the port shamefully copied from the mod_auth_mysql port. Tested to build and install properly on FreeBSD 4.1.1 and 2.2.8. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # mod_auth_pgsql # mod_auth_pgsql/files # mod_auth_pgsql/Makefile # mod_auth_pgsql/distinfo # mod_auth_pgsql/pkg-comment # mod_auth_pgsql/pkg-descr # mod_auth_pgsql/pkg-plist # echo c - mod_auth_pgsql mkdir -p mod_auth_pgsql > /dev/null 2>&1 echo c - mod_auth_pgsql/files mkdir -p mod_auth_pgsql/files > /dev/null 2>&1 echo x - mod_auth_pgsql/Makefile sed 's/^X//' >mod_auth_pgsql/Makefile << 'END-of-mod_auth_pgsql/Makefile' X# New ports collection makefile for: apache mod_auth_pgsql X# Date created: 2000/11/10 X# Whom: Mikhail Teterin X# X# $FreeBSD$ X XPORTNAME= mod_auth_pgsql XPORTVERSION= 0.9.5a XCATEGORIES= www XMASTER_SITES= ftp://ftp.eurolink.it/pub/linux/postgreSQL/mod_auth_pgsql/ X XMAINTAINER= mi@aldan.algebra.com X XBUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/${AP_PORT} \ X ${LOCALBASE}/pgsql/lib/libpq.so:${PORTSDIR}/databases/postgresql7 XRUN_DEPENDS= ${LOCALBASE}/sbin/${AP_TARGET}:${PORTSDIR}/www/${AP_PORT} \ X ${LOCALBASE}/pgsql/lib/libpq.so:${PORTSDIR}/databases/postgresql7 X XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/a//} X X.include X XAPXS= ${LOCALBASE}/sbin/apxs X XAP_PORT?= apache13 X.if exists(${APXS}) XAPXS_WORKS!= ${APXS} -q TARGET 2>/dev/null || echo no X.endif X.if exists(${APXS}) && ${APXS_WORKS} != no XAP_TARGET!= ${APXS} -q TARGET XAP_SYSCONF!= ${APXS} -q SYSCONFDIR XAP_INCLUDE!= ${APXS} -q INCLUDEDIR XAP_LIBEXEC!= ${APXS} -q LIBEXECDIR XCFLAGS:= `${APXS} -q CFLAGS` ${CFLAGS} X.else XAP_TARGET?= httpd XAP_SYSCONF?= ${PREFIX}/etc/apache XAP_INCLUDE?= ${PREFIX}/include/apache XAP_LIBEXEC?= ${PREFIX}/libexec/apache X.endif X XAUTH_PGSQL_DOCS= apache/manual/mod/mod_auth_pgsql X XPLIST_SUB+= AUTH_PGSQL_DOCS="${AUTH_PGSQL_DOCS}" X XPKGMESSAGE= ${WRKSRC}/.install_notes X XHAS_CONFIGURE= yes XCONFIGURE_ARGS= --with-pgsql=${PREFIX}/pgsql \ X --with-apxs=${APXS} X X.if !defined(NOPORTDOCS) XPLIST_SUB+= DOC='' Xpost-install: X @${MKDIR} ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS} X ${INSTALL_DATA} ${WRKSRC}/README \ X ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/ X ${TR} -d \\015 < ${WRKSRC}/mod_auth_pgsql.html \ X > ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/index.html X ${CHMOD} ${SHAREMODE} \ X ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/index.html X ${CHOWN} ${SHAREOWN}:${SHAREGRP} \ X ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/index.html X ${LN} -sf ${AUTH_PGSQL_DOCS} ${PREFIX}/share/doc/ X.else XPLIST_SUB+= DOC='@comment ' X.endif X X.include END-of-mod_auth_pgsql/Makefile echo x - mod_auth_pgsql/distinfo sed 's/^X//' >mod_auth_pgsql/distinfo << 'END-of-mod_auth_pgsql/distinfo' XMD5 (mod_auth_pgsql-0.9.5a.tar.gz) = 8c8da3bdc8c1d04aa3173b5ee6715b51 END-of-mod_auth_pgsql/distinfo echo x - mod_auth_pgsql/pkg-comment sed 's/^X//' >mod_auth_pgsql/pkg-comment << 'END-of-mod_auth_pgsql/pkg-comment' XAllows users to use PostgreSQL databases for user authentication END-of-mod_auth_pgsql/pkg-comment echo x - mod_auth_pgsql/pkg-descr sed 's/^X//' >mod_auth_pgsql/pkg-descr << 'END-of-mod_auth_pgsql/pkg-descr' XThis add-on module allows the apache web server to use a PostgreSQL Xdatabase for user and/or group authentication. For large user lists this Xcan offer a significate speed up over apache's standard flat file Xformat. END-of-mod_auth_pgsql/pkg-descr echo x - mod_auth_pgsql/pkg-plist sed 's/^X//' >mod_auth_pgsql/pkg-plist << 'END-of-mod_auth_pgsql/pkg-plist' Xlibexec/apache/mod_auth_pgsql.so X@exec %D/sbin/apxs -e -a -n auth_pgsql %f X@unexec %D/sbin/apxs -e -A -n auth_pgsql %f X%%DOC%%share/doc/%%AUTH_PGSQL_DOCS%%/README X%%DOC%%share/doc/%%AUTH_PGSQL_DOCS%%/index.html X%%DOC%%@exec (cd %D/share/doc && ln -sf %%AUTH_PGSQL_DOCS%% mod_auth_pgsql) X%%DOC%%@unexec rm -f %D/share/doc/mod_auth_pgsql X%%DOC%%@dirrm share/doc/%%AUTH_PGSQL_DOCS%% END-of-mod_auth_pgsql/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message