Gentoo Archives: gentoo-commits

From: Marius Brehler <marbre@××××××××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/ganglia_jobmonarch/, sys-cluster/ganglia_jobmonarch/files/
Date: Fri, 24 Feb 2017 14:48:56
Message-Id: 1487947634.b03e11b563b8aecd08a05c20bdf25efdabdce21c.marbre@gentoo
1 commit: b03e11b563b8aecd08a05c20bdf25efdabdce21c
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Fri Feb 24 14:47:14 2017 +0000
4 Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
5 CommitDate: Fri Feb 24 14:47:14 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b03e11b5
7
8 sys-cluster/ganglia_jobmonarch: Drop broken package
9
10 .../ganglia_jobmonarch/files/job_monarch_link.sh | 64 ------------------
11 .../ganglia_jobmonarch/files/jobarchived.initd | 28 --------
12 sys-cluster/ganglia_jobmonarch/files/jobmond.initd | 28 --------
13 .../ganglia_jobmonarch-0.3.1.ebuild | 79 ----------------------
14 sys-cluster/ganglia_jobmonarch/metadata.xml | 8 ---
15 5 files changed, 207 deletions(-)
16
17 diff --git a/sys-cluster/ganglia_jobmonarch/files/job_monarch_link.sh b/sys-cluster/ganglia_jobmonarch/files/job_monarch_link.sh
18 deleted file mode 100644
19 index dfcbfea4f..000000000
20 --- a/sys-cluster/ganglia_jobmonarch/files/job_monarch_link.sh
21 +++ /dev/null
22 @@ -1,64 +0,0 @@
23 -#!/bin/sh
24 -
25 -install() {
26 - cd /var/www/localhost/htdocs/$1
27 - mkdir addons; mkdir addons/job_monarch; cd addons/job_monarch
28 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/cal.gif
29 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/conf.php
30 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/document_archive.jpg
31 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/footer.php
32 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/graph.php
33 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/header.php
34 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/host_view.php
35 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/image.php
36 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/index.php
37 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/jobmonarch.gif
38 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/libtoga.js
39 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/libtoga.php
40 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/logo_ned.gif
41 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/next.gif
42 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/overview.php
43 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/prev.gif
44 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/redcross.jpg
45 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/search.php
46 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/styles.css
47 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/ts_picker.js
48 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/ts_validatetime.js
49 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/version.php
50 -
51 - mkdir clusterconf; cd clusterconf
52 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/clusterconf/example.php
53 - cd ..
54 -
55 - mkdir templates; cd templates
56 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/templates/footer.tpl
57 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/templates/header.tpl
58 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/templates/host_view.tpl
59 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/templates/index.tpl
60 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/templates/overview.tpl
61 - ln /var/www/localhost/htdocs/$2/addons/job_monarch/templates/search.tpl
62 - ln -s ../../../templates/default/images
63 -
64 - cd /var/www/localhost/htdocs/$1
65 - mkdir templates/job_monarch; cd templates/job_monarch
66 - ln /var/www/localhost/htdocs/$2/templates/job_monarch/cluster_extra.tpl
67 - ln /var/www/localhost/htdocs/$2/templates/job_monarch/host_extra.tpl
68 - ln -s ../default/images
69 -}
70 -
71 -uninstall() {
72 - rm -Rf /var/www/localhost/htdocs/$1/addons/job_monarch/* && rmdir /var/www/localhost/htdocs/$1/addons/job_monarch && rmdir /var/www/localhost/htdocs/$1/addons
73 - rm -Rf /var/www/localhost/htdocs/$1/templates/job_monarch/* && rmdir /var/www/localhost/htdocs/$1/templates/job_monarch
74 -}
75 -
76 -case "$1" in
77 - install)
78 - install $2 $3
79 - ;;
80 - uninstall)
81 - uninstall $2
82 - ;;
83 - *)
84 - echo -e "\033[34;1mUsage: job_monarch_link.sh [ install <ganglia_dir> <jobmonarch_dir> | uninstall <ganglia_dir> ]\033[0m"
85 - ;;
86 -esac
87
88 diff --git a/sys-cluster/ganglia_jobmonarch/files/jobarchived.initd b/sys-cluster/ganglia_jobmonarch/files/jobarchived.initd
89 deleted file mode 100644
90 index e1de75d0b..000000000
91 --- a/sys-cluster/ganglia_jobmonarch/files/jobarchived.initd
92 +++ /dev/null
93 @@ -1,28 +0,0 @@
94 -#!/sbin/runscript
95 -# Copyright 1999-2011 Gentoo Foundation
96 -# Distributed under the terms of the GNU General Public License v2
97 -
98 -PIDFILE=/var/run/jobarchived.pid
99 -
100 -depend() {
101 - need gmond
102 -}
103 -
104 -start() {
105 - ebegin "Starting Jobarchived"
106 - start-stop-daemon --start --exec /sbin/jobarchived.py -- -p ${PIDFILE} -c /etc/jobarchived.conf
107 - eend 0
108 -}
109 -
110 -stop() {
111 - ebegin "Stopping Jobarchived"
112 - start-stop-daemon --stop --quiet --signal TERM -p ${PIDFILE}
113 - eend $?
114 -}
115 -
116 -restart() {
117 - svc_stop
118 - sleep 3
119 - svc_start
120 -}
121 -# vim:ts=4
122
123 diff --git a/sys-cluster/ganglia_jobmonarch/files/jobmond.initd b/sys-cluster/ganglia_jobmonarch/files/jobmond.initd
124 deleted file mode 100644
125 index 619495c8b..000000000
126 --- a/sys-cluster/ganglia_jobmonarch/files/jobmond.initd
127 +++ /dev/null
128 @@ -1,28 +0,0 @@
129 -#!/sbin/runscript
130 -# Copyright 1999-2011 Gentoo Foundation
131 -# Distributed under the terms of the GNU General Public License v2
132 -
133 -PIDFILE=/var/run/jobmond.pid
134 -
135 -depend() {
136 - need gmond
137 -}
138 -
139 -start() {
140 - ebegin "Starting Jobmond"
141 - start-stop-daemon --start --exec /sbin/jobmond.py -- -p ${PIDFILE} -c /etc/jobmond.conf
142 - eend 0
143 -}
144 -
145 -stop() {
146 - ebegin "Stopping Jobmond"
147 - start-stop-daemon --stop --quiet --signal TERM -p ${PIDFILE}
148 - eend $?
149 -}
150 -
151 -restart() {
152 - svc_stop
153 - sleep 3
154 - svc_start
155 -}
156 -# vim:ts=4
157
158 diff --git a/sys-cluster/ganglia_jobmonarch/ganglia_jobmonarch-0.3.1.ebuild b/sys-cluster/ganglia_jobmonarch/ganglia_jobmonarch-0.3.1.ebuild
159 deleted file mode 100644
160 index c5d8a29c2..000000000
161 --- a/sys-cluster/ganglia_jobmonarch/ganglia_jobmonarch-0.3.1.ebuild
162 +++ /dev/null
163 @@ -1,79 +0,0 @@
164 -# Copyright 1999-2015 Gentoo Foundation
165 -# Distributed under the terms of the GNU General Public License v2
166 -# $Id$
167 -
168 -EAPI=5
169 -
170 -PYTHON_COMPAT=( python2_7 )
171 -WEBAPP_OPTIONAL="yes"
172 -inherit eutils webapp depend.php python-r1
173 -
174 -DESCRIPTION="Ganglia addons for Torque"
175 -HOMEPAGE="https://oss.trac.surfsara.nl/jobmonarch/"
176 -SRC_URI="http://ftp.surfsara.nl/pub/outgoing/jobmonarch/${PV}/${P}.tar.bz2"
177 -
178 -LICENSE="GPL-2"
179 -SLOT="0"
180 -KEYWORDS="~amd64"
181 -IUSE="vhosts"
182 -
183 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
184 -
185 -WEBAPP_MANUAL_SLOT="yes"
186 -
187 -GANGLIA="ganglia"
188 -JOBMONARCH="ganglia_jobmonarch"
189 -
190 -DEPEND="${PYTHON_DEPS}
191 - sys-cluster/ganglia
192 - dev-lang/php[gd,xml,ctype]
193 - media-libs/gd
194 - sys-cluster/pbs-python
195 - dev-python/pypgsql
196 - ${WEBAPP_DEPEND}"
197 -
198 -pkg_setup() {
199 - webapp_pkg_setup
200 -}
201 -
202 -src_compile() {
203 - einfo "Nothing to do"
204 -}
205 -
206 -src_install() {
207 - insinto /etc
208 - doins "${S}/jobmond/jobmond.conf"
209 - doins "${S}/jobarchived/jobarchived.conf"
210 -
211 - insinto /usr/share/jobmonarch/
212 - doins "${S}/jobarchived/job_dbase.sql"
213 -
214 - dodir /var/lib/jobarchive
215 -
216 - python_scriptinto /usr/sbin
217 - python_foreach_impl python_doscript \
218 - "${S}/jobmond/jobmond.py" \
219 - "${S}/jobarchived/jobarchived.py" \
220 - "${S}/jobarchived/pipe_jobarchived.py" \
221 - "${FILESDIR}/job_monarch_link.sh"
222 -
223 - newinitd "${FILESDIR}/jobmond.initd" jobmond
224 - newinitd "${FILESDIR}/jobarchived.initd" jobarchived
225 -
226 - cd "${S}/web/templates/job_monarch/" || die
227 - rm -r images || die
228 -
229 - cd "${S}" || die
230 - webapp_src_preinst
231 - insinto "${MY_HTDOCSDIR}"
232 - doins -r web/*
233 -
234 - webapp_configfile "${MY_HTDOCSDIR}"/addons/job_monarch/conf.php
235 - webapp_src_install
236 -
237 - ewarn
238 - ewarn "You must Execute: job_monarch_link.sh install ${GANGLIA} ${JOBMONARCH} to have the JobMonArch installed under ganglia"
239 - ewarn
240 - ewarn "You must Execute: job_monarch_link.sh uninstall ${GANGLIA} to remove link from ganglia directories"
241 - ewarn
242 -}
243
244 diff --git a/sys-cluster/ganglia_jobmonarch/metadata.xml b/sys-cluster/ganglia_jobmonarch/metadata.xml
245 deleted file mode 100644
246 index f3834ba82..000000000
247 --- a/sys-cluster/ganglia_jobmonarch/metadata.xml
248 +++ /dev/null
249 @@ -1,8 +0,0 @@
250 -<?xml version="1.0" encoding="UTF-8"?>
251 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
252 -<pkgmetadata>
253 - <maintainer type="project">
254 - <email>cluster@g.o</email>
255 - <name>Gentoo Cluster Project</name>
256 - </maintainer>
257 -</pkgmetadata>