summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Moc <jakub@gentoo.org>2007-09-15 12:15:23 +0000
committerJakub Moc <jakub@gentoo.org>2007-09-15 12:15:23 +0000
commita258befd6fcdc3cb9f36f4415ebf0d2cc3ece7d6 (patch)
tree40f50851beb345993bbc96e6f2d5d2385d0a6c53 /www-apps
parentRemove www-apps/doop due to retarded wget protection (diff)
downloadwebapps-experimental-a258befd6fcdc3cb9f36f4415ebf0d2cc3ece7d6.tar.gz
webapps-experimental-a258befd6fcdc3cb9f36f4415ebf0d2cc3ece7d6.tar.bz2
webapps-experimental-a258befd6fcdc3cb9f36f4415ebf0d2cc3ece7d6.zip
www-apps/usebb: New ebuild, based on ebuild by Emanuele Gentili. Bug 115780.
svn path=/experimental/; revision=638
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/usebb/ChangeLog8
-rw-r--r--www-apps/usebb/Manifest5
-rw-r--r--www-apps/usebb/files/postinstall-en.txt10
-rw-r--r--www-apps/usebb/metadata.xml5
-rw-r--r--www-apps/usebb/usebb-1.0.7.ebuild53
5 files changed, 81 insertions, 0 deletions
diff --git a/www-apps/usebb/ChangeLog b/www-apps/usebb/ChangeLog
new file mode 100644
index 0000000..9f3c57a
--- /dev/null
+++ b/www-apps/usebb/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for www-apps/usebb
+# 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, +usebb-1.0.7.ebuild:
+ New ebuild, based on ebuild by Emanuele Gentili. Bug 115780.
+
diff --git a/www-apps/usebb/Manifest b/www-apps/usebb/Manifest
new file mode 100644
index 0000000..ef80c96
--- /dev/null
+++ b/www-apps/usebb/Manifest
@@ -0,0 +1,5 @@
+AUX postinstall-en.txt 377 RMD160 0ec3f3fac22111b52d4de8880f2aa5a0a21b02b0 SHA1 821d3411c867217b3ca3eab6e2b6d77814b55173 SHA256 c08845aa094575922d8d9e6732b0112d97c408ae130b87bc8c9a328702995347
+DIST usebb-1.0.7.tar.bz2 174710 RMD160 f601535dc9403949675b415b49cc231ef4499100 SHA1 facead100e1166f609427565c58dc8557aa9c913 SHA256 9aa4e21a5eafb788af1cca637b2cc18568029feb2d2ebae4624480e85c7e9096
+EBUILD usebb-1.0.7.ebuild 1244 RMD160 a309edb7476577c9c6bc7330ad5cfeb7aa421ed6 SHA1 36328db2521ef9f970fff4b07595e47d9e9ace97 SHA256 372b15f2070188af6af75cc5ffa0d82d8b30aa40973840696d37541ca55c6812
+MISC ChangeLog 288 RMD160 59b169c35757fc6fdd0c917c8949ce0d2d5039e1 SHA1 9f993dabdb6e4d14b424d5357d71d8ae3cf43e4c SHA256 3132e1644ca3b3cab5a6ff6423e3e1a4ad4f2cafad718895c299ee19a9de30e9
+MISC metadata.xml 162 RMD160 0b015f5ff17c4d8e7aee826d48b326cc19b1fed4 SHA1 671b30dafbea01228c8bb606af451a0795922840 SHA256 84ff2fc6c9a4af1b9dbe32aa81ab84c2958bc1bd65a9977686df2dcab6e420d0
diff --git a/www-apps/usebb/files/postinstall-en.txt b/www-apps/usebb/files/postinstall-en.txt
new file mode 100644
index 0000000..69bbe3a
--- /dev/null
+++ b/www-apps/usebb/files/postinstall-en.txt
@@ -0,0 +1,10 @@
+Now, point your browser to http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/install
+and follow the instructions.
+
+If automated setup doesn't work for you for some reason, you can create
+a new MySQL database manually:
+
+ mysql -u root -p < ${MY_SQLSCRIPTSDIR}/mysql/mysql.sql
+ mysql -u root -p < ${MY_SQLSCRIPTSDIR}/mysql/${PN}.sql
+
+and then configure ${PN} via config.php as needed.
diff --git a/www-apps/usebb/metadata.xml b/www-apps/usebb/metadata.xml
new file mode 100644
index 0000000..6632069
--- /dev/null
+++ b/www-apps/usebb/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/usebb/usebb-1.0.7.ebuild b/www-apps/usebb/usebb-1.0.7.ebuild
new file mode 100644
index 0000000..c282a38
--- /dev/null
+++ b/www-apps/usebb/usebb-1.0.7.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit webapp depend.php
+
+DESCRIPTION="Light and Open Source forum package"
+HOMEPAGE="http://www.usebb.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="virtual/httpd-cgi"
+
+need_php_httpd
+
+S="${WORKDIR}/UseBB"
+
+pkg_setup() {
+ if ! PHPCHECKNODIE="yes" require_php_with_use pcre session || \
+ ! PHPCHECKNODIE="yes" require_php_with_any_use mysql mysql ; then
+ die "Re-install ${PHP_PKG} with pcre session and at least one of mysql mysqli USE flags enabled."
+ fi
+
+ webapp_pkg_setup
+}
+
+src_install() {
+ webapp_src_preinst
+
+ docs="AUTHORS README Changelog.txt docs/INSTALL docs/UPGRADE"
+ dodoc ${docs}
+ rm -f ${docs} COPYING
+ dohtml -r docs/
+
+ mv config.php-dist config.php
+ cp -pPR * "${D}/${MY_HTDOCSDIR}"
+
+ webapp_serverowned ${MY_HTDOCSDIR}/sources
+ webapp_serverowned ${MY_HTDOCSDIR}/languages
+ webapp_serverowned ${MY_HTDOCSDIR}/config.php
+
+ webapp_configfile ${MY_HTDOCSDIR}/config.php
+
+ webapp_sqlscript mysql install/schemas/mysql.sql
+ webapp_sqlscript mysql install/${PN}.sql
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+
+ webapp_src_install
+}