diff options
author | 2005-11-30 09:38:30 +0000 | |
---|---|---|
committer | 2005-11-30 09:38:30 +0000 | |
commit | 67c8b060271109f68d8b0a44de61d297ddfbe2e7 (patch) | |
tree | 42ce8164da9dd6d55caa82dfe6832b4a2a0a6ad5 /www-apps/bugzilla | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-67c8b060271109f68d8b0a44de61d297ddfbe2e7.tar.gz gentoo-2-67c8b060271109f68d8b0a44de61d297ddfbe2e7.tar.bz2 gentoo-2-67c8b060271109f68d8b0a44de61d297ddfbe2e7.zip |
Diffstat (limited to 'www-apps/bugzilla')
-rw-r--r-- | www-apps/bugzilla/ChangeLog | 219 | ||||
-rw-r--r-- | www-apps/bugzilla/Manifest | 36 | ||||
-rw-r--r-- | www-apps/bugzilla/bugzilla-2.18.4.ebuild | 8 | ||||
-rw-r--r-- | www-apps/bugzilla/bugzilla-2.20.ebuild | 6 | ||||
-rw-r--r-- | www-apps/bugzilla/files/2.18/reconfig | 83 | ||||
-rw-r--r-- | www-apps/bugzilla/files/2.20/postinstall-en.txt | 7 | ||||
-rw-r--r-- | www-apps/bugzilla/files/2.20/reconfig | 123 |
7 files changed, 223 insertions, 259 deletions
diff --git a/www-apps/bugzilla/ChangeLog b/www-apps/bugzilla/ChangeLog index 0745fba4c9ea..db60b311b18f 100644 --- a/www-apps/bugzilla/ChangeLog +++ b/www-apps/bugzilla/ChangeLog @@ -1,219 +1,6 @@ -# 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.46 2005/11/09 18:42:01 rl03 Exp $ - - 09 Nov 2005; Renat Lumpau <rl03@gentoo.org> bugzilla-2.18.4.ebuild, - bugzilla-2.20.ebuild: - Fixed DBD-mysql dependency wrt bug #111922. - - 08 Oct 2005; Renat Lumpau <rl03@gentoo.org> -bugzilla-2.18.3.ebuild: - Removing vulnerable version - - 07 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org> - bugzilla-2.18.4.ebuild: - Stable on sparc wrt #107796 - - 07 Oct 2005; Simon Stelling <blubb@gentoo.org> bugzilla-2.18.4.ebuild: - stable on amd64 wrt bug 107796 - - 06 Oct 2005; Aron Griffis <agriffis@gentoo.org> bugzilla-2.18.4.ebuild, - bugzilla-2.20.ebuild: - Mark 2.20 2.18.4 ~alpha/~ia64 #108234 - - 05 Oct 2005; Chris Gianelloni <wolf31o2@gentoo.org> - bugzilla-2.18.4.ebuild: - Marking stable on x86 due to bug #107796. - - 03 Oct 2005; Renat Lumpau <rl03@gentoo.org> - +files/2.18/postinstall-en.txt, files/2.18/reconfig, - files/2.20/postinstall-en.txt, files/2.20/reconfig, - bugzilla-2.18.4.ebuild: - Reconfig hook is no longer interactive, per bug #107918. - - 02 Oct 2005; Markus Rothe <corsair@gentoo.org> bugzilla-2.18.4.ebuild: - Stable on ppc64 (bug #107796) - - 02 Oct 2005; Michael Hanselmann <hansmi@gentoo.org> - bugzilla-2.18.4.ebuild: - Stable on ppc. See bug #107796. - -*bugzilla-2.20 (01 Oct 2005) -*bugzilla-2.18.4 (01 Oct 2005) - - 01 Oct 2005; Renat Lumpau <rl03@gentoo.org> - -files/2.18.1-r1/apache.htaccess, -files/2.18.1-r1/reconfig, - -files/2.18.1-r1/bugzilla.cron.daily, +files/2.20/apache.htaccess, - -files/2.18.1-r1/bugzilla.cron.tab, +files/2.20/bugzilla.cron.daily, - +files/2.18/bugzilla.cron.daily, +files/2.20/bugzilla.cron.tab, - +files/2.18/apache.htaccess, +files/2.18/bugzilla.cron.tab, - +files/2.18/reconfig, +files/2.20/postinstall-en.txt, - +files/2.20/reconfig, -files/2.20_rc1/apache.htaccess, - -files/2.20_rc1/bugzilla.cron.daily, -files/2.20_rc1/bugzilla.cron.tab, - -files/2.20_rc1/reconfig, bugzilla-2.18.3.ebuild, +bugzilla-2.18.4.ebuild, - -bugzilla-2.20_rc1.ebuild, -bugzilla-2.20_rc2.ebuild, - +bugzilla-2.20.ebuild: - Version bumps wrt security bug #107796. - -*bugzilla-2.20_rc2 (08 Aug 2005) - - 08 Aug 2005; Renat Lumpau <rl03@gentoo.org> +bugzilla-2.20_rc2.ebuild: - Added 2.20_rc2 - - 11 Jul 2005; Renat Lumpau <rl03@gentoo.org> -files/bugzilla.conf, - -files/bugzilla.cron.daily, -files/bugzilla.cron.tab, -files/bz.cfg.templ, - -files/firstcheck.sh, -bugzilla-2.18.1.ebuild, -bugzilla-2.18.1-r1.ebuild: - Cleaning house - - 11 Jul 2005; Markus Rothe <corsair@gentoo.org> bugzilla-2.18.3.ebuild: - Stable on ppc64 (bug #98348) - - 11 Jul 2005; Simon Stelling <blubb@gentoo.org> bugzilla-2.18.3.ebuild: - stable on amd64 wrt bug 98348 - - 10 Jul 2005; Jory A. Pratt <anarchy@gentoo.org> bugzilla-2.18.3.ebuild: - Stable on SPARC wrt security bug #98348 - - 10 Jul 2005; Jason Wever <weeve@gentoo.org> bugzilla-2.18.3.ebuild: - Stable on SPARC wrt security bug #98348. - -*bugzilla-2.18.3 (10 Jul 2005) - - 10 Jul 2005; Renat Lumpau <rl03@gentoo.org> files/2.18.1-r1/reconfig, - +bugzilla-2.18.3.ebuild: - Version bump wrt security #98348. - - 09 Jul 2005; Renat Lumpau <rl03@gentoo.org> - -files/2.20_rc1/pgsql-version-detect-broken-gentoo.patch, - bugzilla-2.20_rc1.ebuild: - Update DBD:Pg dependency - -*bugzilla-2.20_rc1 (08 Jul 2005) - - 08 Jul 2005; Renat Lumpau <rl03@gentoo.org> - +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 <rl03@gentoo.org> bugzilla-2.18.1.ebuild: - Fixed location of reconfig script - -*bugzilla-2.18.1-r1 (26 Jun 2005) - - 26 Jun 2005; Renat Lumpau <rl03@gentoo.org> - +files/2.18.1-r1/apache.htaccess, +files/2.18.1-r1/bugzilla.cron.daily, - +files/2.18.1-r1/bugzilla.cron.tab, +files/2.18.1-r1/reconfig, - +bugzilla-2.18.1-r1.ebuild: - Fixed reconfig script. Closes #80996 and #96072 - - 26 Jun 2005; Renat Lumpau <rl03@gentoo.org> : - Cleaning house. - - 26 Jun 2005; Renat Lumpau <rl03@gentoo.org> -files/CAN-2004-1061.patch, - -files/2.18.0_rc1/apache.htaccess, -files/2.18.0_rc1/reconfig, - -files/2.18.0_rc2/apache.htaccess, -files/2.18.0_rc2/reconfig, - -files/2.18.0_rc3/apache.htaccess, -files/2.18.0_rc3/reconfig, - -files/2.18.0_rc4/apache.htaccess, -files/2.18.0_rc4/reconfig, - files/bz.cfg.templ, -bugzilla-2.18.0_rc1.ebuild, - -bugzilla-2.18.0_rc2.ebuild, -bugzilla-2.18.0_rc3.ebuild, - -bugzilla-2.18.0_rc4.ebuild: - Removing obsolete versions. - - 12 Jun 2005; Jason Wever <weeve@gentoo.org> bugzilla-2.18.1.ebuild: - Stable on SPARC. - - 25 May 2005; Michael Cummings <mcummings@gentoo.org> bugzilla-2.18.1.ebuild: - dev-perl/File-Spec => perl-core/File-Spec migration - - 25 May 2005; Michael Cummings <mcummings@gentoo.org> - bugzilla-2.18.0_rc4.ebuild: - dev-perl/File-Spec => perl-core/File-Spec migration - - 25 May 2005; Michael Cummings <mcummings@gentoo.org> - bugzilla-2.18.0_rc3.ebuild: - dev-perl/File-Spec => perl-core/File-Spec migration - - 25 May 2005; Michael Cummings <mcummings@gentoo.org> - bugzilla-2.18.0_rc2.ebuild: - dev-perl/File-Spec => perl-core/File-Spec migration - - 25 May 2005; Michael Cummings <mcummings@gentoo.org> - bugzilla-2.18.0_rc1.ebuild: - dev-perl/File-Spec => perl-core/File-Spec migration - - 24 May 2005; Michael Cummings <mcummings@gentoo.org> - bugzilla-2.18.0_rc1.ebuild, bugzilla-2.18.0_rc2.ebuild, - bugzilla-2.18.0_rc3.ebuild, bugzilla-2.18.0_rc4.ebuild, - bugzilla-2.18.1.ebuild: - dev-perl/CGI => perl-core/CGI - - 18 May 2005; Markus Rothe <corsair@gentoo.org> bugzilla-2.18.1.ebuild: - Stable on ppc64 - - 13 May 2005; Michael Hanselmann <hansmi@gentoo.org> - bugzilla-2.18.1.ebuild: - Stable on ppc. - -*bugzilla-2.18.1 (13 May 2005) - - 13 May 2005; Aaron Walker <ka0ttic@gentoo.org> +bugzilla-2.18.1.ebuild: - Version bump for security bug 92376. - - 12 Apr 2005; Konstantin Arkhipov <voxus@gentoo.org> - bugzilla-2.18.0_rc4.ebuild: - Added ~amd64. - - 29 Mar 2005; Michael Cummings <mcummings@gentoo.org> - bugzilla-2.18.0_rc1.ebuild, bugzilla-2.18.0_rc2.ebuild, - bugzilla-2.18.0_rc3.ebuild, bugzilla-2.18.0_rc4.ebuild: - Removing dep on dev-perl/Data-Dumper - this ebuild is superceded by the core - perl install. Bug 80440. - - 09 Mar 2005; Markus Rothe <corsair@gentoo.org> bugzilla-2.18.0_rc4.ebuild: - Added ~ppc64 to KEYWORDS - - 21 Jan 2005; Luca Barbato <lu_zero@gentoo.org> bugzilla-2.18.0_rc4.ebuild: - Marked ppc - -*bugzilla-2.18.0_rc4 (19 Jan 2005) - - 19 Jan 2005; Stuart Herbert <stuart@gentoo.org> - +files/2.18.0_rc4/apache.htaccess, +files/2.18.0_rc4/reconfig, - +bugzilla-2.18.0_rc4.ebuild: - Added patch for CAN-2004-1061; see bug #76631 - - 29 Oct 2004; <SeJo@gentoo.org> bugzilla-2.18.0_rc3.ebuild: - stable on ppc gsla: 68851 - -*bugzilla-2.18.0_rc3 (27 Oct 2004) - - 27 Oct 2004; Renat Lumpau <rl03@gentoo.org> +bugzilla-2.18.0_rc3.ebuild: - Version bump. Security bug #68851. - - 05 Sep 2004; Sven Wegener <swegener@gentoo.org> : - Fixed ChangeLog header. - - 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> - bugzilla-2.18.0_rc1.ebuild, bugzilla-2.18.0_rc2.ebuild: - Masked bugzilla-2.18.0_rc2.ebuild stable for ppc - - 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> - bugzilla-2.18.0_rc1.ebuild: - Masked bugzilla-2.18.0_rc1.ebuild stable for ppc - - 30 Aug 2004; Renat Lumpau <rl03@gentoo.org> : - Recommitting Manifest - - 30 Aug 2004; Renat Lumpau <rl03@gentoo.org> bugzilla-2.18.0_rc1.ebuild, - bugzilla-2.18.0_rc2.ebuild: - Fixed DEPEND/RDEPEND - -*bugzilla-2.18.0_rc2 (17 Aug 2004) - - 17 Aug 2004; Renat Lumpau <rl03@gentoo.org> +files/2.18.0_rc2/apache.htaccess, - +files/2.18.0_rc2/reconfig, +bugzilla-2.18.0_rc2.ebuild: - Version bump (bug 59165). Cleaned up dependancies. +# ChangeLog for net-www/bugzilla +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/bugzilla/ChangeLog,v 1.1 2004/08/15 09:44:27 stuart Exp $ *bugzilla-2.18.0_rc1 (15 Aug 2004) diff --git a/www-apps/bugzilla/Manifest b/www-apps/bugzilla/Manifest index ec879855c69c..a30b4e09816d 100644 --- a/www-apps/bugzilla/Manifest +++ b/www-apps/bugzilla/Manifest @@ -1,26 +1,12 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 438eb678506682782baeb279889d55da bugzilla-2.18.4.ebuild 1825 -MD5 47aa0157107e020c3ad3537ae57d016d bugzilla-2.20.ebuild 1857 -MD5 0d20b25ade49a4a82dba50986cc13f81 ChangeLog 10123 +MD5 ddf46c4706a664e877c51705a6519312 ChangeLog 2062 MD5 f61bfa064e3acdfcd826e4a38b121196 metadata.xml 161 -MD5 24f132ccd4b11bb49c26326fd0584f4c files/digest-bugzilla-2.20 66 -MD5 4a34a6ec468afb645b29aaddedeef49a files/digest-bugzilla-2.18.4 68 -MD5 b38d67b03726b84833bd8c5f632e4020 files/2.18/bugzilla.cron.tab 54 -MD5 06e21bd2fe59b4517ed05fb46c1bff9e files/2.18/postinstall-en.txt 148 -MD5 0be5a588dc7fdfc9e4898a855bd32361 files/2.18/bugzilla.cron.daily 115 -MD5 42151252d49e42c9839f80c80dff9138 files/2.18/apache.htaccess 94 -MD5 c1913bf27d5ee8cd7f4f88de0b88312a files/2.18/reconfig 348 -MD5 b38d67b03726b84833bd8c5f632e4020 files/2.20/bugzilla.cron.tab 54 -MD5 7b5e1b8ee2d4e49224f15287c5070b57 files/2.20/postinstall-en.txt 278 -MD5 0be5a588dc7fdfc9e4898a855bd32361 files/2.20/bugzilla.cron.daily 115 -MD5 42151252d49e42c9839f80c80dff9138 files/2.20/apache.htaccess 94 -MD5 899c42853fbf73268c49d3602eae77d2 files/2.20/reconfig 349 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1 (GNU/Linux) - -iD8DBQFDckMPEzitwsaoONoRAguKAKCA1iztEoC3uR/K6Z/hv29A7ykhMQCgoC6J -vaqR6HWlnBADdmrPtrI/MeA= -=ojUw ------END PGP SIGNATURE----- +MD5 97f885e96e9c482584e546e539d11609 bugzilla-2.18.0_rc1.ebuild 1777 +MD5 4a9b1a263f16b2a53b44bce45350b373 files/bugzilla.conf 148 +MD5 0be5a588dc7fdfc9e4898a855bd32361 files/bugzilla.cron.daily 115 +MD5 b38d67b03726b84833bd8c5f632e4020 files/bugzilla.cron.tab 54 +MD5 b243138916c1a9e7390fa352aa184a81 files/bz.cfg.templ 273 +MD5 0606a9da89d19a505c52818d14de61e3 files/cronset.sh 70 +MD5 8d37835f4224135a849a73ab8b6b893a files/digest-bugzilla-2.18.0_rc1 69 +MD5 a001fc92584de0cd6f1a0d8de99ee6ce files/firstcheck.sh 48 +MD5 32cb42777a779ac279c5384643970729 files/2.18.0_rc1/apache.htaccess 70 +MD5 2b4f3ae5bc1d383a4951a22cf65b28ae files/2.18.0_rc1/reconfig 3214 diff --git a/www-apps/bugzilla/bugzilla-2.18.4.ebuild b/www-apps/bugzilla/bugzilla-2.18.4.ebuild index fce2e4850185..01d358cdbefe 100644 --- a/www-apps/bugzilla/bugzilla-2.18.4.ebuild +++ b/www-apps/bugzilla/bugzilla-2.18.4.ebuild @@ -1,6 +1,6 @@ # 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.18.4.ebuild,v 1.9 2005/11/09 18:42:01 rl03 Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/bugzilla/bugzilla-2.18.4.ebuild,v 1.1 2005/10/01 16:00:59 rl03 Exp $ inherit webapp @@ -9,7 +9,7 @@ SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/webtools/${P}.tar.gz" HOMEPAGE="http://www.bugzilla.org" LICENSE="MPL-1.1 NPL-1.1" -KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 sparc x86" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" IUSE="apache2" @@ -22,7 +22,7 @@ RDEPEND=">=dev-db/mysql-3.23.41 >=perl-core/CGI-2.93 >=dev-perl/TimeDate-1.16 >=dev-perl/DBI-1.36 - <dev-perl/DBD-mysql-3.0000 + >=dev-perl/DBD-mysql-2.1010 >=perl-core/File-Spec-0.8.2 >=dev-perl/Template-Toolkit-2.08 >=dev-perl/Text-Tabs+Wrap-2001.0131 @@ -59,8 +59,8 @@ src_install () { cd ${FILESDIR}/2.18 cp ${FILE} ${D}/${MY_HTDOCSDIR} + # add the reconfigure hook webapp_hook_script ${FILESDIR}/2.18/reconfig - webapp_postinst_txt en ${FILESDIR}/2.18/postinstall-en.txt webapp_src_install } diff --git a/www-apps/bugzilla/bugzilla-2.20.ebuild b/www-apps/bugzilla/bugzilla-2.20.ebuild index 750291561a60..0b09f8ce1830 100644 --- a/www-apps/bugzilla/bugzilla-2.20.ebuild +++ b/www-apps/bugzilla/bugzilla-2.20.ebuild @@ -1,6 +1,6 @@ # 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.ebuild,v 1.3 2005/11/09 18:42:01 rl03 Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/bugzilla/bugzilla-2.20.ebuild,v 1.1 2005/10/01 16:00:59 rl03 Exp $ inherit webapp eutils @@ -9,14 +9,14 @@ SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/webtools/${P}.tar.gz" HOMEPAGE="http://www.bugzilla.org" LICENSE="MPL-1.1 NPL-1.1" -KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +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.43 ) - !postgres? ( >=dev-db/mysql-3.23.41 <dev-perl/DBD-mysql-3.0000 ) + !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 ) diff --git a/www-apps/bugzilla/files/2.18/reconfig b/www-apps/bugzilla/files/2.18/reconfig index 9d2c893b1711..f62bfe278642 100644 --- a/www-apps/bugzilla/files/2.18/reconfig +++ b/www-apps/bugzilla/files/2.18/reconfig @@ -2,7 +2,7 @@ FILE="bugzilla.cron.daily bugzilla.cron.tab" -function die () +function die () { echo echo "***" @@ -12,8 +12,85 @@ function die () } 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} || die "sed failed" + + 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 -n "mysql bugs db host [localhost]: "; read mybugshost + [[ -z "${mybugshost}" ]] && mybugshost="localhost" + + echo -n "mysql bugs db port [3306]: "; read mybugsport + [[ -z "${mybugsport}" ]] && mybugsport="3306" + + echo -n "mysql bugs db name [bugs]: "; read mybugsdb + [[ -z "${mybugsdb}" ]] && mybugsdb="bugs" + + echo -n "mysql bugs dbuser name [bugs]: "; read mybugsuser + [[ -z "${mybugsuser}" ]] && mybugsuser="bugs" + + echo -n "mysql bugs dbuser password: "; read mybugspwd + [[ -z "${mybugspwd}" ]] && die "Error: no dbuser password" + pw=${mybugspwd//\'/\\\'} + + # let's create a config file for checksetup.pl + echo "\$answer{'db_host'} = '\$db_host = \"${mybugshost}\";" > 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 "\$answer{'db_pass'} = q[\$db_pass = '${mybugspwd}';];" >> bz.cfg.pl + echo "\$answer{'db_sock'} = q[\$db_sock = '/var/run/mysqld/mysqld.sock';];" >> bz.cfg.pl + + # privileges + echo "Setting correct privileges for bugzilla mysql connection" + echo -n "Please enter login info for user who has grant privileges on ${mybugshost} [${USER}]: "; read adminuser + [[ -z ${adminuser} ]] && adminuser="${USER}" + if [ "${mybugshost}" != "localhost" ]; 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}" + + # 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/localhost} + /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/2.18/html/configuration.html." + + echo "Setting the template for localconfig variables" + 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 - echo "done" + [[ -z "${MY_INSTALLDIR}" ]] && die "${MY_INSTALLDIR} not found!" + rm -f "${FILES}" bz.cfg.pl fi diff --git a/www-apps/bugzilla/files/2.20/postinstall-en.txt b/www-apps/bugzilla/files/2.20/postinstall-en.txt index 8dabca5e6590..ba8abb222a26 100644 --- a/www-apps/bugzilla/files/2.20/postinstall-en.txt +++ b/www-apps/bugzilla/files/2.20/postinstall-en.txt @@ -1,7 +1,2 @@ -Bugzilla has been installed into ${MY_INSTALLDIR} - -To finish the installation, please read - http://www.bugzilla.org/docs/2.20/html/installation.html - -Also, please read the Release Notes, especially if you are upgrading: +Please read the Release Notes, especially if you are upgrading: http://www.bugzilla.org/releases/2.20/release-notes.html diff --git a/www-apps/bugzilla/files/2.20/reconfig b/www-apps/bugzilla/files/2.20/reconfig index 71b0acea2585..4d24f23d0adf 100644 --- a/www-apps/bugzilla/files/2.20/reconfig +++ b/www-apps/bugzilla/files/2.20/reconfig @@ -2,7 +2,7 @@ FILE="bugzilla.cron.daily bugzilla.cron.tab" -function die () +function die () { echo echo "***" @@ -12,8 +12,127 @@ function die () } 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} || die "sed failed" + + 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 echo "done." fi |