# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-www/mod_auth_pgsql/mod_auth_pgsql-2.0.2-r2.ebuild,v 1.2 2005/02/20 00:42:16 nakano Exp $ inherit apache-module DESCRIPTION="This module allows user authentication (and can log authentication requests) against information stored in a PostgreSQL database." SRC_URI="http://www.giuseppetanzilli.it/mod_auth_pgsql2/dist/${P}b1.tar.gz" HOMEPAGE="http://www.giuseppetanzilli.it/mod_auth_pgsql2/" KEYWORDS="~x86 ~ppc ~sparc" LICENSE="freedist" SLOT="2" DEPEND="dev-db/postgresql" IUSE="" DOCFILES="INSTALL README TODO" APACHE2_MOD_CONF="${PVR}/80_mod_auth_pgsql" APACHE2_MOD_DEFINE="AUTH_PGSQL" need_apache2 S="${WORKDIR}/${P}b1" src_compile() { local myargs="-a -c -I /usr/pgsql/include -L /usr/pgsql/lib -lpq mod_auth_pgsql.c" APXS2_ARGS="${myargs}" apache-module_src_compile } src_install() { apache-module_src_install fperms 600 ${APACHE2_MODULES_CONFDIR}/$(basename ${APACHE2_MOD_CONF}).conf }