From 802fb794ae417ee26d1f3488df1ba31ac31b0af0 Mon Sep 17 00:00:00 2001 From: Craig Inches Date: Sat, 2 Jan 2016 13:24:27 +0800 Subject: www-apps/bugzilla: Version bumps 5.0.2, and 4.4.11 Clean up files dir and ebuilds to reflect Update copyright Package-Manager: portage-2.2.24 --- www-apps/bugzilla/files/4.0/bugzilla-queue.confd | 4 --- www-apps/bugzilla/files/4.0/bugzilla-queue.initd | 39 ------------------------ www-apps/bugzilla/files/4.0/bugzilla.cron.daily | 5 --- www-apps/bugzilla/files/4.0/bugzilla.cron.tab | 1 - www-apps/bugzilla/files/4.0/postinstall-en.txt | 13 -------- www-apps/bugzilla/files/4.0/reconfig | 19 ------------ www-apps/bugzilla/files/bugzilla-queue.confd | 4 +++ www-apps/bugzilla/files/bugzilla-queue.initd | 39 ++++++++++++++++++++++++ www-apps/bugzilla/files/bugzilla.cron.daily | 5 +++ www-apps/bugzilla/files/bugzilla.cron.tab | 1 + www-apps/bugzilla/files/postinstall-en.txt | 13 ++++++++ www-apps/bugzilla/files/reconfig | 19 ++++++++++++ 12 files changed, 81 insertions(+), 81 deletions(-) delete mode 100644 www-apps/bugzilla/files/4.0/bugzilla-queue.confd delete mode 100644 www-apps/bugzilla/files/4.0/bugzilla-queue.initd delete mode 100644 www-apps/bugzilla/files/4.0/bugzilla.cron.daily delete mode 100644 www-apps/bugzilla/files/4.0/bugzilla.cron.tab delete mode 100644 www-apps/bugzilla/files/4.0/postinstall-en.txt delete mode 100644 www-apps/bugzilla/files/4.0/reconfig create mode 100644 www-apps/bugzilla/files/bugzilla-queue.confd create mode 100644 www-apps/bugzilla/files/bugzilla-queue.initd create mode 100644 www-apps/bugzilla/files/bugzilla.cron.daily create mode 100644 www-apps/bugzilla/files/bugzilla.cron.tab create mode 100644 www-apps/bugzilla/files/postinstall-en.txt create mode 100644 www-apps/bugzilla/files/reconfig (limited to 'www-apps/bugzilla/files') diff --git a/www-apps/bugzilla/files/4.0/bugzilla-queue.confd b/www-apps/bugzilla/files/4.0/bugzilla-queue.confd deleted file mode 100644 index 2eec355a0986..000000000000 --- a/www-apps/bugzilla/files/4.0/bugzilla-queue.confd +++ /dev/null @@ -1,4 +0,0 @@ -#JOBQUEUE_USER=bugzilla -#JOBQUEUE_GROUP=bugzilla - -JOBQUEUE_PATH=/var/www/bugzilla/jobqueue.pl diff --git a/www-apps/bugzilla/files/4.0/bugzilla-queue.initd b/www-apps/bugzilla/files/4.0/bugzilla-queue.initd deleted file mode 100644 index f4038abd8d59..000000000000 --- a/www-apps/bugzilla/files/4.0/bugzilla-queue.initd +++ /dev/null @@ -1,39 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -PIDFILE="/var/run/bugzilla/${SVCNAME}.pid" -JOBQUEUE_USER=${JOBQUEUE_USER:-root} -JOBQUEUE_GROUP=${JOBQUEUE_GROUP:-root} - -checkconfig() { - [[ -z "${JOBQUEUE_USER}" || -z "$(getent passwd ${JOBQUEUE_USER})" ]] && { eerror "JOBQUEUE_USER not set or doesn't exist"; return 1; } - [[ -z "${JOBQUEUE_GROUP}" || -z "$(getent group ${JOBQUEUE_GROUP})" ]] && { eerror "JOBQUEUE_GROUP not set or doesn't exist"; return 1; } - [[ -z "${JOBQUEUE_PATH}" && ! -x "${JOBQUEUE_PATH}" ]] && { eerror "JOBQUEUE_PATH not set or not executable"; return 1; } - return 0 -} - -start() { - ebegin "Starting ${SVCNAME}" - checkconfig || return 1 - - piddir="${PIDFILE%/*}" - if [ ! -d "${piddir}" ]; then - checkpath -q -d -o $JOBQUEUE_USER:$JOBQUEUE_GROUP -m 0770 "${piddir}" || { - eend 1 - return 1 - } - fi - - start-stop-daemon --start --pidfile $PIDFILE --user $JOBQUEUE_USER --group $JOBQUEUE_GROUP \ - --exec $JOBQUEUE_PATH -- -p $PIDFILE -n $SVCNAME start 1>/dev/null - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - checkconfig || return 1 - start-stop-daemon --pidfile $PIDFILE --stop --exec $JOBQUEUE_PATH -- -p $PIDFILE -n $SVCNAME stop - eend $? -} diff --git a/www-apps/bugzilla/files/4.0/bugzilla.cron.daily b/www-apps/bugzilla/files/4.0/bugzilla.cron.daily deleted file mode 100644 index e3e86589891d..000000000000 --- a/www-apps/bugzilla/files/4.0/bugzilla.cron.daily +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -cd /var/www/bugzilla/ -./collectstats.pl -./whineatnews.pl -echo "*** Bugzilla nighlty flush has done! ***" diff --git a/www-apps/bugzilla/files/4.0/bugzilla.cron.tab b/www-apps/bugzilla/files/4.0/bugzilla.cron.tab deleted file mode 100644 index 3cf2d4a66240..000000000000 --- a/www-apps/bugzilla/files/4.0/bugzilla.cron.tab +++ /dev/null @@ -1 +0,0 @@ -0 0 * * * /var/www/bugzilla/bugzilla.cron.daily diff --git a/www-apps/bugzilla/files/4.0/postinstall-en.txt b/www-apps/bugzilla/files/4.0/postinstall-en.txt deleted file mode 100644 index 2d18de0b810f..000000000000 --- a/www-apps/bugzilla/files/4.0/postinstall-en.txt +++ /dev/null @@ -1,13 +0,0 @@ -0. Bugzilla has been installed into ${MY_INSTALLDIR} - -1. To finish the installation, please read - http://www.bugzilla.org/docs/${MY_PB}/en/html/installing-bugzilla.html - You will need to run ${MY_INSTALLDIR}/checksetup.pl - -2. Please read the Release Notes, especially if you are upgrading: - http://www.bugzilla.org/releases/${MY_PB}/release-notes.html - -3. Please note that Apache2 sets AllowOverride None by default. You may have - to edit it to process the .htaccess file provided by Bugzilla. Please see - http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride and - http://www.bugzilla.org/docs/${MY_PB}/en/html/configuration.html#http for more info. diff --git a/www-apps/bugzilla/files/4.0/reconfig b/www-apps/bugzilla/files/4.0/reconfig deleted file mode 100644 index 71b0acea2585..000000000000 --- a/www-apps/bugzilla/files/4.0/reconfig +++ /dev/null @@ -1,19 +0,0 @@ -#!/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} || die "sed failed" -else - echo "done." -fi diff --git a/www-apps/bugzilla/files/bugzilla-queue.confd b/www-apps/bugzilla/files/bugzilla-queue.confd new file mode 100644 index 000000000000..2eec355a0986 --- /dev/null +++ b/www-apps/bugzilla/files/bugzilla-queue.confd @@ -0,0 +1,4 @@ +#JOBQUEUE_USER=bugzilla +#JOBQUEUE_GROUP=bugzilla + +JOBQUEUE_PATH=/var/www/bugzilla/jobqueue.pl diff --git a/www-apps/bugzilla/files/bugzilla-queue.initd b/www-apps/bugzilla/files/bugzilla-queue.initd new file mode 100644 index 000000000000..f4038abd8d59 --- /dev/null +++ b/www-apps/bugzilla/files/bugzilla-queue.initd @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +PIDFILE="/var/run/bugzilla/${SVCNAME}.pid" +JOBQUEUE_USER=${JOBQUEUE_USER:-root} +JOBQUEUE_GROUP=${JOBQUEUE_GROUP:-root} + +checkconfig() { + [[ -z "${JOBQUEUE_USER}" || -z "$(getent passwd ${JOBQUEUE_USER})" ]] && { eerror "JOBQUEUE_USER not set or doesn't exist"; return 1; } + [[ -z "${JOBQUEUE_GROUP}" || -z "$(getent group ${JOBQUEUE_GROUP})" ]] && { eerror "JOBQUEUE_GROUP not set or doesn't exist"; return 1; } + [[ -z "${JOBQUEUE_PATH}" && ! -x "${JOBQUEUE_PATH}" ]] && { eerror "JOBQUEUE_PATH not set or not executable"; return 1; } + return 0 +} + +start() { + ebegin "Starting ${SVCNAME}" + checkconfig || return 1 + + piddir="${PIDFILE%/*}" + if [ ! -d "${piddir}" ]; then + checkpath -q -d -o $JOBQUEUE_USER:$JOBQUEUE_GROUP -m 0770 "${piddir}" || { + eend 1 + return 1 + } + fi + + start-stop-daemon --start --pidfile $PIDFILE --user $JOBQUEUE_USER --group $JOBQUEUE_GROUP \ + --exec $JOBQUEUE_PATH -- -p $PIDFILE -n $SVCNAME start 1>/dev/null + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + checkconfig || return 1 + start-stop-daemon --pidfile $PIDFILE --stop --exec $JOBQUEUE_PATH -- -p $PIDFILE -n $SVCNAME stop + eend $? +} diff --git a/www-apps/bugzilla/files/bugzilla.cron.daily b/www-apps/bugzilla/files/bugzilla.cron.daily new file mode 100644 index 000000000000..e3e86589891d --- /dev/null +++ b/www-apps/bugzilla/files/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/bugzilla.cron.tab b/www-apps/bugzilla/files/bugzilla.cron.tab new file mode 100644 index 000000000000..3cf2d4a66240 --- /dev/null +++ b/www-apps/bugzilla/files/bugzilla.cron.tab @@ -0,0 +1 @@ +0 0 * * * /var/www/bugzilla/bugzilla.cron.daily diff --git a/www-apps/bugzilla/files/postinstall-en.txt b/www-apps/bugzilla/files/postinstall-en.txt new file mode 100644 index 000000000000..2d18de0b810f --- /dev/null +++ b/www-apps/bugzilla/files/postinstall-en.txt @@ -0,0 +1,13 @@ +0. Bugzilla has been installed into ${MY_INSTALLDIR} + +1. To finish the installation, please read + http://www.bugzilla.org/docs/${MY_PB}/en/html/installing-bugzilla.html + You will need to run ${MY_INSTALLDIR}/checksetup.pl + +2. Please read the Release Notes, especially if you are upgrading: + http://www.bugzilla.org/releases/${MY_PB}/release-notes.html + +3. Please note that Apache2 sets AllowOverride None by default. You may have + to edit it to process the .htaccess file provided by Bugzilla. Please see + http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride and + http://www.bugzilla.org/docs/${MY_PB}/en/html/configuration.html#http for more info. diff --git a/www-apps/bugzilla/files/reconfig b/www-apps/bugzilla/files/reconfig new file mode 100644 index 000000000000..71b0acea2585 --- /dev/null +++ b/www-apps/bugzilla/files/reconfig @@ -0,0 +1,19 @@ +#!/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} || die "sed failed" +else + echo "done." +fi -- cgit v1.2.3-65-gdbad