# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Lares' Note: assign to webapps-request@gentoo.org inherit webapp eutils DESCRIPTION="phpwcms is an Open Source web content management system and is optimized for fast and easy setup and works on any standard webserver platform that supports PHP/MySQL" HOMEPAGE="http://www.phpwcms.de/" my_P=${PN}_1.2.5-DEV SRC_URI="mirror://sourceforge/${PN}/${my_P}.tgz" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="gs" RDEPEND="virtual/httpd-php net-www/apache dev-db/mysql media-libs/gd media-gfx/imagemagick gs? (app-text/ghostscript)" src_compile() { # Nothing to do # Default compile hangs FIXME: verify einfo "No compilation Nessessary :)" } src_install() { local my_S=${WORKDIR}/${my_P} cd ${my_S} local docs="LICENSE.txt ChangeLog.txt" einfo "Installing docs" dodoc ${docs} for this_doc in ${docs} GPL.txt GPL.html; do rm -f ${this_doc} done # Move files that people don't know how to name cd ./include/inc_module/mod_graphical_text mv -v ./update\ 1.0\ to\ 1.1.txt ./update_1.0_to_1.1.txt mv -v ./update\ 1.1\ to\ 1.3.txt ./update_1.1_to_1.3.txt mv -v ./replacement\ tags.txt ./repacement_tags.txt mv -v ./update\ 1.3\ to\ 1.4.txt ./update_1.3_to_1.4.txt mv -v ./update\ 1.4\ to\ 1.5.txt ./update_1.4_to_1.5.txt mv -v ./update\ 1.5\ to\ 2.0.txt ./update_1.5_to_2.0.txt cd ${my_S} mv -v ./include/inc_ext/ConvertCharset/Thanks\ To ./include/inc_ext/ConvertCharset/ThanksTo ## Insert Docs Stuff here webapp_src_preinst einfo "Copying main files" cp _.htaccess ${D}/${MY_HTDOCSDIR}/.htaccess rm -f _.htaccess cp -r . ${D}/${MY_HTDOCSDIR} for i in `find ./ -print` ; do webapp_serverowned ${MY_HTDOCSDIR}/${i} done # config file not declared until after setup. #webapp_configfile ${MY_HTDOCSDIR}/setup/index.php webapp_src_install } pkg_postinst(){ webapp_pkg_postinst einfo einfo "1 - Create a mySQL table with appropriate priviledges." einfo " See files/${P}.sql for an example." einfo einfo "2 - goto http:///setup/index.php" einfo " For some reason, if you do not go to the full address as noted" einfo " above, you get redirected to the phpwcms.de website" einfo "Remember:" einfo " Check: 'create all db tables' if it's a new install" einfo " Create your admin account on Page 2" einfo einfo "3 - # cd /path/to/your/htdocs/phpwcms" einfo " # cp ./setup.conf.inc.php ./config/phpwcms/conf.inc.php" einfo " # rm -r setup" einfo einfo "4 - Login via the link at the top of page 5" einfo " Or http:///phpwcms/login.php" einfo einfo "And there you have it... Design away." einfo }