# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Zope's CMF's FileSystem Directory View that is independent of CMF." HOMEPAGE="http://www.zope.org/Members/k_vertigo/Products/FileSystemSite" SRC_URI="${HOMEPAGE}/FileSystemSite-${PV}.tgz" S=${WORKDIR}/FileSystemSite LICENSE="ZPL" SLOT="0" KEYWORDS="x86 ~sparc ~ppc" DEPEND="" RDEPEND=">=net-www/zope-2.6.0*" IUSE="" MODDIR="/usr/share/zope/${P}/" DOCDIR="/usr/share/doc/zope/${P}/" PROD_NAME="FileSystemSite" PROD_LST="FileSystemSite" src_install() { dodir ${DOCDIR} cp -a *.txt ${D}/${DOCDIR} rm -f *.txt prepalldocs cd .. cp -f ${FILESDIR}/zprod-update ./tzu sed -e "/MOD_DIR=/ c\\MOD_DIR=\"${MODDIR}\"\\ " \ -e "/PROD_NAME=/ c\\PROD_NAME=\"${PROD_NAME}\"\\ " \ -e "/PROD_LST=/ c\\PROD_LST=\"${PROD_LST}\"\\ " \ tzu > zprod-update rm -f tzu chmod ug+x zprod-update # creates a master copy, to be later installed to other zope instances. dodir ${MODDIR} cp -a . ${D}/${MODDIR} } pkg_postinst() { einfo "You must run the following in order to add this product to a zope instances:" einfo "# cd ${MODDIR}" einfo "# ./zprod-update add /path/of/zope/instance" einfo ; einfo "Example:" einfo "\t./zprod-update add /usr/share/zope/zope-2.6.0" einfo ; einfo "Don't forget to restart the zope instance." }