diff options
author | Jakub Moc <jakub@gentoo.org> | 2007-09-15 14:52:30 +0000 |
---|---|---|
committer | Jakub Moc <jakub@gentoo.org> | 2007-09-15 14:52:30 +0000 |
commit | faebd22ec3f047344745166381e8f1340e710b29 (patch) | |
tree | 522ca399d10a732ca171fd7538285d562229b940 /www-apps | |
parent | No need for this to be serverowned (diff) | |
download | webapps-experimental-faebd22ec3f047344745166381e8f1340e710b29.tar.gz webapps-experimental-faebd22ec3f047344745166381e8f1340e710b29.tar.bz2 webapps-experimental-faebd22ec3f047344745166381e8f1340e710b29.zip |
www-apps/phpmyfaq: New ebuild, based on ebuild by Niklas Närhinen. Bug 176173
svn path=/experimental/; revision=641
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/phpmyfaq/ChangeLog | 8 | ||||
-rw-r--r-- | www-apps/phpmyfaq/Manifest | 5 | ||||
-rw-r--r-- | www-apps/phpmyfaq/files/postinstall-en.txt | 8 | ||||
-rw-r--r-- | www-apps/phpmyfaq/metadata.xml | 5 | ||||
-rw-r--r-- | www-apps/phpmyfaq/phpmyfaq-2.0.3.ebuild | 61 |
5 files changed, 87 insertions, 0 deletions
diff --git a/www-apps/phpmyfaq/ChangeLog b/www-apps/phpmyfaq/ChangeLog new file mode 100644 index 0000000..0a21e9f --- /dev/null +++ b/www-apps/phpmyfaq/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for www-apps/phpmyfaq +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 15 Sep 2007; Jakub Moc <jakub@gentoo.org> +files/postinstall-en.txt, + +metadata.xml, +phpmyfaq-2.0.3.ebuild: + New ebuild, based on ebuild by Niklas Närhinen. Bug 176173 + diff --git a/www-apps/phpmyfaq/Manifest b/www-apps/phpmyfaq/Manifest new file mode 100644 index 0000000..89652b3 --- /dev/null +++ b/www-apps/phpmyfaq/Manifest @@ -0,0 +1,5 @@ +AUX postinstall-en.txt 284 RMD160 4170af739a27a37eb774c11b38fba2eb07c948f0 SHA1 67c8b82a4cf35e4ee2b38191c56df19ac01c2607 SHA256 d7083566c19f2a4eb0dcc2e9f535b32c191403093e231f351794fdeccffc92ad +DIST phpmyfaq-2.0.3.tar.gz 1211806 RMD160 aa4556bfbb9ceae47fe5c1e94c821727918302a4 SHA1 d91dfe2573780bf3f2887688e9c2eb74a959238e SHA256 d112c96d853fd1075ac60224d7119cefe6b91c358a3e955f5071d36abd44b8e7 +EBUILD phpmyfaq-2.0.3.ebuild 1689 RMD160 9e1a117b696a739b962968481b2ed118f7443d29 SHA1 2ed4882586226ffa71d7e996e09d5b78d7276a47 SHA256 a21f09d3654a51e3dc7253a1fae3a0b500c4bda78084b94b148a4bacfb83989d +MISC ChangeLog 293 RMD160 eefd02576be70fe5988e9d0bbedd9c5321cebb08 SHA1 865a2d6959737196ab9caf35eba7de552cf16e75 SHA256 3593a3bc9c9e3884b8c4b0d98e62d60229aa8cd8125414386ca8b9807486fd27 +MISC metadata.xml 162 RMD160 0b015f5ff17c4d8e7aee826d48b326cc19b1fed4 SHA1 671b30dafbea01228c8bb606af451a0795922840 SHA256 84ff2fc6c9a4af1b9dbe32aa81ab84c2958bc1bd65a9977686df2dcab6e420d0 diff --git a/www-apps/phpmyfaq/files/postinstall-en.txt b/www-apps/phpmyfaq/files/postinstall-en.txt new file mode 100644 index 0000000..7a6e712 --- /dev/null +++ b/www-apps/phpmyfaq/files/postinstall-en.txt @@ -0,0 +1,8 @@ +Configuring ${PN}: + +You need to create a database user with priviledges to: CREATE, DROP, INSERT, +UPDATE, DELETE and SELECT on all tables in the phpmyfaq-database. + +With your browser, go to: + http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/install/installer.php +and follow the instructions. diff --git a/www-apps/phpmyfaq/metadata.xml b/www-apps/phpmyfaq/metadata.xml new file mode 100644 index 0000000..6632069 --- /dev/null +++ b/www-apps/phpmyfaq/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>web-apps</herd> +</pkgmetadata> diff --git a/www-apps/phpmyfaq/phpmyfaq-2.0.3.ebuild b/www-apps/phpmyfaq/phpmyfaq-2.0.3.ebuild new file mode 100644 index 0000000..4f27362 --- /dev/null +++ b/www-apps/phpmyfaq/phpmyfaq-2.0.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit webapp depend.php + +DESCRIPTION="open source FAQ system for PHP" +HOMEPAGE="http://www.phpmyfaq.de" +SRC_URI="http://www.phpmyfaq.de/download/${P}.tar.gz" + +LICENSE="MPL-1.1" +KEYWORDS="~x86" +IUSE="captcha ldap" + +RDEPEND="virtual/httpd-cgi" +need_php_httpd + +pkg_setup() { + webapp_pkg_setup + + local dbflags="db2 firebird interbase mssql mysql mysqli oci8 postgres sqlite sybase" + if ! PHPCHECKNODIE="yes" require_php_with_any_use ${dbflags} || \ + ( use captcha && ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ) || \ + ( use ldap && ! PHPCHECKNODIE="yes" require_php_with_use ldap ) ; then + eerror + eerror "${PHP_PKG} needs to be re-installed with at least one of these" + eerror "USE flags enabled: ${dbflags}" + eerror + use captcha && eerror "You also either gd or gd-external USE flag enabled." + use ldap && eerror "You also need ldap USE flag enabled." + die "Re-install ${PHP_PKG}" + fi +} + +src_install() { + webapp_src_preinst + + dodoc docs/*.txt + for i in _* ; do + newdoc ${i/_/} + rm -f ${i} + done + dohtml docs/*.html + rm -rf docs/*.txt ${PN}.spec scripts/ + + cp inc/data.php.original inc/data.php + touch inc/dataldap.php + cp -R . "${D}"${MY_HTDOCSDIR} + + webapp_serverowned -R ${MY_HTDOCSDIR}/install + webapp_serverowned ${MY_HTDOCSDIR}/inc + webapp_serverowned ${MY_HTDOCSDIR}/inc/data.php + webapp_serverowned ${MY_HTDOCSDIR}/inc/dataldap.php + + webapp_configfile ${MY_HTDOCSDIR}/inc/data.php + webapp_configfile ${MY_HTDOCSDIR}/inc/dataldap.php + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + + webapp_src_install +} |