# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-apps/phpBB/phpBB-2.0.22.ebuild,v 1.1 2006/12/24 12:42:13 rl03 Exp $ inherit perl-app DESCRIPTION="YaBB is an open-source bulletin board package." HOMEPAGE="http://www.yabbforum.com/" SRC_URI="mirror://sourceforge/yabb/${PN}_${PV}.zip" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" SLOT="0" RDEPEND="dev-lang/perl" src_install() { einfo "Installing" dodir /var/www/localhost/htdocs/forum cp -RP ${WORKDIR}/public_html/yabbfiles/* ${D}/var/www/localhost/htdocs/forum/ dodir /var/www/localhost/cgi-bin/ cp -RP ${WORKDIR}/cgi-bin/yabb2 ${D}/var/www/localhost/cgi-bin/ for i in Attachments ModImages; do keepdir /var/www/localhost/htdocs/forum/$i done for i in Boards Members Messages Variables; do keepdir /var/www/localhost/cgi-bin/yabb2/Convert/$i done } pkg_postinst() { einfo "Adjusting permissions..." cd / "${FILESDIR}/yabb-perms.sh" || die "fixing perms failed" einfo "Saving default path and URL variables..." cp "${FILESDIR}/Paths.pl" "/var/www/localhost/htdocs/cgi-bin/yabb2/" einfo "Open http://localhost/cgi-bin/yabb2/Setup.pl in your browser" einfo "and change the variables for your forum!" einfo "If this is first install, admin password is admin" }