# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/jcollins/cvsroot/phpsource-net/ebuilds/net-www/aolserver/aolserver-3.4.2.ebuild,v 1.1.1.1 2002/11/08 04:43:30 jcollins Exp $ DESCRIPTION="Postgres driver module for aolserver" HOMEPAGE="http://www.aolserver.com" SRC_URI="http://umn.dl.sourceforge.net/sourceforge/aolserver/nspostgres-4.0beta1.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="x86" IUSE="noopenacs" # Internal use flags: # # openacs: enables required openacs modifications in the driver DEPEND=">=dev-db/postgresql-7.2 net-www/aolserver" RDEPEND="${DEPEND}" S="${WORKDIR}/nspostgres-4.0beta1" AOLSERVER_CONFDIR="/usr/lib/aolserver/config" AOLSERVER_BASEDIR="/usr/lib/aolserver" pkg_setup() { if [ -z "`use noopenacs`" ]; then ewarn "nspostgres is being merged with OpenACS specific modifications." else ewarn "nspostgres is being merged without the modfications necessary" ewarn "to run OpenACS. If you are intending to run OpenACS please" ewarn "re-emerge nspostgres with USE=-noopenacs" sleep 5 fi } src_unpack() { mkdir -p ${WORKDIR}/include cp -a ${AOLSERVER_CONFDIR}/* ${WORKDIR}/include unpack nspostgres-4.0beta1.tar.gz } src_compile() { local OPENACS=1 if [ "`use noopenacs`" ]; then OPENACS=0 fi emake POSTGRES=/usr/include/postgresql ACS=${OPENACS} NSBUILD=1 INST=../ \ || die } src_install () { into ${AOLSERVER_BASEDIR} dobin ${WORKDIR}/nspostgres-4.0beta1/nspostgres.so fowners root.root ${AOLSERVER_BASEDIR}/bin/nspostgres.so } pkg_postinst () { einfo "To enable the use of ${P}, in the AOLServer config.tcl you must:" einfo " 1) Add the module" einfo " 2) Configure your database pools" }