# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp eutils DESCRIPTION="Multi-blog derivative of WordPress CMS system." HOMEPAGE="http://lyceum.ibiblio.org/" SRC_URI="http://lyceum.ibiblio.org/wp-content/downloads/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="" RDEPEND="virtual/httpd-php virtual/mysql" DEPEND="${DEPEND} ${RDEPEND}" src_install() { webapp_src_preinst einfo "Installing main files" cp -r src ${D}${MY_HTDOCSDIR} einfo "Done" ewarn ewarn Please make sure you have register_globals = off set in your /etc/apache2/php.ini file ewarn If this is not an option for your web server and you NEED it set to on, then insert the following in your Lyceum .htaccess file: ewarn php_flag register_globals off ewarn ewarn ewarn You will need to create a table for your Lyceum database. This ewarn assumes you have some knowledge of MySQL, and already have it ewarn installed and configured. If not, please refer to ewarn the Gentoo MySQL guide at the following URL: ewarn http://www.gentoo.org/doc/en/mysql-howto.xml ewarn Log in to MySQL, and create a new database called ewarn "lyceum". From this point, you will need to edit ewarn your wp-config.php file in $DocumentRoot/lyceum/src/config/ ewarn and point to your database. Once this is done, you can log in to ewarn Lyceum at http://localhost/lyceum/src/lyceum/wp-admin/install.php ewarn For security, delete src/lyceum/wp-admin/install.php after ewarn installation. ewarn ewarn You may need to make the following files and directories writeable ewarn by the webserver: ewarn " src/lyceum/" ewarn " src/lyceum/wp-comments-post.php" ewarn " src/lyceum/wp-content/blogs/" ewarn ewarn You need to enable mod_rewrite and make sure that Lyceum is allowed ewarn to create rewrite rules in .htaccess; e.g. ewarn "" ewarn " AllowOverride FileInfo Options" ewarn "" ewarn ewarn If you want a shorter, friendlier URL, use an Alias directive; see ewarn http://wiki.lyceum.ibiblio.org/index.php/Frequently_Asked_Questions ewarn before running the installer. ewarn ewarn If you want to use subdomains, see ewarn http://wiki.lyceum.ibiblio.org/index.php/Subdomains_Configuration ewarn ewarn Note: The XML-RPC URI to use is ewarn "http://localhost/lyceum/src/lyceum/xmlrpc.php?b=" ewarn ewarn ewarn If you are upgrading from a previous version BACK UP your ewarn database. Once you are done with that, browse to ewarn http://localhost/lyceum/src/lyceum/wp-admin/upgrade.php and follow ewarn the instructions on the screen. ewarn # handle documentation files # # NOTE that doc files go into /usr/share/doc as normal; they do NOT # get installed per vhost! dodoc doc/* # Identify the configuration files that this app uses # User can want to make changes to these! webapp_serverowned ${MY_HTDOCSDIR}/src/lyceum/ webapp_serverowned ${MY_HTDOCSDIR}/src/lyceum/wp-comments-post.php webapp_serverowned ${MY_HTDOCSDIR}/src/lyceum/wp-content/blogs/ # Identify any script files that need #! headers adding to run under # a CGI script (such as PHP/CGI) # # for lyceum, we *assume* that all .php files need to have CGI/BIN # support added # post-install instructions #webapp_postinst_txt en ${FILESDIR}/1.2/postinstall-en.txt # now strut stuff webapp_src_install }