# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Al Maw # $Header: $ DESCRIPTION="Drupal is a PHP-based open-source platform and content management system for building dynamic web sites offering a broad range of features and services; including user administration, publishing workflow, discussion capabilities, news aggregation, metadata functionalities using controlled vocabularies and XML publishing for content sharing purposes. Equipped with a powerful blend of features and configurability, Drupal can support a diverse range of web projects ranging from personal weblogs to large community-driven sites." HOMEPAGE="http://drupal.org" S=${WORKDIR}/${P} SRC_URI="http://drupal.org/drupal/${P}.tgz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc ~alpha" DEPEND="virtual/php" HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\ -f2`" [ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache2/conf/apache2.conf | cut -d\ -f2`" [ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs" HTTPD_USER="apache" HTTPD_GROUP="apache" pkg_setup() { if [ -L ${HTTPD_ROOT}/drupal ] ; then ewarn "You need to unmerge your old Drupal version first." ewarn "Drupal will be installed into ${HTTPD_ROOT}/drupal" ewarn "directly instead of a version-dependant directory." die "need to unmerge old version first" fi } src_compile() { echo "Nothing to compile" } src_install() { cd ${S} dodir ${HTTPD_ROOT}/drupal cp -r * ${D}/${HTTPD_ROOT}/drupal cd ${D}/${HTTPD_ROOT} chown -R ${HTTPD_USER}.${HTTPD_GROUP} ${D}/${HTTPD_ROOT}/drupal } pkg_postinst() { einfo einfo "You must now create a database for Drupal to use." einfo "Once you have done that, you must import the database" einfo "schema into it and edit Drupal's configuration file." einfo einfo "Please read http://drupal.org/node/view/260 for details" einfo "about setting up Drupal (start at step # 2)." einfo }