# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header:$ DESCRIPTION="Dristributed cache module for aolserver" HOMEPAGE="http://www.aolserver.com" SRC_URI="http://umn.dl.sourceforge.net/sourceforge/aolserver/${P}.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="net-www/aolserver" RDEPEND="${DEPEND}" S="${WORKDIR}/${P}" AOLSERVER_CONFDIR="/usr/lib/aolserver/config" AOLSERVER_BASEDIR="/usr/lib/aolserver" src_unpack() { mkdir -p ${WORKDIR}/include cp -a ${AOLSERVER_CONFDIR}/* ${WORKDIR}/include unpack ${P}.tar.gz } src_compile() { emake NSBUILD=1 INST=../ || die } src_install () { into ${AOLSERVER_BASEDIR} dobin ${WORKDIR}/${P}/nscache.so fowners root.root ${AOLSERVER_BASEDIR}/bin/nscache.so } pkg_postinst () { einfo "To enable the use of ${P} you must add the module to your AOLServer config.tcl" }