summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenat Lumpau <rl03@gentoo.org>2005-11-30 21:52:32 +0000
committerRenat Lumpau <rl03@gentoo.org>2005-11-30 21:52:32 +0000
commit69ce223f04c30baede2c1d40b69d615300675e48 (patch)
treee2de292d68e8b9a2346691e27d785631bdd549f6 /www-apps/mambo
parentnew version (diff)
downloadgentoo-2-69ce223f04c30baede2c1d40b69d615300675e48.tar.gz
gentoo-2-69ce223f04c30baede2c1d40b69d615300675e48.tar.bz2
gentoo-2-69ce223f04c30baede2c1d40b69d615300675e48.zip
Version bump
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'www-apps/mambo')
-rw-r--r--www-apps/mambo/ChangeLog7
-rw-r--r--www-apps/mambo/Manifest8
-rw-r--r--www-apps/mambo/files/digest-mambo-4.5.31
-rw-r--r--www-apps/mambo/mambo-4.5.3.ebuild92
4 files changed, 104 insertions, 4 deletions
diff --git a/www-apps/mambo/ChangeLog b/www-apps/mambo/ChangeLog
index 5d1a79a495fc..78c6b666a6e4 100644
--- a/www-apps/mambo/ChangeLog
+++ b/www-apps/mambo/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-apps/mambo
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/mambo/ChangeLog,v 1.18 2005/11/20 10:41:41 stuart Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mambo/ChangeLog,v 1.19 2005/11/30 21:52:32 rl03 Exp $
+
+*mambo-4.5.3 (30 Nov 2005)
+
+ 30 Nov 2005; Renat Lumpau <rl03@gentoo.org> +mambo-4.5.3.ebuild:
+ Version bump
*mambo-4.5.2.3-r1 (20 Nov 2005)
diff --git a/www-apps/mambo/Manifest b/www-apps/mambo/Manifest
index 56e9684d5efa..47d4bc1ae600 100644
--- a/www-apps/mambo/Manifest
+++ b/www-apps/mambo/Manifest
@@ -1,8 +1,10 @@
-MD5 0a2d9189783f06404ed80c355976f98c ChangeLog 2674
-MD5 f61bfa064e3acdfcd826e4a38b121196 metadata.xml 161
MD5 833ddb4f175a688b0893107e846b608d mambo-4.5.2.3.ebuild 2891
+MD5 0b0c623564cdbc82564e413e1939c1ad mambo-4.5.3.ebuild 2895
MD5 3a4fe61a2ddf7b07cbdce52f3f67566a mambo-4.5.2.3-r1.ebuild 2990
+MD5 0a2d9189783f06404ed80c355976f98c ChangeLog 2674
+MD5 f61bfa064e3acdfcd826e4a38b121196 metadata.xml 161
MD5 3d99cf82feda374b93fb14a227f3d37f files/mambo-4.5.2.3-globals_overwrite.patch 683
+MD5 b835f0c6a204408919dbe29f020b6e5c files/digest-mambo-4.5.3 71
MD5 3601661ea6b8a216f15131f63bc24388 files/postinstall-en.txt 991
-MD5 6c941a8ae21f670067d3ce092d91b9cc files/digest-mambo-4.5.2.3 73
MD5 6c941a8ae21f670067d3ce092d91b9cc files/digest-mambo-4.5.2.3-r1 73
+MD5 6c941a8ae21f670067d3ce092d91b9cc files/digest-mambo-4.5.2.3 73
diff --git a/www-apps/mambo/files/digest-mambo-4.5.3 b/www-apps/mambo/files/digest-mambo-4.5.3
new file mode 100644
index 000000000000..22478bc6d740
--- /dev/null
+++ b/www-apps/mambo/files/digest-mambo-4.5.3
@@ -0,0 +1 @@
+MD5 6f4f934bc26ceed05137a23a1dcf8a54 mamboV4.5.3-Stable.tar.gz 1561319
diff --git a/www-apps/mambo/mambo-4.5.3.ebuild b/www-apps/mambo/mambo-4.5.3.ebuild
new file mode 100644
index 000000000000..66c42358229c
--- /dev/null
+++ b/www-apps/mambo/mambo-4.5.3.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mambo/mambo-4.5.3.ebuild,v 1.1 2005/11/30 21:52:32 rl03 Exp $
+
+inherit webapp
+
+MY_P="${PN/M/m}V${PV}-Stable"
+DESCRIPTION="Mambo is yet another CMS"
+HOMEPAGE="http://www.mamboserver.com/"
+SRC_URI="http://mamboforge.net/frs/download.php/4004/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+S=${WORKDIR}
+
+IUSE=""
+
+RDEPEND="dev-db/mysql
+ virtual/httpd-php
+ net-www/apache"
+DEPEND="app-arch/unzip"
+
+pkg_setup () {
+ webapp_pkg_setup
+ einfo "Please make sure that your PHP is compiled with XML and MySQL support"
+}
+
+src_install () {
+ webapp_src_preinst
+ local files="administrator/backups administrator/components components
+ images images/banners images/stories mambots mambots/content mambots/search
+ media language administrator/modules administrator/templates cache modules
+ templates"
+
+ dodoc CHANGELOG INSTALL
+
+ cp -R [^d]* ${D}/${MY_HTDOCSDIR}
+
+ for file in ${files}; do
+ webapp_serverowned "${MY_HTDOCSDIR}/${file}"
+ done
+
+ webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
+
+ webapp_src_install
+}
+
+pkg_postinst () {
+ einfo "Now run \"emerge --config =${PF}\""
+ einfo "to setup the database"
+ einfo "Note that db and dbuser need to be present prior to running db setup"
+ webapp_pkg_postinst
+}
+
+pkg_config() {
+ # default values for db stuff
+ D_DB="mambo"
+ D_HOST="localhost"
+ D_USER="mambo"
+
+ # do we want to start mysqld?
+ /etc/init.d/mysql restart || die "mysql needs to be running"
+
+ echo -n "mysql db name [${D_DB}]: "; read MY_DB
+ [[ -z ${MY_DB} ]] && MY_DB=${D_DB}
+
+ echo -n "mysql db host [${D_HOST}]: "; read MY_HOST
+ [[ -z ${MY_HOST} ]] && MY_HOST=${D_HOST}
+
+ echo -n "mysql dbuser name [${D_USER}]: "; read MY_USER
+ [[ -z ${MY_USER} ]] && MY_USER=${D_USER}
+
+ echo -n "mysql dbuser password: "; read mypwd
+ [[ -z ${mypwd} ]] && die "Error: no dbuser password"
+
+ # privileges
+ echo -n "Please enter login info for user who has grant privileges on ${MY_HOST} [$USER]: "; read adminuser
+ [[ -z ${adminuser} ]] && adminuser="$USER"
+ if [ "${MY_HOST}" != "localhost" ]; then
+ echo -n "Client address (at db side) [$(hostname -f)]: "; read clientaddr
+ [[ -z ${clientaddr} ]] && clientaddr="$(hostname -f)"
+ fi
+ # this will be default for localhost
+ [[ -z ${clientaddr} ]] && clientaddr="${MY_HOST}"
+
+ # if $MY_HOST == localhost, don't specify -h argument, so local socket can be used.
+ host=${MY_HOST/localhost}
+ mysqladmin -u ${adminuser} ${host:+-h ${host}} -p create ${MY_DB} || die "Error creating database"
+ mysql -u "${adminuser}" "${host:+-h ${host}}" -p \
+ -e "GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,DROP,REFERENCES
+ ON ${MY_DB}.* TO '${MY_USER}'@'${clientaddr}' IDENTIFIED BY '${mypwd}'; FLUSH PRIVILEGES;" || die "Error initializing database. Please grant permissions manually."
+}