diff options
author | Stuart Herbert <stuart@gentoo.org> | 2004-07-11 10:30:47 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2004-07-11 10:30:47 +0000 |
commit | d726fba97da8036092d34b39fb9575160f9274b9 (patch) | |
tree | 3b5bfc59fa2d17bdd52f5a5d7a671be05e8c4c2b | |
parent | x86 stable (Manifest recommit) (diff) | |
download | gentoo-2-d726fba97da8036092d34b39fb9575160f9274b9.tar.gz gentoo-2-d726fba97da8036092d34b39fb9575160f9274b9.tar.bz2 gentoo-2-d726fba97da8036092d34b39fb9575160f9274b9.zip |
Initial import; see bug #25423
-rw-r--r-- | net-www/drupal/ChangeLog | 11 | ||||
-rw-r--r-- | net-www/drupal/Manifest | 5 | ||||
-rw-r--r-- | net-www/drupal/drupal-4.4.2.ebuild | 65 | ||||
-rw-r--r-- | net-www/drupal/files/4.4.2/postinstall-en.txt | 85 | ||||
-rw-r--r-- | net-www/drupal/files/digest-drupal-4.4.2 | 1 | ||||
-rw-r--r-- | net-www/drupal/metadata.xml | 10 |
6 files changed, 177 insertions, 0 deletions
diff --git a/net-www/drupal/ChangeLog b/net-www/drupal/ChangeLog new file mode 100644 index 000000000000..2f8a0bfa00c3 --- /dev/null +++ b/net-www/drupal/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-www/drupal +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/drupal/ChangeLog,v 1.1 2004/07/11 10:30:47 stuart Exp $ + +*drupal-4.4.2 (11 Jul 2004) + + 11 Jul 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml, + +files/4.4.2/postinstall-en.txt, +drupal-4.4.2.ebuild: + Initial import; from bug #25423; thanks to Al Maw <gentoo@almaw.com> and Peter + Westwood <peter.westwood@ftwr.co.uk> + diff --git a/net-www/drupal/Manifest b/net-www/drupal/Manifest new file mode 100644 index 000000000000..9a1ca74df261 --- /dev/null +++ b/net-www/drupal/Manifest @@ -0,0 +1,5 @@ +MD5 bbdb6a954770c6b425f0bb263c676d6d drupal-4.4.2.ebuild 1911 +MD5 88b2c84c1b3552228d711637cb7d9269 metadata.xml 274 +MD5 5239f9ed0340ba7e482e8c3058ac7848 ChangeLog 387 +MD5 81d4a3470011f2ae831be4604c756895 files/digest-drupal-4.4.2 61 +MD5 0f20a567ce1310d62af69bd56921cea3 files/4.4.2/postinstall-en.txt 2595 diff --git a/net-www/drupal/drupal-4.4.2.ebuild b/net-www/drupal/drupal-4.4.2.ebuild new file mode 100644 index 000000000000..9d32c54e9097 --- /dev/null +++ b/net-www/drupal/drupal-4.4.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/drupal/drupal-4.4.2.ebuild,v 1.1 2004/07/11 10:30:47 stuart Exp $ + +inherit webapp eutils + +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" + +SRC_URI="http://drupal.org/drupal/${P}.tgz" + +LICENSE="GPL-2" +KEYWORDS="~x86" + +DEPEND="virtual/php" + +src_compile() { + #Default compile hangs! + echo "Nothing to compile" +} + +src_install() { + + local docs="MAINTAINERS.txt LICENSE.txt INSTALL.txt CHANGELOG.txt" + + webapp_src_preinst + + # handle documentation files + # + # NOTE that doc files go into /usr/share/doc as normal; they do NOT + # get installed per vhost! + + einfo "Installing docs" + dodoc ${docs} + for doc in ${docs} INSTALL; do + rm -f ${doc} + done + + einfo "Copying main files" + cp -r . ${D}/${MY_HTDOCSDIR} + #Not sure about this yet! +# cp .htaccess ${D}/${HTTPD_ROOT}/drupal + + # Identify any script files that need #! headers adding to run under + # a CGI script (such as PHP/CGI) + # + # for drupal, we *assume* that all .php files need to have CGI/BIN + # support added + + for x in `find . -name '*.php' -print ` ; do + webapp_runbycgibin php ${MY_HTDOCSDIR}/$x + done + + #All files must be owned by server + for x in `find . -type f -print` ; do + webapp_serverowned ${MY_HTDOCSDIR}/$x + done + + webapp_configfile ${MY_HTDOCSDIR}/includes/conf.php + + webapp_postinst_txt en ${FILESDIR}/${PV}/postinstall-en.txt + + webapp_src_install +} + diff --git a/net-www/drupal/files/4.4.2/postinstall-en.txt b/net-www/drupal/files/4.4.2/postinstall-en.txt new file mode 100644 index 000000000000..52ece91c8b72 --- /dev/null +++ b/net-www/drupal/files/4.4.2/postinstall-en.txt @@ -0,0 +1,85 @@ +To complete installation you need to perform the following steps: + + 1) Create drupal database + 2) Load drupal database scheme + 3) Configure drupal base options + 4) Add drupal entry to cron + +1 - Creating drupal database + + These instructions are for MySQL. If you are using another database, + check the database documentation. In the following examples, + "dba_user" is an example MySQL user which has the CREATE and GRANT + privileges. You will need to use the appropriate user name for your + system. + + First, you must create a new database for your Drupal site: + + $ mysqladmin -u dba_user -p create drupal + + MySQL will prompt for the dba_user database password and then create + the initial database files. Next you must login and set the access + database rights: + + $ mysql -u dba_user -p + + Again, you will be asked for the dba_user database password. At the + MySQL prompt, enter following command: + + GRANT ALL PRIVILEGES ON drupal.* + TO nobody@localhost IDENTIFIED BY 'password'; + + where + + 'drupal' is the name of your database + 'nobody@localhost' is the userid of your webserver MySQL account + 'password' is the password required to log in as the MySQL user + + If successful, MySQL will reply with + + Query OK, 0 rows affected + + to activate the new permissions you must enter the command + + flush privileges; + + and then enter '\q' to exit MySQL. + + +2 - Load the drupal database scheme + + Once you have a database, you must load the required tables: + + $ mysql -u nobody -p drupal < database/database.mysql + + +3 - Configure drupal base options + + Drupal server options are specified in includes/conf.php. + + Before you can run Drupal, you must set the database URL and the + base URL to the web site. Open the configuration file and edit the + $db_url line to match the database defined in the previous steps: + + $db_url = "mysql://username:password@localhost/drupal"; + + Set $base_url to match the address to your web site: + + $base_url = "http://www.example.com"; + + +4 - Add drupal entry to cron + + Many Drupal modules have periodic tasks that must be triggered by a + cron job. To activate these tasks, you must call the cron page; + this will pass control to the modules and the modules will decide + if and what they must do. + + The following example crontab line will activate the cron script + on the hour: + + 0 * * * * wget -O - -q http://${VHOST_HOSTNAME}/cron.php + + +The above information is a precis of the information in the drupal +INSTALL file more information can be found there! diff --git a/net-www/drupal/files/digest-drupal-4.4.2 b/net-www/drupal/files/digest-drupal-4.4.2 new file mode 100644 index 000000000000..f30963ef1f99 --- /dev/null +++ b/net-www/drupal/files/digest-drupal-4.4.2 @@ -0,0 +1 @@ +MD5 407f808ce7f469c1b1002c55e6941274 drupal-4.4.2.tgz 441115 diff --git a/net-www/drupal/metadata.xml b/net-www/drupal/metadata.xml new file mode 100644 index 000000000000..118b90e92ffc --- /dev/null +++ b/net-www/drupal/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> +<herd>web-apps</herd> +<maintainer> + <email>stuart@gentoo.org</email> + <description>Primary maintainer</description> +</maintainer> +</pkgmetadata> |