summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenat Lumpau <rl03@gentoo.org>2006-01-11 21:09:41 +0000
committerRenat Lumpau <rl03@gentoo.org>2006-01-11 21:09:41 +0000
commitd01904b9d24968ab774aa2de2b132968e7e8096f (patch)
tree9980e33a37cbadf9da2a765c57dd7a65d2362001 /www-apps/smf
parentMoved zina to portage (diff)
downloadwebapps-experimental-d01904b9d24968ab774aa2de2b132968e7e8096f.tar.gz
webapps-experimental-d01904b9d24968ab774aa2de2b132968e7e8096f.tar.bz2
webapps-experimental-d01904b9d24968ab774aa2de2b132968e7e8096f.zip
Added smf
svn path=/experimental/; revision=100
Diffstat (limited to 'www-apps/smf')
-rw-r--r--www-apps/smf/ChangeLog7
-rw-r--r--www-apps/smf/Manifest5
-rw-r--r--www-apps/smf/files/digest-smf-1.1_rc21
-rw-r--r--www-apps/smf/files/postinstall-en.txt15
-rw-r--r--www-apps/smf/files/reconfig15
-rw-r--r--www-apps/smf/smf-1.1_rc2.ebuild43
6 files changed, 86 insertions, 0 deletions
diff --git a/www-apps/smf/ChangeLog b/www-apps/smf/ChangeLog
new file mode 100644
index 0000000..a3b80ca
--- /dev/null
+++ b/www-apps/smf/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for www-apps/smf
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 11 Jan 2006; Renat Lumpau <rl03@gentoo.org> ChangeLog:
+ Initial ebuild.
+
diff --git a/www-apps/smf/Manifest b/www-apps/smf/Manifest
new file mode 100644
index 0000000..6d44df2
--- /dev/null
+++ b/www-apps/smf/Manifest
@@ -0,0 +1,5 @@
+MD5 64f0b46bf6a6ee3945080f946b1a63dc ChangeLog 189
+MD5 1be7045215a69d1531a42b61c1bdac06 files/digest-smf-1.1_rc2 73
+MD5 e1d3bd2f21d4abc1503a219c1be91af6 files/postinstall-en.txt 634
+MD5 f1020fcee83b3490608993c0159a227e files/reconfig 215
+MD5 29ddfaae80478dc9a2734e6071fa033b smf-1.1_rc2.ebuild 1118
diff --git a/www-apps/smf/files/digest-smf-1.1_rc2 b/www-apps/smf/files/digest-smf-1.1_rc2
new file mode 100644
index 0000000..706e346
--- /dev/null
+++ b/www-apps/smf/files/digest-smf-1.1_rc2
@@ -0,0 +1 @@
+MD5 0dab430d66171fa24798031e9140c118 smf_1-1-rc2_install.tar.bz2 1028766
diff --git a/www-apps/smf/files/postinstall-en.txt b/www-apps/smf/files/postinstall-en.txt
new file mode 100644
index 0000000..cb1ab52
--- /dev/null
+++ b/www-apps/smf/files/postinstall-en.txt
@@ -0,0 +1,15 @@
+ 0. It is recommended that you set the following PHP settings:
+
+* the max_input_time directive is set to a value of at least 30.
+* the post_max_size and upload_max_filesize directives are set to the
+* size of the largest attachments you wish to be able to upload.
+* the session.use_trans_sid directive set to Off.
+* the memory_limit directive is set to at least 8M.
+* the max_execution_time directive is set to at least 15.
+* the register_globals directive is set to Off.
+
+ 1. Login on
+ http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/install.php
+ and follow the directions.
+
+ 2. Don't forget to delete the installer when you're done!
diff --git a/www-apps/smf/files/reconfig b/www-apps/smf/files/reconfig
new file mode 100644
index 0000000..e4fb4f2
--- /dev/null
+++ b/www-apps/smf/files/reconfig
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+die() {
+ echo "#####"
+ echo $1
+ echo "#####"
+ exit 1
+}
+
+if [ $1 = "install" ]; then
+ chown ${VHOST_SERVER_UID}:${VHOST_SERVER_GID} ${MY_INSTALLDIR}/Settings.php
+
+elif [ $1 = "clean" ]; then
+ echo $1
+fi
diff --git a/www-apps/smf/smf-1.1_rc2.ebuild b/www-apps/smf/smf-1.1_rc2.ebuild
new file mode 100644
index 0000000..9b65992
--- /dev/null
+++ b/www-apps/smf/smf-1.1_rc2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit webapp versionator
+
+MY_PV=$(replace_all_version_separators '-')
+DESCRIPTION="Simple Machines Forum is an elegant, powerful, easy, and free community forum software package."
+HOMEPAGE="http://www.simplemachines.org/"
+SRC_URI="http://www.simplemachines.org/download.php/${PN}_${MY_PV}_install.tar.bz2"
+
+LICENSE="simplemachines"
+KEYWORDS="~x86"
+S=${WORKDIR}
+
+IUSE="mysql spell gd"
+
+RDEPEND="mysql? ( dev-db/mysql )
+ >=virtual/php-4.1
+ net-www/apache
+ spell? ( app-text/aspell )
+ gd? ( >=media-libs/gd-2 )"
+
+src_install () {
+ webapp_src_preinst
+ local files="attachments avatars Packages Packages/installed.list Smileys
+ Themes agreement.txt Settings_bak.php"
+
+ dodoc changelog.txt
+ dohtml news_readme.html readme.html
+
+ cp -R . ${D}/${MY_HTDOCSDIR}
+
+ for a in ${files}; do
+ webapp_serverowned "${MY_HTDOCSDIR}/${a}"
+ done
+
+ webapp_configfile ${MY_HTDOCSDIR}/Settings.php
+ webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
+ webapp_hook_script ${FILESDIR}/reconfig
+
+ webapp_src_install
+}