diff options
author | Renat Lumpau <rl03@gentoo.org> | 2005-06-16 12:26:25 +0000 |
---|---|---|
committer | Renat Lumpau <rl03@gentoo.org> | 2005-06-16 12:26:25 +0000 |
commit | 9fad5432a6fa736dbb072bcbd226697da54f5a02 (patch) | |
tree | 86182f482d6aad2d3a28a326d88d7dbbeba624fa /www-apps | |
parent | Fix failed commit. (diff) | |
download | historical-9fad5432a6fa736dbb072bcbd226697da54f5a02.tar.gz historical-9fad5432a6fa736dbb072bcbd226697da54f5a02.tar.bz2 historical-9fad5432a6fa736dbb072bcbd226697da54f5a02.zip |
Version bump (bug #96183).
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/mambo/ChangeLog | 7 | ||||
-rw-r--r-- | www-apps/mambo/Manifest | 10 | ||||
-rw-r--r-- | www-apps/mambo/files/digest-mambo-4.5.2.3 | 1 | ||||
-rw-r--r-- | www-apps/mambo/mambo-4.5.2.3.ebuild | 97 |
4 files changed, 110 insertions, 5 deletions
diff --git a/www-apps/mambo/ChangeLog b/www-apps/mambo/ChangeLog index 992df21fbf6e..f6ecbf08c808 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.10 2005/06/02 14:08:20 ka0ttic Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/mambo/ChangeLog,v 1.11 2005/06/16 12:26:25 rl03 Exp $ + +*mambo-4.5.2.3 (16 Jun 2005) + + 16 Jun 2005; Renat Lumpau <rl03@gentoo.org> +mambo-4.5.2.3.ebuild: + Version bump (bug #96183). *mambo-4.5.2.2 (02 Jun 2005) diff --git a/www-apps/mambo/Manifest b/www-apps/mambo/Manifest index fc9448350d60..ddd97ab10a7d 100644 --- a/www-apps/mambo/Manifest +++ b/www-apps/mambo/Manifest @@ -1,8 +1,9 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +MD5 b21548f077a6a8dd1de97472ae9a961d mambo-4.5.2.3.ebuild 3256 MD5 83a6e99c63ba643be2c5b5f98bb8181a mambo-4.5.2.2.ebuild 3114 -MD5 d21f607e2b33d38870d54a268d030aff ChangeLog 1653 +MD5 0a64ffe37e5046dc3f927f0c2aca2a1d ChangeLog 1779 MD5 f61bfa064e3acdfcd826e4a38b121196 metadata.xml 161 MD5 f32bea6346fad2cf822c5dc9c0d3361c mambo-4.5.2.ebuild 3284 MD5 03c3dcfc36b02d76f2e87061288c5cf0 mambo-4.5-r1.ebuild 3361 @@ -10,10 +11,11 @@ MD5 a7900b11e87180055671791835ca401e files/digest-mambo-4.5.2 141 MD5 0fb377af9c13e19e1bc5ee9dd2933763 files/digest-mambo-4.5-r1 149 MD5 e061f7e080ca70cc58815179056d3313 files/postinstall-en.txt 925 MD5 6d92d92d8dfe981758dcc5e60b393584 files/digest-mambo-4.5.2.2 73 +MD5 6c941a8ae21f670067d3ce092d91b9cc files/digest-mambo-4.5.2.3 73 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) -iD8DBQFCnxLsEZCkKN40op4RAq2hAJ95Y7lyLlVUZvotxH4fAn2KLdzNLACffF4u -Pqd/ZL7dzy89vOI0xIv8tEA= -=ZxTe +iD8DBQFCsXAIEzitwsaoONoRAnU/AKCbabHq/CBWczQnLlFywvfwkj6WNwCdEQlk +mgevRufBufVnsXws5CAx/ro= +=G+29 -----END PGP SIGNATURE----- diff --git a/www-apps/mambo/files/digest-mambo-4.5.2.3 b/www-apps/mambo/files/digest-mambo-4.5.2.3 new file mode 100644 index 000000000000..2d9a21f68786 --- /dev/null +++ b/www-apps/mambo/files/digest-mambo-4.5.2.3 @@ -0,0 +1 @@ +MD5 6f4f934bc26ceed05137a23a1dcf8a54 mamboV4.5.2.3-Stable.tar.gz 1561319 diff --git a/www-apps/mambo/mambo-4.5.2.3.ebuild b/www-apps/mambo/mambo-4.5.2.3.ebuild new file mode 100644 index 000000000000..fb107ba6011c --- /dev/null +++ b/www-apps/mambo/mambo-4.5.2.3.ebuild @@ -0,0 +1,97 @@ +# 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.2.3.ebuild,v 1.1 2005/06/16 12:26:25 rl03 Exp $ + +inherit webapp eutils + +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/php-4.1 + net-www/apache" +DEPEND="app-arch/unzip" + +pkg_setup () { + webapp_pkg_setup + einfo "Please make sure that your PHP is compiled with zlib, 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 ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + 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 + if (test -z ${MY_DB}) ; then MY_DB=${D_DB} ; fi + + echo -n "mysql db host [${D_HOST}]: "; read MY_HOST + if (test -z ${MY_HOST}) ; then MY_HOST=${D_HOST}; fi + + echo -n "mysql dbuser name [${D_USER}]: "; read MY_USER + if (test -z ${MY_USER}) ; then MY_USER=${D_USER} ; fi + + echo -n "mysql dbuser password: "; read mypwd + if (test -z ${mypwd}) ; then die "Error: no dbuser password" ; fi + + # privileges + echo -n "Please enter login info for user who has grant privileges on ${MY_HOST} [$USER]: "; read adminuser + if (test -z ${adminuser}) ; then adminuser="$USER" ; fi + if [ "${MY_HOST}" != "localhost" ]; then + echo -n "Client address (at db side) [$(hostname -f)]: "; read clientaddr + if (test -z ${clientaddr}) ; then clientaddr="$(hostname -f)" ; fi + fi + # this will be default for localhost + if (test -z ${clientaddr}) ; then clientaddr="${MY_HOST}" ; fi + + # if $MY_HOST == localhost, don't specify -h argument, so local socket can be used. + host=${MY_HOST/localhost} + mysqladmin -u ${MY_USER} ${host:+-h ${host}} -p create ${MY_DB} || die "Error creating database" + mysql -u ${adminuser} ${host:+-h ${host}} -p mysql --exec="GRANT SELECT,INSERT,UPDATE,DELETE,INDEX, ALTER,CREATE,DROP,REFERENCES ON ${MY_DB}.* TO ${MY_USER}@${clientaddr} IDENTIFIED BY '${mypwd}'; FLUSH PRIVILEGES;" || { + echo "Error running query!" + echo + echo "Please run it manually on ${host}." + echo + echo " \$ mysql -u ${adminuser} -p mysql --exec=\"GRANT SELECT,INSERT,UPDATE,DELETE,INDEX, ALTER,CREATE,DROP,REFERENCES ON ${MY_DB}.* TO ${MY_USER}@${clientaddr} IDENTIFIED BY '${mypwd}'; FLUSH PRIVILEGES;\"" + echo + } +} |