From 90df540ee851ce99da0df71939aa8ced9d4812c3 Mon Sep 17 00:00:00 2001 From: Renat Lumpau Date: Fri, 8 Jul 2005 19:53:44 +0000 Subject: Adding latest RC Package-Manager: portage-2.0.51.22-r1 --- www-apps/bugzilla/ChangeLog | 11 +- www-apps/bugzilla/Manifest | 15 ++- www-apps/bugzilla/bugzilla-2.20_rc1.ebuild | 70 +++++++++++ www-apps/bugzilla/files/2.20_rc1/apache.htaccess | 3 + .../bugzilla/files/2.20_rc1/bugzilla.cron.daily | 5 + www-apps/bugzilla/files/2.20_rc1/bugzilla.cron.tab | 1 + .../pgsql-version-detect-broken-gentoo.patch | 11 ++ www-apps/bugzilla/files/2.20_rc1/reconfig | 139 +++++++++++++++++++++ www-apps/bugzilla/files/digest-bugzilla-2.20_rc1 | 1 + 9 files changed, 251 insertions(+), 5 deletions(-) create mode 100644 www-apps/bugzilla/bugzilla-2.20_rc1.ebuild create mode 100644 www-apps/bugzilla/files/2.20_rc1/apache.htaccess create mode 100644 www-apps/bugzilla/files/2.20_rc1/bugzilla.cron.daily create mode 100644 www-apps/bugzilla/files/2.20_rc1/bugzilla.cron.tab create mode 100644 www-apps/bugzilla/files/2.20_rc1/pgsql-version-detect-broken-gentoo.patch create mode 100644 www-apps/bugzilla/files/2.20_rc1/reconfig create mode 100644 www-apps/bugzilla/files/digest-bugzilla-2.20_rc1 (limited to 'www-apps') diff --git a/www-apps/bugzilla/ChangeLog b/www-apps/bugzilla/ChangeLog index b2c74b731a5c..11f669970897 100644 --- a/www-apps/bugzilla/ChangeLog +++ b/www-apps/bugzilla/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for www-apps/bugzilla # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/bugzilla/ChangeLog,v 1.27 2005/06/26 21:24:15 rl03 Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/bugzilla/ChangeLog,v 1.28 2005/07/08 19:53:44 rl03 Exp $ + +*bugzilla-2.20_rc1 (08 Jul 2005) + + 08 Jul 2005; Renat Lumpau + +files/2.20_rc1/apache.htaccess, +files/2.20_rc1/bugzilla.cron.daily, + +files/2.20_rc1/bugzilla.cron.tab, + +files/2.20_rc1/pgsql-version-detect-broken-gentoo.patch, + +files/2.20_rc1/reconfig, +bugzilla-2.20_rc1.ebuild: + Adding latest RC 26 Jun 2005; Renat Lumpau bugzilla-2.18.1.ebuild: Fixed location of reconfig script diff --git a/www-apps/bugzilla/Manifest b/www-apps/bugzilla/Manifest index 1d5400dea0a0..d0ea9b37836e 100644 --- a/www-apps/bugzilla/Manifest +++ b/www-apps/bugzilla/Manifest @@ -1,12 +1,14 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +MD5 9c970bd9a378bdcb13f2b595026f83db bugzilla-2.20_rc1.ebuild 1904 MD5 bd4baac1be5d5efd4fe4dbc1e4dddc51 bugzilla-2.18.1.ebuild 1856 MD5 e83882209c32f6592197405c0d7c9a06 bugzilla-2.18.1-r1.ebuild 1795 -MD5 a03e60bda8e60e577faacbc6ff157ac1 ChangeLog 6649 +MD5 b93919eee116d727db347f453fc4ff1a ChangeLog 6973 MD5 f61bfa064e3acdfcd826e4a38b121196 metadata.xml 161 MD5 0606a9da89d19a505c52818d14de61e3 files/cronset.sh 70 MD5 b38d67b03726b84833bd8c5f632e4020 files/bugzilla.cron.tab 54 +MD5 dbfa20dc9adfb7a85a47811b12d6d86e files/digest-bugzilla-2.20_rc1 69 MD5 4cfe13b7191883a74bd70a21e39db5db files/bz.cfg.templ 155 MD5 a001fc92584de0cd6f1a0d8de99ee6ce files/firstcheck.sh 48 MD5 4a9b1a263f16b2a53b44bce45350b373 files/bugzilla.conf 148 @@ -17,10 +19,15 @@ MD5 b38d67b03726b84833bd8c5f632e4020 files/2.18.1-r1/bugzilla.cron.tab 54 MD5 0be5a588dc7fdfc9e4898a855bd32361 files/2.18.1-r1/bugzilla.cron.daily 115 MD5 42151252d49e42c9839f80c80dff9138 files/2.18.1-r1/apache.htaccess 94 MD5 627268c5a2c707a3aaf69312c68a3c66 files/2.18.1-r1/reconfig 4264 +MD5 b38d67b03726b84833bd8c5f632e4020 files/2.20_rc1/bugzilla.cron.tab 54 +MD5 e102bd936853a6a1354a154c57af2ba5 files/2.20_rc1/pgsql-version-detect-broken-gentoo.patch 538 +MD5 0be5a588dc7fdfc9e4898a855bd32361 files/2.20_rc1/bugzilla.cron.daily 115 +MD5 42151252d49e42c9839f80c80dff9138 files/2.20_rc1/apache.htaccess 94 +MD5 7d9b3c0019bbcfd85f9398ecdc2eaa39 files/2.20_rc1/reconfig 5084 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) -iD8DBQFCvx0JEzitwsaoONoRAkKiAJ9LUllK45gGxQ9e5w1ZhiXEiqazYgCgs1+1 -Coasj0+iCV0tmErodWmufGw= -=nxzP +iD8DBQFCztniEzitwsaoONoRAgXGAJ442PBf8pMBfvk2RfmK8LtmJtqVOQCff1XP +4lS0qvAvZy+Qo4LXVETmKsI= +=Uoyj -----END PGP SIGNATURE----- diff --git a/www-apps/bugzilla/bugzilla-2.20_rc1.ebuild b/www-apps/bugzilla/bugzilla-2.20_rc1.ebuild new file mode 100644 index 000000000000..d327cb5ff3af --- /dev/null +++ b/www-apps/bugzilla/bugzilla-2.20_rc1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/bugzilla/bugzilla-2.20_rc1.ebuild,v 1.1 2005/07/08 19:53:44 rl03 Exp $ + +inherit webapp eutils + +MY_P=${PN}-${PV/_/} +S=${WORKDIR}/${MY_P} +DESCRIPTION="Bugzilla is the Bug-Tracking System from the Mozilla project" +SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/webtools/${MY_P}.tar.gz" +HOMEPAGE="http://www.bugzilla.org" + +LICENSE="MPL-1.1 NPL-1.1" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" + +IUSE="apache2 postgres graphviz" + +RDEPEND=" + >=dev-lang/perl-5.6.1 + postgres? ( >=dev-db/postgresql-7.3 >=dev-perl/DBD-Pg-1.31 ) + !postgres? ( >=dev-db/mysql-3.23.41 >=dev-perl/DBD-mysql-2.9003 ) + apache2? ( >=net-www/apache-2.0 ) + !apache2? ( =net-www/apache-1* ) + graphviz? ( media-gfx/graphviz ) + >=dev-perl/AppConfig-1.52 + >=perl-core/CGI-2.93 + >=dev-perl/TimeDate-1.16 + >=dev-perl/DBI-1.38 + >=perl-core/File-Spec-0.82 + perl-core/File-Temp + >=dev-perl/Template-Toolkit-2.08 + >=dev-perl/Text-Tabs+Wrap-2001.0131 + >=dev-perl/MailTools-1.67 + perl-core/Storable + >=dev-perl/GD-1.20 + >=dev-perl/Chart-2.3 + dev-perl/GDGraph + dev-perl/GDTextUtil + dev-perl/XML-Parser + >=dev-perl/PatchReader-0.9.4 + dev-perl/MIME-tools + dev-perl/perl-ldap + virtual/mta +" + +src_unpack() { + unpack ${A} + cd ${S} + # remove CVS directories + find . -type d -name 'CVS' -print | xargs rm -rf + epatch ${FILESDIR}/${PVR}/pgsql-version-detect-broken-gentoo.patch +} + +src_install () { + webapp_src_preinst + + cp -r ${S}/* ${D}/${MY_HTDOCSDIR} || die + for file in `find -type d -printf "%p/* "`; do + webapp_serverowned "${MY_HTDOCSDIR}/${file}" + done + + cp ${FILESDIR}/${PV}/apache.htaccess ${D}/${MY_HTDOCSDIR}/.htaccess + + local FILE="bugzilla.cron.daily bugzilla.cron.tab" + cd ${FILESDIR}/${PV} + cp ${FILE} ${D}/${MY_HTDOCSDIR} + + webapp_hook_script ${FILESDIR}/${PV}/reconfig + webapp_src_install +} diff --git a/www-apps/bugzilla/files/2.20_rc1/apache.htaccess b/www-apps/bugzilla/files/2.20_rc1/apache.htaccess new file mode 100644 index 000000000000..eb747223ccec --- /dev/null +++ b/www-apps/bugzilla/files/2.20_rc1/apache.htaccess @@ -0,0 +1,3 @@ +AddHandler cgi-script .cgi +Options +Indexes +ExecCGI +FollowSymLinks +DirectoryIndex index.cgi diff --git a/www-apps/bugzilla/files/2.20_rc1/bugzilla.cron.daily b/www-apps/bugzilla/files/2.20_rc1/bugzilla.cron.daily new file mode 100644 index 000000000000..e3e86589891d --- /dev/null +++ b/www-apps/bugzilla/files/2.20_rc1/bugzilla.cron.daily @@ -0,0 +1,5 @@ +#!/bin/sh +cd /var/www/bugzilla/ +./collectstats.pl +./whineatnews.pl +echo "*** Bugzilla nighlty flush has done! ***" diff --git a/www-apps/bugzilla/files/2.20_rc1/bugzilla.cron.tab b/www-apps/bugzilla/files/2.20_rc1/bugzilla.cron.tab new file mode 100644 index 000000000000..0ac2ef6d65a6 --- /dev/null +++ b/www-apps/bugzilla/files/2.20_rc1/bugzilla.cron.tab @@ -0,0 +1 @@ +0 0 * * * /var/www/bugzilla/bugzilla.cron.daily diff --git a/www-apps/bugzilla/files/2.20_rc1/pgsql-version-detect-broken-gentoo.patch b/www-apps/bugzilla/files/2.20_rc1/pgsql-version-detect-broken-gentoo.patch new file mode 100644 index 000000000000..f27b82eaed1c --- /dev/null +++ b/www-apps/bugzilla/files/2.20_rc1/pgsql-version-detect-broken-gentoo.patch @@ -0,0 +1,11 @@ +--- checksetup.pl 2005-07-08 01:35:20.000000000 -0400 ++++ checksetup.pl.fixed 2005-07-08 15:23:30.000000000 -0400 +@@ -1495,7 +1495,7 @@ + if ( vers_cmp($sql_vers,$sql_want) > -1 ) { + print "ok: found v$sql_vers\n" unless $silent; + } else { +- die "\nYour $sql_server v$sql_vers is too old.\n" . ++ print "\nYour $sql_server v$sql_vers is too old.\n" . + " Bugzilla requires version $sql_want or later of $sql_server.\n" . + " Please download and install a newer version.\n"; + } diff --git a/www-apps/bugzilla/files/2.20_rc1/reconfig b/www-apps/bugzilla/files/2.20_rc1/reconfig new file mode 100644 index 000000000000..407a434f4ee9 --- /dev/null +++ b/www-apps/bugzilla/files/2.20_rc1/reconfig @@ -0,0 +1,139 @@ +#!/bin/bash + +FILE="bugzilla.cron.daily bugzilla.cron.tab" + +function die () +{ + echo + echo "***" + echo "*** Fatal error: $*" + echo "***" + exit 1 +} + +if [ $1 = "install" ]; then + + cd "${MY_INSTALLDIR}" || die "Cannot find install dir ${MY_INSTALLDIR}" + + sed -e "s|/var/www/bugzilla|${MY_INSTALLDIR}|g;" -i ${FILE} + + [[ -a localconfig ]] && die "The following does not work on previous installations, please run checksetup.pl in ${MY_INSTALLDIR}" + + echo + echo "Finalizing the installation of bugzilla in ${MY_INSTALLDIR}" + echo + + # config setting + echo "Details for the bugzilla database" + echo "(This scripts creates the database & user)" + echo + + echo "If you want to use Postgres, please enter numeric IP" + echo "or the config script will hang" + echo -n "bugs db host [127.0.0.1]: "; read mybugshost + [[ -z "${mybugshost}" ]] && mybugshost="127.0.0.1" + + echo -n "bugs db driver (mysql or pg) [mysql]: "; read mydriver + [[ -z "${mydriver}" ]] && mydriver="mysql" + + if [[ ${mydriver} == "mysql" ]]; then + port="3306" + granter="root" + elif [[ ${mydriver} == "pg" ]]; then + port="5432" + granter="postgres" + else + die "Wrong db driver" + fi + + echo -n "bugs db port [${port}]: "; read mybugsport + [[ -z "${mybugsport}" ]] && mybugsport="${port}" + + echo -n "bugs db name [bugs]: "; read mybugsdb + [[ -z "${mybugsdb}" ]] && mybugsdb="bugs" + + echo -n "bugs dbuser name [bugs]: "; read mybugsuser + [[ -z "${mybugsuser}" ]] && mybugsuser="bugs" + + echo -n "bugs dbuser password: "; read mybugspwd + [[ -z "${mybugspwd}" ]] && die "Error: no dbuser password" + pw=${mybugspwd//\'/\\\'} + + echo -n "your SMTP server [localhost]: "; read mysmtp + [[ -z "${mysmtp}" ]] && mysmtp="localhost" + + # let's create a config file for checksetup.pl + echo "\$answer{'db_host'} = q[" > bz.cfg.pl + echo "\$db_host = '${mybugshost}';" >> bz.cfg.pl + echo "\$db_driver = '${mydriver}';" >> bz.cfg.pl + echo "\$db_port = ${mybugsport};" >> bz.cfg.pl + echo "\$db_name = '${mybugsdb}';" >> bz.cfg.pl + echo "\$db_user = '${mybugsuser}';" >> bz.cfg.pl + echo "];" >> bz.cfg.pl + echo "\$answer{'db_pass'} = q[\$db_pass = '${mybugspwd}';];" >> bz.cfg.pl + echo "\$answer{'SMTP_SERVER'} = q['${mysmtp}';];" >> bz.cfg.pl + if [[ ${mydriver} == "mysql" ]]; then + echo "\$answer{'db_sock'} = q[\$db_sock = '/var/run/mysqld/mysqld.sock';];" >> bz.cfg.pl + elif [[ ${mydriver} == "pg" ]]; then + echo "\$answer{'db_sock'} = q[\$db_sock = '/tmp/.s.PGSQL.${mybugsport}';];" >> bz.cfg.pl + else + die "Wrong db driver" + fi + + # privileges + echo "Setting correct privileges for bugzilla connection" + echo -n "Please enter login info for user who has grant privileges on ${mybugshost} [${granter}]: "; read adminuser + [[ -z ${adminuser} ]] && adminuser="${granter}" + if [ "${mybugshost}" != "127.0.0.1" ]; then + echo -n "Client address for bugzilla (at db side) [$(hostname -f)]: "; read clientaddr + [[ -z ${clientaddr} ]] && clientaddr="$(hostname -f)" + fi + # this will be default for localhost + [[ -z ${clientaddr} ]] && clientaddr="${mybugshost}" + + if [[ ${mydriver} == "mysql" ]]; then + + # check the installed mysql version + type -p mysql &>/dev/null || die "mysql program not found ! Check your PATH (or did you emerge with --nodeps ?)" + mysql_version="`mysql -V | cut -d' ' -f6 | sed -e 's:,$::'`" + [[ -z ${mysql_version} ]] && die "mysql version check failed (got '${mysql_version}')" + extra_bugzie_privs="" + (( ${mysql_version:0:1} < 4 )) && extra_bugzie_privs=",LOCK TABLES,CREATE TEMPORARY TABLES" + + # if $bugshost == localhost, don't specify -h argument, so local socket can be used. + host=${mybugshost/"127.0.0.1"} + /etc/init.d/mysql restart || die "Could not (re)start mysql!" + mysql -u "${adminuser}" "${host:+-h ${host}}" -p \ + -P "${mybugsport}" \ + -e "GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,DROP,REFERENCES${extra_bugzie_privs} ON ${mybugsdb}.* TO '${mybugsuser}'@'${clientaddr}' IDENTIFIED BY '${pw}'; FLUSH PRIVILEGES;" \ + || die "Error initializing database. Please grant permissions manually. See http://www.bugzilla.org/docs/tip/html/configuration.html." + + elif [[ ${mydriver} == "pg" ]]; then + # if $bugshost == localhost, don't specify -h argument, so local socket can be used. + host=${mybugshost/"127.0.0.1"} + /etc/init.d/postgresql restart || die "Could not (re)start postgresql!" + createdb -U "${adminuser}" ${host:+-h ${host}} -W \ + -p "${mybugsport}" -O "${mybugsuser}" "${mybugsdb}" \ + || die "Error initializing database. Please grant permissions manually. See http://www.bugzilla.org/docs/tip/html/configuration.html." + + else + die "Wrong db driver" + fi + + echo "Setting the template for localconfig variables" + cd ${MY_INSTALLDIR} || die + chmod 755 ./checksetup.pl + ./checksetup.pl bz.cfg.pl || exit 1 + + echo "Final step: setting all html templates and db tables" + ./checksetup.pl || exit 1 + + echo -n "Do you want to set a crontab [y/N]" ; read cronyes + if [ "${cronyes}+" = "y+" ] ; then + /usr/bin/crontab -u apache ${MY_INSTALLDIR}/bugzilla.cron.tab + fi + +else + [[ -z "${MY_INSTALLDIR}" ]] && die "${MY_INSTALLDIR} not found!" + rm -f "${FILES}" bz.cfg.pl +fi diff --git a/www-apps/bugzilla/files/digest-bugzilla-2.20_rc1 b/www-apps/bugzilla/files/digest-bugzilla-2.20_rc1 new file mode 100644 index 000000000000..f8ab04bbb1d6 --- /dev/null +++ b/www-apps/bugzilla/files/digest-bugzilla-2.20_rc1 @@ -0,0 +1 @@ +MD5 a539b1151f376bd9e777835ef9a82652 bugzilla-2.20rc1.tar.gz 1902600 -- cgit v1.2.3-65-gdbad