Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/java:master commit in: www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/, ...
Date: Sat, 02 Jul 2016 14:48:31
Message-Id: 1467470839.5d26115fa612d0316f9587b5855578aa052bd3a0.chewi@gentoo
1 commit: 5d26115fa612d0316f9587b5855578aa052bd3a0
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 2 14:47:19 2016 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 2 14:47:19 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/java.git/commit/?id=5d26115f
7
8 www-servers/jboss-bin: Remove super mega ancient and violating package
9
10 It's called WildFly now anyway.
11
12 profiles/use.local.desc | 4 -
13 www-servers/jboss-bin/Manifest | 2 -
14 www-servers/jboss-bin/files/4.0.5/doc/spec.txt | 133 ------
15 www-servers/jboss-bin/files/4.0.5/ejb3/install.xml | 84 ----
16 .../normal/bin/jboss-bin-4-profiles-creator.sh | 501 ---------------------
17 .../files/4.0.5/normal/conf.d/jboss-bin-4 | 55 ---
18 .../files/4.0.5/normal/env.d/50jboss-bin-4.gz | Bin 1978 -> 0 bytes
19 .../files/4.0.5/normal/init.d/jboss-bin-4 | 80 ----
20 .../srvdir/bin/jboss-bin-4-profiles-creator.sh | 501 ---------------------
21 .../files/4.0.5/srvdir/conf.d/jboss-bin-4 | 55 ---
22 .../files/4.0.5/srvdir/env.d/50jboss-bin-4.gz | Bin 1978 -> 0 bytes
23 .../files/4.0.5/srvdir/init.d/jboss-bin-4 | 80 ----
24 .../jboss-bin/files/4.0.5/tomcat/server.xml | 180 --------
25 .../tomcat/webapp/gentoo/WEB-INF/jboss-web.xml | 8 -
26 .../4.0.5/tomcat/webapp/gentoo/WEB-INF/web.xml | 50 --
27 .../4.0.5/tomcat/webapp/gentoo/css/styles.css | 74 ---
28 .../files/4.0.5/tomcat/webapp/gentoo/gentoo.png | Bin 1055 -> 0 bytes
29 .../4.0.5/tomcat/webapp/gentoo/img/gentoo.png | Bin 1055 -> 0 bytes
30 .../files/4.0.5/tomcat/webapp/gentoo/img/jboss.gif | Bin 2060 -> 0 bytes
31 .../tomcat/webapp/gentoo/img/jboss_powered.gif | Bin 1947 -> 0 bytes
32 .../tomcat/webapp/gentoo/img/jboss_powered.jpg | Bin 14295 -> 0 bytes
33 .../files/4.0.5/tomcat/webapp/gentoo/img/logo.gif | Bin 10268 -> 0 bytes
34 .../files/4.0.5/tomcat/webapp/gentoo/index.jsp | 27 --
35 .../files/4.0.5/tomcat/webapp/gentoo/jboss.css | 143 ------
36 .../files/4.0.5/tomcat/webapp/gentoo/logo.gif | Bin 10268 -> 0 bytes
37 .../4.0.5/tomcat/webapp/gentoo/manager/xform.xsl | 94 ----
38 .../4.0.5/tomcat/webapp/gentoo/modules/main.jsp | 5 -
39 .../webapp/gentoo/modules/profile_manager.jsp | 40 --
40 .../4.0.5/tomcat/webapp/gentoo/modules/vhost.jsp | 47 --
41 .../4.0.5/tomcat/webapp/gentoo/template/footer.jsp | 11 -
42 .../4.0.5/tomcat/webapp/gentoo/template/header.jsp | 8 -
43 .../4.0.5/tomcat/webapp/gentoo/template/menu.jsp | 43 --
44 .../files/4.0.5/tomcat/webapp/profile_manager.jsp | 44 --
45 www-servers/jboss-bin/jboss-bin-4.0.5.ebuild | 296 ------------
46 www-servers/jboss-bin/metadata.xml | 14 -
47 35 files changed, 2579 deletions(-)
48
49 diff --git a/profiles/use.local.desc b/profiles/use.local.desc
50 index 2a01155..ca5566b 100644
51 --- a/profiles/use.local.desc
52 +++ b/profiles/use.local.desc
53 @@ -6,10 +6,6 @@
54 # contain them.
55
56 # Keep it sorted.
57 -www-servers/jboss:ejb3 - Add EJB 3 support
58 -www-servers/jboss:srvdir - Add SRVDIR support
59 -www-servers/jboss-bin:ejb3 - Add EJB 3 support
60 -www-servers/jboss-bin:srvdir - Add SRVDIR support
61 dev-java/jogl:cg - Enable nvidia cg bindings
62 dev-db/hsqldb:sqltools - Add data managment tools
63 dev-java/quartz:servlet-2.3 - Use the 2.3 servlet specification
64
65 diff --git a/www-servers/jboss-bin/Manifest b/www-servers/jboss-bin/Manifest
66 deleted file mode 100644
67 index bd92290..0000000
68 --- a/www-servers/jboss-bin/Manifest
69 +++ /dev/null
70 @@ -1,2 +0,0 @@
71 -DIST jboss-4.0.5.GA.zip 80866589 SHA256 b81b7bba2657c4e1cb7cf7e3958eaffbe48ee0c5ebbe5782909745277a3b923f SHA512 34984f225b7957f16e0a76968329225f2f9d5320bee2b11cd95fe4f1cf363365da66cb185aa967cea6e8ddf6d72336576d0bf785eea21059ffd366b350ccf54f WHIRLPOOL c06a2662e11a8db5761be74825bcd7c8940705bc6ffe6f166e81d9b10e75e88a05cedf70ab987a7b67f7cb248d9769ad6e0b29e2c99595e32488e5df20103fd8
72 -DIST jboss-EJB-3.0_RC9_Patch_1.zip 10656132 SHA256 9b1634e10deaf962c22f73c96df6fe613a6a9dd4bb179f64d62ae93917ccfcf3
73
74 diff --git a/www-servers/jboss-bin/files/4.0.5/doc/spec.txt b/www-servers/jboss-bin/files/4.0.5/doc/spec.txt
75 deleted file mode 100644
76 index 5bc8f95..0000000
77 --- a/www-servers/jboss-bin/files/4.0.5/doc/spec.txt
78 +++ /dev/null
79 @@ -1,133 +0,0 @@
80 -
81 -e ll keep in mind that jboss can use a "main directory"
82 -then it can use a profile specific subdir.
83 -In default bundle, all subdirs in /server are "profiles"
84 --------------------------------------------------------
85 -All configuration files points to a config to use
86 -The default is "default"
87 -/etc/conf.d/jboss
88 - configuration for jboss instance
89 -/etc/conf.d/jboss1
90 - configuration for jboss1 instance
91 -/etc/conf.d/jbossn
92 - configuration for jboss2 instance
93 --------------------------------------------------------
94 -All init scripts set their "/server" subdir to the adequat /srv/<fqdn>/jboss
95 -subdir
96 -/etc/init.d/jboss.localhost
97 - init script for jboss instance
98 -/etc/init.d/jboss.jboss1
99 - init script for jboss1 instance
100 -/etc/init.d/jboss.jbossn
101 - init script for jboss2 instance
102 -
103 --------------------------------------------------------
104 -srvdir is either
105 -* /var/lib/JBOSSSLOT/hostname
106 -* /srv/hostname/JBOSSSLOT
107 --------------------------------------------------------
108 -All these directory contains just JBoss "profiles"
109 -/srv/localhost/jboss:
110 - profile1 profil2
111 - there go default things
112 - or when not given vhost from the script
113 -/srv/vhost1/jboss:
114 - jboss1.vhost1 jboss2.vhost1
115 - if user wants to use a "vhost1"
116 -...
117 -/srv/vhostn/jboss:
118 --------------------------------------------------------
119 -a typical profile dir:
120 -profile/
121 -conf:
122 - configuration directory
123 - NA: we create a symlink in /etc/jboss/vhost/profile
124 - _TO_ this directory
125 -data:
126 - symlink to /var/cache/jboss/vhost/profile
127 - runtime dir
128 -deploy:
129 - application directory
130 - where we put war, ear and so on
131 - NA: we create a symlink in /etc/jboss/vhost/profile for tomcat
132 -lib:
133 - directory where additionnal jar and ressources go
134 -log:
135 - symlink to /var/log/jboss/vhost/profile
136 - log directory
137 -tmp:
138 - symlink to /var/tmp/jboss/vhost/profile
139 - tmp directory
140 -work:
141 - symlink to /var/run/jboss/vhost/profile
142 - state (pid) dirctory
143 --------------------------------------------------------
144 -The manager script will do:
145 - create
146 - create a profile
147 - delete
148 - delete a profile
149 - list
150 - list the profiles in /srv/localhost
151 - list the profiles in vhost if --vhost specified and is valid
152 - help
153 - print usage
154 - Valid arguments are:
155 - --profile=serverdir_template
156 - - Either the name of the template to use to create the new profile with --create
157 - - Either the name of the profile to delete with --delete
158 - - controls:
159 - * controls at creation:
160 - profile template exists:
161 - if fullpath or relative path:
162 - /conf /lib /deploy exist in the profile dir
163 - if not a path:
164 - directory or symlick in vhost_dir exists with the profile name
165 - /conf /lib /deploy exist in the profile dir
166 - * controle at delete:
167 - profile exists in vhost or in default_vhost if no --vhost
168 - - Default is 'gentoo'
169 - --path=/path/to/profile_to_create SCOPE:create"
170 - * don't use the leading / for a subdir of the vhost specified (default_vhost if null)
171 - * indicate the full location to other wanted location"
172 - * controls:
173 - * if vhost subdir:
174 - another profile with same name doesnt exists
175 - * if full_path:
176 - another profile with same name doesnt exists in vhost dir
177 - we re not installing in forbidden directory (eg:/bin)
178 - if relative path is given, transform it to full_path
179 - --vhost=vhost
180 - - set the vhost
181 - - controls:
182 - * a directory with "vhost name" exists in $srvdir
183 - - Default is 'localhost'
184 --------------------------------------------------------
185 -How to add a vhost and keep it running:
186 - First of all, create the profile with the helper
187 - jboss-4-bin-profiles-creator.sh create --profile=vhost1 --path=somewhere --vhost=vhost1.yourdomain.com
188 - Second, edit the tomcat file to add a vhost see:
189 - http://wiki.jboss.org/wiki/Wiki.jsp?page=VirtualHosts
190 - for example:
191 - <Host name="vhost1.yourdomain.com"
192 - autoDeploy="true" deployOnStartup="true" deployXML="true">
193 - <Alias>vhost1.yourdomain.com</Alias>
194 - <Valve className="org.apache.catalina.valves.AccessLogValve"
195 - prefix="vhost1.yourdomain.com-" suffix=".log"
196 - pattern="common" directory="${jboss.server.home.dir}/log"/>
197 - </Host>
198 - Third edit your webapp to be deploy on this vhost:
199 - --> WEB-INF/jboss-web.xml
200 - <jboss-web>
201 - <!-- Uncomment the security-domain to enable security. You will
202 - need to edit the htmladaptor login configuration to setup the
203 - login modules used to authentication users.
204 - <security-domain>java:/jaas/jmx-console</security-domain>
205 - -->
206 - <virtual-host>vhost1.yourdomain.com</virtual-host>
207 - </jboss-web>
208 - Four, deploy your stuff in
209 - /srv/vhost1.yourdomain.com/jboss-PN/vhost1/deploy
210 -
211 -
212 -
213
214 diff --git a/www-servers/jboss-bin/files/4.0.5/ejb3/install.xml b/www-servers/jboss-bin/files/4.0.5/ejb3/install.xml
215 deleted file mode 100644
216 index d9d2029..0000000
217 --- a/www-servers/jboss-bin/files/4.0.5/ejb3/install.xml
218 +++ /dev/null
219 @@ -1,84 +0,0 @@
220 -<?xml version="1.0"?>
221 -
222 -<!-- ======================================================================= -->
223 -<!-- JBoss build file for EJB 3.0 activation -->
224 -<!-- ======================================================================= -->
225 -
226 -<project name="JBoss" default="install" >
227 - <!-- for <For> task -->
228 - <taskdef resource="net/sf/antcontrib/antlib.xml">
229 - <classpath>
230 - <pathelement location="/usr/share/ant-contrib/lib/ant-contrib.jar"/>
231 - </classpath>
232 - </taskdef>
233 -
234 - <property file="../local.properties"/>
235 - <property environment="env"/>
236 - <property name="src.dir" value="${basedir}/src"/>
237 - <property name="jboss.home" value="${env.JBOSS_HOME}"/>
238 -
239 - <target name="install">
240 - <for list="all,gentoo" param="profile">
241 - <sequential>
242 - <echo/>
243 - <echo/>
244 - <echo>Installing EJB3 in ${jboss.home}/server/@{profile}</echo>
245 - <echo/>
246 - <echo/>
247 -
248 - <delete dir="${jboss.home}/server/@{profile}/deploy/jboss-aop.deployer"/>
249 - <delete dir="${jboss.home}/server/@{profile}/deploy/jbossws14.sar"/>
250 - <delete dir="${jboss.home}/server/@{profile}/deploy/jboss-aop-jdk50.deployer"/>
251 - <delete dir="${jboss.home}/server/@{profile}/deploy/ejb3.deployer"/>
252 - <delete file="${jboss.home}/client/jbossws14-client.jar"/>
253 - <copy file="lib/jbossws-client.jar" todir="${jboss.home}/client"/>
254 - <copy file="lib/hibernate-client.jar" todir="${jboss.home}/client"/>
255 - <copy file="lib/jboss-ejb3-client.jar" todir="${jboss.home}/client"/>
256 - <copy file="lib/ejb3.deployer/jboss-ejb3x.jar" todir="${jboss.home}/client"/>
257 - <copy file="lib/ejb3.deployer/jboss-annotations-ejb3.jar" todir="${jboss.home}/client"/>
258 - <copy file="lib/ejb3-persistence.jar" todir="${jboss.home}/server/@{profile}/lib"/>
259 - <copy file="lib/ejb3-persistence.jar" todir="${jboss.home}/client"/>
260 - <copy file="lib/hibernate-entitymanager.jar" todir="${jboss.home}/server/@{profile}/lib"/>
261 - <copy file="lib/hibernate-annotations.jar" todir="${jboss.home}/server/@{profile}/lib"/>
262 - <copy file="lib/hibernate3.jar" todir="${jboss.home}/server/@{profile}/lib"/>
263 - <copy file="lib/javassist.jar" todir="${jboss.home}/server/@{profile}/lib"/>
264 - <copy file="lib/quartz-all-1.5.2.jar" todir="${jboss.home}/server/@{profile}/lib"/>
265 - <copy todir="${jboss.home}/server/@{profile}/deploy">
266 - <fileset dir="lib">
267 - <include name="ejb3.deployer/**"/>
268 - <include name="jboss-aop-jdk50.deployer/**"/>
269 - <include name="*.xml"/>
270 - <include name="jbossws.sar"/>
271 - </fileset>
272 - </copy>
273 - <copy file="lib/jms-ra.rar" todir="${jboss.home}/server/@{profile}/deploy/jms"/>
274 - <copy file="lib/quartz-ra.rar" todir="${jboss.home}/server/@{profile}/deploy"/>
275 -
276 - <!-- now we have to unjar and rejar jboss.jar to remove ejbjar and jboss schema files -->
277 - <delete dir="tmp"/>
278 - <mkdir dir="tmp"/>
279 - <unjar src="${jboss.home}/server/@{profile}/lib/jboss.jar" dest="tmp"/>
280 - <jar destfile="${jboss.home}/server/@{profile}/lib/jboss.jar" update="false">
281 - <fileset dir="tmp">
282 - <include name="**/*"/>
283 - <exclude name="schema/ejb-jar_3_0.xsd"/>
284 - <exclude name="schema/jboss_5_0.xsd"/>
285 - </fileset>
286 - </jar>
287 - <delete dir="tmp"/>
288 -
289 - <!-- now we have to unjar and rejar jboss.jar to remove ejbjar and jboss schema files -->
290 - <delete dir="tmp"/>
291 - <mkdir dir="tmp"/>
292 - <unjar src="${jboss.home}/lib/endorsed/xml-apis.jar" dest="tmp"/>
293 - <jar destfile="${jboss.home}/lib/endorsed/xml-apis.jar" update="false">
294 - <fileset dir="tmp">
295 - <include name="**/*"/>
296 - <exclude name="javax/xml/namespace/*"/>
297 - </fileset>
298 - </jar>
299 - <delete dir="tmp"/>
300 - </sequential>
301 - </for>
302 - </target>
303 -</project>
304
305 diff --git a/www-servers/jboss-bin/files/4.0.5/normal/bin/jboss-bin-4-profiles-creator.sh b/www-servers/jboss-bin/files/4.0.5/normal/bin/jboss-bin-4-profiles-creator.sh
306 deleted file mode 100755
307 index cfe341a..0000000
308 --- a/www-servers/jboss-bin/files/4.0.5/normal/bin/jboss-bin-4-profiles-creator.sh
309 +++ /dev/null
310 @@ -1,501 +0,0 @@
311 -#!/bin/sh
312 -#License: GPL2
313 -#author: kiorky kiorky@××××××××××.net
314 -PATH="${PATH}:/usr/lib/portage/bin"
315 -source /etc/init.d/functions.sh
316 -
317 -debug="false"
318 -
319 -JBOSS_VERSION="jboss-bin-4"
320 -jboss_path="/opt/${JBOSS_VERSION}"
321 -
322 -action="help"
323 -
324 -# defaults
325 -srvdir="/var/lib"
326 -default_vhost="localhost"
327 -default_path="${srvdir}/${JBOSS_VERSION}/${default_vhost}/"
328 -default_vhost_path="${srvdir}/${default_vhost}/${JBOSS_VERSION}"
329 -default_profile="${default_vhost_path}/gentoo"
330 -# initialize stuff
331 -profile="${default_profile}"
332 -vhost="${default_vhost}"
333 -path="${default_path}"
334 -vhost_path="${default_vhost_path}"
335 -name="${default_profile}"
336 -
337 -CONFDIR="/etc/${JBOSS_VERSION}"
338 -TMPDIR="/var/tmp/${JBOSS_VERSION}"
339 -CACHEDIR="/var/cache/${JBOSS_VERSION}"
340 -RUNDIR="/var/run/${JBOSS_VERSION}"
341 -LOGDIR="/var/log/${JBOSS_VERSION}"
342 -
343 -forbidden_to_install_in="/ /bin /include /lib /sbin /usr/bin /usr/include /usr/lib /usr/sbin"
344 -XARGS="/usr/bin/xargs"
345 -
346 -# error management
347 -# usage: do_error "theerror" ARGS
348 -# read the code as it is enought explicit to use
349 -# some errors can take arguments !!
350 -do_error(){
351 - eerror
352 - case $1 in
353 - "profile_creation_forbidden")
354 - eerror "Please specify another location"
355 - eerror " Creating profiles in \"$2\" is forbidden !!!"
356 - ;;
357 - "profile_file_exists")
358 - eerror "Profile is even created ?"
359 - eerror " File \"$3\" exists in \"$2\" directory"
360 - ;;
361 - "path_invalid_path")
362 - eerror "Invalid path: $HILITE $2"
363 - ;;
364 - "profile_invalid_subdir")
365 - eerror "Invalid profile"
366 - eerror " Invalid JBOSS Servers subdir: $HILITE $2"
367 - ;;
368 - "profile_invalid_full_path")
369 - eerror "Invalid profile"
370 - eerror " Invalid full_path: $HILITE $2"
371 - ;;
372 - "argument_invalid_args")
373 - eerror " You must specify --KEY=VALUE for your arguments"
374 - ;;
375 - "profile_invalid_profile")
376 - eerror "Profile is invalid"
377 - eerror " subdir for this profile is missing: $HILITE $2"
378 - ;;
379 - "path_no_path_given")
380 - eerror "Please specify where you want to install your profile"
381 - ;;
382 - "argument_no_arg")
383 - eerror "Please give Arguments"
384 - ;;
385 - "action_create_cant_create_dir")
386 - eerror "Can't create profile directory"
387 - exit -1
388 - ;;
389 - "action_help")
390 - eerror "Help wanted ?"
391 - eerror;usage;exit
392 - ;;
393 - "profile_file_exists")
394 - eerror "Profile exists: $HILITE $2"
395 - ;;
396 - "delete_no_profile")
397 - eerror "Invalid profile to delete: $HILITE $2"
398 - ;;
399 - "path_invalid_scope")
400 - error "--path argument is invalid in this scope: $HILITE $2"
401 - ;;
402 - "vhost_invalid_vhost")
403 - eerror "Please specify a valid vhost"
404 - eerror " Vhost given: $2"
405 - ;;
406 - "path_not_exists")
407 - eerror "Please specify a valid final path"
408 - eerror " Final profile path doest not exist: $HILITE $2"
409 - ;;
410 - *)
411 - eerror
412 - usage
413 - exit # not error there !!!
414 - esac
415 - eerror "Please run for help:"
416 - eerror " $HILITE$0 help"
417 - exit -1
418 -}
419 -
420 -
421 -# print usage
422 -usage(){
423 - einfo
424 - einfo "$BRACKET Usage: "
425 - einfo "$HILITE JBoss profile Manager"
426 - einfo
427 - einfo
428 - einfo "$BRACKET $0: action [ACTION_OPTIONS]"
429 - einfo "valid options are:"
430 - einfo "$HILITE delete"
431 - einfo " * Delete a profile"
432 - einfo " * You can get profiles with list"
433 - einfo "$HILITE list"
434 - einfo " * List actual profiles"
435 - einfo "$HILITE create"
436 - einfo " * Create a new profile"
437 - einfo "$HILITE h"
438 - einfo "$HILITE help"
439 - einfo " * print this helper"
440 - einfo
441 - einfo "Valid arguments are:"
442 - einfo "$HILITE --profile=serverdir_template"
443 - einfo " * the name of the template to use to create the new profile with --create"
444 - einfo " * the name of the profile to delete with --delete"
445 - einfo " Default is 'gentoo'"
446 - einfo "$HILITE --path=/path/to/profile_to_create SCOPE:create"
447 - einfo " * don't use the leading / for a subdir of ${INSTALL_DIR}/server"
448 - einfo " * indicate the full location to other wanted location"
449 - einfo "$HILITE --vhost=VHOST"
450 - einfo " * Set the vhost (default is 'localhost')"
451 - einfo " * Must exist a valid /srv/VHOST subdir"
452 - einfo
453 - einfo "$BRACKET TIPS:"
454 - einfo " For create and delete, you must give the profile's name"
455 - einfo
456 - einfo "$BRACKET Examples"
457 - einfo " $0 create --profile=gentoo --path=/opt/newprofile"
458 - einfo " A new profile will be created in /opt/newprofile using default_vhost/gentoo as a template"
459 - einfo " A symlick in /srvdir/defaultvhost/jbossversion/newprofile will be done"
460 - einfo " $0 create --profile=gentoo --path=newprofile"
461 - einfo " A new profile will be created in default vhost using srvdir/defaultvhost/jbossversion/igentoo as a template"
462 - einfo " $0 --delete --profile=gentoo"
463 - einfo " the 'gentoo' profile in default vhost will be deleted"
464 - einfo
465 -}
466 -
467 -# list actual profiles
468 -# $1:vhost
469 -# $2:vhost path
470 -list_profiles() {
471 - vhost=$1
472 - vhost_path=$2
473 - if [[ $debug == "true" ]];then
474 - einfo "list_profiles: vhost: $vhost"
475 - einfo "list_profiles: vhost_path: $vhost_path"
476 - fi
477 - einfo "Installed profiles in ${vhost} :"
478 - for i in $(ls -d ${vhost_path}/* ) ;do
479 - if [[ -L "$i" ]];then
480 - einfo "$HILITE $(echo $i|sed -re "s:$vhost_path/*::g")"
481 - einfo " Server subdir: $i"
482 - einfo " Real path: $(ls -dl "$i" | awk -F " " '{print $11 }')"
483 - else
484 - einfo "$HILITE $i"
485 - fi
486 - done;
487 -}
488 -
489 -
490 -# verify if the vhost direcotry is created
491 -# exit and display error on failure
492 -# $1: vhost to verify
493 -verify_vhost(){
494 - if [[ -d ${srvdir}/$1 ]];then
495 - vhost="$1"
496 - vhost_path="${srvdir}/${JBOSS_VERSION}/$i"
497 - else
498 - do_error "vhost_invalid_vhost" $1
499 - fi
500 - [[ ${debug} == "true" ]] && einfo "verify_vhost: vhost : $vhost"\
501 - && einfo "verify_vhost: vhost_path: $vhost_path"
502 -}
503 -
504 -# verify if this path (for creation) is valid
505 -# set the adequat variables
506 -# exit on fails with error display
507 -# $1: the path to verify
508 -verify_path(){
509 - local value=$1
510 - if [[ ${action} == "create" ]];then
511 - local l_name
512 - # remove final slash if one
513 - value=$(echo ${value}|sed -re "s/(\/*[^\/]+)\/*$/\1/")
514 - # is there a profile or a full path
515 - if [[ ${value:0:2} == "./" ]];then
516 - # if relative getting full
517 - value="$(pwd|sed -re "s:(.*)/*$:\1/:")$(echo ${value}|sed -re "s:\./::g")"
518 - fi
519 - if [[ ${value:0:1} == "/" ]];then
520 - is_subdir=0
521 - else
522 - # if profile, verify that s the name doesnt contains any other path
523 - [[ $(echo ${value}|grep "/" |grep -v grep|wc -l ) -gt 0 ]] \
524 - && do_error "profile_invalid_subdir" ${value}
525 - value=${vhost_path}/${value}
526 - is_subdir=1
527 - fi
528 - for forbidden in ${forbidden_to_install_in};do
529 - if [[ $(echo ${value}|sed -re "s:^($forbidden):STOP:") == "STOP" ]];then
530 - do_error "profile_creation_forbidden" ${forbidden}
531 - fi
532 - done
533 - # if final directory is even created
534 - # we control that we do not overwrite an existing profile
535 - if [[ -d ${value} || -L ${value} ]];then
536 - for i in conf data lib run tmp deploy;do
537 - [[ -e ${value}/$i ]] && do_error "profile_file_exists" "${value}" "$i"
538 - done
539 - fi
540 - #if fullpath, check that the name doesnt exists
541 - name="$(echo ${value}|sed -re "s:(.*/)([^/]*)($):\2:")"
542 - [[ -e ${default_path}/${name} ]] && do_error "profile_file_exists" ${name}
543 - # clean variables
544 - # remove final slash if one
545 - path="${value}"
546 - path=$(echo ${path}|sed -re "s/\/*$//")
547 -
548 - else
549 - do_error "path_invalid_scope" ${action}
550 - fi
551 - if [[ ${debug} == "true" ]];then
552 - einfo "verify_path: path: $path"
553 - einfo "verify_path: name: $name"
554 - [[ ${is_subdir} != "1" ]] && einfo "verify_path: symlick in: ${vhost_path}/${name}"
555 - fi
556 -}
557 -
558 -# verfiry a jboss profile
559 -# $1 : profile name
560 -# exit and print usage if profile is invalid
561 -# continue either
562 -verify_profile() {
563 - local value=$1
564 - if [[ ${value:0:1} == "/" || ${value:0:2} == "./" ]];then
565 - #full or relative path is given
566 - if [[ -e ${value} ]]; then
567 - profile="${value}"
568 - else
569 - do_error "profile_invalid_full_path" ${value}
570 - fi
571 - # subdir given
572 - elif [[ -e ${vhost_path}/${value} ]];then
573 - profile="${vhost_path}/$value"
574 - else
575 - do_error "profile_invalid_subdir" ${value}
576 - fi
577 - for i in conf lib deploy;do
578 - if [[ ! -e ${profile}/$i ]];then
579 - do_error "profile_invalid_profile" $i
580 - fi
581 - done
582 - # clean variables
583 - # remove final slash if one
584 - profile=$(echo ${profile}|sed -re "s/\/*$//")
585 -
586 - [[ ${debug} == "true" ]] && einfo "verify_profile: profile: $profile"
587 -}
588 -
589 -# adds ".keep" files so that dirs aren't auto-cleaned
590 -keepdir() {
591 - mkdir -p "$@"
592 - local x
593 - if [ "$1" == "-R" ] || [ "$1" == "-r" ]; then
594 - shift
595 - find "$@" -type d -printf "%p/.keep_www-server_jboss-bin_4\n" |\
596 - tr "\n" "\0" | $XARGS -0 -n100 touch ||\
597 - die "Failed to recursive create .keep files"
598 - else
599 - for x in "$@"; do
600 - touch "${x}/.keep_www-server_jboss-bin_4" ||\
601 - die "Failed to create .keep in ${D}/${x}"
602 - done
603 - fi
604 -}
605 -
606 -# parse command lines arguments
607 -parse_cmdline() {
608 - local arg value
609 - # parse and validate arguments
610 - for param in ${@};do
611 - case ${param} in
612 - "-v"|"-verbose"|"--v")
613 - debug="true"
614 -# echo "Setting verbose to true: $debug"
615 - ;;
616 - *)
617 - if [[ $(echo ${param} | sed -re "s/--.*=..*/GOOD/g" ) != "GOOD" ]]; then
618 - do_error "argument_invalid_args"
619 - fi
620 - arg=$(echo ${param} | sed -re "s/(--)(.*)(=.*)/\2/g")
621 - value=$(echo ${param} | sed -re "s/(.*=)(.*)/\2/g")
622 - case "$arg" in
623 - "profile")
624 - profile=${value}
625 - ;;
626 - "path")
627 - path=${value}
628 - ;;
629 - "vhost")
630 - vhost=${value}
631 - ;;
632 - esac
633 - ;;
634 - esac
635 - done
636 -
637 -}
638 -
639 -# delete a profile
640 -# $1: profile name
641 -# $2: vhost to use
642 -# $3: vhost path
643 -delete_profile(){
644 - profile=$1
645 - vhost=$2
646 - vhost_path=$3
647 - # contructing path to delete
648 - path="${vhost_path}/${profile}"
649 - local l_profile="${vhost}/${profile}"
650 - if [[ $debug == "true" ]];then
651 - einfo "delete_profile: profile: $profile"
652 - einfo "delete_profile: vhost: $vhost"
653 - einfo "delete_profile: vhost_path: $vhost_path"
654 - einfo "delete_profile: path: $path"
655 - einfo "delete_profile: l_profile: $l_profile"
656 - fi
657 - # if symlick getting real path
658 - if [[ -L ${path} ]];then
659 - path="$(ls -dl "${path}" | awk -F " " '{print $11 }')"
660 - # else nothing
661 - elif [[ -d ${path} ]];then
662 - echo>>/dev/null
663 - # if not a symlick or a direcotry, something weird, we exit !
664 - else
665 - do_error "delete_no_profile" $profile
666 - fi
667 -
668 - ewarn "Deleting profile: $HILITE ${profile}"
669 - ewarn "In vhost: $HILITE ${vhost}"
670 - ewarn "Path: $HILITE ${path}"
671 - print_yes_no
672 - # delete if symlick
673 - [[ -L ${vhost_path}/${name} ]] && echo rm -rf ${default_path}/${name}
674 -
675 - # delete run files
676 - rm -rf ${TMPDIR}/${l_profile}\
677 - ${CACHEDIR}/${l_profile}\
678 - ${RUNDIR}/${l_profile}\
679 - ${LOGDIR}/${l_profile}\
680 - ${CONFDIR}/${l_profile}\
681 - ${path} \
682 - ${CONFDIR}/${l_profile}
683 -}
684 -
685 -
686 -# create the profile
687 -# $1: vhost to install into
688 -# $2: profile
689 -# $3: path to install
690 -# $4: name of this profile
691 -# $5: subdir of jboss if 1 / full path if 0
692 -create_profile(){
693 - vhost=$1;profile=$2;path=$3;name=$4;is_subdir=$5
694 - local l_profile="${vhost}/${name}"
695 -
696 - # if default arguments are given
697 - if [[ ${path} == "${default_path}" ]];then
698 - do_error "path_no_path_given"
699 - fi
700 -
701 - ewarn "Creating profile in ${path}"
702 - ewarn "Using ${profile} profile"
703 -
704 - # do base direcotries
705 - keepdir ${TMPDIR}/${l_profile}\
706 - ${CACHEDIR}/${l_profile}\
707 - ${RUNDIR}/${l_profile}\
708 - ${LOGDIR}/${l_profile}\
709 - ${CONFDIR}/${l_profile}
710 -
711 - # create directory
712 - mkdir -p ${path} || do_error "action_create_cant_create_dir"
713 -
714 - # copy profile
715 - for i in conf deploy lib;do
716 - cp -rf ${profile}/$i ${path}/
717 - done
718 -
719 - # do runtime files stuff
720 - ln -s ${LOGDIR}/${l_profile} ${path}/logs
721 - ln -s ${CACHEDIR}/${l_profile} ${path}/data
722 - ln -s ${TMPDIR}/${l_profile} ${path}/tmp
723 - ln -s ${RUNDIR}/${l_profile} ${path}/run
724 -
725 - # do /etc stuff
726 - ln -s ${path}/conf ${CONFDIR}/${l_profile}/conf
727 - ln -s ${path}/deploy/jbossweb-tomcat55.sar/server.xml ${CONFDIR}/${l_profile}
728 -
729 - # if we don't create in jboss directory, link the profile in jboss servers dir
730 - [[ is_subdir -eq 0 ]] && ln -s ${path} ${vhost_path}/${name}
731 -
732 - # fix perms
733 - for i in ${TMPDIR}/${l_profile} ${CACHEDIR}/${l_profile} \
734 - ${RUNDIR}/${l_profile} ${LOGDIR}/${l_profile} \
735 - ${CONFDIR}/${l_profile} ${CONFDIR}/${l_profile} \
736 - ${path};do
737 - chmod -Rf 755 $i;
738 - chown -R jboss:jboss $i;
739 - done
740 -}
741 -
742 -# print collected informations
743 -# $1: subdir of jboss if 1 / full path if 0
744 -confirm_creation() {
745 - ewarn "Jboss profile manager for : $HILITE ${name}"
746 - if [[ $1 -eq 0 ]];then
747 - WHERE="directory"
748 - else
749 - WHERE="vhost subdir"
750 - fi
751 - ewarn "Installing in ${WHERE}:"
752 - ewarn " $HILITE${path} "
753 - ewarn "Using profile: "
754 - ewarn " $HILITE${profile} "
755 -
756 -}
757 -
758 -# print a yes_no like form
759 -# exit on failure / no
760 -# continue if yes
761 -print_yes_no(){
762 - local i nb nok="nok";
763 - while [[ nok == "nok" ]];do
764 - [[ $nb -gt 12 ]] && eerror "Invalid arguments" && exit -1
765 - [[ $nb -gt 10 ]] && ewarn "Please Enter CTRL-C to exit "\
766 - && ewarn " or \"Y\" to say YES"\
767 - && ewarn " or \"N\" to say NO"
768 - ewarn " Is that Correct (Y/N) ???"
769 - read i;
770 - [[ $i == "Y" || $i == "y" ]] && break
771 - [[ $i == "N" || $i == "n" ]] && einfo "User wanted interrupt" && exit
772 - nb=$((nb+1))
773 - done
774 -}
775 -
776 -main(){
777 - local args="$2 $3 $4 $5 $6"
778 - action="$1"
779 - # if no args are given
780 - if [[ $# -lt 1 ]];then
781 - do_error "argument_no_arg"
782 - fi
783 - case ${action} in
784 - create)
785 - parse_cmdline ${args}
786 - verify_vhost ${vhost}
787 - verify_path ${path}
788 - verify_profile ${profile}
789 - confirm_creation ${is_subdir}
790 - print_yes_no
791 - create_profile ${vhost} ${profile} ${path} ${name} ${is_subdir}
792 - ;;
793 - delete)
794 - parse_cmdline ${args}
795 - verify_vhost ${vhost}
796 - delete_profile ${profile} ${vhost} ${vhost_path}
797 - ;;
798 - list)
799 - parse_cmdline ${args}
800 - verify_vhost ${vhost}
801 - list_profiles ${vhost} ${vhost_path}
802 - ;;
803 - --help|h|-h|help)
804 - do_error "action_help"
805 - ;;
806 - *)
807 - usage
808 - ;;
809 - esac
810 -}
811 -main ${@}
812
813 diff --git a/www-servers/jboss-bin/files/4.0.5/normal/conf.d/jboss-bin-4 b/www-servers/jboss-bin/files/4.0.5/normal/conf.d/jboss-bin-4
814 deleted file mode 100644
815 index 809d538..0000000
816 --- a/www-servers/jboss-bin/files/4.0.5/normal/conf.d/jboss-bin-4
817 +++ /dev/null
818 @@ -1,55 +0,0 @@
819 -## JAVA
820 -##your machine hostname or the one (main) you want to use
821 -JBOSS_HOSTNAME="localhost"
822 -# the profile wanted
823 -JBOSS_SERVER_NAME="gentoo"
824 -# JBoss group (change at your own risk)
825 -JBOSS_USER="jboss"
826 -# JBoss group (change at your own risk)
827 -JBOSS_GROUP="jboss"
828 -# which version of jboss this config file belongs to
829 -JBOSS_PN_SLOT="jboss-bin-4"
830 -# GLEP20: where is the services directory
831 -SRVDIR="/var/lib"
832 -# Java options (copied from ${JBOSS_HOME_DIR}/bin/run.conf) - use "-server" only if Java supports it
833 -JAVA_OPTS="-server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
834 -# Sample JPDA settings for remote socket debuging
835 -#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"
836 -# Sample JPDA settings for shared memory debugging
837 -#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"
838 -
839 -## JBoss configuration
840 -## Used names mimic standard JBoss naming for these properties, i.e. JBOSS_SERVER_NAME variable is
841 -## jboss.server.name property. These variables are self-explanatory. If you are not sure what they
842 -## are for, you can consult JBoss documentation.
843 -## NOTE: At the moment we use both JBOSS_HOME_DIR and JBOSS_HOME_URL because JBOSS_HOME_DIR is used
844 -## in classpaths construction. The same is true for JBOSS_LIB_DIR and JBOSS_LIB_URL. *_DIR is used
845 -## to construct classpath and *_URL is passed to java as argument.
846 -
847 -JBOSS_HOME_DIR="/opt/${JBOSS_PN_SLOT}"
848 -JBOSS_HOME_URL="file:${JBOSS_HOME_DIR}"
849 -JBOSS_LIB_DIR="${JBOSS_HOME_DIR}/lib"
850 -JBOSS_LIB_URL="file:${JBOSS_LIB_DIR}"
851 -JBOSS_ENDORSED_DIRS="${JBOSS_HOME_DIR}/lib/endorsed"
852 -JBOSS_SERVER_BASE_DIR="${SRVDIR}/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}"
853 -JBOSS_SERVER_BASE_URL="file:${JBOSS_SERVER_BASE_DIR}"
854 -JBOSS_SERVER_HOME_DIR="${JBOSS_SERVER_BASE_DIR}/${JBOSS_SERVER_NAME}"
855 -JBOSS_SERVER_HOME_URL="file:${JBOSS_SERVER_HOME_DIR}"
856 -JBOSS_SERVER_CONFIG_URL="${JBOSS_SERVER_HOME_URL}/conf/"
857 -JBOSS_SERVER_DATA_DIR="/var/cache/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
858 -JBOSS_SERVER_LIB_URL="${JBOSS_SERVER_HOME_URL}/lib"
859 -JBOSS_SERVER_LOG_DIR="/var/log/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
860 -JBOSS_SERVER_ROOT_DEPLOYMENT_FILENAME="jboss-service.xml"
861 -JBOSS_SERVER_TEMP_DIR="/var/tmp/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
862 -JBOSS_PATCH_URL=""
863 -JBOSS_BIND_ADDRESS="0.0.0.0"
864 -JBOSS_SERVER_EXIT_ON_SHUTDOWN="true"
865 -JBOSS_SERVER_BLOCKING_SHUTDOWN="false"
866 -JBOSS_PLATFORM_MBEAN_SERVER="false"
867 -JBOSS_SERVER_REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY="true"
868 -
869 -# JBoss file descriptors limit (either maximum or a number)
870 -JBOSS_FD_LIMIT="maximum"
871 -
872 -# JBoss shutdown arguments
873 -JBOSS_SHUTDOWN_ARGS="-S"
874
875 diff --git a/www-servers/jboss-bin/files/4.0.5/normal/env.d/50jboss-bin-4.gz b/www-servers/jboss-bin/files/4.0.5/normal/env.d/50jboss-bin-4.gz
876 deleted file mode 100644
877 index db4f146..0000000
878 Binary files a/www-servers/jboss-bin/files/4.0.5/normal/env.d/50jboss-bin-4.gz and /dev/null differ
879
880 diff --git a/www-servers/jboss-bin/files/4.0.5/normal/init.d/jboss-bin-4 b/www-servers/jboss-bin/files/4.0.5/normal/init.d/jboss-bin-4
881 deleted file mode 100755
882 index 8dbd30e..0000000
883 --- a/www-servers/jboss-bin/files/4.0.5/normal/init.d/jboss-bin-4
884 +++ /dev/null
885 @@ -1,80 +0,0 @@
886 -#!/sbin/runscript
887 -# Copyright 1999-2004 Gentoo Foundation
888 -# Distributed under the terms of the GNU General Public License v2
889 -# $Id$
890 -
891 -
892 -depend() {
893 - use dns logger net
894 -}
895 -
896 -
897 -init_vars() {
898 -
899 - JBOSS_INT_OPTS="-Djboss.server.name=${JBOSS_SERVER_NAME}"
900 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.home.dir=${JBOSS_HOME_DIR}"
901 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.home.url=${JBOSS_HOME_URL}"
902 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.lib.url=${JBOSS_LIB_URL}"
903 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djava.endorsed.dirs=${JBOSS_ENDORSED_DIRS}"
904 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.base.dir=${JBOSS_SERVER_BASE_DIR}"
905 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.base.url=${JBOSS_SERVER_BASE_URL}"
906 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.home.dir=${JBOSS_SERVER_HOME_DIR}"
907 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.home.url=${JBOSS_SERVER_HOME_URL}"
908 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.config.url=${JBOSS_SERVER_CONFIG_URL}"
909 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.root.deployment.filename=${JBOSS_SERVER_ROOT_DEPLOYMENT_FILENAME}"
910 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.data.dir=${JBOSS_SERVER_DATA_DIR}"
911 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.lib.url=${JBOSS_SERVER_LIB_URL}"
912 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.log.dir=${JBOSS_SERVER_LOG_DIR}"
913 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.temp.dir=${JBOSS_SERVER_TEMP_DIR}"
914 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.bind.address=${JBOSS_BIND_ADDRESS}"
915 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.exitonshutdown=${JBOSS_SERVER_EXIT_ON_SHUTDOWN}"
916 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.blockingshutdown=${JBOSS_SERVER_BLOCKING_SHUTDOWN}"
917 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.platform.mbeanserver=${JBOSS_PLATFORM_MBEAN_SERVER}"
918 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.requirejbossurlstreamhandlerfactory=${JBOSS_SERVER_REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY}"
919 - if [ -n "${JBOSS_PATCH_URL}" ]; then
920 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.patch.url=${JBOSS_PATCH_URL}"
921 - fi
922 - # additionnal classpath, must be last
923 - #getting tools.jar
924 - eval $(gjl -p jboss-bin-4 --get-vm);
925 - jhome=$(java-config-2 --select-vm=$gjl_vm -O)
926 - tools_jar="${jhome}/lib/tools.jar"
927 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -classpath ${tools_jar}"
928 -
929 -}
930 -
931 -start() {
932 - ebegin "Starting JBoss"
933 -
934 - MAX_FD_LIMIT=`ulimit -H -n`
935 - if [ $? -eq 0 ]; then
936 - if [ "${JBOSS_FD_LIMIT}" = "maximum" ]; then
937 - # use the system max
938 - JBOSS_FD_LIMIT="${MAX_FD_LIMIT}"
939 - fi
940 - ulimit -n ${JBOSS_FD_LIMIT}
941 - if [ $? -ne 0 ]; then
942 - ewarn "Could not set maximum file descriptor limit: ${JBOSS_FD_LIMIT}"
943 - fi
944 - else
945 - ewarn "Could not query system maximum file descriptor limit: ${MAX_FD_LIMIT}"
946 - fi
947 -
948 - init_vars
949 - start-stop-daemon --start --chuid ${JBOSS_USER}:${JBOSS_GROUP}\
950 - --make-pidfile --pidfile /var/run/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}_jboss-bin-4.pid \
951 - --env JAVA_OPTIONS="${JAVA_OPTS} ${JBOSS_INT_OPTS} -classpath /opt/jboss-bin-4/bin/run.jar"\
952 - --exec /opt/jboss-bin-4/bin/jboss-start.sh -- 2>&1 >>/dev/null &
953 -
954 - eend $?
955 -}
956 -
957 -stop() {
958 - ebegin "Stopping JBoss"
959 - init_vars
960 - start-stop-daemon --stop --quiet --make-pidfile \
961 - --pidfile /var/run/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}_jboss-bin-4.pid \
962 - --env JAVA_OPTIONS="${JAVA_OPTS} ${JBOSS_INT_OPTS} -classpath /opt/jboss-bin-4/bin/shutdown.jar"\
963 - --exec /opt/jboss-bin-4/bin/jboss-stop.sh
964 - eend $?
965 -}
966
967 diff --git a/www-servers/jboss-bin/files/4.0.5/srvdir/bin/jboss-bin-4-profiles-creator.sh b/www-servers/jboss-bin/files/4.0.5/srvdir/bin/jboss-bin-4-profiles-creator.sh
968 deleted file mode 100755
969 index aff540e..0000000
970 --- a/www-servers/jboss-bin/files/4.0.5/srvdir/bin/jboss-bin-4-profiles-creator.sh
971 +++ /dev/null
972 @@ -1,501 +0,0 @@
973 -#!/bin/sh
974 -#License: GPL2
975 -#author: kiorky kiorky@××××××××××.net
976 -PATH="${PATH}:/usr/lib/portage/bin"
977 -source /etc/init.d/functions.sh
978 -
979 -debug="false"
980 -
981 -JBOSS_VERSION="jboss-bin-4"
982 -jboss_path="/opt/${JBOSS_VERSION}"
983 -
984 -action="help"
985 -
986 -# defaults
987 -srvdir="/srv"
988 -default_vhost="localhost"
989 -default_path="${srvdir}/${default_vhost}/${JBOSS_VERSION}"
990 -default_vhost_path="${srvdir}/${default_vhost}/${JBOSS_VERSION}"
991 -default_profile="${default_vhost_path}/gentoo"
992 -# initialize stuff
993 -profile="${default_profile}"
994 -vhost="${default_vhost}"
995 -path="${default_path}"
996 -vhost_path="${default_vhost_path}"
997 -name="${default_profile}"
998 -
999 -CONFDIR="/etc/${JBOSS_VERSION}"
1000 -TMPDIR="/var/tmp/${JBOSS_VERSION}"
1001 -CACHEDIR="/var/cache/${JBOSS_VERSION}"
1002 -RUNDIR="/var/run/${JBOSS_VERSION}"
1003 -LOGDIR="/var/log/${JBOSS_VERSION}"
1004 -
1005 -forbidden_to_install_in="/ /bin /include /lib /sbin /usr/bin /usr/include /usr/lib /usr/sbin"
1006 -XARGS="/usr/bin/xargs"
1007 -
1008 -# error management
1009 -# usage: do_error "theerror" ARGS
1010 -# read the code as it is enought explicit to use
1011 -# some errors can take arguments !!
1012 -do_error(){
1013 - eerror
1014 - case $1 in
1015 - "profile_creation_forbidden")
1016 - eerror "Please specify another location"
1017 - eerror " Creating profiles in \"$2\" is forbidden !!!"
1018 - ;;
1019 - "profile_file_exists")
1020 - eerror "Profile is even created ?"
1021 - eerror " File \"$3\" exists in \"$2\" directory"
1022 - ;;
1023 - "path_invalid_path")
1024 - eerror "Invalid path: $HILITE $2"
1025 - ;;
1026 - "profile_invalid_subdir")
1027 - eerror "Invalid profile"
1028 - eerror " Invalid JBOSS Servers subdir: $HILITE $2"
1029 - ;;
1030 - "profile_invalid_full_path")
1031 - eerror "Invalid profile"
1032 - eerror " Invalid full_path: $HILITE $2"
1033 - ;;
1034 - "argument_invalid_args")
1035 - eerror " You must specify --KEY=VALUE for your arguments"
1036 - ;;
1037 - "profile_invalid_profile")
1038 - eerror "Profile is invalid"
1039 - eerror " subdir for this profile is missing: $HILITE $2"
1040 - ;;
1041 - "path_no_path_given")
1042 - eerror "Please specify where you want to install your profile"
1043 - ;;
1044 - "argument_no_arg")
1045 - eerror "Please give Arguments"
1046 - ;;
1047 - "action_create_cant_create_dir")
1048 - eerror "Can't create profile directory"
1049 - exit -1
1050 - ;;
1051 - "action_help")
1052 - eerror "Help wanted ?"
1053 - eerror;usage;exit
1054 - ;;
1055 - "profile_file_exists")
1056 - eerror "Profile exists: $HILITE $2"
1057 - ;;
1058 - "delete_no_profile")
1059 - eerror "Invalid profile to delete: $HILITE $2"
1060 - ;;
1061 - "path_invalid_scope")
1062 - error "--path argument is invalid in this scope: $HILITE $2"
1063 - ;;
1064 - "vhost_invalid_vhost")
1065 - eerror "Please specify a valid vhost"
1066 - eerror " Vhost given: $2"
1067 - ;;
1068 - "path_not_exists")
1069 - eerror "Please specify a valid final path"
1070 - eerror " Final profile path doest not exist: $HILITE $2"
1071 - ;;
1072 - *)
1073 - eerror
1074 - usage
1075 - exit # not error there !!!
1076 - esac
1077 - eerror "Please run for help:"
1078 - eerror " $HILITE$0 help"
1079 - exit -1
1080 -}
1081 -
1082 -
1083 -# print usage
1084 -usage(){
1085 - einfo
1086 - einfo "$BRACKET Usage: "
1087 - einfo "$HILITE JBoss profile Manager"
1088 - einfo
1089 - einfo
1090 - einfo "$BRACKET $0: action [ACTION_OPTIONS]"
1091 - einfo "valid options are:"
1092 - einfo "$HILITE delete"
1093 - einfo " * Delete a profile"
1094 - einfo " * You can get profiles with list"
1095 - einfo "$HILITE list"
1096 - einfo " * List actual profiles"
1097 - einfo "$HILITE create"
1098 - einfo " * Create a new profile"
1099 - einfo "$HILITE h"
1100 - einfo "$HILITE help"
1101 - einfo " * print this helper"
1102 - einfo
1103 - einfo "Valid arguments are:"
1104 - einfo "$HILITE --profile=serverdir_template"
1105 - einfo " * the name of the template to use to create the new profile with --create"
1106 - einfo " * the name of the profile to delete with --delete"
1107 - einfo " Default is 'gentoo'"
1108 - einfo "$HILITE --path=/path/to/profile_to_create SCOPE:create"
1109 - einfo " * don't use the leading / for a subdir of ${INSTALL_DIR}/server"
1110 - einfo " * indicate the full location to other wanted location"
1111 - einfo "$HILITE --vhost=VHOST"
1112 - einfo " * Set the vhost (default is 'localhost')"
1113 - einfo " * Must exist a valid /srv/VHOST subdir"
1114 - einfo
1115 - einfo "$BRACKET TIPS:"
1116 - einfo " For create and delete, you must give the profile's name"
1117 - einfo
1118 - einfo "$BRACKET Examples"
1119 - einfo " $0 create --profile=gentoo --path=/opt/newprofile"
1120 - einfo " A new profile will be created in /opt/newprofile using default_vhost/gentoo as a template"
1121 - einfo " A symlick in /srvdir/defaultvhost/jbossversion/newprofile will be done"
1122 - einfo " $0 create --profile=gentoo --path=newprofile"
1123 - einfo " A new profile will be created in default vhost using srvdir/defaultvhost/jbossversion/igentoo as a template"
1124 - einfo " $0 --delete --profile=gentoo"
1125 - einfo " the 'gentoo' profile in default vhost will be deleted"
1126 - einfo
1127 -}
1128 -
1129 -# list actual profiles
1130 -# $1:vhost
1131 -# $2:vhost path
1132 -list_profiles() {
1133 - vhost=$1
1134 - vhost_path=$2
1135 - if [[ $debug == "true" ]];then
1136 - einfo "list_profiles: vhost: $vhost"
1137 - einfo "list_profiles: vhost_path: $vhost_path"
1138 - fi
1139 - einfo "Installed profiles in ${vhost} :"
1140 - for i in $(ls -d ${vhost_path}/* ) ;do
1141 - if [[ -L "$i" ]];then
1142 - einfo "$HILITE $(echo $i|sed -re "s:$vhost_path/*::g")"
1143 - einfo " Server subdir: $i"
1144 - einfo " Real path: $(ls -dl "$i" | awk -F " " '{print $11 }')"
1145 - else
1146 - einfo "$HILITE $i"
1147 - fi
1148 - done;
1149 -}
1150 -
1151 -
1152 -# verify if the vhost direcotry is created
1153 -# exit and display error on failure
1154 -# $1: vhost to verify
1155 -verify_vhost(){
1156 - if [[ -d ${srvdir}/$1 ]];then
1157 - vhost="$1"
1158 - vhost_path="${srvdir}/$1/${JBOSS_VERSION}"
1159 - else
1160 - do_error "vhost_invalid_vhost" $1
1161 - fi
1162 - [[ ${debug} == "true" ]] && einfo "verify_vhost: vhost : $vhost"\
1163 - && einfo "verify_vhost: vhost_path: $vhost_path"
1164 -}
1165 -
1166 -# verify if this path (for creation) is valid
1167 -# set the adequat variables
1168 -# exit on fails with error display
1169 -# $1: the path to verify
1170 -verify_path(){
1171 - local value=$1
1172 - if [[ ${action} == "create" ]];then
1173 - local l_name
1174 - # remove final slash if one
1175 - value=$(echo ${value}|sed -re "s/(\/*[^\/]+)\/*$/\1/")
1176 - # is there a profile or a full path
1177 - if [[ ${value:0:2} == "./" ]];then
1178 - # if relative getting full
1179 - value="$(pwd|sed -re "s:(.*)/*$:\1/:")$(echo ${value}|sed -re "s:\./::g")"
1180 - fi
1181 - if [[ ${value:0:1} == "/" ]];then
1182 - is_subdir=0
1183 - else
1184 - # if profile, verify that s the name doesnt contains any other path
1185 - [[ $(echo ${value}|grep "/" |grep -v grep|wc -l ) -gt 0 ]] \
1186 - && do_error "profile_invalid_subdir" ${value}
1187 - value=${vhost_path}/${value}
1188 - is_subdir=1
1189 - fi
1190 - for forbidden in ${forbidden_to_install_in};do
1191 - if [[ $(echo ${value}|sed -re "s:^($forbidden):STOP:") == "STOP" ]];then
1192 - do_error "profile_creation_forbidden" ${forbidden}
1193 - fi
1194 - done
1195 - # if final directory is even created
1196 - # we control that we do not overwrite an existing profile
1197 - if [[ -d ${value} || -L ${value} ]];then
1198 - for i in conf data lib run tmp deploy;do
1199 - [[ -e ${value}/$i ]] && do_error "profile_file_exists" "${value}" "$i"
1200 - done
1201 - fi
1202 - #if fullpath, check that the name doesnt exists
1203 - name="$(echo ${value}|sed -re "s:(.*/)([^/]*)($):\2:")"
1204 - [[ -e ${default_path}/${name} ]] && do_error "profile_file_exists" ${name}
1205 - # clean variables
1206 - # remove final slash if one
1207 - path="${value}"
1208 - path=$(echo ${path}|sed -re "s/\/*$//")
1209 -
1210 - else
1211 - do_error "path_invalid_scope" ${action}
1212 - fi
1213 - if [[ ${debug} == "true" ]];then
1214 - einfo "verify_path: path: $path"
1215 - einfo "verify_path: name: $name"
1216 - [[ ${is_subdir} != "1" ]] && einfo "verify_path: symlick in: ${vhost_path}/${name}"
1217 - fi
1218 -}
1219 -
1220 -# verfiry a jboss profile
1221 -# $1 : profile name
1222 -# exit and print usage if profile is invalid
1223 -# continue either
1224 -verify_profile() {
1225 - local value=$1
1226 - if [[ ${value:0:1} == "/" || ${value:0:2} == "./" ]];then
1227 - #full or relative path is given
1228 - if [[ -e ${value} ]]; then
1229 - profile="${value}"
1230 - else
1231 - do_error "profile_invalid_full_path" ${value}
1232 - fi
1233 - # subdir given
1234 - elif [[ -e ${vhost_path}/${value} ]];then
1235 - profile="${vhost_path}/$value"
1236 - else
1237 - do_error "profile_invalid_subdir" ${value}
1238 - fi
1239 - for i in conf lib deploy;do
1240 - if [[ ! -e ${profile}/$i ]];then
1241 - do_error "profile_invalid_profile" $i
1242 - fi
1243 - done
1244 - # clean variables
1245 - # remove final slash if one
1246 - profile=$(echo ${profile}|sed -re "s/\/*$//")
1247 -
1248 - [[ ${debug} == "true" ]] && einfo "verify_profile: profile: $profile"
1249 -}
1250 -
1251 -# adds ".keep" files so that dirs aren't auto-cleaned
1252 -keepdir() {
1253 - mkdir -p "$@"
1254 - local x
1255 - if [ "$1" == "-R" ] || [ "$1" == "-r" ]; then
1256 - shift
1257 - find "$@" -type d -printf "%p/.keep_www-server_jboss-bin_4\n" |\
1258 - tr "\n" "\0" | $XARGS -0 -n100 touch ||\
1259 - die "Failed to recursive create .keep files"
1260 - else
1261 - for x in "$@"; do
1262 - touch "${x}/.keep_www-server_jboss-bin_4" ||\
1263 - die "Failed to create .keep in ${D}/${x}"
1264 - done
1265 - fi
1266 -}
1267 -
1268 -# parse command lines arguments
1269 -parse_cmdline() {
1270 - local arg value
1271 - # parse and validate arguments
1272 - for param in ${@};do
1273 - case ${param} in
1274 - "-v"|"-verbose"|"--v")
1275 - debug="true"
1276 -# echo "Setting verbose to true: $debug"
1277 - ;;
1278 - *)
1279 - if [[ $(echo ${param} | sed -re "s/--.*=..*/GOOD/g" ) != "GOOD" ]]; then
1280 - do_error "argument_invalid_args"
1281 - fi
1282 - arg=$(echo ${param} | sed -re "s/(--)(.*)(=.*)/\2/g")
1283 - value=$(echo ${param} | sed -re "s/(.*=)(.*)/\2/g")
1284 - case "$arg" in
1285 - "profile")
1286 - profile=${value}
1287 - ;;
1288 - "path")
1289 - path=${value}
1290 - ;;
1291 - "vhost")
1292 - vhost=${value}
1293 - ;;
1294 - esac
1295 - ;;
1296 - esac
1297 - done
1298 -
1299 -}
1300 -
1301 -# delete a profile
1302 -# $1: profile name
1303 -# $2: vhost to use
1304 -# $3: vhost path
1305 -delete_profile(){
1306 - profile=$1
1307 - vhost=$2
1308 - vhost_path=$3
1309 - # contructing path to delete
1310 - path="${vhost_path}/${profile}"
1311 - local l_profile="${vhost}/${profile}"
1312 - if [[ $debug == "true" ]];then
1313 - einfo "delete_profile: profile: $profile"
1314 - einfo "delete_profile: vhost: $vhost"
1315 - einfo "delete_profile: vhost_path: $vhost_path"
1316 - einfo "delete_profile: path: $path"
1317 - einfo "delete_profile: l_profile: $l_profile"
1318 - fi
1319 - # if symlick getting real path
1320 - if [[ -L ${path} ]];then
1321 - path="$(ls -dl "${path}" | awk -F " " '{print $11 }')"
1322 - # else nothing
1323 - elif [[ -d ${path} ]];then
1324 - echo>>/dev/null
1325 - # if not a symlick or a direcotry, something weird, we exit !
1326 - else
1327 - do_error "delete_no_profile" $profile
1328 - fi
1329 -
1330 - ewarn "Deleting profile: $HILITE ${profile}"
1331 - ewarn "In vhost: $HILITE ${vhost}"
1332 - ewarn "Path: $HILITE ${path}"
1333 - print_yes_no
1334 - # delete if symlick
1335 - [[ -L ${vhost_path}/${name} ]] && echo rm -rf ${default_path}/${name}
1336 -
1337 - # delete run files
1338 - rm -rf ${TMPDIR}/${l_profile}\
1339 - ${CACHEDIR}/${l_profile}\
1340 - ${RUNDIR}/${l_profile}\
1341 - ${LOGDIR}/${l_profile}\
1342 - ${CONFDIR}/${l_profile}\
1343 - ${path} \
1344 - ${CONFDIR}/${l_profile}
1345 -}
1346 -
1347 -
1348 -# create the profile
1349 -# $1: vhost to install into
1350 -# $2: profile
1351 -# $3: path to install
1352 -# $4: name of this profile
1353 -# $5: subdir of jboss if 1 / full path if 0
1354 -create_profile(){
1355 - vhost=$1;profile=$2;path=$3;name=$4;is_subdir=$5
1356 - local l_profile="${vhost}/${name}"
1357 -
1358 - # if default arguments are given
1359 - if [[ ${path} == "${default_path}" ]];then
1360 - do_error "path_no_path_given"
1361 - fi
1362 -
1363 - ewarn "Creating profile in ${path}"
1364 - ewarn "Using ${profile} profile"
1365 -
1366 - # do base direcotries
1367 - keepdir ${TMPDIR}/${l_profile}\
1368 - ${CACHEDIR}/${l_profile}\
1369 - ${RUNDIR}/${l_profile}\
1370 - ${LOGDIR}/${l_profile}\
1371 - ${CONFDIR}/${l_profile}
1372 -
1373 - # create directory
1374 - mkdir -p ${path} || do_error "action_create_cant_create_dir"
1375 -
1376 - # copy profile
1377 - for i in conf deploy lib;do
1378 - cp -rf ${profile}/$i ${path}/
1379 - done
1380 -
1381 - # do runtime files stuff
1382 - ln -s ${LOGDIR}/${l_profile} ${path}/logs
1383 - ln -s ${CACHEDIR}/${l_profile} ${path}/data
1384 - ln -s ${TMPDIR}/${l_profile} ${path}/tmp
1385 - ln -s ${RUNDIR}/${l_profile} ${path}/run
1386 -
1387 - # do /etc stuff
1388 - ln -s ${path}/conf ${CONFDIR}/${l_profile}/conf
1389 - ln -s ${path}/deploy/jbossweb-tomcat55.sar/server.xml ${CONFDIR}/${l_profile}
1390 -
1391 - # if we don't create in jboss directory, link the profile in jboss servers dir
1392 - [[ is_subdir -eq 0 ]] && ln -s ${path} ${vhost_path}/${name}
1393 -
1394 - # fix perms
1395 - for i in ${TMPDIR}/${l_profile} ${CACHEDIR}/${l_profile} \
1396 - ${RUNDIR}/${l_profile} ${LOGDIR}/${l_profile} \
1397 - ${CONFDIR}/${l_profile} ${CONFDIR}/${l_profile} \
1398 - ${path};do
1399 - chmod -Rf 755 $i;
1400 - chown -R jboss:jboss $i;
1401 - done
1402 -}
1403 -
1404 -# print collected informations
1405 -# $1: subdir of jboss if 1 / full path if 0
1406 -confirm_creation() {
1407 - ewarn "Jboss profile manager for : $HILITE ${name}"
1408 - if [[ $1 -eq 0 ]];then
1409 - WHERE="directory"
1410 - else
1411 - WHERE="vhost subdir"
1412 - fi
1413 - ewarn "Installing in ${WHERE}:"
1414 - ewarn " $HILITE${path} "
1415 - ewarn "Using profile: "
1416 - ewarn " $HILITE${profile} "
1417 -
1418 -}
1419 -
1420 -# print a yes_no like form
1421 -# exit on failure / no
1422 -# continue if yes
1423 -print_yes_no(){
1424 - local i nb nok="nok";
1425 - while [[ nok == "nok" ]];do
1426 - [[ $nb -gt 12 ]] && eerror "Invalid arguments" && exit -1
1427 - [[ $nb -gt 10 ]] && ewarn "Please Enter CTRL-C to exit "\
1428 - && ewarn " or \"Y\" to say YES"\
1429 - && ewarn " or \"N\" to say NO"
1430 - ewarn " Is that Correct (Y/N) ???"
1431 - read i;
1432 - [[ $i == "Y" || $i == "y" ]] && break
1433 - [[ $i == "N" || $i == "n" ]] && einfo "User wanted interrupt" && exit
1434 - nb=$((nb+1))
1435 - done
1436 -}
1437 -
1438 -main(){
1439 - local args="$2 $3 $4 $5 $6"
1440 - action="$1"
1441 - # if no args are given
1442 - if [[ $# -lt 1 ]];then
1443 - do_error "argument_no_arg"
1444 - fi
1445 - case ${action} in
1446 - create)
1447 - parse_cmdline ${args}
1448 - verify_vhost ${vhost}
1449 - verify_path ${path}
1450 - verify_profile ${profile}
1451 - confirm_creation ${is_subdir}
1452 - print_yes_no
1453 - create_profile ${vhost} ${profile} ${path} ${name} ${is_subdir}
1454 - ;;
1455 - delete)
1456 - parse_cmdline ${args}
1457 - verify_vhost ${vhost}
1458 - delete_profile ${profile} ${vhost} ${vhost_path}
1459 - ;;
1460 - list)
1461 - parse_cmdline ${args}
1462 - verify_vhost ${vhost}
1463 - list_profiles ${vhost} ${vhost_path}
1464 - ;;
1465 - --help|h|-h|help)
1466 - do_error "action_help"
1467 - ;;
1468 - *)
1469 - usage
1470 - ;;
1471 - esac
1472 -}
1473 -main ${@}
1474
1475 diff --git a/www-servers/jboss-bin/files/4.0.5/srvdir/conf.d/jboss-bin-4 b/www-servers/jboss-bin/files/4.0.5/srvdir/conf.d/jboss-bin-4
1476 deleted file mode 100644
1477 index 836eb76..0000000
1478 --- a/www-servers/jboss-bin/files/4.0.5/srvdir/conf.d/jboss-bin-4
1479 +++ /dev/null
1480 @@ -1,55 +0,0 @@
1481 -## JAVA
1482 -##your machine hostname or the one (main) you want to use
1483 -JBOSS_HOSTNAME="localhost"
1484 -# the profile wanted
1485 -JBOSS_SERVER_NAME="gentoo"
1486 -# JBoss group (change at your own risk)
1487 -JBOSS_USER="jboss"
1488 -# JBoss group (change at your own risk)
1489 -JBOSS_GROUP="jboss"
1490 -# which version of jboss this config file belongs to
1491 -JBOSS_PN_SLOT="jboss-bin-4"
1492 -# GLEP20: where is the services directory
1493 -SRVDIR="/srv"
1494 -# Java options (copied from ${JBOSS_HOME_DIR}/bin/run.conf) - use "-server" only if Java supports it
1495 -JAVA_OPTS="-server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
1496 -# Sample JPDA settings for remote socket debuging
1497 -#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"
1498 -# Sample JPDA settings for shared memory debugging
1499 -#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"
1500 -
1501 -## JBoss configuration
1502 -## Used names mimic standard JBoss naming for these properties, i.e. JBOSS_SERVER_NAME variable is
1503 -## jboss.server.name property. These variables are self-explanatory. If you are not sure what they
1504 -## are for, you can consult JBoss documentation.
1505 -## NOTE: At the moment we use both JBOSS_HOME_DIR and JBOSS_HOME_URL because JBOSS_HOME_DIR is used
1506 -## in classpaths construction. The same is true for JBOSS_LIB_DIR and JBOSS_LIB_URL. *_DIR is used
1507 -## to construct classpath and *_URL is passed to java as argument.
1508 -
1509 -JBOSS_HOME_DIR="/opt/${JBOSS_PN_SLOT}"
1510 -JBOSS_HOME_URL="file:${JBOSS_HOME_DIR}"
1511 -JBOSS_LIB_DIR="${JBOSS_HOME_DIR}/lib"
1512 -JBOSS_LIB_URL="file:${JBOSS_LIB_DIR}"
1513 -JBOSS_ENDORSED_DIRS="${JBOSS_HOME_DIR}/lib/endorsed"
1514 -JBOSS_SERVER_BASE_DIR="${SRVDIR}/${JBOSS_HOSTNAME}/${JBOSS_PN_SLOT}"
1515 -JBOSS_SERVER_BASE_URL="file:${JBOSS_SERVER_BASE_DIR}"
1516 -JBOSS_SERVER_HOME_DIR="${JBOSS_SERVER_BASE_DIR}/${JBOSS_SERVER_NAME}"
1517 -JBOSS_SERVER_HOME_URL="file:${JBOSS_SERVER_HOME_DIR}"
1518 -JBOSS_SERVER_CONFIG_URL="${JBOSS_SERVER_HOME_URL}/conf/"
1519 -JBOSS_SERVER_DATA_DIR="/var/cache/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
1520 -JBOSS_SERVER_LIB_URL="${JBOSS_SERVER_HOME_URL}/lib"
1521 -JBOSS_SERVER_LOG_DIR="/var/log/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
1522 -JBOSS_SERVER_ROOT_DEPLOYMENT_FILENAME="jboss-service.xml"
1523 -JBOSS_SERVER_TEMP_DIR="/var/tmp/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
1524 -JBOSS_PATCH_URL=""
1525 -JBOSS_BIND_ADDRESS="0.0.0.0"
1526 -JBOSS_SERVER_EXIT_ON_SHUTDOWN="true"
1527 -JBOSS_SERVER_BLOCKING_SHUTDOWN="false"
1528 -JBOSS_PLATFORM_MBEAN_SERVER="false"
1529 -JBOSS_SERVER_REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY="true"
1530 -
1531 -# JBoss file descriptors limit (either maximum or a number)
1532 -JBOSS_FD_LIMIT="maximum"
1533 -
1534 -# JBoss shutdown arguments
1535 -JBOSS_SHUTDOWN_ARGS="-S"
1536
1537 diff --git a/www-servers/jboss-bin/files/4.0.5/srvdir/env.d/50jboss-bin-4.gz b/www-servers/jboss-bin/files/4.0.5/srvdir/env.d/50jboss-bin-4.gz
1538 deleted file mode 100644
1539 index db4f146..0000000
1540 Binary files a/www-servers/jboss-bin/files/4.0.5/srvdir/env.d/50jboss-bin-4.gz and /dev/null differ
1541
1542 diff --git a/www-servers/jboss-bin/files/4.0.5/srvdir/init.d/jboss-bin-4 b/www-servers/jboss-bin/files/4.0.5/srvdir/init.d/jboss-bin-4
1543 deleted file mode 100755
1544 index 8dbd30e..0000000
1545 --- a/www-servers/jboss-bin/files/4.0.5/srvdir/init.d/jboss-bin-4
1546 +++ /dev/null
1547 @@ -1,80 +0,0 @@
1548 -#!/sbin/runscript
1549 -# Copyright 1999-2004 Gentoo Foundation
1550 -# Distributed under the terms of the GNU General Public License v2
1551 -# $Id$
1552 -
1553 -
1554 -depend() {
1555 - use dns logger net
1556 -}
1557 -
1558 -
1559 -init_vars() {
1560 -
1561 - JBOSS_INT_OPTS="-Djboss.server.name=${JBOSS_SERVER_NAME}"
1562 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.home.dir=${JBOSS_HOME_DIR}"
1563 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.home.url=${JBOSS_HOME_URL}"
1564 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.lib.url=${JBOSS_LIB_URL}"
1565 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djava.endorsed.dirs=${JBOSS_ENDORSED_DIRS}"
1566 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.base.dir=${JBOSS_SERVER_BASE_DIR}"
1567 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.base.url=${JBOSS_SERVER_BASE_URL}"
1568 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.home.dir=${JBOSS_SERVER_HOME_DIR}"
1569 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.home.url=${JBOSS_SERVER_HOME_URL}"
1570 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.config.url=${JBOSS_SERVER_CONFIG_URL}"
1571 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.root.deployment.filename=${JBOSS_SERVER_ROOT_DEPLOYMENT_FILENAME}"
1572 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.data.dir=${JBOSS_SERVER_DATA_DIR}"
1573 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.lib.url=${JBOSS_SERVER_LIB_URL}"
1574 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.log.dir=${JBOSS_SERVER_LOG_DIR}"
1575 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.temp.dir=${JBOSS_SERVER_TEMP_DIR}"
1576 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.bind.address=${JBOSS_BIND_ADDRESS}"
1577 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.exitonshutdown=${JBOSS_SERVER_EXIT_ON_SHUTDOWN}"
1578 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.blockingshutdown=${JBOSS_SERVER_BLOCKING_SHUTDOWN}"
1579 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.platform.mbeanserver=${JBOSS_PLATFORM_MBEAN_SERVER}"
1580 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.server.requirejbossurlstreamhandlerfactory=${JBOSS_SERVER_REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY}"
1581 - if [ -n "${JBOSS_PATCH_URL}" ]; then
1582 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.patch.url=${JBOSS_PATCH_URL}"
1583 - fi
1584 - # additionnal classpath, must be last
1585 - #getting tools.jar
1586 - eval $(gjl -p jboss-bin-4 --get-vm);
1587 - jhome=$(java-config-2 --select-vm=$gjl_vm -O)
1588 - tools_jar="${jhome}/lib/tools.jar"
1589 - JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -classpath ${tools_jar}"
1590 -
1591 -}
1592 -
1593 -start() {
1594 - ebegin "Starting JBoss"
1595 -
1596 - MAX_FD_LIMIT=`ulimit -H -n`
1597 - if [ $? -eq 0 ]; then
1598 - if [ "${JBOSS_FD_LIMIT}" = "maximum" ]; then
1599 - # use the system max
1600 - JBOSS_FD_LIMIT="${MAX_FD_LIMIT}"
1601 - fi
1602 - ulimit -n ${JBOSS_FD_LIMIT}
1603 - if [ $? -ne 0 ]; then
1604 - ewarn "Could not set maximum file descriptor limit: ${JBOSS_FD_LIMIT}"
1605 - fi
1606 - else
1607 - ewarn "Could not query system maximum file descriptor limit: ${MAX_FD_LIMIT}"
1608 - fi
1609 -
1610 - init_vars
1611 - start-stop-daemon --start --chuid ${JBOSS_USER}:${JBOSS_GROUP}\
1612 - --make-pidfile --pidfile /var/run/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}_jboss-bin-4.pid \
1613 - --env JAVA_OPTIONS="${JAVA_OPTS} ${JBOSS_INT_OPTS} -classpath /opt/jboss-bin-4/bin/run.jar"\
1614 - --exec /opt/jboss-bin-4/bin/jboss-start.sh -- 2>&1 >>/dev/null &
1615 -
1616 - eend $?
1617 -}
1618 -
1619 -stop() {
1620 - ebegin "Stopping JBoss"
1621 - init_vars
1622 - start-stop-daemon --stop --quiet --make-pidfile \
1623 - --pidfile /var/run/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}_jboss-bin-4.pid \
1624 - --env JAVA_OPTIONS="${JAVA_OPTS} ${JBOSS_INT_OPTS} -classpath /opt/jboss-bin-4/bin/shutdown.jar"\
1625 - --exec /opt/jboss-bin-4/bin/jboss-stop.sh
1626 - eend $?
1627 -}
1628
1629 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/server.xml b/www-servers/jboss-bin/files/4.0.5/tomcat/server.xml
1630 deleted file mode 100755
1631 index 8cfa1dc..0000000
1632 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/server.xml
1633 +++ /dev/null
1634 @@ -1,180 +0,0 @@
1635 -<Server>
1636 -
1637 - <!-- Use a custom version of StandardService that allows the
1638 - connectors to be started independent of the normal lifecycle
1639 - start to allow web apps to be deployed before starting the
1640 - connectors.
1641 - -->
1642 - <Service name="jboss.web"
1643 - className="org.jboss.web.tomcat.tc5.StandardService">
1644 -
1645 - <!-- A HTTP/1.1 Connector on port 8080 -->
1646 - <Connector port="8080" address="${jboss.bind.address}"
1647 - maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
1648 - emptySessionPath="true"
1649 - enableLookups="false" redirectPort="8443" acceptCount="100"
1650 - connectionTimeout="20000" disableUploadTimeout="true"/>
1651 -
1652 - <!-- Add this option to the connector to avoid problems with
1653 - .NET clients that don't implement HTTP/1.1 correctly
1654 - restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*$"
1655 - -->
1656 -
1657 - <!-- A AJP 1.3 Connector on port 8009 -->
1658 - <Connector port="8009" address="${jboss.bind.address}"
1659 - emptySessionPath="true" enableLookups="false" redirectPort="8443"
1660 - protocol="AJP/1.3"/>
1661 -
1662 - <!-- SSL/TLS Connector configuration using the admin devl guide keystore
1663 - <Connector port="8443" address="${jboss.bind.address}"
1664 - maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
1665 - emptySessionPath="true"
1666 - scheme="https" secure="true" clientAuth="false"
1667 - keystoreFile="${jboss.server.home.dir}/conf/chap8.keystore"
1668 - keystorePass="rmi+ssl" sslProtocol = "TLS" />
1669 - -->
1670 -
1671 - <Engine name="jboss.web" defaultHost="localhost">
1672 -
1673 - <!-- The JAAS based authentication and authorization realm implementation
1674 - that is compatible with the jboss 3.2.x realm implementation.
1675 - - certificatePrincipal : the class name of the
1676 - org.jboss.security.auth.certs.CertificatePrincipal impl
1677 - used for mapping X509[] cert chains to a Princpal.
1678 - - allRolesMode : how to handle an auth-constraint with a role-name=*,
1679 - one of strict, authOnly, strictAuthOnly
1680 - + strict = Use the strict servlet spec interpretation which requires
1681 - that the user have one of the web-app/security-role/role-name
1682 - + authOnly = Allow any authenticated user
1683 - + strictAuthOnly = Allow any authenticated user only if there are no
1684 - web-app/security-roles
1685 - -->
1686 - <Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm"
1687 - certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
1688 - allRolesMode="authOnly"
1689 - />
1690 - <!-- A subclass of JBossSecurityMgrRealm that uses the authentication
1691 - behavior of JBossSecurityMgrRealm, but overrides the authorization
1692 - checks to use JACC permissions with the current java.security.Policy
1693 - to determine authorized access.
1694 - - allRolesMode : how to handle an auth-constraint with a role-name=*,
1695 - one of strict, authOnly, strictAuthOnly
1696 - + strict = Use the strict servlet spec interpretation which requires
1697 - that the user have one of the web-app/security-role/role-name
1698 - + authOnly = Allow any authenticated user
1699 - + strictAuthOnly = Allow any authenticated user only if there are no
1700 - web-app/security-roles
1701 - <Realm className="org.jboss.web.tomcat.security.JaccAuthorizationRealm"
1702 - certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
1703 - allRolesMode="authOnly"
1704 - />
1705 - -->
1706 -
1707 - <Host
1708 - autoDeploy="true"
1709 - configClass="org.jboss.web.tomcat.security.config.JBossContextConfig"
1710 - deployOnStartup="true"
1711 - deployXML="true"
1712 - name="localhost"
1713 - unpackWARs="true"
1714 - appBase="${jboss.server.data.dir}"
1715 - >
1716 -<!-- <Context
1717 - allowLinking="true"
1718 - docBase="${jboss.server.home.dir}/deploy/ROOT.war"
1719 - path=""
1720 - privileged="true"
1721 - reloadable="true"
1722 - useNaming="true"
1723 - />
1724 --->
1725 -
1726 - <!-- Uncomment to enable request dumper. This Valve "logs interesting
1727 - contents from the specified Request (before processing) and the
1728 - corresponding Response (after processing). It is especially useful
1729 - in debugging problems related to headers and cookies."
1730 - -->
1731 - <!--
1732 - <Valve className="org.apache.catalina.valves.RequestDumperValve" />
1733 - -->
1734 -
1735 - <!-- Access logger -->
1736 -
1737 - <Valve
1738 - className="org.apache.catalina.valves.FastCommonAccessLogValve"
1739 - directory="${jboss.server.log.dir}/"
1740 - pattern="combined"
1741 - prefix="localhost_log."
1742 - resolveHosts="false"
1743 - suffix=".log"
1744 - />
1745 -
1746 -
1747 - <!-- Uncomment to enable single sign-on across web apps
1748 - deployed to this host. Does not provide SSO across a cluster.
1749 -
1750 - If this valve is used, do not use the JBoss ClusteredSingleSignOn
1751 - valve shown below.
1752 -
1753 - A new configuration attribute is available beginning with
1754 - release 4.0.4:
1755 -
1756 - cookieDomain configures the domain to which the SSO cookie
1757 - will be scoped (i.e. the set of hosts to
1758 - which the cookie will be presented). By default
1759 - the cookie is scoped to "/", meaning the host
1760 - that presented it. Set cookieDomain to a
1761 - wider domain (e.g. "xyz.com") to allow an SSO
1762 - to span more than one hostname.
1763 - -->
1764 - <!--
1765 - <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
1766 - -->
1767 -
1768 - <!-- Uncomment to enable single sign-on across web apps
1769 - deployed to this host AND to all other hosts in the cluster.
1770 -
1771 - If this valve is used, do not use the standard Tomcat SingleSignOn
1772 - valve shown above.
1773 -
1774 - Valve uses a JBossCache instance to support SSO credential
1775 - caching and replication across the cluster. The JBossCache
1776 - instance must be configured separately. By default, the valve
1777 - shares a JBossCache with the service that supports HttpSession
1778 - replication. See the "tc5-cluster-service.xml" file in the
1779 - server/all/deploy directory for cache configuration details.
1780 -
1781 - Besides the attributes supported by the standard Tomcat
1782 - SingleSignOn valve (see the Tomcat docs), this version also
1783 - supports the following attributes:
1784 -
1785 - cookieDomain see above
1786 -
1787 - treeCacheName JMX ObjectName of the JBossCache MBean used to
1788 - support credential caching and replication across
1789 - the cluster. If not set, the default value is
1790 - "jboss.cache:service=TomcatClusteringCache", the
1791 - standard ObjectName of the JBossCache MBean used
1792 - to support session replication.
1793 - -->
1794 - <!--
1795 - <Valve className="org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn" />
1796 - -->
1797 -
1798 - <!-- Check for unclosed connections and transaction terminated checks
1799 - in servlets/jsps.
1800 -
1801 - Important: The dependency on the CachedConnectionManager
1802 - in META-INF/jboss-service.xml must be uncommented, too
1803 - -->
1804 - <Valve className="org.jboss.web.tomcat.tc5.jca.CachedConnectionValve"
1805 - cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
1806 - transactionManagerObjectName="jboss:service=TransactionManager" />
1807 -
1808 - </Host>
1809 -
1810 - </Engine>
1811 -
1812 - </Service>
1813 -
1814 -</Server>
1815
1816 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/WEB-INF/jboss-web.xml b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/WEB-INF/jboss-web.xml
1817 deleted file mode 100644
1818 index f0b3fb2..0000000
1819 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/WEB-INF/jboss-web.xml
1820 +++ /dev/null
1821 @@ -1,8 +0,0 @@
1822 -<?xml version="1.0" encoding="UTF-8" ?>
1823 -<jboss-web>
1824 - <context-root>/gentoo-doc</context-root>
1825 -</jboss-web>
1826 -
1827 -
1828 -
1829 -
1830
1831 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/WEB-INF/web.xml b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/WEB-INF/web.xml
1832 deleted file mode 100755
1833 index 22838be..0000000
1834 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/WEB-INF/web.xml
1835 +++ /dev/null
1836 @@ -1,50 +0,0 @@
1837 -<?xml version="1.0" encoding="UTF-8"?>
1838 -<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
1839 -<web-app >
1840 - <distributable/>
1841 - <welcome-file-list>
1842 - <welcome-file>index.jsp</welcome-file>
1843 - <welcome-file>index.html</welcome-file>
1844 - </welcome-file-list>
1845 - <servlet>
1846 - <servlet-name>Status Servlet</servlet-name>
1847 - <servlet-class>org.jboss.web.tomcat.tc5.StatusServlet</servlet-class>
1848 - </servlet>
1849 - <servlet-mapping>
1850 - <servlet-name>Status Servlet</servlet-name>
1851 - <url-pattern>/status</url-pattern>
1852 - </servlet-mapping>
1853 -
1854 -</web-app>
1855 -
1856 -
1857 -
1858 -
1859 -
1860 -
1861 -
1862 -
1863 -
1864 -
1865 -
1866 -
1867 -
1868 -
1869 -
1870 -
1871 -
1872 -
1873 -
1874 -
1875 -
1876 -
1877 -
1878 -
1879 -
1880 -
1881 -
1882 -
1883 -
1884 -
1885 -
1886 -
1887
1888 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/css/styles.css b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/css/styles.css
1889 deleted file mode 100644
1890 index 861b395..0000000
1891 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/css/styles.css
1892 +++ /dev/null
1893 @@ -1,74 +0,0 @@
1894 -/* debug */
1895 -/* i*/
1896 -/* table {border: 1px solid black}
1897 - td {border: 1px dotted gray}
1898 - div {border: 3px solid orange}
1899 - img, form {border: 1px dashed blue}
1900 - h1, h2, h3, h4, h5, h6, p {border: 1px solid yellow}
1901 - ul {border: 1px solid red}
1902 - li {border: 1px solid lightgreen} */
1903 -/* */
1904 -
1905 -
1906 -* {margin: 0; padding: 0;position:relative;}
1907 -
1908 -.body_c {margin-top:40px;height:80%;padding-left:15px;}
1909 -
1910 -.menu {
1911 - float:left;
1912 - width:300px;
1913 - clear:left;
1914 - font-size:9;
1915 - padding-top:10px;
1916 - margin-top:20px;
1917 -}
1918 -/* menu definition */
1919 -.menu_title p {text-align:center;font-size:14pt;}
1920 -.menu_content ul {margin-bottom:10px;}
1921 -.menu_content li {list-style:none;font-size:10pt;padding-left:15px;}
1922 -
1923 -.content {margin-left:300px;}
1924 -/* border: 3px solid blue;}*/
1925 -.content_title {text-align:center;font-size:18pt;margin-bottom:40px;}
1926 -
1927 -.file {
1928 - padding:4px;margin-right:250px;margin-left:100px;padding-left:10px;margin-top:4px;
1929 - width:400px;
1930 - background-color: #ffafaf; border-bottom: 1px solid #888;
1931 -}
1932 -.code {
1933 - padding:10px;margin-right:250px;margin-left:100px;padding-left:10px;
1934 - border:1px solid #0E8605;
1935 - background-color: #f9f9f9;
1936 -}
1937 -code {
1938 - color:#0E8605;
1939 - font-weight: bold;
1940 -}
1941 -
1942 -.helper_title {
1943 - padding-left:10px;margin-top:20px;
1944 - font-weight: bold;
1945 -}
1946 -
1947 -.helper_args {
1948 - padding-left:20px;
1949 - font-weight: normal;
1950 - color: #0E8605;
1951 -}
1952 -.helper_desc {
1953 - font-weight: normal;
1954 - padding-left:35px;
1955 -}
1956 -
1957 -
1958 -.header { text-align:center;}
1959 -
1960 -.footer { padding-bottom:20px; margin-bottom:5px;}
1961 -
1962 -h1 {text-align:center;}
1963 -
1964 -.spacer {clear:both; /*}
1965 -/* border: 3px solid blue;}*/
1966 -
1967 -
1968
1969 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/gentoo.png b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/gentoo.png
1970 deleted file mode 100644
1971 index 07ae247..0000000
1972 Binary files a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/gentoo.png and /dev/null differ
1973
1974 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/gentoo.png b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/gentoo.png
1975 deleted file mode 100644
1976 index 07ae247..0000000
1977 Binary files a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/gentoo.png and /dev/null differ
1978
1979 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss.gif b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss.gif
1980 deleted file mode 100644
1981 index 46de83c..0000000
1982 Binary files a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss.gif and /dev/null differ
1983
1984 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss_powered.gif b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss_powered.gif
1985 deleted file mode 100644
1986 index 3297347..0000000
1987 Binary files a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss_powered.gif and /dev/null differ
1988
1989 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss_powered.jpg b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss_powered.jpg
1990 deleted file mode 100644
1991 index dfce723..0000000
1992 Binary files a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss_powered.jpg and /dev/null differ
1993
1994 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/logo.gif b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/logo.gif
1995 deleted file mode 100755
1996 index d33ddf6..0000000
1997 Binary files a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/logo.gif and /dev/null differ
1998
1999 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/index.jsp b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/index.jsp
2000 deleted file mode 100644
2001 index e520d57..0000000
2002 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/index.jsp
2003 +++ /dev/null
2004 @@ -1,27 +0,0 @@
2005 -<?xml version="1.0"?>
2006 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2007 - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2008 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
2009 -<head>
2010 - <title>gentoo rox</title>
2011 - <link rel="stylesheet" type="text/css" href="css/styles.css" />
2012 -</head>
2013 -<body>
2014 - <jsp:include page="./template/header.jsp" />
2015 - <div class="body_c">
2016 - <jsp:include page="./template/menu.jsp" />
2017 - <% if (request.getParameter("page") == null){ %>
2018 - <%@ include file="./modules/main.jsp" %>
2019 - <% } %>
2020 - <% if ("vhost".equals(request.getParameter("page"))){ %>
2021 - <%@ include file="./modules/vhost.jsp" %>
2022 - <% } %>
2023 - <% if ("profile_manager".equals(request.getParameter("page"))){ %>
2024 - <%@ include file="./modules/profile_manager.jsp" %>
2025 - <% } %>
2026 -
2027 - <div class="spacer">&nbsp;</div>
2028 - </div>
2029 - <jsp:include page="./template/footer.jsp" />
2030 -</body>
2031 -</html>
2032
2033 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/jboss.css b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/jboss.css
2034 deleted file mode 100644
2035 index f0838a6..0000000
2036 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/jboss.css
2037 +++ /dev/null
2038 @@ -1,143 +0,0 @@
2039 -body {
2040 - margin: 13px 0px 10px 0px;
2041 - background-color: #ffffff;
2042 - font-size: 10px;
2043 - font-family: verdana, arial, "sans-serif";
2044 - color: #606060;
2045 - }
2046 -img {
2047 - border: 0px;
2048 - }
2049 -#header {
2050 - background-color: #003D6E;
2051 - background-repeat: no-repeat;
2052 - width: 100%;
2053 - height: 80px;
2054 - }
2055 -#header #banner {
2056 - float: right;
2057 - margin: 8px 5px 0px 0px;
2058 - }
2059 -#logo {
2060 - position: absolute;
2061 - top: 2px;
2062 - left: 4px;
2063 - z-index: 200;
2064 -}
2065 -#navigation_bar {
2066 - background-color: #f0f0f0;
2067 - border-bottom: 1px dotted #999999;
2068 - height: 20px;
2069 - }
2070 -#items {
2071 - font-size: 12px;
2072 - width: 600px;
2073 - margin: 5px 5px 5px 170px;
2074 - position: relative;
2075 - z-index: 300;
2076 - }
2077 -#items .item {
2078 - margin-right: 10px;
2079 - }
2080 -.side_block {
2081 - margin: 15px 5px 10px 5px;
2082 - background-color: #fbfbfb;
2083 - border: 1px solid #f0f0f0;
2084 - }
2085 -.side_block h3 {
2086 - font-size: 11px;
2087 - font-weight: 100;
2088 - width: 100%;
2089 - margin: 0px 0px 5px 0px;
2090 - padding: 4px 4px 4px 10x;
2091 - background-color: #f0f0f0;
2092 - }
2093 -.side_block h4 {
2094 - font-size: 11px;
2095 - color: #003D6E;
2096 - font-weight: bold;
2097 - margin: 10px 5px 4px 5px;
2098 - }
2099 -.side_block p {
2100 - margin: 5px 5px 3px 5px;
2101 - }
2102 -.side_block form {
2103 - margin: 0px 0px 0px 5px;
2104 - }
2105 -.side_block #login {
2106 - font-size: 9px;
2107 - }
2108 -.side_block p img {
2109 - text-align: center;
2110 - }
2111 -#content {
2112 - width: 90%;
2113 - margin: 10px auto;
2114 - }
2115 -#left {
2116 - float: left;
2117 - width: 14%;
2118 - }
2119 -#right {
2120 - float: right;
2121 - width: 14%;
2122 - }
2123 -.content_block {
2124 - text-align: justify;
2125 - border: 1px solid #999999;
2126 - margin: 5px;
2127 - width: 31%;
2128 - float: left;
2129 - }
2130 -.content_block p {
2131 - margin: 0px 5px 3px 5px;
2132 - }
2133 -.content_block h3 {
2134 - font-size: 11px;
2135 - font-weight: bold;
2136 - color: #000000;
2137 - margin: 0px 0px 5px 0px;
2138 - padding: 4px 4px 4px 4x;
2139 - text-align: center;
2140 - background-color: #f0f0f0;
2141 - border-bottom: 1px solid #999999
2142 - }
2143 -.content_block h4 {
2144 - font-size: 11px;
2145 - color: #003D6E;
2146 - text-align: left;
2147 - font-weight: bold;
2148 - margin: 10px 5px 4px 5px;
2149 - }
2150 -#footer {
2151 - clear: both;
2152 - border-top: 1px dotted #999999;
2153 - }
2154 -#credits {
2155 - background-color: #f0f0f0;
2156 - padding: 5px;
2157 - text-align: center;
2158 - }
2159 -#footer_bar {
2160 - height: 20px;
2161 - width: 100%;
2162 - background-color: #003D6E;
2163 - }
2164 -.hide {
2165 - display: none;
2166 - }
2167 -.spacer {
2168 - clear: both;
2169 - }
2170 -.spacer hr {
2171 - display: none;
2172 - }
2173 -.center {
2174 - text-align: center;
2175 - }
2176 -#youcandoit {
2177 - background-image: url("youcandoit.jpg");
2178 - background-repeat: repeat-x;
2179 - height: 165px;
2180 - margin: 0px 30px 0px 30px;
2181 - }
2182
2183 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/logo.gif b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/logo.gif
2184 deleted file mode 100644
2185 index d33ddf6..0000000
2186 Binary files a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/logo.gif and /dev/null differ
2187
2188 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/manager/xform.xsl b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/manager/xform.xsl
2189 deleted file mode 100755
2190 index 147a45e..0000000
2191 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/manager/xform.xsl
2192 +++ /dev/null
2193 @@ -1,94 +0,0 @@
2194 -<?xml version="1.0"?>
2195 -
2196 -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2197 - version="1.0">
2198 -
2199 - <!-- Output method -->
2200 - <xsl:output encoding="iso-8859-1" indent="yes"/>
2201 -
2202 - <xsl:template match="status">
2203 - <html>
2204 - <head>
2205 - <TITLE>Tomcat Status</TITLE>
2206 - <STYLE type="text/css">
2207 - body, table, tr, td, a, div, span {
2208 - vertical-align : top;
2209 - }
2210 - </STYLE>
2211 - </head>
2212 - <body>
2213 - <div style='font-size:20px;'>Tomcat Status</div>
2214 - <xsl:apply-templates select="jvm"/>
2215 - <xsl:apply-templates select="connector"/>
2216 - </body>
2217 - </html>
2218 - </xsl:template>
2219 -
2220 - <xsl:template match="jvm">
2221 - <xsl:apply-templates select="memory"/>
2222 - </xsl:template>
2223 -
2224 - <xsl:template match="memory">
2225 - <table><tr>
2226 - <td><b>JVM:</b></td>
2227 - <td><b>free:</b> <xsl:value-of select="@free"/></td>
2228 - <td><b>total:</b> <xsl:value-of select="@total"/></td>
2229 - <td><b>max:</b> <xsl:value-of select="@max"/></td>
2230 - </tr>
2231 - </table><hr />
2232 - </xsl:template>
2233 -
2234 - <xsl:template match="connector">
2235 - <b>Connector -- </b> <xsl:value-of select="@name"/><br />
2236 -
2237 - <xsl:apply-templates select="threadInfo"/>
2238 - <xsl:apply-templates select="requestInfo"/>
2239 - <xsl:apply-templates select="workers"/>
2240 - </xsl:template>
2241 -
2242 - <xsl:template match="threadInfo">
2243 - <table><tr>
2244 - <td><b>threadInfo </b></td>
2245 - <td><b>maxThreads:</b> <xsl:value-of select="@maxThreads"/></td>
2246 - <td><b>minSpareThreads:</b> <xsl:value-of select="@minSpareThreads"/></td>
2247 - <td><b>maxSpareThreads:</b> <xsl:value-of select="@maxSpareThreads"/></td>
2248 - <td><b>currentThreadCount:</b> <xsl:value-of select="@currentThreadCount"/></td>
2249 - <td><b>currentThreadsBusy:</b> <xsl:value-of select="@currentThreadsBusy"/></td>
2250 - </tr>
2251 - </table><hr />
2252 - </xsl:template>
2253 -
2254 - <xsl:template match="requestInfo">
2255 - <table><tr>
2256 - <td><b>requestInfo </b></td>
2257 - <td><b>maxTime:</b> <xsl:value-of select="@maxTime"/></td>
2258 - <td><b>processingTime:</b> <xsl:value-of select="@processingTime"/></td>
2259 - <td><b>requestCount:</b> <xsl:value-of select="@requestCount"/></td>
2260 - <td><b>errorCount:</b> <xsl:value-of select="@errorCount"/></td>
2261 - <td><b>bytesReceived:</b> <xsl:value-of select="@bytesReceived"/></td>
2262 - <td><b>bytesSent:</b> <xsl:value-of select="@bytesSent"/></td>
2263 - </tr>
2264 - </table><hr />
2265 - </xsl:template>
2266 -
2267 - <xsl:template match="workers">
2268 - <table>
2269 - <tr><th>Stage</th><th>Time</th><th>B Sent</th><th>B Recv</th><th>Client</th><th>VHost</th><th>Request</th></tr>
2270 - <xsl:apply-templates select="worker"/>
2271 -
2272 - </table><hr />
2273 - </xsl:template>
2274 -
2275 - <xsl:template match="worker">
2276 - <tr>
2277 - <td><xsl:value-of select="@stage"/></td>
2278 - <td><xsl:value-of select="@requestProcessingTime"/></td>
2279 - <td><xsl:value-of select="@requestBytesSent"/></td>
2280 - <td><xsl:value-of select="@requestBytesReceived"/></td>
2281 - <td><xsl:value-of select="@remoteAddr"/></td>
2282 - <td><xsl:value-of select="@virtualHost"/></td>
2283 - <td><xsl:value-of select="@method"/> <xsl:value-of select="@currentUri"/>?<xsl:value-of select="@currentQueryString"/> <xsl:value-of select="@protocol"/></td>
2284 - </tr>
2285 - </xsl:template>
2286 -
2287 -</xsl:stylesheet>
2288
2289 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/main.jsp b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/main.jsp
2290 deleted file mode 100755
2291 index 88470d5..0000000
2292 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/main.jsp
2293 +++ /dev/null
2294 @@ -1,5 +0,0 @@
2295 -<div class="content">
2296 - <p class="content_title">Welcome to the gentoo default Web-APP</p>
2297 - <p>You ll find there documentation for helping you with jboss under gentoo </p>
2298 -</div>
2299 -
2300
2301 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/profile_manager.jsp b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/profile_manager.jsp
2302 deleted file mode 100644
2303 index 6e4bd2f..0000000
2304 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/profile_manager.jsp
2305 +++ /dev/null
2306 @@ -1,40 +0,0 @@
2307 -<div class="content">
2308 - <div class="content_title">Abstract</div>
2309 - <p>In order to prevent you from the pain of creating a new jboss custom profile,
2310 - we provide a simple helper wich can do a lot for you out of the box.</p>
2311 - <div class="code">/usr/bin/jboss-bin-4-profiles-creator.sh command [argument] [argument] ...</div>
2312 -
2313 - <div class="helper_title">Commands :
2314 - <div class="helper_args">delete</div>
2315 - <div class="helper_desc">Delete a profile</div>
2316 - <div class="helper_args">create</div>
2317 - <div class="helper_desc">Create a new profile</div>
2318 - <div class="helper_args">help</div>
2319 - <div class="helper_desc">print this helper</div>
2320 - <div class="helper_args">list</div>
2321 - <div class="helper_desc">list actual profiles</div>
2322 - </div>
2323 - <div class="helper_title">Arguments :
2324 - <div class="helper_args">--profile=serverdir_template</div>
2325 - <div class="helper_desc">The name of the template to use to create the new profile with <code>create</code></div>
2326 - <div class="helper_desc">The name of the profile to delete with <code>delete</code></div>
2327 - <div class="helper_desc">Default is 'gentoo'</div>
2328 - <div class="helper_args">--path=/path/to/profile_to_create SCOPE:create</div>
2329 - <div class="helper_desc">Don't use the leading / for a subdir of /server</div>
2330 - <div class="helper_desc">Indicate the full location to other wanted location</div>
2331 - <div class="helper_args">--vhost=VHOST</div>
2332 - <div class="helper_desc" >Set the vhost (default is 'localhost')</div>
2333 - <div class="helper_desc">Must exist a valid /srv/VHOST subdir</div>
2334 - </div>
2335 - <div class="helper_title">Tips :
2336 - <div class="helper_args"> For <code>create</code> and <code>delete</code>, you must give the profile's name</div>
2337 - </div>
2338 - <div class="helper_title">Examples :
2339 - <div class="helper_args">/usr/bin/jboss-bin-4-profiles-creator.sh create --profile=gentoo --path=/opt/newprofile</div>
2340 - <div class="helper_desc">A symlink in /srvdir/defaultvhost/jbossversion/newprofile will be done</div>
2341 - <div class="helper_args">/usr/bin/jboss-bin-4-profiles-creator.sh create --profile=gentoo --path=newprofile</div>
2342 - <div class="helper_desc">A new profile will be created in default vhost using srvdir/defaultvhost/jbossversion/igentoo as a template</div>
2343 - <div class="helper_args">/usr/bin/jboss-bin-4-profiles-creator.sh delete --profile=gentoo</div>
2344 - <div class="helper_desc">The 'gentoo' profile in default vhost will be deleted</div>
2345 - </div>
2346 -</div>
2347
2348 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/vhost.jsp b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/vhost.jsp
2349 deleted file mode 100644
2350 index 1a33b42..0000000
2351 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/vhost.jsp
2352 +++ /dev/null
2353 @@ -1,47 +0,0 @@
2354 -<div class="content">
2355 - <p class="content_title">How to add a vhost and keep it running:</p>
2356 - <ul>
2357 - <li>
2358 - <p>First of all, create the profile with the helper:</p>
2359 - <p class="file">Run:</p>
2360 - <div class="code">
2361 - jboss-4-bin-profiles-creator.sh create --profile=vhost1
2362 - --path=vhost1 --vhost=vhost1.yourdomain.com
2363 - </div>
2364 - </li>
2365 - <li>
2366 - <p>Second, edit the tomcat file to add a vhost </p>
2367 - <p>see:
2368 - <a href="http://wiki.jboss.org/wiki/Wiki.jsp?page=VirtualHosts">
2369 - Jboss Wiki related page
2370 - </a>
2371 - </p>
2372 - <p>For example:</p>
2373 - <p class="file"> tomcat server.xml</p>
2374 - <div class="code">
2375 - <p>&lt;Host name="vhost1.yourdomain.com"</p>
2376 - <p> autoDeploy="true" deployOnStartup="true" deployXML="true" /&gt;</p>
2377 - <p> &lt;Alias&gt;vhost1.yourdomain.com&lt;/Alias&gt;</p>
2378 - <p> &lt;Valve className="org.apache.catalina.valves.AccessLogValve"</p>
2379 - <p> prefix="vhost1.yourdomain.com-" suffix=".log"</p>
2380 - <p> pattern="common" directory="${jboss.server.home.dir}/log"/&gt;</p>
2381 - <p> &lt;/Host&gt;</p>
2382 - </div>
2383 - </li>
2384 - <li>
2385 - <p>Third edit your webapp to be deploy on this vhost:</p>
2386 - <p class="file"> WEB-INF/jboss-web.xml</p>
2387 - <div class="code">
2388 - <p>&lt;jboss-web&gt;</p>
2389 - <p>&lt;virtual-host&gt;vhost1.yourdomain.com&lt;/virtual-host&gt;</p>
2390 - <p>&lt;/jboss-web&gt;</p>
2391 - </div>
2392 - </li>
2393 - <li>
2394 - <p>Four, deploy your stuff in your "JBOSS DATA DIR" </p>
2395 - <p>For example</p>
2396 - <p class="code">/srv/vhost1.yourdomain.com/jboss-bin-4/vhost1/deploy</p>
2397 - </li>
2398 - </ul>
2399 -</div>
2400 -
2401
2402 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/footer.jsp b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/footer.jsp
2403 deleted file mode 100644
2404 index 1952f46..0000000
2405 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/footer.jsp
2406 +++ /dev/null
2407 @@ -1,11 +0,0 @@
2408 -<div class="footer">
2409 - <p style="text-align:center">
2410 - <a href="http://www.validome.org/referer">
2411 - <img style="border:none"
2412 - src="http://www.validome.org/images/set3/valid_xhtml_1_0.gif"
2413 - alt="Valid XHTML 1.0" width="80" height="20" />
2414 - </a>
2415 - <a href="http://www.gentoo.org"><img width="80" height="20" src="img/gentoo.png" alt="Powered by gentoo"/></a>
2416 - <a href="http://jboss.org"><img width="65" height="20" src="img/jboss.gif" alt="Powered by jboss"/></a>
2417 - </p>
2418 -</div>
2419
2420 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/header.jsp b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/header.jsp
2421 deleted file mode 100644
2422 index 94bd2ee..0000000
2423 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/header.jsp
2424 +++ /dev/null
2425 @@ -1,8 +0,0 @@
2426 -<div class="header">
2427 - <p>
2428 - <a href="http://www.jboss.org">
2429 - <img src="img/logo.gif" alt="JBoss" id="logo" width="226" height="105" />
2430 - </a>
2431 - </p>
2432 -</div>
2433 -
2434
2435 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/menu.jsp b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/menu.jsp
2436 deleted file mode 100755
2437 index 792afac..0000000
2438 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/menu.jsp
2439 +++ /dev/null
2440 @@ -1,43 +0,0 @@
2441 -<div class="menu">
2442 - <p class="menu_title">Home</p>
2443 - <div class="menu_content">
2444 - <ul>
2445 - <li><a href="?">Home</a></li>
2446 - </ul>
2447 - </div>
2448 - <p class="menu_title">Tomcat management</p>
2449 - <div class="menu_content">
2450 - <ul>
2451 - <li>
2452 - <a href="/status">Tomcat status</a>
2453 - <a href="/status?full=true">(full)</a>
2454 - <a href="/status?XML=true">(XML)</a>
2455 - </li>
2456 - <li><a href="/jmx-console/">JMX Console</a></li>
2457 - <li><a href="/web-console/">JBoss Web Console</a></li>
2458 - </ul>
2459 - </div>
2460 - <p class="menu_title"> Jboss docs</p>
2461 - <div class="menu_content">
2462 - <ul>
2463 - <li><a href="http://wiki.jboss.org/"> JBoss Wiki </a></li>
2464 - <li><a href="http://www.jboss.org/docs/index">JBoss Docs</a></li>
2465 - </ul>
2466 - </div>
2467 - <p class="menu_title"> Tomcat docs</p>
2468 - <div class="menu_content">
2469 - <ul>
2470 - <li><a href="http://tomcat.apache.org/tomcat-5.5-doc/"> tomcat </a></li>
2471 - <li><a href="http://tomcat.apache.org/tomcat-5.5-doc/config/">tomcat 5.5 configuration</a></li>
2472 - </ul>
2473 - </div>
2474 - <p class="menu_title"> TIPS </p>
2475 - <div class="menu_content">
2476 - <ul>
2477 - <li><a href="?page=vhost">Setting up a vhost</a></li>
2478 - <li><a href="?page=profile_manager">Managing profiles</a></li>
2479 -
2480 - </ul>
2481 - </div>
2482 -</div>
2483 -
2484
2485 diff --git a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/profile_manager.jsp b/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/profile_manager.jsp
2486 deleted file mode 100644
2487 index a24e2f1..0000000
2488 --- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/profile_manager.jsp
2489 +++ /dev/null
2490 @@ -1,44 +0,0 @@
2491 -<div class="content">
2492 -
2493 - <h2>Abstract</h2>
2494 - <p>In order to prevent you from the pain of creating a new jboss custom profile, we provide a simple helper wich can do a lot for you out of the box.</p>
2495 - <p class="code"> /usr/bin/jboss-bin-4-profiles-creator.sh: action [ACTION_OPTIONS]</p>
2496 - <p> valid options are:</p>
2497 - <ul>
2498 - <li>delete</li>
2499 - <p>Delete a profile</p>
2500 - <li>create</li>
2501 - <p>Create a new profile</p>
2502 - <li>help</li>
2503 - <p>print this helper</p>
2504 - <li>list</li>
2505 - <p>List actual profiles</p>
2506 - </ul>
2507 -
2508 - <p>Valid arguments are:</p>
2509 - <ul>
2510 - <li>--profile=serverdir_template</li>
2511 - <p>the name of the template to use to create the new profile with --create</p>
2512 - <p>the name of the profile to delete with --delete</p>
2513 - <p>Default is 'gentoo'</p>
2514 - <li>--path=/path/to/profile_to_create SCOPE:create</li>
2515 - <p>don't use the leading / for a subdir of /server</p>
2516 - <p>indicate the full location to other wanted location</p>
2517 - <li>--vhost=VHOST</p>
2518 - <p>Set the vhost (default is 'localhost')</p>
2519 - <p>Must exist a valid /srv/VHOST subdir</p>
2520 -
2521 - <p>TIPS:</p>
2522 - <p> For create and delete, you must give the profile's name</p>
2523 -
2524 - <p>Examples</p>
2525 - <p>/usr/bin/jboss-bin-4-profiles-creator.sh create --profile=gentoo --path=/opt/newprofile</p>
2526 - <p>A new profile will be created in /opt/newprofile using default_vhost/gentoo as a template</p>
2527 - <p>A symlick in /srvdir/defaultvhost/jbossversion/newprofile will be done</p>
2528 - <p>/usr/bin/jboss-bin-4-profiles-creator.sh create --profile=gentoo --path=newprofile</p>
2529 - <p>A new profile will be created in default vhost using
2530 - srvdir/defaultvhost/jbossversion/igentoo as a template</p>
2531 - <p>/usr/bin/jboss-bin-4-profiles-creator.sh --delete --profile=gentoo
2532 - <p>the 'gentoo' profile in default vhost will be deleted</p>
2533 -
2534 -</div>
2535
2536 diff --git a/www-servers/jboss-bin/jboss-bin-4.0.5.ebuild b/www-servers/jboss-bin/jboss-bin-4.0.5.ebuild
2537 deleted file mode 100644
2538 index 567f602..0000000
2539 --- a/www-servers/jboss-bin/jboss-bin-4.0.5.ebuild
2540 +++ /dev/null
2541 @@ -1,296 +0,0 @@
2542 -# Copyright 1999-2015 Gentoo Foundation
2543 -# Distributed under the terms of the GNU General Public License v2
2544 -# $Id$
2545 -
2546 -inherit eutils user java-pkg-2
2547 -
2548 -MY_P="jboss-${PV}"
2549 -MY_P="${MY_P}.GA"
2550 -MY_EJB3="jboss-EJB-3.0_RC9_Patch_1"
2551 -
2552 -DESCRIPTION="An open source, standards-compliant, J2EE-based application server implemented in 100% Pure Java."
2553 -SRC_URI="mirror://sourceforge/jboss/${MY_P}.zip
2554 - ejb3? ( mirror://sourceforge/jboss/${MY_EJB3}.zip )"
2555 -RESTRICT="mirror"
2556 -HOMEPAGE="http://www.jboss.org"
2557 -LICENSE="LGPL-2"
2558 -IUSE="doc ejb3 srvdir"
2559 -SLOT="4"
2560 -KEYWORDS="~amd64 x86"
2561 -RDEPEND="ejb3? ( >=virtual/jdk-1.5 )
2562 - !ejb3? ( >=virtual/jdk-1.4 )"
2563 -
2564 -DEPEND="${RDEPEND} app-arch/unzip dev-java/ant-core dev-java/ant-contrib"
2565 -
2566 -S=${WORKDIR}/${MY_P}
2567 -INSTALL_DIR="/opt/${PN}-${SLOT}"
2568 -DEFAULT_VHOST="localhost"
2569 -CACHE_INSTALL_DIR="/var/cache/${PN}-${SLOT}"
2570 -LOG_INSTALL_DIR="/var/log/${PN}-${SLOT}"
2571 -RUN_INSTALL_DIR="/var/run/${PN}-${SLOT}"
2572 -TMP_INSTALL_DIR="/var/tmp/${PN}-${SLOT}"
2573 -CONF_INSTALL_DIR="/etc/${PN}-${SLOT}"
2574 -FILESDIR_CONF_DIR=""
2575 -
2576 -#switching configuration files directory
2577 -if use "srvdir" ; then
2578 - SERVICES_DIR="/srv/${DEFAULT_VHOST}/${PN}-${SLOT}"
2579 - FILESDIR_CONF_DIR="${FILESDIR}/${PV}/srvdir"
2580 -else
2581 - SERVICES_BASE_DIR="/var/lib/${PN}-${SLOT}"
2582 - SERVICES_DIR="${SERVICES_BASE_DIR}/${DEFAULT_VHOST}"
2583 - FILESDIR_CONF_DIR="${FILESDIR}/${PV}/normal"
2584 -fi
2585 -
2586 -# NOTE: When you are updating CONFIG_PROTECT env.d file, you can use this script on your current install
2587 -# run from /var/lib/jboss-${SLOT} to get list of files that should be config protected. We protect *.xml,
2588 -# *.properties and *.tld files.
2589 -# SLOT="4" TEST=`find /var/lib/jboss-${SLOT}/ -type f | grep -E -e "\.(xml|properties|tld)$"`; echo $TEST
2590 -# by kiorky better:
2591 -# echo "CONFIG_PROTECT=\"$(find /srv/localhost/jboss-bin-4/ -name "*xml" -or -name \
2592 -# "*properties" -or -name "*tld" |xargs echo -n)\"">>env.d/50jboss-bin-4
2593 -
2594 -# NOTE: using now GLEP20 as default
2595 -
2596 -pkg_setup() {
2597 - # create jboss user/group
2598 - enewgroup jboss || die "Unable to create jboss group"
2599 - enewuser jboss -1 /bin/sh ${SERVICES_DIR} jboss \
2600 - || die "Unable to create jboss user"
2601 -}
2602 -
2603 -src_install() {
2604 - # jboss core stuff
2605 - # create the directory structure and copy the files
2606 - diropts -m755
2607 - dodir "${INSTALL_DIR}" \
2608 - "${INSTALL_DIR}/bin" \
2609 - "${INSTALL_DIR}/client" \
2610 - "${INSTALL_DIR}/lib" \
2611 - "${SERVICES_DIR}/${DEFAULT_VHOST}" \
2612 - "${CACHE_INSTALL_DIR}/${DEFAULT_VHOST}" \
2613 - "${CONF_INSTALL_DIR}/${DEFAULT_VHOST}" \
2614 - "${LOG_INSTALL_DIR}/${DEFAULT_VHOST}" \
2615 - "${RUN_INSTALL_DIR}/${DEFAULT_VHOST}" \
2616 - "${TMP_INSTALL_DIR}/${DEFAULT_VHOST}"
2617 - insopts -m645
2618 - diropts -m755
2619 - insinto "${INSTALL_DIR}/bin"
2620 - doins -r bin/*.conf bin/*.jar
2621 - exeinto "${INSTALL_DIR}/bin"
2622 - doexe bin/*.sh
2623 - insinto "${INSTALL_DIR}"
2624 - doins -r client lib
2625 -
2626 - # copy startup stuff
2627 - doinitd "${FILESDIR_CONF_DIR}/init.d/${PN}-${SLOT}"
2628 - # add multi instances support (here:localhost)
2629 - dosym "/etc/init.d/${PN}-${SLOT}" \
2630 - "/etc/init.d/${PN}-${SLOT}.${DEFAULT_VHOST}"
2631 - newconfd "${FILESDIR_CONF_DIR}/conf.d/${PN}-${SLOT}" \
2632 - "${PN}-${SLOT}"
2633 - # add multi instances support (here:localhost)
2634 - newconfd "${FILESDIR_CONF_DIR}/conf.d/${PN}-${SLOT}" \
2635 - "${PN}-${SLOT}.${DEFAULT_VHOST}"
2636 - gunzip -c "${FILESDIR_CONF_DIR}/env.d/50${PN}-${SLOT}.gz">50${PN}-${SLOT}
2637 - doenvd "50${PN}-${SLOT}"
2638 - # jboss profiles creator binary
2639 - exeinto /usr/bin
2640 - doexe "${FILESDIR_CONF_DIR}/bin/jboss-bin-4-profiles-creator.sh"
2641 - # implement GLEP20: srvdir
2642 - addpredict "${SERVICES_DIR}"
2643 - # make a "gentoo" profile with "default" one as a template
2644 - cp -rf server/default server/gentoo
2645 - # add optionnal jboss EJB 3.0 implementation
2646 - if use ejb3;then
2647 - einfo "EJB 3.0 support Activation"
2648 - cd "../$MY_EJB3" || die "cd failed"
2649 - cp -rf "${FILESDIR}/${PV}/ejb3/install.xml" . || die "cp failed"
2650 -
2651 - # add the latest EJB3 patch for profiles "all" and "default"
2652 - JBOSS_HOME="../${MY_P}" ant -f install.xml || die "EJB3 Patch failed"
2653 - einfo "EJB3 installed"
2654 - cd "../${MY_P}" || die "cd failed"
2655 - local backported_jars="jgroups.jar jboss-cache.jar"
2656 - for jar in ${backported_jars};do
2657 - cp -rf "server/all/lib/${jar}" server/gentoo/lib || die "cp failed"
2658 - done
2659 - local backported_apps="jbossws.sar"
2660 - for app in ${backported_apps};do
2661 - cp -rf "server/all/deploy/${app}" server/gentoo/deploy || die "cp failed"
2662 - done
2663 -
2664 - #Since the default profile will not have the jars "jgroups.jar jboss-cache.jar"
2665 - # it should not also have the following configuration files
2666 - rm server/default/deploy/ejb3-entity-cache-service.xml
2667 - rm server/default/deploy/ejb3-clustered-sfsbcache-service.xml
2668 -
2669 - fi
2670 - # our nice little welcome app
2671 - cp -rf "${FILESDIR}/${PV}/tomcat/webapp/gentoo" . || die "cp failed"
2672 - cd gentoo || die "cd failed"
2673 - #for /gentoo-doc context
2674 - jar cf ../gentoo.war * || die "jar failed"
2675 - # for root context
2676 - rm -f WEB-INF/jboss-web.xml || die "rm failed"
2677 - jar cf ../ROOT.war * || die "jar failed"
2678 - cd .. || die "cd failed"
2679 - # installing the tomcat configuration and the webapp
2680 - for PROFILE in all default gentoo ; do
2681 - rm -rf "server/${PROFILE}/deploy/jbossweb-tomcat55.sar/ROOT.war" || die "rm failed"
2682 - cp -rf gentoo.war "server/${PROFILE}/deploy/" || die "cp failed"
2683 - cp -rf ROOT.war "server/${PROFILE}/deploy/jbossweb-tomcat55.sar/" || die "cp failed"
2684 - # our tomcat configuration to point to our helper
2685 - cp -rf "${FILESDIR}/${PV}/tomcat/server.xml" \
2686 - "server/${PROFILE}/deploy/jbossweb-tomcat55.sar/server.xml"\
2687 - || die "cp failed"
2688 - done
2689 - rm -f gentoo.war ROOT.war || die "rm failed"
2690 - # installing profiles
2691 - for PROFILE in all default gentoo minimal; do
2692 - # create directory
2693 - diropts -m775
2694 - dodir "${SERVICES_DIR}/${PROFILE}/conf" \
2695 - "${SERVICES_DIR}/${PROFILE}/deploy" \
2696 - "${SERVICES_DIR}/${PROFILE}/lib"
2697 - # keep stuff
2698 - keepdir "${CACHE_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}" \
2699 - "${CONF_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}" \
2700 - "${LOG_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}" \
2701 - "${TMP_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}" \
2702 - "${RUN_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}"
2703 - if [[ ${PROFILE} != "minimal" ]]; then
2704 - insopts -m665
2705 - diropts -m775
2706 - insinto "${SERVICES_DIR}/${PROFILE}/deploy"
2707 - doins -r server/${PROFILE}/deploy/*
2708 - else
2709 - dodir "${SERVICES_DIR}/${DEFAULT_VHOST}/${PROFILE}/deploy"
2710 - fi
2711 - # singleton is just on "all" profile
2712 - local clustering="false"
2713 - [[ ${PROFILE} == "all" ]] && clustering="true"
2714 - # deploy clustering stuff for ejb3
2715 - use "ejb3" && [[ ${PROFILE} == "gentoo" ]] && clustering="true"
2716 - if [[ $clustering == "true" ]];then
2717 - ewarn "Activating clustering support for profile: ${PROFILE}"
2718 - insopts -m665
2719 - diropts -m775
2720 - dodir "${SERVICES_DIR}/${PROFILE}/deploy-hasingleton"
2721 - insinto "${SERVICES_DIR}/${PROFILE}/deploy-hasingleton"
2722 - doins -r server/all/deploy-hasingleton
2723 - dodir "${SERVICES_DIR}/${PROFILE}/farm"
2724 - insinto "${SERVICES_DIR}/${PROFILE}/farm"
2725 - doins -r server/all/farm
2726 - fi
2727 - # copy files
2728 - insopts -m664
2729 - diropts -m772
2730 - insinto "${SERVICES_DIR}/${PROFILE}/conf"
2731 - doins -r server/${PROFILE}/conf/*
2732 - insopts -m644
2733 - diropts -m755
2734 - insinto "${SERVICES_DIR}/${PROFILE}/lib"
2735 - doins -r server/${PROFILE}/lib/*
2736 - # do symlink
2737 - dosym "${CACHE_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}" \
2738 - "${SERVICES_DIR}/${PROFILE}/data"
2739 - dosym "${LOG_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}" \
2740 - "${SERVICES_DIR}/${PROFILE}/log"
2741 - dosym "${TMP_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}" \
2742 - "${SERVICES_DIR}/${PROFILE}/tmp"
2743 - dosym "${RUN_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}" \
2744 - "${SERVICES_DIR}/${PROFILE}/work"
2745 - # for conf file, doing the contrary is trickier
2746 - # keeping the conf file with the whole installation but
2747 - # putting a symlink to /etc/ for easy configuration
2748 - dosym "${SERVICES_DIR}/${PROFILE}/conf"\
2749 - "${CONF_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}/conf"
2750 - # symlink the tomcat server.xml configuration file
2751 - dosym "${SERVICES_DIR}/${PROFILE}/deploy/jbossweb-tomcat55.sar/server.xml" \
2752 - "${CONF_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}"
2753 - done
2754 -
2755 - # set some cp
2756 - if use ejb3;then
2757 - java-pkg_regjar "${D}/${INSTALL_DIR}/client/activation.jar"
2758 - java-pkg_regjar "${D}/${SERVICES_DIR}/all/lib/jboss-cache.jar"
2759 - java-pkg_regjar "${D}/${SERVICES_DIR}/all/lib/jgroups.jar"
2760 - fi
2761 - # register runners
2762 - java-pkg_regjar ${D}/${INSTALL_DIR}/bin/*.jar
2763 - #do launch helper scripts which set the good VM to use
2764 - java-pkg_dolauncher jboss-start.sh --java_args '${JAVA_OPTIONS}'\
2765 - --main org.jboss.Main -into "${INSTALL_DIR}"
2766 - java-pkg_dolauncher jboss-stop.sh --java_args '${JAVA_OPTIONS}'\
2767 - --main org.jboss.Shutdown -into "${INSTALL_DIR}"
2768 -
2769 - # documentation stuff
2770 - insopts -m645
2771 - diropts -m755
2772 - insinto "/usr/share/doc/${PF}/${DOCDESTTREE}"
2773 - doins copyright.txt
2774 - doins -r docs/*
2775 -# # write access is set for jboss group so user can use netbeans to start jboss
2776 -# # fix permissions
2777 -# local DIR="" srvdir=""
2778 -# use srvdir && srvdir="${SERVICES_DIR}" \
2779 -# || srvdir="${SERVICES_BASE_DIR}"
2780 -# # NOTE: installing in "PN-SL/localhos"t , .. mean set for "PN-SL/"
2781 -# DIR="${D}/${INSTALL_DIR} ${D}/${LOG_INSTALL_DIR} ${D}/${TMP_INSTALL_DIR}"
2782 -# DIR="${DIR} ${D}/${CACHE_INSTALL_DIR} ${D}/${RUN_INSTALL_DIR}"
2783 -# DIR="${DIR} ${D}/${CONF_INSTALL_DIR} ${D}/${srvdir}"
2784 -# chmod -R 755 "/usr/share/${PN}-${SLOT}" || die chmod failed
2785 -# chmod -R 765 ${DIR} || die "chmod failed"
2786 -# chown -R jboss:jboss ${DIR} || die "chown failed"
2787 -
2788 -}
2789 -
2790 -pkg_postinst() {
2791 - # write access is set for jboss group so user can use netbeans to start jboss
2792 - # fix permissions
2793 - local DIR="" srvdir=""
2794 - use srvdir && srvdir="${SERVICES_DIR}" \
2795 - || srvdir="${SERVICES_BASE_DIR}"
2796 - # NOTE: installing in "PN-SL/localhos"t , .. mean set for "PN-SL/"
2797 - DIR="/${INSTALL_DIR} /${LOG_INSTALL_DIR} /${TMP_INSTALL_DIR}"
2798 - DIR="${DIR} /${CACHE_INSTALL_DIR} /${RUN_INSTALL_DIR}"
2799 - DIR="${DIR} /${CONF_INSTALL_DIR} /${srvdir}"
2800 - chmod -R 755 "/usr/share/${PN}-${SLOT}" || die chmod failed
2801 - chmod -R 765 ${DIR} || die "chmod failed"
2802 - chown -R jboss:jboss ${DIR} || die "chown failed"
2803 -
2804 - elog
2805 - elog "Multi Instance Usage"
2806 - elog " If you want to run multiple instances of JBoss, you can do that this way:"
2807 - elog " 1) Symlink init script:"
2808 - elog " ln -s /etc/init.d/${PN}-${SLOT} /etc/init.d/${PN}-${SLOT}.foo"
2809 - elog " 2) Copy original config file:"
2810 - elog " cp /etc/conf.d/${PN}-${SLOT} /etc/conf.d/${PN}-${SLOT}.foo"
2811 - elog " 3) Edit the new config file as it will use another JBOSS_SERVER_NAME."
2812 - elog " Set what do you want to run your new profile/vhost"
2813 - elog " You have to either:"
2814 - elog " Bind new JBoss instance to another IP address or change"
2815 - elog " Change the used ports in tiomcat configuration so they do not be in conflict)"
2816 - elog " 4) Run the new JBoss instance:"
2817 - elog " /etc/init.d/${PN}-${SLOT}.vhost start (eg vhost=localhost"
2818 - elog " -> ${PN}-${SLOT}.localhost"
2819 - elog
2820 - elog "Profile manager:"
2821 - elog "We provide now a tool to manage your multiple JBoss profiles"
2822 - elog " see jboss-profiles-creator.sh --help for usage"
2823 - elog
2824 - elog "Jboss usage:"
2825 - elog "We profile a jboss documentation available for all vhosts"
2826 - elog " you can access it with"
2827 - elog " /etc/init.d/${PN}-${SLOT}.localhost start"
2828 - elog " and now point your browser to http://YOURIP:8080/gentoo-doc"
2829 - elog " TIPS: "
2830 - elog " * If you have not redefine the root context, You can even reach it to http://YOURIP:8080/"
2831 - elog
2832 - elog "To redifine the root context: (the thing you reach with http://vhost/)"
2833 - elog " * Just deploy your one as PROFILE_PATH/deploy/ROOT.war"
2834 - elog " * To make a war go to the basedir of your application and do "
2835 - elog " jar cvf ROOT.war *"
2836 - elog " * Another thing: you can eITher deploy it in a ear or in a war"
2837 -}
2838
2839 diff --git a/www-servers/jboss-bin/metadata.xml b/www-servers/jboss-bin/metadata.xml
2840 deleted file mode 100644
2841 index bf88acc..0000000
2842 --- a/www-servers/jboss-bin/metadata.xml
2843 +++ /dev/null
2844 @@ -1,14 +0,0 @@
2845 -<?xml version="1.0" encoding="UTF-8"?>
2846 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
2847 -<pkgmetadata>
2848 - <maintainer type="project">
2849 - <email>java@g.o</email>
2850 - <name>Java</name>
2851 - </maintainer>
2852 - <longdescription lang="en">
2853 - </longdescription>
2854 - <use>
2855 - <flag name="ejb3">Enable EJB3 support.</flag>
2856 - <flag name="srvdir">Store configuration in /srv</flag>
2857 - </use>
2858 -</pkgmetadata>