commit:     5d26115fa612d0316f9587b5855578aa052bd3a0
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  2 14:47:19 2016 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Jul  2 14:47:19 2016 +0000
URL:        https://gitweb.gentoo.org/proj/java.git/commit/?id=5d26115f

www-servers/jboss-bin: Remove super mega ancient and violating package

It's called WildFly now anyway.

 profiles/use.local.desc                            |   4 -
 www-servers/jboss-bin/Manifest                     |   2 -
 www-servers/jboss-bin/files/4.0.5/doc/spec.txt     | 133 ------
 www-servers/jboss-bin/files/4.0.5/ejb3/install.xml |  84 ----
 .../normal/bin/jboss-bin-4-profiles-creator.sh     | 501 ---------------------
 .../files/4.0.5/normal/conf.d/jboss-bin-4          |  55 ---
 .../files/4.0.5/normal/env.d/50jboss-bin-4.gz      | Bin 1978 -> 0 bytes
 .../files/4.0.5/normal/init.d/jboss-bin-4          |  80 ----
 .../srvdir/bin/jboss-bin-4-profiles-creator.sh     | 501 ---------------------
 .../files/4.0.5/srvdir/conf.d/jboss-bin-4          |  55 ---
 .../files/4.0.5/srvdir/env.d/50jboss-bin-4.gz      | Bin 1978 -> 0 bytes
 .../files/4.0.5/srvdir/init.d/jboss-bin-4          |  80 ----
 .../jboss-bin/files/4.0.5/tomcat/server.xml        | 180 --------
 .../tomcat/webapp/gentoo/WEB-INF/jboss-web.xml     |   8 -
 .../4.0.5/tomcat/webapp/gentoo/WEB-INF/web.xml     |  50 --
 .../4.0.5/tomcat/webapp/gentoo/css/styles.css      |  74 ---
 .../files/4.0.5/tomcat/webapp/gentoo/gentoo.png    | Bin 1055 -> 0 bytes
 .../4.0.5/tomcat/webapp/gentoo/img/gentoo.png      | Bin 1055 -> 0 bytes
 .../files/4.0.5/tomcat/webapp/gentoo/img/jboss.gif | Bin 2060 -> 0 bytes
 .../tomcat/webapp/gentoo/img/jboss_powered.gif     | Bin 1947 -> 0 bytes
 .../tomcat/webapp/gentoo/img/jboss_powered.jpg     | Bin 14295 -> 0 bytes
 .../files/4.0.5/tomcat/webapp/gentoo/img/logo.gif  | Bin 10268 -> 0 bytes
 .../files/4.0.5/tomcat/webapp/gentoo/index.jsp     |  27 --
 .../files/4.0.5/tomcat/webapp/gentoo/jboss.css     | 143 ------
 .../files/4.0.5/tomcat/webapp/gentoo/logo.gif      | Bin 10268 -> 0 bytes
 .../4.0.5/tomcat/webapp/gentoo/manager/xform.xsl   |  94 ----
 .../4.0.5/tomcat/webapp/gentoo/modules/main.jsp    |   5 -
 .../webapp/gentoo/modules/profile_manager.jsp      |  40 --
 .../4.0.5/tomcat/webapp/gentoo/modules/vhost.jsp   |  47 --
 .../4.0.5/tomcat/webapp/gentoo/template/footer.jsp |  11 -
 .../4.0.5/tomcat/webapp/gentoo/template/header.jsp |   8 -
 .../4.0.5/tomcat/webapp/gentoo/template/menu.jsp   |  43 --
 .../files/4.0.5/tomcat/webapp/profile_manager.jsp  |  44 --
 www-servers/jboss-bin/jboss-bin-4.0.5.ebuild       | 296 ------------
 www-servers/jboss-bin/metadata.xml                 |  14 -
 35 files changed, 2579 deletions(-)

diff --git a/profiles/use.local.desc b/profiles/use.local.desc
index 2a01155..ca5566b 100644
--- a/profiles/use.local.desc
+++ b/profiles/use.local.desc
@@ -6,10 +6,6 @@
 # contain them.
 
 # Keep it sorted.
-www-servers/jboss:ejb3 - Add EJB 3 support
-www-servers/jboss:srvdir - Add SRVDIR support
-www-servers/jboss-bin:ejb3 - Add EJB 3 support
-www-servers/jboss-bin:srvdir - Add SRVDIR support
 dev-java/jogl:cg - Enable nvidia cg bindings
 dev-db/hsqldb:sqltools - Add data managment tools
 dev-java/quartz:servlet-2.3 - Use the 2.3 servlet specification

diff --git a/www-servers/jboss-bin/Manifest b/www-servers/jboss-bin/Manifest
deleted file mode 100644
index bd92290..0000000
--- a/www-servers/jboss-bin/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST jboss-4.0.5.GA.zip 80866589 SHA256 
b81b7bba2657c4e1cb7cf7e3958eaffbe48ee0c5ebbe5782909745277a3b923f SHA512 
34984f225b7957f16e0a76968329225f2f9d5320bee2b11cd95fe4f1cf363365da66cb185aa967cea6e8ddf6d72336576d0bf785eea21059ffd366b350ccf54f
 WHIRLPOOL 
c06a2662e11a8db5761be74825bcd7c8940705bc6ffe6f166e81d9b10e75e88a05cedf70ab987a7b67f7cb248d9769ad6e0b29e2c99595e32488e5df20103fd8
-DIST jboss-EJB-3.0_RC9_Patch_1.zip 10656132 SHA256 
9b1634e10deaf962c22f73c96df6fe613a6a9dd4bb179f64d62ae93917ccfcf3

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
deleted file mode 100644
index 5bc8f95..0000000
--- a/www-servers/jboss-bin/files/4.0.5/doc/spec.txt
+++ /dev/null
@@ -1,133 +0,0 @@
-
-e ll keep in mind that jboss can use a "main directory"
-then it can use a profile specific subdir.
-In default bundle, all subdirs in /server are "profiles"
--------------------------------------------------------
-All configuration files points to  a config to use
-The default is "default"
-/etc/conf.d/jboss
-        configuration for jboss instance
-/etc/conf.d/jboss1
-        configuration for jboss1 instance
-/etc/conf.d/jbossn
-        configuration for jboss2 instance
--------------------------------------------------------
-All init scripts set their "/server" subdir to the adequat /srv/<fqdn>/jboss
-subdir
-/etc/init.d/jboss.localhost
-        init script for jboss instance
-/etc/init.d/jboss.jboss1
-        init script for jboss1 instance
-/etc/init.d/jboss.jbossn
-        init script for jboss2 instance
-
--------------------------------------------------------
-srvdir is either
-* /var/lib/JBOSSSLOT/hostname
-* /srv/hostname/JBOSSSLOT
--------------------------------------------------------
-All these directory contains just JBoss "profiles"
-/srv/localhost/jboss:
- profile1 profil2
-        there go default things
-        or when not given vhost from the script
-/srv/vhost1/jboss:
- jboss1.vhost1 jboss2.vhost1
-        if user wants to use a "vhost1"
-...
-/srv/vhostn/jboss:
--------------------------------------------------------
-a typical profile dir:
-profile/
-conf:
-        configuration directory
-        NA: we create a symlink in /etc/jboss/vhost/profile
-            _TO_ this directory
-data:
-        symlink to /var/cache/jboss/vhost/profile
-        runtime dir
-deploy:
-        application directory
-       where we put war, ear and so on
-        NA: we create a symlink in /etc/jboss/vhost/profile for tomcat
-lib:
-        directory where additionnal jar and ressources go
-log:
-        symlink to /var/log/jboss/vhost/profile
-        log directory
-tmp:
-        symlink to /var/tmp/jboss/vhost/profile
-        tmp directory
-work:
-        symlink to /var/run/jboss/vhost/profile
-        state (pid) dirctory
--------------------------------------------------------
-The manager script will do:
-        create
-                create a profile
-        delete
-                delete a profile
-        list
-                list the profiles in /srv/localhost
-                list the profiles in vhost if --vhost specified and is valid
-        help
-                print usage
-        Valid arguments are:
-                --profile=serverdir_template
-                        - Either the name of the template to use to create the 
new profile with --create
-                        - Either the name of the profile to delete with 
--delete
-                        - controls:
-                                * controls at creation:
-                                        profile template exists:
-                                                if fullpath or relative path:
-                                                        /conf /lib /deploy 
exist in the profile dir
-                                                if not a path:
-                                                        directory or symlick 
in vhost_dir exists with the profile name
-                                                        /conf /lib /deploy 
exist in the profile dir
-                                * controle at delete:
-                                        profile exists in vhost or in 
default_vhost if no --vhost
-                        - Default is 'gentoo'
-                --path=/path/to/profile_to_create      SCOPE:create"
-                        * don't use the leading / for a subdir of the vhost  
specified  (default_vhost if null)
-                        * indicate the full location to other wanted location"
-                        * controls:
-                                * if vhost subdir:
-                                        another profile with same name doesnt 
exists
-                                * if full_path:
-                                        another profile with same name doesnt 
exists in vhost dir
-                                        we re not installing in forbidden 
directory (eg:/bin)
-                                        if relative path is given, transform 
it to full_path
-                --vhost=vhost
-                        - set the vhost
-                        - controls:
-                                * a directory with "vhost name" exists in 
$srvdir
-                        - Default is 'localhost'
--------------------------------------------------------
-How to add a vhost and keep it running:
-       First of all, create the profile with the helper
-               jboss-4-bin-profiles-creator.sh create --profile=vhost1 
--path=somewhere --vhost=vhost1.yourdomain.com
-       Second, edit the tomcat file to add a vhost see:
-               http://wiki.jboss.org/wiki/Wiki.jsp?page=VirtualHosts
-               for example:
-                                <Host name="vhost1.yourdomain.com"
-                                   autoDeploy="true" deployOnStartup="true" 
deployXML="true">
-                                   <Alias>vhost1.yourdomain.com</Alias>
-                                   <Valve 
className="org.apache.catalina.valves.AccessLogValve"
-                                      prefix="vhost1.yourdomain.com-" 
suffix=".log"
-                                      pattern="common" 
directory="${jboss.server.home.dir}/log"/>
-                                </Host>
-       Third edit your webapp to be deploy on this vhost:
-               --> WEB-INF/jboss-web.xml
-                       <jboss-web>
-                          <!-- Uncomment the security-domain to enable 
security. You will
-                             need to edit the htmladaptor login configuration 
to setup the
-                             login modules used to authentication users.
-                             
<security-domain>java:/jaas/jmx-console</security-domain>
-                          -->
-                          <virtual-host>vhost1.yourdomain.com</virtual-host>
-                       </jboss-web>
-       Four, deploy your stuff in
-               /srv/vhost1.yourdomain.com/jboss-PN/vhost1/deploy
-
-
-

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
deleted file mode 100644
index d9d2029..0000000
--- a/www-servers/jboss-bin/files/4.0.5/ejb3/install.xml
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0"?>
-
-<!-- ======================================================================= 
-->
-<!-- JBoss build file for EJB 3.0 activation                                 
-->
-<!-- ======================================================================= 
-->
-
-<project name="JBoss" default="install" >
-       <!-- for <For> task -->
-       <taskdef resource="net/sf/antcontrib/antlib.xml">
-               <classpath>
-                       <pathelement 
location="/usr/share/ant-contrib/lib/ant-contrib.jar"/>
-               </classpath>
-       </taskdef>
-
-       <property file="../local.properties"/>  
-       <property environment="env"/>
-       <property name="src.dir" value="${basedir}/src"/>
-       <property name="jboss.home" value="${env.JBOSS_HOME}"/>   
-
-   <target name="install">
-          <for  list="all,gentoo" param="profile">
-               <sequential>
-                       <echo/>
-                       <echo/>
-                       <echo>Installing EJB3 in 
${jboss.home}/server/@{profile}</echo>
-                       <echo/>
-                       <echo/>
-
-                       <delete 
dir="${jboss.home}/server/@{profile}/deploy/jboss-aop.deployer"/>
-                       <delete 
dir="${jboss.home}/server/@{profile}/deploy/jbossws14.sar"/>
-                       <delete 
dir="${jboss.home}/server/@{profile}/deploy/jboss-aop-jdk50.deployer"/>
-                       <delete 
dir="${jboss.home}/server/@{profile}/deploy/ejb3.deployer"/>
-                       <delete 
file="${jboss.home}/client/jbossws14-client.jar"/>
-                       <copy file="lib/jbossws-client.jar" 
todir="${jboss.home}/client"/>
-                       <copy file="lib/hibernate-client.jar" 
todir="${jboss.home}/client"/>
-                       <copy file="lib/jboss-ejb3-client.jar" 
todir="${jboss.home}/client"/>
-                       <copy file="lib/ejb3.deployer/jboss-ejb3x.jar" 
todir="${jboss.home}/client"/>
-                       <copy 
file="lib/ejb3.deployer/jboss-annotations-ejb3.jar" 
todir="${jboss.home}/client"/>
-                       <copy file="lib/ejb3-persistence.jar" 
todir="${jboss.home}/server/@{profile}/lib"/>
-                       <copy file="lib/ejb3-persistence.jar" 
todir="${jboss.home}/client"/>
-                       <copy file="lib/hibernate-entitymanager.jar" 
todir="${jboss.home}/server/@{profile}/lib"/>
-                       <copy file="lib/hibernate-annotations.jar" 
todir="${jboss.home}/server/@{profile}/lib"/>
-                       <copy file="lib/hibernate3.jar" 
todir="${jboss.home}/server/@{profile}/lib"/>
-                       <copy file="lib/javassist.jar" 
todir="${jboss.home}/server/@{profile}/lib"/>
-                       <copy file="lib/quartz-all-1.5.2.jar" 
todir="${jboss.home}/server/@{profile}/lib"/>
-                       <copy todir="${jboss.home}/server/@{profile}/deploy">
-                               <fileset dir="lib">
-                                       <include name="ejb3.deployer/**"/>
-                                       <include 
name="jboss-aop-jdk50.deployer/**"/>
-                                       <include name="*.xml"/>
-                                       <include name="jbossws.sar"/>
-                               </fileset>
-                       </copy>
-                       <copy file="lib/jms-ra.rar" 
todir="${jboss.home}/server/@{profile}/deploy/jms"/>
-                       <copy file="lib/quartz-ra.rar" 
todir="${jboss.home}/server/@{profile}/deploy"/>
-
-                       <!-- now we have to unjar and rejar jboss.jar to remove 
ejbjar and jboss schema files -->
-                       <delete dir="tmp"/>
-                       <mkdir  dir="tmp"/>
-                       <unjar 
src="${jboss.home}/server/@{profile}/lib/jboss.jar"    dest="tmp"/>
-                       <jar 
destfile="${jboss.home}/server/@{profile}/lib/jboss.jar" update="false">
-                               <fileset dir="tmp">
-                                       <include name="**/*"/>
-                                       <exclude name="schema/ejb-jar_3_0.xsd"/>
-                                       <exclude name="schema/jboss_5_0.xsd"/>
-                               </fileset>
-                       </jar>
-                       <delete dir="tmp"/>
-
-                       <!-- now we have to unjar and rejar jboss.jar to remove 
ejbjar and jboss schema files -->
-                       <delete dir="tmp"/>
-                       <mkdir dir="tmp"/>
-                       <unjar src="${jboss.home}/lib/endorsed/xml-apis.jar" 
dest="tmp"/>
-                       <jar destfile="${jboss.home}/lib/endorsed/xml-apis.jar" 
update="false">
-                               <fileset dir="tmp">
-                                       <include name="**/*"/>
-                                       <exclude name="javax/xml/namespace/*"/>
-                               </fileset>
-                       </jar>
-                       <delete dir="tmp"/>
-               </sequential>
-       </for>
-   </target>
-</project>

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
deleted file mode 100755
index cfe341a..0000000
--- 
a/www-servers/jboss-bin/files/4.0.5/normal/bin/jboss-bin-4-profiles-creator.sh
+++ /dev/null
@@ -1,501 +0,0 @@
-#!/bin/sh
-#License: GPL2
-#author: kiorky [email protected]
-PATH="${PATH}:/usr/lib/portage/bin"
-source /etc/init.d/functions.sh
-
-debug="false"
-
-JBOSS_VERSION="jboss-bin-4"
-jboss_path="/opt/${JBOSS_VERSION}"
-
-action="help"
-
-# defaults
-srvdir="/var/lib"
-default_vhost="localhost"
-default_path="${srvdir}/${JBOSS_VERSION}/${default_vhost}/"
-default_vhost_path="${srvdir}/${default_vhost}/${JBOSS_VERSION}"
-default_profile="${default_vhost_path}/gentoo"
-# initialize stuff
-profile="${default_profile}" 
-vhost="${default_vhost}"
-path="${default_path}"
-vhost_path="${default_vhost_path}"
-name="${default_profile}"
-
-CONFDIR="/etc/${JBOSS_VERSION}"
-TMPDIR="/var/tmp/${JBOSS_VERSION}"
-CACHEDIR="/var/cache/${JBOSS_VERSION}"
-RUNDIR="/var/run/${JBOSS_VERSION}"
-LOGDIR="/var/log/${JBOSS_VERSION}"
-
-forbidden_to_install_in="/ /bin /include /lib /sbin /usr/bin /usr/include 
/usr/lib /usr/sbin"
-XARGS="/usr/bin/xargs"
-
-# error management
-# usage: do_error "theerror" ARGS
-# read the code as it is enought explicit to use
-# some errors can take arguments !!
-do_error(){
-       eerror
-       case $1 in
-               "profile_creation_forbidden")
-                       eerror "Please specify another location"
-                       eerror "        Creating profiles in \"$2\" is 
forbidden !!!"
-                       ;;
-               "profile_file_exists")
-                       eerror "Profile is even created  ?"
-                       eerror "        File \"$3\" exists in \"$2\" directory"
-                       ;;              
-               "path_invalid_path")
-                       eerror "Invalid path: $HILITE  $2"
-                       ;;
-               "profile_invalid_subdir")
-                       eerror "Invalid profile"                                
        
-                       eerror "    Invalid JBOSS Servers subdir: $HILITE $2"
-                       ;;
-               "profile_invalid_full_path")
-                       eerror "Invalid profile"
-                       eerror "    Invalid full_path: $HILITE $2"
-                       ;;
-               "argument_invalid_args")
-                       eerror " You must specify --KEY=VALUE for your 
arguments"
-                       ;;
-               "profile_invalid_profile")
-                       eerror "Profile is invalid"
-                       eerror "     subdir for this profile is missing: 
$HILITE $2"
-                       ;;
-               "path_no_path_given")
-                       eerror "Please specify where you want to install your 
profile"
-                       ;;
-               "argument_no_arg")
-                       eerror "Please give Arguments"
-                       ;;              
-               "action_create_cant_create_dir")
-                       eerror "Can't create profile directory"
-                       exit -1
-                       ;;
-               "action_help")
-                       eerror "Help wanted ?"
-                       eerror;usage;exit
-                       ;;
-               "profile_file_exists")
-                       eerror "Profile  exists: $HILITE $2"
-                       ;;
-               "delete_no_profile")
-                       eerror "Invalid profile to delete: $HILITE $2"          
        
-                       ;;
-               "path_invalid_scope")
-                       error "--path argument is invalid in this scope: 
$HILITE $2"
-                       ;;
-               "vhost_invalid_vhost")
-                       eerror "Please specify a valid vhost"
-                       eerror "        Vhost given: $2"
-                       ;;
-               "path_not_exists")
-                       eerror "Please specify a valid final path"
-                       eerror "        Final profile path doest not exist: 
$HILITE $2" 
-                       ;;
-               *)
-                       eerror 
-                       usage
-                       exit # not error there !!!
-       esac
-       eerror "Please run for help:"
-       eerror "        $HILITE$0 help"
-       exit -1
-}
-
-
-# print usage 
-usage(){
-       einfo
-       einfo "$BRACKET Usage: "
-       einfo "$HILITE JBoss profile Manager"
-       einfo
-       einfo
-       einfo "$BRACKET $0: action [ACTION_OPTIONS]"
-       einfo "valid options are:"
-       einfo "$HILITE  delete"
-       einfo "         * Delete a profile"
-       einfo "         * You can get profiles with list"
-       einfo "$HILITE  list"
-       einfo "         * List actual profiles"
-       einfo "$HILITE  create"
-       einfo "         * Create a new profile"
-       einfo "$HILITE  h"
-       einfo "$HILITE  help"
-       einfo "         * print this helper"
-       einfo
-       einfo "Valid arguments are:"
-       einfo "$HILITE  --profile=serverdir_template"
-       einfo "         * the name of the template to use to create the new 
profile with --create"
-       einfo "         * the name of the profile to delete with --delete"
-       einfo "         Default is 'gentoo'"
-       einfo "$HILITE  --path=/path/to/profile_to_create      SCOPE:create"
-       einfo "         * don't use the leading / for a subdir of 
${INSTALL_DIR}/server"                  
-       einfo "         * indicate the full location to other wanted location"
-       einfo "$HILITE  --vhost=VHOST"
-       einfo "         * Set the vhost (default is 'localhost')"
-       einfo "         * Must exist a valid /srv/VHOST subdir"
-       einfo 
-       einfo "$BRACKET TIPS:"
-       einfo " For create and delete, you must give the profile's name"
-       einfo
-       einfo "$BRACKET Examples"
-       einfo " $0 create --profile=gentoo --path=/opt/newprofile"
-       einfo "         A new profile will be created in /opt/newprofile using 
default_vhost/gentoo as a template"
-       einfo "         A symlick in 
/srvdir/defaultvhost/jbossversion/newprofile will be done"
-       einfo " $0 create --profile=gentoo --path=newprofile"
-       einfo "         A new profile will be created in default vhost using 
srvdir/defaultvhost/jbossversion/igentoo as a template"
-       einfo " $0 --delete  --profile=gentoo"
-       einfo "         the 'gentoo' profile in default vhost will be deleted"
-       einfo
-}
-
-# list actual profiles
-# $1:vhost
-# $2:vhost path
-list_profiles() {
-       vhost=$1
-       vhost_path=$2
-       if [[ $debug == "true" ]];then
-               einfo "list_profiles: vhost: $vhost"
-               einfo "list_profiles: vhost_path: $vhost_path"
-       fi
-       einfo "Installed profiles in ${vhost} :"
-       for i in  $(ls -d ${vhost_path}/* ) ;do
-               if [[ -L "$i" ]];then
-                       einfo "$HILITE $(echo $i|sed -re "s:$vhost_path/*::g")"
-                       einfo "         Server subdir:          $i"
-                       einfo "         Real path:              $(ls -dl "$i" | 
awk -F " " '{print $11 }')"
-               else
-                       einfo "$HILITE $i"
-               fi
-       done;
-}
-
-
-# verify if the vhost direcotry is created
-# exit and display error on failure
-# $1: vhost to verify
-verify_vhost(){
-       if [[ -d ${srvdir}/$1 ]];then
-               vhost="$1"
-               vhost_path="${srvdir}/${JBOSS_VERSION}/$i"      
-       else
-               do_error "vhost_invalid_vhost" $1
-       fi
-       [[ ${debug} == "true" ]] && einfo "verify_vhost:  vhost     : $vhost"\
-                                && einfo "verify_vhost:  vhost_path: 
$vhost_path"
-}
-
-# verify if this path (for creation) is valid
-# set the  adequat variables
-# exit on fails with error display
-# $1: the path to verify
-verify_path(){
-       local value=$1
-       if [[ ${action} == "create" ]];then
-               local l_name
-               # remove final slash if one
-               value=$(echo ${value}|sed -re "s/(\/*[^\/]+)\/*$/\1/")
-               # is there a profile or a full path
-               if [[ ${value:0:2} == "./" ]];then                              
-                       # if relative getting full
-                       value="$(pwd|sed -re "s:(.*)/*$:\1/:")$(echo 
${value}|sed -re "s:\./::g")"
-               fi
-               if [[ ${value:0:1} == "/" ]];then
-                       is_subdir=0
-               else                            
-                       # if profile, verify that s the name doesnt contains 
any other path
-                       [[ $(echo ${value}|grep "/" |grep -v grep|wc -l  ) -gt 
0 ]] \
-                               && do_error "profile_invalid_subdir" ${value}
-                       value=${vhost_path}/${value}
-                       is_subdir=1
-               fi
-               for forbidden in ${forbidden_to_install_in};do
-                       if [[ $(echo ${value}|sed -re "s:^($forbidden):STOP:") 
== "STOP" ]];then
-                               do_error "profile_creation_forbidden" 
${forbidden}
-                       fi
-               done
-               # if final directory is even created
-               # we control that we do not overwrite an existing profile
-               if [[ -d ${value} || -L ${value}  ]];then
-                       for i in conf data lib run tmp deploy;do                
-                               [[ -e ${value}/$i ]] && do_error 
"profile_file_exists" "${value}" "$i"
-                       done
-               fi
-               #if fullpath, check that the name  doesnt exists
-               name="$(echo ${value}|sed -re "s:(.*/)([^/]*)($):\2:")"
-               [[ -e ${default_path}/${name} ]] && do_error 
"profile_file_exists" ${name}
-               # clean variables
-               # remove final slash if one
-               path="${value}"
-               path=$(echo ${path}|sed -re "s/\/*$//")
-
-       else
-               do_error "path_invalid_scope" ${action}
-       fi
-       if [[ ${debug} == "true" ]];then
-               einfo "verify_path: path: $path"
-               einfo "verify_path: name: $name"
-               [[ ${is_subdir} != "1" ]] && einfo "verify_path: symlick in: 
${vhost_path}/${name}"
-       fi
-}
-
-# verfiry a jboss profile
-# $1 : profile name
-# exit and print usage if profile is invalid 
-# continue either
-verify_profile() {
-       local value=$1
-       if [[ ${value:0:1} == "/" || ${value:0:2} == "./"  ]];then      
-               #full or relative path is given
-               if [[  -e   ${value} ]]; then
-                       profile="${value}"
-               else
-                       do_error "profile_invalid_full_path" ${value}
-               fi                                      
-       # subdir given
-       elif [[ -e  ${vhost_path}/${value} ]];then
-               profile="${vhost_path}/$value"                          
-       else
-               do_error "profile_invalid_subdir" ${value}
-       fi
-       for i in conf lib deploy;do
-               if [[ ! -e ${profile}/$i ]];then
-                       do_error "profile_invalid_profile" $i
-               fi
-       done
-       # clean variables
-       # remove final slash if one     
-       profile=$(echo ${profile}|sed -re "s/\/*$//")
-
-       [[ ${debug} == "true" ]] && einfo "verify_profile:  profile: $profile"
-}
-
-# adds ".keep" files so that dirs aren't auto-cleaned
-keepdir() {
-        mkdir -p "$@"
-        local x
-        if [ "$1" == "-R" ] || [ "$1" == "-r" ]; then
-                shift
-                find "$@" -type d -printf "%p/.keep_www-server_jboss-bin_4\n" 
|\
-                        tr "\n" "\0" | $XARGS -0 -n100 touch ||\
-                        die "Failed to recursive create .keep files"
-        else
-                for x in "$@"; do
-                        touch "${x}/.keep_www-server_jboss-bin_4" ||\
-                               die "Failed to create .keep in ${D}/${x}"
-                done
-        fi
-}
-
-# parse command lines arguments
-parse_cmdline() {
-       local arg value 
-       # parse and validate arguments
-        for param in  ${@};do               
-               case ${param} in
-                       "-v"|"-verbose"|"--v")
-                               debug="true"
-#                              echo "Setting verbose to true: $debug" 
-                               ;;
-                       *)
-                               if [[ $(echo ${param} | sed -re 
"s/--.*=..*/GOOD/g" ) != "GOOD" ]]; then
-                                       do_error "argument_invalid_args"
-                               fi
-                               arg=$(echo ${param} | sed -re 
"s/(--)(.*)(=.*)/\2/g")
-                               value=$(echo ${param} | sed -re 
"s/(.*=)(.*)/\2/g")
-                               case "$arg" in                  
-                                   "profile")
-                                       profile=${value}
-                                       ;;
-                                   "path")                     
-                                       path=${value}
-                                       ;;           
-                                   "vhost")
-                                       vhost=${value}
-                                       ;;
-                               esac
-                       ;;
-               esac
-       done
-
-}
-
-# delete a profile
-# $1: profile name
-# $2: vhost to use
-# $3: vhost path
-delete_profile(){   
-       profile=$1 
-       vhost=$2
-       vhost_path=$3
-       # contructing path to delete
-       path="${vhost_path}/${profile}"
-       local l_profile="${vhost}/${profile}"
-       if [[ $debug == "true" ]];then
-               einfo "delete_profile: profile: $profile"
-               einfo "delete_profile: vhost: $vhost"
-               einfo "delete_profile: vhost_path: $vhost_path"
-               einfo "delete_profile: path: $path"
-               einfo "delete_profile: l_profile: $l_profile"
-       fi
-       # if symlick getting real path
-       if [[ -L ${path} ]];then
-               path="$(ls -dl "${path}" | awk -F " " '{print $11 }')"
-       # else nothing
-       elif [[ -d ${path} ]];then
-               echo>>/dev/null
-       # if not a symlick or a direcotry, something weird, we exit !
-       else
-               do_error "delete_no_profile" $profile
-       fi
-
-       ewarn "Deleting profile: $HILITE ${profile}"
-       ewarn "In vhost: $HILITE ${vhost}"
-       ewarn "Path: $HILITE ${path}"
-       print_yes_no
-       # delete if symlick
-       [[ -L ${vhost_path}/${name} ]] && echo  rm -rf ${default_path}/${name}
-
-       # delete run files
-       rm -rf   ${TMPDIR}/${l_profile}\
-                 ${CACHEDIR}/${l_profile}\
-                 ${RUNDIR}/${l_profile}\
-                 ${LOGDIR}/${l_profile}\
-                ${CONFDIR}/${l_profile}\
-                ${path} \
-                ${CONFDIR}/${l_profile}
-}
-
-
-# create the profile
-# $1: vhost to install into
-# $2: profile
-# $3: path to install
-# $4: name of this profile
-# $5: subdir of jboss if 1 / full path if 0
-create_profile(){   
-       vhost=$1;profile=$2;path=$3;name=$4;is_subdir=$5
-       local l_profile="${vhost}/${name}"
-
-       # if default arguments are given
-       if [[ ${path} == "${default_path}" ]];then
-               do_error "path_no_path_given" 
-       fi
-
-       ewarn "Creating profile in ${path}"
-       ewarn "Using ${profile} profile"
-
-       # do base direcotries
-       keepdir  ${TMPDIR}/${l_profile}\
-                 ${CACHEDIR}/${l_profile}\
-                 ${RUNDIR}/${l_profile}\
-                 ${LOGDIR}/${l_profile}\
-                ${CONFDIR}/${l_profile}
-
-       # create directory
-       mkdir -p ${path} ||  do_error "action_create_cant_create_dir"
-
-       # copy profile
-       for i in  conf deploy lib;do
-               cp -rf ${profile}/$i ${path}/ 
-       done
-
-       # do runtime files stuff
-       ln -s ${LOGDIR}/${l_profile}     ${path}/logs
-       ln -s ${CACHEDIR}/${l_profile}   ${path}/data
-       ln -s ${TMPDIR}/${l_profile}     ${path}/tmp
-       ln -s ${RUNDIR}/${l_profile}     ${path}/run
-
-       # do /etc stuff
-       ln -s ${path}/conf       ${CONFDIR}/${l_profile}/conf
-       ln -s ${path}/deploy/jbossweb-tomcat55.sar/server.xml 
${CONFDIR}/${l_profile}
-
-       # if we don't create in jboss directory, link the profile in jboss 
servers dir
-       [[ is_subdir -eq 0 ]] && ln -s ${path} ${vhost_path}/${name}
-
-       # fix perms
-       for i in ${TMPDIR}/${l_profile}   ${CACHEDIR}/${l_profile} \
-                ${RUNDIR}/${l_profile}   ${LOGDIR}/${l_profile}   \
-                ${CONFDIR}/${l_profile}  ${CONFDIR}/${l_profile}  \
-                ${path};do
-               chmod -Rf 755 $i;
-               chown -R jboss:jboss $i;
-       done
-}
-        
-# print collected informations
-# $1: subdir of jboss if 1 / full path if 0
-confirm_creation() {
-       ewarn "Jboss profile manager for : $HILITE ${name}"
-       if [[ $1 -eq 0 ]];then          
-               WHERE="directory"
-       else
-               WHERE="vhost subdir"
-       fi
-       ewarn "Installing  in ${WHERE}:"
-       ewarn "         $HILITE${path} "
-       ewarn "Using profile: "
-       ewarn "         $HILITE${profile} "
-
-}
-
-# print a yes_no like form
-# exit on failure / no
-# continue if yes
-print_yes_no(){
-       local i nb nok="nok";
-       while [[ nok == "nok" ]];do
-               [[ $nb -gt 12 ]] && eerror "Invalid arguments" && exit -1
-               [[ $nb -gt 10 ]] && ewarn "Please Enter CTRL-C to exit "\
-                                && ewarn " or \"Y\" to say YES"\
-                                && ewarn " or \"N\" to say NO"
-               ewarn " Is that Correct (Y/N) ???"
-               read i;
-               [[ $i == "Y" || $i == "y" ]] && break
-               [[ $i == "N" || $i == "n" ]] && einfo "User wanted interrupt" 
&& exit
-               nb=$((nb+1))
-       done
-}
-
-main(){
-       local args="$2 $3 $4 $5 $6"
-       action="$1"
-       # if no args are given
-       if [[ $# -lt 1 ]];then
-               do_error "argument_no_arg"
-       fi      
-       case ${action} in
-               create)
-                       parse_cmdline ${args}
-                       verify_vhost ${vhost}
-                       verify_path ${path}
-                       verify_profile ${profile}
-                       confirm_creation ${is_subdir}
-                       print_yes_no
-                       create_profile ${vhost} ${profile} ${path} ${name} 
${is_subdir}
-               ;;
-               delete)
-                       parse_cmdline ${args}
-                       verify_vhost ${vhost}
-                       delete_profile ${profile} ${vhost} ${vhost_path}
-               ;;
-               list)
-                       parse_cmdline ${args}
-                       verify_vhost ${vhost}
-                       list_profiles ${vhost} ${vhost_path}
-               ;;
-               --help|h|-h|help)
-                       do_error "action_help"
-               ;;              
-               *)
-                       usage
-               ;;
-       esac
-}
-main ${@}

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
deleted file mode 100644
index 809d538..0000000
--- a/www-servers/jboss-bin/files/4.0.5/normal/conf.d/jboss-bin-4
+++ /dev/null
@@ -1,55 +0,0 @@
-## JAVA
-##your machine hostname or the one (main) you want to use
-JBOSS_HOSTNAME="localhost"
-#  the profile wanted
-JBOSS_SERVER_NAME="gentoo"
-# JBoss group (change at your own risk)
-JBOSS_USER="jboss"
-# JBoss group (change at your own risk)
-JBOSS_GROUP="jboss"
-# which version of jboss this config file belongs to
-JBOSS_PN_SLOT="jboss-bin-4"
-# GLEP20: where is the services directory
-SRVDIR="/var/lib"
-# Java options (copied from ${JBOSS_HOME_DIR}/bin/run.conf) - use "-server" 
only if Java supports it
-JAVA_OPTS="-server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 
-Dsun.rmi.dgc.server.gcInterval=3600000"
-# Sample JPDA settings for remote socket debuging
-#JAVA_OPTS="$JAVA_OPTS -Xdebug 
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"
-# Sample JPDA settings for shared memory debugging
-#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"
-
-## JBoss configuration
-## Used names mimic standard JBoss naming for these properties, i.e. 
JBOSS_SERVER_NAME variable is
-## jboss.server.name property. These variables are self-explanatory. If you 
are not sure what they
-## are for, you can consult JBoss documentation.
-## NOTE: At the moment we use both JBOSS_HOME_DIR and JBOSS_HOME_URL because 
JBOSS_HOME_DIR is used
-## in classpaths construction. The same is true for JBOSS_LIB_DIR and 
JBOSS_LIB_URL. *_DIR is used
-## to construct classpath and *_URL is passed to java as argument.
-
-JBOSS_HOME_DIR="/opt/${JBOSS_PN_SLOT}"
-JBOSS_HOME_URL="file:${JBOSS_HOME_DIR}"
-JBOSS_LIB_DIR="${JBOSS_HOME_DIR}/lib"
-JBOSS_LIB_URL="file:${JBOSS_LIB_DIR}"
-JBOSS_ENDORSED_DIRS="${JBOSS_HOME_DIR}/lib/endorsed"
-JBOSS_SERVER_BASE_DIR="${SRVDIR}/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}"
-JBOSS_SERVER_BASE_URL="file:${JBOSS_SERVER_BASE_DIR}"
-JBOSS_SERVER_HOME_DIR="${JBOSS_SERVER_BASE_DIR}/${JBOSS_SERVER_NAME}"
-JBOSS_SERVER_HOME_URL="file:${JBOSS_SERVER_HOME_DIR}"
-JBOSS_SERVER_CONFIG_URL="${JBOSS_SERVER_HOME_URL}/conf/"
-JBOSS_SERVER_DATA_DIR="/var/cache/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
-JBOSS_SERVER_LIB_URL="${JBOSS_SERVER_HOME_URL}/lib"
-JBOSS_SERVER_LOG_DIR="/var/log/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
-JBOSS_SERVER_ROOT_DEPLOYMENT_FILENAME="jboss-service.xml"
-JBOSS_SERVER_TEMP_DIR="/var/tmp/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
-JBOSS_PATCH_URL=""
-JBOSS_BIND_ADDRESS="0.0.0.0"
-JBOSS_SERVER_EXIT_ON_SHUTDOWN="true"
-JBOSS_SERVER_BLOCKING_SHUTDOWN="false"
-JBOSS_PLATFORM_MBEAN_SERVER="false"
-JBOSS_SERVER_REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY="true"
-
-# JBoss file descriptors limit (either maximum or a number)
-JBOSS_FD_LIMIT="maximum"
-
-# JBoss shutdown arguments
-JBOSS_SHUTDOWN_ARGS="-S"

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
deleted file mode 100644
index db4f146..0000000
Binary files a/www-servers/jboss-bin/files/4.0.5/normal/env.d/50jboss-bin-4.gz 
and /dev/null differ

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
deleted file mode 100755
index 8dbd30e..0000000
--- a/www-servers/jboss-bin/files/4.0.5/normal/init.d/jboss-bin-4
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-       
-depend() {
-       use dns logger net
-}
-
-
-init_vars() {
-
-       JBOSS_INT_OPTS="-Djboss.server.name=${JBOSS_SERVER_NAME}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.home.dir=${JBOSS_HOME_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.home.url=${JBOSS_HOME_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.lib.url=${JBOSS_LIB_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djava.endorsed.dirs=${JBOSS_ENDORSED_DIRS}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.base.dir=${JBOSS_SERVER_BASE_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.base.url=${JBOSS_SERVER_BASE_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.home.dir=${JBOSS_SERVER_HOME_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.home.url=${JBOSS_SERVER_HOME_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.config.url=${JBOSS_SERVER_CONFIG_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.root.deployment.filename=${JBOSS_SERVER_ROOT_DEPLOYMENT_FILENAME}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.data.dir=${JBOSS_SERVER_DATA_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.lib.url=${JBOSS_SERVER_LIB_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.log.dir=${JBOSS_SERVER_LOG_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.temp.dir=${JBOSS_SERVER_TEMP_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.bind.address=${JBOSS_BIND_ADDRESS}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.exitonshutdown=${JBOSS_SERVER_EXIT_ON_SHUTDOWN}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.blockingshutdown=${JBOSS_SERVER_BLOCKING_SHUTDOWN}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.platform.mbeanserver=${JBOSS_PLATFORM_MBEAN_SERVER}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.requirejbossurlstreamhandlerfactory=${JBOSS_SERVER_REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY}"
-       if [ -n "${JBOSS_PATCH_URL}" ]; then
-               JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.patch.url=${JBOSS_PATCH_URL}"
-       fi
-       # additionnal classpath, must be last
-       #getting tools.jar
-       eval $(gjl  -p jboss-bin-4  --get-vm);
-       jhome=$(java-config-2 --select-vm=$gjl_vm -O)
-       tools_jar="${jhome}/lib/tools.jar"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS}  -classpath ${tools_jar}" 
-
-}
-
-start()        {
-       ebegin "Starting JBoss"
-
-       MAX_FD_LIMIT=`ulimit -H -n`
-       if [ $? -eq 0 ]; then
-               if [ "${JBOSS_FD_LIMIT}" = "maximum" ]; then
-                       # use the system max
-                       JBOSS_FD_LIMIT="${MAX_FD_LIMIT}"
-               fi
-               ulimit -n ${JBOSS_FD_LIMIT}
-               if [ $? -ne 0 ]; then
-                       ewarn "Could not set maximum file descriptor limit: 
${JBOSS_FD_LIMIT}"
-               fi
-       else
-               ewarn "Could not query system maximum file descriptor limit: 
${MAX_FD_LIMIT}"
-       fi
-
-       init_vars
-       start-stop-daemon --start   --chuid ${JBOSS_USER}:${JBOSS_GROUP}\
-               --make-pidfile --pidfile 
/var/run/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}_jboss-bin-4.pid
 \
-               --env JAVA_OPTIONS="${JAVA_OPTS} ${JBOSS_INT_OPTS} -classpath 
/opt/jboss-bin-4/bin/run.jar"\
-               --exec /opt/jboss-bin-4/bin/jboss-start.sh -- 2>&1 >>/dev/null &
-                       
-       eend $?
-}
-
-stop() {       
-       ebegin "Stopping JBoss"
-       init_vars
-       start-stop-daemon --stop --quiet --make-pidfile \
-               --pidfile 
/var/run/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}_jboss-bin-4.pid
 \
-               --env JAVA_OPTIONS="${JAVA_OPTS} ${JBOSS_INT_OPTS} -classpath 
/opt/jboss-bin-4/bin/shutdown.jar"\
-               --exec /opt/jboss-bin-4/bin/jboss-stop.sh  
-       eend $?
-}

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
deleted file mode 100755
index aff540e..0000000
--- 
a/www-servers/jboss-bin/files/4.0.5/srvdir/bin/jboss-bin-4-profiles-creator.sh
+++ /dev/null
@@ -1,501 +0,0 @@
-#!/bin/sh
-#License: GPL2
-#author: kiorky [email protected]
-PATH="${PATH}:/usr/lib/portage/bin"
-source /etc/init.d/functions.sh
-
-debug="false"
-
-JBOSS_VERSION="jboss-bin-4"
-jboss_path="/opt/${JBOSS_VERSION}"
-
-action="help"
-
-# defaults
-srvdir="/srv"
-default_vhost="localhost"
-default_path="${srvdir}/${default_vhost}/${JBOSS_VERSION}"
-default_vhost_path="${srvdir}/${default_vhost}/${JBOSS_VERSION}"
-default_profile="${default_vhost_path}/gentoo"
-# initialize stuff
-profile="${default_profile}" 
-vhost="${default_vhost}"
-path="${default_path}"
-vhost_path="${default_vhost_path}"
-name="${default_profile}"
-
-CONFDIR="/etc/${JBOSS_VERSION}"
-TMPDIR="/var/tmp/${JBOSS_VERSION}"
-CACHEDIR="/var/cache/${JBOSS_VERSION}"
-RUNDIR="/var/run/${JBOSS_VERSION}"
-LOGDIR="/var/log/${JBOSS_VERSION}"
-
-forbidden_to_install_in="/ /bin /include /lib /sbin /usr/bin /usr/include 
/usr/lib /usr/sbin"
-XARGS="/usr/bin/xargs"
-
-# error management
-# usage: do_error "theerror" ARGS
-# read the code as it is enought explicit to use
-# some errors can take arguments !!
-do_error(){
-       eerror
-       case $1 in
-               "profile_creation_forbidden")
-                       eerror "Please specify another location"
-                       eerror "        Creating profiles in \"$2\" is 
forbidden !!!"
-                       ;;
-               "profile_file_exists")
-                       eerror "Profile is even created  ?"
-                       eerror "        File \"$3\" exists in \"$2\" directory"
-                       ;;              
-               "path_invalid_path")
-                       eerror "Invalid path: $HILITE  $2"
-                       ;;
-               "profile_invalid_subdir")
-                       eerror "Invalid profile"                                
        
-                       eerror "    Invalid JBOSS Servers subdir: $HILITE $2"
-                       ;;
-               "profile_invalid_full_path")
-                       eerror "Invalid profile"
-                       eerror "    Invalid full_path: $HILITE $2"
-                       ;;
-               "argument_invalid_args")
-                       eerror " You must specify --KEY=VALUE for your 
arguments"
-                       ;;
-               "profile_invalid_profile")
-                       eerror "Profile is invalid"
-                       eerror "     subdir for this profile is missing: 
$HILITE $2"
-                       ;;
-               "path_no_path_given")
-                       eerror "Please specify where you want to install your 
profile"
-                       ;;
-               "argument_no_arg")
-                       eerror "Please give Arguments"
-                       ;;              
-               "action_create_cant_create_dir")
-                       eerror "Can't create profile directory"
-                       exit -1
-                       ;;
-               "action_help")
-                       eerror "Help wanted ?"
-                       eerror;usage;exit
-                       ;;
-               "profile_file_exists")
-                       eerror "Profile  exists: $HILITE $2"
-                       ;;
-               "delete_no_profile")
-                       eerror "Invalid profile to delete: $HILITE $2"          
        
-                       ;;
-               "path_invalid_scope")
-                       error "--path argument is invalid in this scope: 
$HILITE $2"
-                       ;;
-               "vhost_invalid_vhost")
-                       eerror "Please specify a valid vhost"
-                       eerror "        Vhost given: $2"
-                       ;;
-               "path_not_exists")
-                       eerror "Please specify a valid final path"
-                       eerror "        Final profile path doest not exist: 
$HILITE $2" 
-                       ;;
-               *)
-                       eerror 
-                       usage
-                       exit # not error there !!!
-       esac
-       eerror "Please run for help:"
-       eerror "        $HILITE$0 help"
-       exit -1
-}
-
-
-# print usage 
-usage(){
-       einfo
-       einfo "$BRACKET Usage: "
-       einfo "$HILITE JBoss profile Manager"
-       einfo
-       einfo
-       einfo "$BRACKET $0: action [ACTION_OPTIONS]"
-       einfo "valid options are:"
-       einfo "$HILITE  delete"
-       einfo "         * Delete a profile"
-       einfo "         * You can get profiles with list"
-       einfo "$HILITE  list"
-       einfo "         * List actual profiles"
-       einfo "$HILITE  create"
-       einfo "         * Create a new profile"
-       einfo "$HILITE  h"
-       einfo "$HILITE  help"
-       einfo "         * print this helper"
-       einfo
-       einfo "Valid arguments are:"
-       einfo "$HILITE  --profile=serverdir_template"
-       einfo "         * the name of the template to use to create the new 
profile with --create"
-       einfo "         * the name of the profile to delete with --delete"
-       einfo "         Default is 'gentoo'"
-       einfo "$HILITE  --path=/path/to/profile_to_create      SCOPE:create"
-       einfo "         * don't use the leading / for a subdir of 
${INSTALL_DIR}/server"                  
-       einfo "         * indicate the full location to other wanted location"
-       einfo "$HILITE  --vhost=VHOST"
-       einfo "         * Set the vhost (default is 'localhost')"
-       einfo "         * Must exist a valid /srv/VHOST subdir"
-       einfo 
-       einfo "$BRACKET TIPS:"
-       einfo " For create and delete, you must give the profile's name"
-       einfo
-       einfo "$BRACKET Examples"
-       einfo " $0 create --profile=gentoo --path=/opt/newprofile"
-       einfo "         A new profile will be created in /opt/newprofile using 
default_vhost/gentoo as a template"
-       einfo "         A symlick in 
/srvdir/defaultvhost/jbossversion/newprofile will be done"
-       einfo " $0 create --profile=gentoo --path=newprofile"
-       einfo "         A new profile will be created in default vhost using 
srvdir/defaultvhost/jbossversion/igentoo as a template"
-       einfo " $0 --delete  --profile=gentoo"
-       einfo "         the 'gentoo' profile in default vhost will be deleted"
-       einfo
-}
-
-# list actual profiles
-# $1:vhost
-# $2:vhost path
-list_profiles() {
-       vhost=$1
-       vhost_path=$2
-       if [[ $debug == "true" ]];then
-               einfo "list_profiles: vhost: $vhost"
-               einfo "list_profiles: vhost_path: $vhost_path"
-       fi
-       einfo "Installed profiles in ${vhost} :"
-       for i in  $(ls -d ${vhost_path}/* ) ;do
-               if [[ -L "$i" ]];then
-                       einfo "$HILITE $(echo $i|sed -re "s:$vhost_path/*::g")"
-                       einfo "         Server subdir:          $i"
-                       einfo "         Real path:              $(ls -dl "$i" | 
awk -F " " '{print $11 }')"
-               else
-                       einfo "$HILITE $i"
-               fi
-       done;
-}
-
-
-# verify if the vhost direcotry is created
-# exit and display error on failure
-# $1: vhost to verify
-verify_vhost(){
-       if [[ -d ${srvdir}/$1 ]];then
-               vhost="$1"
-               vhost_path="${srvdir}/$1/${JBOSS_VERSION}"      
-       else
-               do_error "vhost_invalid_vhost" $1
-       fi
-       [[ ${debug} == "true" ]] && einfo "verify_vhost:  vhost     : $vhost"\
-                                && einfo "verify_vhost:  vhost_path: 
$vhost_path"
-}
-
-# verify if this path (for creation) is valid
-# set the  adequat variables
-# exit on fails with error display
-# $1: the path to verify
-verify_path(){
-       local value=$1
-       if [[ ${action} == "create" ]];then
-               local l_name
-               # remove final slash if one
-               value=$(echo ${value}|sed -re "s/(\/*[^\/]+)\/*$/\1/")
-               # is there a profile or a full path
-               if [[ ${value:0:2} == "./" ]];then                              
-                       # if relative getting full
-                       value="$(pwd|sed -re "s:(.*)/*$:\1/:")$(echo 
${value}|sed -re "s:\./::g")"
-               fi
-               if [[ ${value:0:1} == "/" ]];then
-                       is_subdir=0
-               else                            
-                       # if profile, verify that s the name doesnt contains 
any other path
-                       [[ $(echo ${value}|grep "/" |grep -v grep|wc -l  ) -gt 
0 ]] \
-                               && do_error "profile_invalid_subdir" ${value}
-                       value=${vhost_path}/${value}
-                       is_subdir=1
-               fi
-               for forbidden in ${forbidden_to_install_in};do
-                       if [[ $(echo ${value}|sed -re "s:^($forbidden):STOP:") 
== "STOP" ]];then
-                               do_error "profile_creation_forbidden" 
${forbidden}
-                       fi
-               done
-               # if final directory is even created
-               # we control that we do not overwrite an existing profile
-               if [[ -d ${value} || -L ${value}  ]];then
-                       for i in conf data lib run tmp deploy;do                
-                               [[ -e ${value}/$i ]] && do_error 
"profile_file_exists" "${value}" "$i"
-                       done
-               fi
-               #if fullpath, check that the name  doesnt exists
-               name="$(echo ${value}|sed -re "s:(.*/)([^/]*)($):\2:")"
-               [[ -e ${default_path}/${name} ]] && do_error 
"profile_file_exists" ${name}
-               # clean variables
-               # remove final slash if one
-               path="${value}"
-               path=$(echo ${path}|sed -re "s/\/*$//")
-
-       else
-               do_error "path_invalid_scope" ${action}
-       fi
-       if [[ ${debug} == "true" ]];then
-               einfo "verify_path: path: $path"
-               einfo "verify_path: name: $name"
-               [[ ${is_subdir} != "1" ]] && einfo "verify_path: symlick in: 
${vhost_path}/${name}"
-       fi
-}
-
-# verfiry a jboss profile
-# $1 : profile name
-# exit and print usage if profile is invalid 
-# continue either
-verify_profile() {
-       local value=$1
-       if [[ ${value:0:1} == "/" || ${value:0:2} == "./"  ]];then      
-               #full or relative path is given
-               if [[  -e   ${value} ]]; then
-                       profile="${value}"
-               else
-                       do_error "profile_invalid_full_path" ${value}
-               fi                                      
-       # subdir given
-       elif [[ -e  ${vhost_path}/${value} ]];then
-               profile="${vhost_path}/$value"                          
-       else
-               do_error "profile_invalid_subdir" ${value}
-       fi
-       for i in conf lib deploy;do
-               if [[ ! -e ${profile}/$i ]];then
-                       do_error "profile_invalid_profile" $i
-               fi
-       done
-       # clean variables
-       # remove final slash if one     
-       profile=$(echo ${profile}|sed -re "s/\/*$//")
-
-       [[ ${debug} == "true" ]] && einfo "verify_profile:  profile: $profile"
-}
-
-# adds ".keep" files so that dirs aren't auto-cleaned
-keepdir() {
-        mkdir -p "$@"
-        local x
-        if [ "$1" == "-R" ] || [ "$1" == "-r" ]; then
-                shift
-                find "$@" -type d -printf "%p/.keep_www-server_jboss-bin_4\n" 
|\
-                        tr "\n" "\0" | $XARGS -0 -n100 touch ||\
-                        die "Failed to recursive create .keep files"
-        else
-                for x in "$@"; do
-                        touch "${x}/.keep_www-server_jboss-bin_4" ||\
-                               die "Failed to create .keep in ${D}/${x}"
-                done
-        fi
-}
-
-# parse command lines arguments
-parse_cmdline() {
-       local arg value 
-       # parse and validate arguments
-        for param in  ${@};do               
-               case ${param} in
-                       "-v"|"-verbose"|"--v")
-                               debug="true"
-#                              echo "Setting verbose to true: $debug" 
-                               ;;
-                       *)
-                               if [[ $(echo ${param} | sed -re 
"s/--.*=..*/GOOD/g" ) != "GOOD" ]]; then
-                                       do_error "argument_invalid_args"
-                               fi
-                               arg=$(echo ${param} | sed -re 
"s/(--)(.*)(=.*)/\2/g")
-                               value=$(echo ${param} | sed -re 
"s/(.*=)(.*)/\2/g")
-                               case "$arg" in                  
-                                   "profile")
-                                       profile=${value}
-                                       ;;
-                                   "path")                     
-                                       path=${value}
-                                       ;;           
-                                   "vhost")
-                                       vhost=${value}
-                                       ;;
-                               esac
-                       ;;
-               esac
-       done
-
-}
-
-# delete a profile
-# $1: profile name
-# $2: vhost to use
-# $3: vhost path
-delete_profile(){   
-       profile=$1 
-       vhost=$2
-       vhost_path=$3
-       # contructing path to delete
-       path="${vhost_path}/${profile}"
-       local l_profile="${vhost}/${profile}"
-       if [[ $debug == "true" ]];then
-               einfo "delete_profile: profile: $profile"
-               einfo "delete_profile: vhost: $vhost"
-               einfo "delete_profile: vhost_path: $vhost_path"
-               einfo "delete_profile: path: $path"
-               einfo "delete_profile: l_profile: $l_profile"
-       fi
-       # if symlick getting real path
-       if [[ -L ${path} ]];then
-               path="$(ls -dl "${path}" | awk -F " " '{print $11 }')"
-       # else nothing
-       elif [[ -d ${path} ]];then
-               echo>>/dev/null
-       # if not a symlick or a direcotry, something weird, we exit !
-       else
-               do_error "delete_no_profile" $profile
-       fi
-
-       ewarn "Deleting profile: $HILITE ${profile}"
-       ewarn "In vhost: $HILITE ${vhost}"
-       ewarn "Path: $HILITE ${path}"
-       print_yes_no
-       # delete if symlick
-       [[ -L ${vhost_path}/${name} ]] && echo  rm -rf ${default_path}/${name}
-
-       # delete run files
-       rm -rf   ${TMPDIR}/${l_profile}\
-                 ${CACHEDIR}/${l_profile}\
-                 ${RUNDIR}/${l_profile}\
-                 ${LOGDIR}/${l_profile}\
-                ${CONFDIR}/${l_profile}\
-                ${path} \
-                ${CONFDIR}/${l_profile}
-}
-
-
-# create the profile
-# $1: vhost to install into
-# $2: profile
-# $3: path to install
-# $4: name of this profile
-# $5: subdir of jboss if 1 / full path if 0
-create_profile(){   
-       vhost=$1;profile=$2;path=$3;name=$4;is_subdir=$5
-       local l_profile="${vhost}/${name}"
-
-       # if default arguments are given
-       if [[ ${path} == "${default_path}" ]];then
-               do_error "path_no_path_given" 
-       fi
-
-       ewarn "Creating profile in ${path}"
-       ewarn "Using ${profile} profile"
-
-       # do base direcotries
-       keepdir  ${TMPDIR}/${l_profile}\
-                 ${CACHEDIR}/${l_profile}\
-                 ${RUNDIR}/${l_profile}\
-                 ${LOGDIR}/${l_profile}\
-                ${CONFDIR}/${l_profile}
-
-       # create directory
-       mkdir -p ${path} ||  do_error "action_create_cant_create_dir"
-
-       # copy profile
-       for i in  conf deploy lib;do
-               cp -rf ${profile}/$i ${path}/ 
-       done
-
-       # do runtime files stuff
-       ln -s ${LOGDIR}/${l_profile}     ${path}/logs
-       ln -s ${CACHEDIR}/${l_profile}   ${path}/data
-       ln -s ${TMPDIR}/${l_profile}     ${path}/tmp
-       ln -s ${RUNDIR}/${l_profile}     ${path}/run
-
-       # do /etc stuff
-       ln -s ${path}/conf       ${CONFDIR}/${l_profile}/conf
-       ln -s ${path}/deploy/jbossweb-tomcat55.sar/server.xml 
${CONFDIR}/${l_profile}
-
-       # if we don't create in jboss directory, link the profile in jboss 
servers dir
-       [[ is_subdir -eq 0 ]] && ln -s ${path} ${vhost_path}/${name}
-
-       # fix perms
-       for i in ${TMPDIR}/${l_profile}   ${CACHEDIR}/${l_profile} \
-                ${RUNDIR}/${l_profile}   ${LOGDIR}/${l_profile}   \
-                ${CONFDIR}/${l_profile}  ${CONFDIR}/${l_profile}  \
-                ${path};do
-               chmod -Rf 755 $i;
-               chown -R jboss:jboss $i;
-       done
-}
-        
-# print collected informations
-# $1: subdir of jboss if 1 / full path if 0
-confirm_creation() {
-       ewarn "Jboss profile manager for : $HILITE ${name}"
-       if [[ $1 -eq 0 ]];then          
-               WHERE="directory"
-       else
-               WHERE="vhost subdir"
-       fi
-       ewarn "Installing  in ${WHERE}:"
-       ewarn "         $HILITE${path} "
-       ewarn "Using profile: "
-       ewarn "         $HILITE${profile} "
-
-}
-
-# print a yes_no like form
-# exit on failure / no
-# continue if yes
-print_yes_no(){
-       local i nb nok="nok";
-       while [[ nok == "nok" ]];do
-               [[ $nb -gt 12 ]] && eerror "Invalid arguments" && exit -1
-               [[ $nb -gt 10 ]] && ewarn "Please Enter CTRL-C to exit "\
-                                && ewarn " or \"Y\" to say YES"\
-                                && ewarn " or \"N\" to say NO"
-               ewarn " Is that Correct (Y/N) ???"
-               read i;
-               [[ $i == "Y" || $i == "y" ]] && break
-               [[ $i == "N" || $i == "n" ]] && einfo "User wanted interrupt" 
&& exit
-               nb=$((nb+1))
-       done
-}
-
-main(){
-       local args="$2 $3 $4 $5 $6"
-       action="$1"
-       # if no args are given
-       if [[ $# -lt 1 ]];then
-               do_error "argument_no_arg"
-       fi      
-       case ${action} in
-               create)
-                       parse_cmdline ${args}
-                       verify_vhost ${vhost}
-                       verify_path ${path}
-                       verify_profile ${profile}
-                       confirm_creation ${is_subdir}
-                       print_yes_no
-                       create_profile ${vhost} ${profile} ${path} ${name} 
${is_subdir}
-               ;;
-               delete)
-                       parse_cmdline ${args}
-                       verify_vhost ${vhost}
-                       delete_profile ${profile} ${vhost} ${vhost_path}
-               ;;
-               list)
-                       parse_cmdline ${args}
-                       verify_vhost ${vhost}
-                       list_profiles ${vhost} ${vhost_path}
-               ;;
-               --help|h|-h|help)
-                       do_error "action_help"
-               ;;              
-               *)
-                       usage
-               ;;
-       esac
-}
-main ${@}

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
deleted file mode 100644
index 836eb76..0000000
--- a/www-servers/jboss-bin/files/4.0.5/srvdir/conf.d/jboss-bin-4
+++ /dev/null
@@ -1,55 +0,0 @@
-## JAVA
-##your machine hostname or the one (main) you want to use
-JBOSS_HOSTNAME="localhost"
-#  the profile wanted
-JBOSS_SERVER_NAME="gentoo"
-# JBoss group (change at your own risk)
-JBOSS_USER="jboss"
-# JBoss group (change at your own risk)
-JBOSS_GROUP="jboss"
-# which version of jboss this config file belongs to
-JBOSS_PN_SLOT="jboss-bin-4"
-# GLEP20: where is the services directory
-SRVDIR="/srv"
-# Java options (copied from ${JBOSS_HOME_DIR}/bin/run.conf) - use "-server" 
only if Java supports it
-JAVA_OPTS="-server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 
-Dsun.rmi.dgc.server.gcInterval=3600000"
-# Sample JPDA settings for remote socket debuging
-#JAVA_OPTS="$JAVA_OPTS -Xdebug 
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"
-# Sample JPDA settings for shared memory debugging
-#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"
-
-## JBoss configuration
-## Used names mimic standard JBoss naming for these properties, i.e. 
JBOSS_SERVER_NAME variable is
-## jboss.server.name property. These variables are self-explanatory. If you 
are not sure what they
-## are for, you can consult JBoss documentation.
-## NOTE: At the moment we use both JBOSS_HOME_DIR and JBOSS_HOME_URL because 
JBOSS_HOME_DIR is used
-## in classpaths construction. The same is true for JBOSS_LIB_DIR and 
JBOSS_LIB_URL. *_DIR is used
-## to construct classpath and *_URL is passed to java as argument.
-
-JBOSS_HOME_DIR="/opt/${JBOSS_PN_SLOT}"
-JBOSS_HOME_URL="file:${JBOSS_HOME_DIR}"
-JBOSS_LIB_DIR="${JBOSS_HOME_DIR}/lib"
-JBOSS_LIB_URL="file:${JBOSS_LIB_DIR}"
-JBOSS_ENDORSED_DIRS="${JBOSS_HOME_DIR}/lib/endorsed"
-JBOSS_SERVER_BASE_DIR="${SRVDIR}/${JBOSS_HOSTNAME}/${JBOSS_PN_SLOT}"
-JBOSS_SERVER_BASE_URL="file:${JBOSS_SERVER_BASE_DIR}"
-JBOSS_SERVER_HOME_DIR="${JBOSS_SERVER_BASE_DIR}/${JBOSS_SERVER_NAME}"
-JBOSS_SERVER_HOME_URL="file:${JBOSS_SERVER_HOME_DIR}"
-JBOSS_SERVER_CONFIG_URL="${JBOSS_SERVER_HOME_URL}/conf/"
-JBOSS_SERVER_DATA_DIR="/var/cache/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
-JBOSS_SERVER_LIB_URL="${JBOSS_SERVER_HOME_URL}/lib"
-JBOSS_SERVER_LOG_DIR="/var/log/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
-JBOSS_SERVER_ROOT_DEPLOYMENT_FILENAME="jboss-service.xml"
-JBOSS_SERVER_TEMP_DIR="/var/tmp/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}"
-JBOSS_PATCH_URL=""
-JBOSS_BIND_ADDRESS="0.0.0.0"
-JBOSS_SERVER_EXIT_ON_SHUTDOWN="true"
-JBOSS_SERVER_BLOCKING_SHUTDOWN="false"
-JBOSS_PLATFORM_MBEAN_SERVER="false"
-JBOSS_SERVER_REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY="true"
-
-# JBoss file descriptors limit (either maximum or a number)
-JBOSS_FD_LIMIT="maximum"
-
-# JBoss shutdown arguments
-JBOSS_SHUTDOWN_ARGS="-S"

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
deleted file mode 100644
index db4f146..0000000
Binary files a/www-servers/jboss-bin/files/4.0.5/srvdir/env.d/50jboss-bin-4.gz 
and /dev/null differ

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
deleted file mode 100755
index 8dbd30e..0000000
--- a/www-servers/jboss-bin/files/4.0.5/srvdir/init.d/jboss-bin-4
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-       
-depend() {
-       use dns logger net
-}
-
-
-init_vars() {
-
-       JBOSS_INT_OPTS="-Djboss.server.name=${JBOSS_SERVER_NAME}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.home.dir=${JBOSS_HOME_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.home.url=${JBOSS_HOME_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} -Djboss.lib.url=${JBOSS_LIB_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djava.endorsed.dirs=${JBOSS_ENDORSED_DIRS}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.base.dir=${JBOSS_SERVER_BASE_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.base.url=${JBOSS_SERVER_BASE_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.home.dir=${JBOSS_SERVER_HOME_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.home.url=${JBOSS_SERVER_HOME_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.config.url=${JBOSS_SERVER_CONFIG_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.root.deployment.filename=${JBOSS_SERVER_ROOT_DEPLOYMENT_FILENAME}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.data.dir=${JBOSS_SERVER_DATA_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.lib.url=${JBOSS_SERVER_LIB_URL}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.log.dir=${JBOSS_SERVER_LOG_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.temp.dir=${JBOSS_SERVER_TEMP_DIR}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.bind.address=${JBOSS_BIND_ADDRESS}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.exitonshutdown=${JBOSS_SERVER_EXIT_ON_SHUTDOWN}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.blockingshutdown=${JBOSS_SERVER_BLOCKING_SHUTDOWN}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.platform.mbeanserver=${JBOSS_PLATFORM_MBEAN_SERVER}"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.server.requirejbossurlstreamhandlerfactory=${JBOSS_SERVER_REQUIRE_JBOSS_URL_STREAM_HANDLER_FACTORY}"
-       if [ -n "${JBOSS_PATCH_URL}" ]; then
-               JBOSS_INT_OPTS="${JBOSS_INT_OPTS} 
-Djboss.patch.url=${JBOSS_PATCH_URL}"
-       fi
-       # additionnal classpath, must be last
-       #getting tools.jar
-       eval $(gjl  -p jboss-bin-4  --get-vm);
-       jhome=$(java-config-2 --select-vm=$gjl_vm -O)
-       tools_jar="${jhome}/lib/tools.jar"
-       JBOSS_INT_OPTS="${JBOSS_INT_OPTS}  -classpath ${tools_jar}" 
-
-}
-
-start()        {
-       ebegin "Starting JBoss"
-
-       MAX_FD_LIMIT=`ulimit -H -n`
-       if [ $? -eq 0 ]; then
-               if [ "${JBOSS_FD_LIMIT}" = "maximum" ]; then
-                       # use the system max
-                       JBOSS_FD_LIMIT="${MAX_FD_LIMIT}"
-               fi
-               ulimit -n ${JBOSS_FD_LIMIT}
-               if [ $? -ne 0 ]; then
-                       ewarn "Could not set maximum file descriptor limit: 
${JBOSS_FD_LIMIT}"
-               fi
-       else
-               ewarn "Could not query system maximum file descriptor limit: 
${MAX_FD_LIMIT}"
-       fi
-
-       init_vars
-       start-stop-daemon --start   --chuid ${JBOSS_USER}:${JBOSS_GROUP}\
-               --make-pidfile --pidfile 
/var/run/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}_jboss-bin-4.pid
 \
-               --env JAVA_OPTIONS="${JAVA_OPTS} ${JBOSS_INT_OPTS} -classpath 
/opt/jboss-bin-4/bin/run.jar"\
-               --exec /opt/jboss-bin-4/bin/jboss-start.sh -- 2>&1 >>/dev/null &
-                       
-       eend $?
-}
-
-stop() {       
-       ebegin "Stopping JBoss"
-       init_vars
-       start-stop-daemon --stop --quiet --make-pidfile \
-               --pidfile 
/var/run/${JBOSS_PN_SLOT}/${JBOSS_HOSTNAME}/${JBOSS_SERVER_NAME}_jboss-bin-4.pid
 \
-               --env JAVA_OPTIONS="${JAVA_OPTS} ${JBOSS_INT_OPTS} -classpath 
/opt/jboss-bin-4/bin/shutdown.jar"\
-               --exec /opt/jboss-bin-4/bin/jboss-stop.sh  
-       eend $?
-}

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
deleted file mode 100755
index 8cfa1dc..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/server.xml
+++ /dev/null
@@ -1,180 +0,0 @@
-<Server>
-
-   <!-- Use a custom version of StandardService that allows the
-   connectors to be started independent of the normal lifecycle
-   start to allow web apps to be deployed before starting the
-   connectors.
-   -->
-   <Service name="jboss.web"
-      className="org.jboss.web.tomcat.tc5.StandardService">
-
-      <!-- A HTTP/1.1 Connector on port 8080 -->
-      <Connector port="8080" address="${jboss.bind.address}"
-         maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
-         emptySessionPath="true"
-         enableLookups="false" redirectPort="8443" acceptCount="100"
-         connectionTimeout="20000" disableUploadTimeout="true"/>
-
-      <!-- Add this option to the connector to avoid problems with 
-          .NET clients that don't implement HTTP/1.1 correctly 
-         restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*$"
-      -->
-       
-      <!-- A AJP 1.3 Connector on port 8009 -->
-      <Connector port="8009" address="${jboss.bind.address}"
-         emptySessionPath="true" enableLookups="false" redirectPort="8443" 
-         protocol="AJP/1.3"/>
-
-      <!-- SSL/TLS Connector configuration using the admin devl guide keystore
-      <Connector port="8443" address="${jboss.bind.address}"
-           maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
-           emptySessionPath="true"
-           scheme="https" secure="true" clientAuth="false" 
-           keystoreFile="${jboss.server.home.dir}/conf/chap8.keystore"
-           keystorePass="rmi+ssl" sslProtocol = "TLS" />
-      -->
-
-      <Engine name="jboss.web" defaultHost="localhost">
-
-         <!-- The JAAS based authentication and authorization realm 
implementation
-         that is compatible with the jboss 3.2.x realm implementation.
-         - certificatePrincipal : the class name of the
-         org.jboss.security.auth.certs.CertificatePrincipal impl
-         used for mapping X509[] cert chains to a Princpal.
-         - allRolesMode : how to handle an auth-constraint with a role-name=*,
-         one of strict, authOnly, strictAuthOnly
-           + strict = Use the strict servlet spec interpretation which requires
-           that the user have one of the web-app/security-role/role-name
-           + authOnly = Allow any authenticated user
-           + strictAuthOnly = Allow any authenticated user only if there are no
-           web-app/security-roles
-         -->
-         <Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm"
-            
certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
-            allRolesMode="authOnly"
-            />
-         <!-- A subclass of JBossSecurityMgrRealm that uses the authentication
-         behavior of JBossSecurityMgrRealm, but overrides the authorization
-         checks to use JACC permissions with the current java.security.Policy
-         to determine authorized access.
-         - allRolesMode : how to handle an auth-constraint with a role-name=*,
-         one of strict, authOnly, strictAuthOnly
-           + strict = Use the strict servlet spec interpretation which requires
-           that the user have one of the web-app/security-role/role-name
-           + authOnly = Allow any authenticated user
-           + strictAuthOnly = Allow any authenticated user only if there are no
-           web-app/security-roles
-         <Realm 
className="org.jboss.web.tomcat.security.JaccAuthorizationRealm"
-            
certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
-            allRolesMode="authOnly"
-            />
-         -->
-
-        <Host 
-           autoDeploy="true" 
-           
configClass="org.jboss.web.tomcat.security.config.JBossContextConfig"
-          deployOnStartup="true" 
-          deployXML="true"
-           name="localhost"
-          unpackWARs="true"
-          appBase="${jboss.server.data.dir}"
-           >
-<!--                <Context
-                        allowLinking="true"
-                        docBase="${jboss.server.home.dir}/deploy/ROOT.war"
-                        path=""
-                       privileged="true"
-                       reloadable="true"
-                        useNaming="true"
-               />
--->
-
-            <!-- Uncomment to enable request dumper. This Valve "logs 
interesting 
-                 contents from the specified Request (before processing) and 
the 
-                 corresponding Response (after processing). It is especially 
useful 
-                 in debugging problems related to headers and cookies."
-            -->
-            <!--
-            <Valve className="org.apache.catalina.valves.RequestDumperValve" />
-            -->
- 
-            <!-- Access logger -->
-            
-               <Valve 
-                       
className="org.apache.catalina.valves.FastCommonAccessLogValve"
-                       directory="${jboss.server.log.dir}/" 
-                       pattern="combined"
-                       prefix="localhost_log." 
-                       resolveHosts="false" 
-                       suffix=".log"
-               />
-            
-
-            <!-- Uncomment to enable single sign-on across web apps
-                deployed to this host. Does not provide SSO across a cluster.  
   
-            
-                If this valve is used, do not use the JBoss 
ClusteredSingleSignOn 
-                valve shown below. 
-                
-                A new configuration attribute is available beginning with
-                release 4.0.4:
-                
-                cookieDomain  configures the domain to which the SSO cookie
-                              will be scoped (i.e. the set of hosts to
-                              which the cookie will be presented).  By default
-                              the cookie is scoped to "/", meaning the host
-                              that presented it.  Set cookieDomain to a
-                              wider domain (e.g. "xyz.com") to allow an SSO
-                              to span more than one hostname.
-             -->
-            <!--
-            <Valve className="org.apache.catalina.authenticator.SingleSignOn" 
/>
-            -->
-
-            <!-- Uncomment to enable single sign-on across web apps
-               deployed to this host AND to all other hosts in the cluster.
-            
-               If this valve is used, do not use the standard Tomcat 
SingleSignOn
-               valve shown above.
-            
-               Valve uses a JBossCache instance to support SSO credential 
-               caching and replication across the cluster.  The JBossCache 
-               instance must be configured separately.  By default, the valve 
-               shares a JBossCache with the service that supports HttpSession 
-               replication.  See the "tc5-cluster-service.xml" file in the 
-               server/all/deploy directory for cache configuration details.
-            
-               Besides the attributes supported by the standard Tomcat
-               SingleSignOn valve (see the Tomcat docs), this version also 
-               supports the following attributes:
-            
-               cookieDomain   see above
-            
-               treeCacheName  JMX ObjectName of the JBossCache MBean used to 
-                              support credential caching and replication across
-                              the cluster. If not set, the default value is 
-                              "jboss.cache:service=TomcatClusteringCache", the 
-                              standard ObjectName of the JBossCache MBean used 
-                              to support session replication.
-            -->
-            <!--
-            <Valve 
className="org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn" />
-            -->
-         
-            <!-- Check for unclosed connections and transaction terminated 
checks
-                 in servlets/jsps.
-                 
-                 Important: The dependency on the CachedConnectionManager
-                 in META-INF/jboss-service.xml must be uncommented, too
-            -->
-            <Valve 
className="org.jboss.web.tomcat.tc5.jca.CachedConnectionValve"
-                
cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
-                
transactionManagerObjectName="jboss:service=TransactionManager" />
-
-         </Host>
-
-      </Engine>
-
-   </Service>
-
-</Server>

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
deleted file mode 100644
index f0b3fb2..0000000
--- 
a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/WEB-INF/jboss-web.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?> 
-<jboss-web>
-       <context-root>/gentoo-doc</context-root> 
-</jboss-web>  
-
-
-
-

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
deleted file mode 100755
index 22838be..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/WEB-INF/web.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
-<web-app >
-   <distributable/>
-   <welcome-file-list>
-      <welcome-file>index.jsp</welcome-file>
-      <welcome-file>index.html</welcome-file>
-   </welcome-file-list>
-  <servlet>
-    <servlet-name>Status Servlet</servlet-name>
-    <servlet-class>org.jboss.web.tomcat.tc5.StatusServlet</servlet-class>
-  </servlet>
-  <servlet-mapping>
-    <servlet-name>Status Servlet</servlet-name>
-    <url-pattern>/status</url-pattern>
-  </servlet-mapping>
-
-</web-app>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

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
deleted file mode 100644
index 861b395..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/css/styles.css
+++ /dev/null
@@ -1,74 +0,0 @@
-/* debug */
-/* i*/
-/* table {border: 1px solid black}
- td {border: 1px dotted gray} 
- div {border: 3px solid orange}
- img, form {border: 1px dashed blue}
- h1, h2, h3, h4, h5, h6, p {border: 1px solid yellow}
- ul {border: 1px solid red}
-  li {border: 1px solid lightgreen} */
-/* */
-
-
-* {margin: 0; padding: 0;position:relative;}
-
-.body_c {margin-top:40px;height:80%;padding-left:15px;}
-
-.menu {
-       float:left;
-       width:300px;
-       clear:left;
-       font-size:9;
-       padding-top:10px;
-       margin-top:20px;
-}
-/* menu definition */
-.menu_title  p {text-align:center;font-size:14pt;}
-.menu_content ul {margin-bottom:10px;}
-.menu_content li {list-style:none;font-size:10pt;padding-left:15px;}
-
-.content  {margin-left:300px;}
-/*         border: 3px solid blue;}*/
-.content_title {text-align:center;font-size:18pt;margin-bottom:40px;}
-
-.file {
-       
padding:4px;margin-right:250px;margin-left:100px;padding-left:10px;margin-top:4px;
-       width:400px;
-       background-color: #ffafaf; border-bottom: 1px solid #888;
-}
-.code {
-       padding:10px;margin-right:250px;margin-left:100px;padding-left:10px;
-       border:1px solid #0E8605;       
-       background-color: #f9f9f9;
-}
-code {
-       color:#0E8605;  
-       font-weight: bold;
-}
-
-.helper_title  {
-       padding-left:10px;margin-top:20px;
-       font-weight: bold;
-}
-
-.helper_args   {
-       padding-left:20px;
-       font-weight: normal;
-       color:  #0E8605;
-}
-.helper_desc  {
-       font-weight: normal;
-       padding-left:35px;
-}
-
-
-.header { text-align:center;}
-
-.footer  { padding-bottom:20px; margin-bottom:5px;}
-
-h1 {text-align:center;}
-
-.spacer {clear:both;   /*}
-/*          border: 3px solid blue;}*/
-
-

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
deleted file mode 100644
index 07ae247..0000000
Binary files 
a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/gentoo.png and 
/dev/null differ

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
deleted file mode 100644
index 07ae247..0000000
Binary files 
a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/gentoo.png and 
/dev/null differ

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
deleted file mode 100644
index 46de83c..0000000
Binary files 
a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss.gif and 
/dev/null differ

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
deleted file mode 100644
index 3297347..0000000
Binary files 
a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss_powered.gif 
and /dev/null differ

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
deleted file mode 100644
index dfce723..0000000
Binary files 
a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/jboss_powered.jpg 
and /dev/null differ

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
deleted file mode 100755
index d33ddf6..0000000
Binary files 
a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/img/logo.gif and 
/dev/null differ

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
deleted file mode 100644
index e520d57..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/index.jsp
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
-<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
-<head>
-       <title>gentoo rox</title>
-        <link rel="stylesheet" type="text/css"  href="css/styles.css" />
-</head>
-<body>
-       <jsp:include page="./template/header.jsp" />
-       <div class="body_c">
-               <jsp:include page="./template/menu.jsp" />
-               <% if (request.getParameter("page") == null){ %>
-                       <%@ include   file="./modules/main.jsp" %>
-               <% }  %>
-               <% if ("vhost".equals(request.getParameter("page"))){ %>
-                       <%@  include  file="./modules/vhost.jsp" %>
-               <% } %>         
-               <% if ("profile_manager".equals(request.getParameter("page"))){ 
%>
-                       <%@  include  file="./modules/profile_manager.jsp" %>
-               <% } %>         
-
-               <div class="spacer">&nbsp;</div>
-       </div>
-       <jsp:include page="./template/footer.jsp" />
-</body>
-</html>

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
deleted file mode 100644
index f0838a6..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/jboss.css
+++ /dev/null
@@ -1,143 +0,0 @@
-body {
-       margin: 13px 0px 10px 0px;
-       background-color: #ffffff;
-       font-size: 10px;
-       font-family: verdana, arial, "sans-serif";
-       color: #606060;
-       }
-img {
-       border: 0px;
-       }
-#header {
-       background-color: #003D6E;
-       background-repeat: no-repeat;
-       width: 100%;
-       height: 80px;
-       }
-#header #banner {
-       float: right;
-       margin: 8px 5px 0px 0px;
-       }
-#logo {
-       position: absolute;
-       top: 2px;
-       left: 4px;
-       z-index: 200;
-}
-#navigation_bar {
-       background-color: #f0f0f0;
-       border-bottom: 1px dotted #999999;
-       height: 20px;
-       }
-#items {
-       font-size: 12px;
-       width: 600px;
-       margin: 5px 5px 5px 170px;
-       position: relative;
-       z-index: 300;
-       }
-#items .item {
-       margin-right: 10px;
-       }
-.side_block {
-       margin: 15px 5px 10px 5px;
-       background-color: #fbfbfb;
-       border: 1px solid #f0f0f0;
-       }
-.side_block h3 {
-       font-size: 11px;
-       font-weight: 100;
-       width: 100%;
-       margin: 0px 0px 5px 0px;
-       padding: 4px 4px 4px 10x;
-       background-color: #f0f0f0;
-       }
-.side_block h4 {
-       font-size: 11px;
-       color: #003D6E;
-       font-weight: bold;
-       margin: 10px 5px 4px 5px;
-       }
-.side_block p {
-       margin: 5px 5px 3px 5px;
-       }
-.side_block form {
-       margin: 0px 0px 0px 5px;
-       }
-.side_block #login {
-       font-size: 9px;
-       }
-.side_block p img {
-       text-align: center;
-       }
-#content {
-       width: 90%; 
-       margin: 10px auto;
-       }
-#left {
-       float: left;
-       width: 14%;
-       }
-#right {
-       float: right;
-       width: 14%;
-       }
-.content_block {
-       text-align: justify;
-       border: 1px solid #999999;
-       margin: 5px;
-       width: 31%;
-       float: left;
-       }
-.content_block p {
-       margin: 0px 5px 3px 5px;
-       }
-.content_block h3 {
-       font-size: 11px;
-       font-weight: bold;
-       color: #000000;
-       margin: 0px 0px 5px 0px;
-       padding: 4px 4px 4px 4x;
-       text-align: center;
-       background-color: #f0f0f0;
-       border-bottom: 1px solid #999999
-       }
-.content_block h4 {
-       font-size: 11px;
-       color: #003D6E;
-       text-align: left;
-       font-weight: bold;
-       margin: 10px 5px 4px 5px;
-       }
-#footer {
-       clear: both;
-       border-top: 1px dotted #999999;
-       }
-#credits {
-       background-color: #f0f0f0;
-       padding: 5px;
-       text-align: center;
-       }
-#footer_bar {
-       height: 20px;
-       width: 100%;
-       background-color: #003D6E;
-       }
-.hide {
-       display: none;
-       }
-.spacer {
-       clear: both;
-       }
-.spacer hr {
-       display: none;
-       }
-.center {
-       text-align: center;
-       }
-#youcandoit {
-       background-image: url("youcandoit.jpg");
-       background-repeat: repeat-x;
-       height: 165px;
-       margin: 0px 30px 0px 30px;
-       }

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
deleted file mode 100644
index d33ddf6..0000000
Binary files a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/logo.gif 
and /dev/null differ

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
deleted file mode 100755
index 147a45e..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/manager/xform.xsl
+++ /dev/null
@@ -1,94 +0,0 @@
-<?xml version="1.0"?>
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
-  version="1.0">
-
-  <!-- Output method -->
-  <xsl:output encoding="iso-8859-1"  indent="yes"/>
-
-  <xsl:template match="status">
-    <html>
-    <head>
-       <TITLE>Tomcat Status</TITLE>
-               <STYLE type="text/css">
-                       body, table, tr, td, a, div, span {
-                               vertical-align : top;
-                       }
-               </STYLE>
-    </head>
-    <body>
-      <div style='font-size:20px;'>Tomcat Status</div>
-      <xsl:apply-templates select="jvm"/>
-      <xsl:apply-templates select="connector"/>
-     </body>
-    </html>
-  </xsl:template>
-
-  <xsl:template match="jvm">
-   <xsl:apply-templates select="memory"/>
-  </xsl:template>
-
-  <xsl:template match="memory">
-    <table><tr>
-                <td><b>JVM:</b></td>
-                <td><b>free:</b> <xsl:value-of select="@free"/></td>
-                <td><b>total:</b> <xsl:value-of select="@total"/></td>
-                <td><b>max:</b> <xsl:value-of select="@max"/></td>
-          </tr>
-    </table><hr />
-  </xsl:template>
-
-  <xsl:template match="connector">
-        <b>Connector -- </b> <xsl:value-of select="@name"/><br />
-
-       <xsl:apply-templates select="threadInfo"/>
-       <xsl:apply-templates select="requestInfo"/>
-       <xsl:apply-templates select="workers"/>
-  </xsl:template>
-
-  <xsl:template match="threadInfo">
-    <table><tr>
-                <td><b>threadInfo </b></td>
-                <td><b>maxThreads:</b> <xsl:value-of 
select="@maxThreads"/></td>
-                <td><b>minSpareThreads:</b> <xsl:value-of 
select="@minSpareThreads"/></td>
-                <td><b>maxSpareThreads:</b> <xsl:value-of 
select="@maxSpareThreads"/></td>
-                <td><b>currentThreadCount:</b> <xsl:value-of 
select="@currentThreadCount"/></td>
-                <td><b>currentThreadsBusy:</b> <xsl:value-of 
select="@currentThreadsBusy"/></td>
-          </tr>
-    </table><hr />
-  </xsl:template>
-
-  <xsl:template match="requestInfo">
-    <table><tr>
-                <td><b>requestInfo </b></td>
-                <td><b>maxTime:</b> <xsl:value-of select="@maxTime"/></td>
-                <td><b>processingTime:</b> <xsl:value-of 
select="@processingTime"/></td>
-                <td><b>requestCount:</b> <xsl:value-of 
select="@requestCount"/></td>
-                <td><b>errorCount:</b> <xsl:value-of 
select="@errorCount"/></td>
-                <td><b>bytesReceived:</b> <xsl:value-of 
select="@bytesReceived"/></td>
-                <td><b>bytesSent:</b> <xsl:value-of select="@bytesSent"/></td>
-          </tr>
-    </table><hr />
-  </xsl:template>
-
-  <xsl:template match="workers">
-   <table>
-    <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>
-       <xsl:apply-templates select="worker"/>
-
-   </table><hr />
-  </xsl:template>
-
-  <xsl:template match="worker">
-   <tr>
-    <td><xsl:value-of select="@stage"/></td>
-    <td><xsl:value-of select="@requestProcessingTime"/></td>
-    <td><xsl:value-of select="@requestBytesSent"/></td>
-    <td><xsl:value-of select="@requestBytesReceived"/></td>
-    <td><xsl:value-of select="@remoteAddr"/></td>
-    <td><xsl:value-of select="@virtualHost"/></td>
-    <td><xsl:value-of select="@method"/> <xsl:value-of 
select="@currentUri"/>?<xsl:value-of select="@currentQueryString"/> 
<xsl:value-of select="@protocol"/></td>
-   </tr>
-  </xsl:template>
-
-</xsl:stylesheet>

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
deleted file mode 100755
index 88470d5..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/main.jsp
+++ /dev/null
@@ -1,5 +0,0 @@
-<div class="content">
-       <p class="content_title">Welcome to the gentoo default Web-APP</p>
-       <p>You ll find there documentation for helping you with jboss under 
gentoo </p>
-</div>
-

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
deleted file mode 100644
index 6e4bd2f..0000000
--- 
a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/profile_manager.jsp
+++ /dev/null
@@ -1,40 +0,0 @@
-<div class="content">
-       <div class="content_title">Abstract</div> 
-       <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>
-       <div class="code">/usr/bin/jboss-bin-4-profiles-creator.sh command   
[argument] [argument] ...</div>
-
-       <div class="helper_title">Commands :
-               <div class="helper_args">delete</div>
-               <div class="helper_desc">Delete a profile</div>
-               <div class="helper_args">create</div>
-               <div class="helper_desc">Create a new profile</div>
-               <div class="helper_args">help</div>
-               <div class="helper_desc">print this helper</div>
-               <div class="helper_args">list</div>
-               <div class="helper_desc">list actual profiles</div>
-       </div>
-       <div class="helper_title">Arguments :
-               <div class="helper_args">--profile=serverdir_template</div>
-               <div class="helper_desc">The name of the template to use to 
create the new profile with <code>create</code></div>
-               <div class="helper_desc">The name of the profile to delete with 
<code>delete</code></div>
-               <div class="helper_desc">Default is 'gentoo'</div>
-               <div class="helper_args">--path=/path/to/profile_to_create      
SCOPE:create</div>
-               <div class="helper_desc">Don't use the leading / for a subdir 
of /server</div>
-               <div class="helper_desc">Indicate the full location to other 
wanted location</div>
-               <div class="helper_args">--vhost=VHOST</div>
-               <div class="helper_desc" >Set the vhost (default is 
'localhost')</div>
-               <div class="helper_desc">Must exist a valid /srv/VHOST 
subdir</div>
-       </div>
-       <div class="helper_title">Tips :
-               <div class="helper_args"> For <code>create</code> and 
<code>delete</code>, you must give the profile's name</div>
-       </div>
-       <div class="helper_title">Examples :
-               <div 
class="helper_args">/usr/bin/jboss-bin-4-profiles-creator.sh create 
--profile=gentoo --path=/opt/newprofile</div>
-               <div class="helper_desc">A symlink in 
/srvdir/defaultvhost/jbossversion/newprofile will be done</div>
-               <div 
class="helper_args">/usr/bin/jboss-bin-4-profiles-creator.sh create 
--profile=gentoo --path=newprofile</div> 
-               <div class="helper_desc">A new profile will be created in 
default vhost using srvdir/defaultvhost/jbossversion/igentoo as a template</div>
-               <div 
class="helper_args">/usr/bin/jboss-bin-4-profiles-creator.sh delete  
--profile=gentoo</div>
-               <div class="helper_desc">The 'gentoo' profile in default vhost 
will be deleted</div>
-       </div>
-</div>

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
deleted file mode 100644
index 1a33b42..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/modules/vhost.jsp
+++ /dev/null
@@ -1,47 +0,0 @@
-<div class="content">
-       <p class="content_title">How to add a vhost and keep it running:</p>
-       <ul>
-               <li>   
-                       <p>First of all, create the profile with the helper:</p>
-                       <p class="file">Run:</p>
-                       <div class="code">
-                               jboss-4-bin-profiles-creator.sh create 
--profile=vhost1 
-                               --path=vhost1 --vhost=vhost1.yourdomain.com
-                       </div>
-               </li>
-               <li>    
-                       <p>Second, edit the tomcat file to add a vhost </p>
-                       <p>see: 
-                               <a 
href="http://wiki.jboss.org/wiki/Wiki.jsp?page=VirtualHosts";>
-                                       Jboss Wiki related page 
-                               </a>
-                       </p>
-                       <p>For example:</p>
-                       <p class="file"> tomcat server.xml</p>
-                       <div class="code">
-                               <p>&lt;Host name="vhost1.yourdomain.com"</p>
-                               <p>    autoDeploy="true" deployOnStartup="true" 
deployXML="true" /&gt;</p>
-                               <p>    
&lt;Alias&gt;vhost1.yourdomain.com&lt;/Alias&gt;</p>
-                               <p>    &lt;Valve 
className="org.apache.catalina.valves.AccessLogValve"</p>
-                               <p>       prefix="vhost1.yourdomain.com-" 
suffix=".log"</p>
-                               <p> pattern="common" 
directory="${jboss.server.home.dir}/log"/&gt;</p>
-                               <p> &lt;/Host&gt;</p>
-                       </div>
-               </li>
-               <li>   
-                       <p>Third edit your webapp to be deploy on this 
vhost:</p>
-                       <p class="file"> WEB-INF/jboss-web.xml</p>
-                       <div class="code">
-                               <p>&lt;jboss-web&gt;</p>
-                               
<p>&lt;virtual-host&gt;vhost1.yourdomain.com&lt;/virtual-host&gt;</p>
-                               <p>&lt;/jboss-web&gt;</p>
-                       </div>
-               </li>
-               <li>
-                               <p>Four, deploy your stuff in your "JBOSS DATA 
DIR" </p>
-                               <p>For example</p>
-                               <p 
class="code">/srv/vhost1.yourdomain.com/jboss-bin-4/vhost1/deploy</p>
-               </li>
-       </ul>
-</div>
-

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
deleted file mode 100644
index 1952f46..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/footer.jsp
+++ /dev/null
@@ -1,11 +0,0 @@
-<div class="footer">
-       <p style="text-align:center">
-               <a href="http://www.validome.org/referer";>
-               <img style="border:none"
-                           
src="http://www.validome.org/images/set3/valid_xhtml_1_0.gif";
-                           alt="Valid XHTML 1.0" width="80" height="20" />
-               </a>
-               <a href="http://www.gentoo.org";><img  width="80" height="20" 
src="img/gentoo.png" alt="Powered by gentoo"/></a>
-               <a href="http://jboss.org";><img width="65" height="20" 
src="img/jboss.gif" alt="Powered by jboss"/></a>
-       </p>
-</div>

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
deleted file mode 100644
index 94bd2ee..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/header.jsp
+++ /dev/null
@@ -1,8 +0,0 @@
-<div class="header">
-       <p>
-               <a href="http://www.jboss.org";>
-                        <img src="img/logo.gif" alt="JBoss" id="logo" 
width="226" height="105" />
-                </a>
-       </p>
-</div>
-

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
deleted file mode 100755
index 792afac..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/gentoo/template/menu.jsp
+++ /dev/null
@@ -1,43 +0,0 @@
-<div class="menu">
-       <p class="menu_title">Home</p>
-       <div class="menu_content">
-               <ul>
-                       <li><a href="?">Home</a></li>
-               </ul>
-       </div>
-       <p class="menu_title">Tomcat management</p>
-       <div class="menu_content">
-               <ul>
-                       <li>    
-                               <a href="/status">Tomcat status</a>
-                               <a href="/status?full=true">(full)</a>
-                               <a href="/status?XML=true">(XML)</a>
-                       </li>
-                       <li><a href="/jmx-console/">JMX Console</a></li>
-                       <li><a href="/web-console/">JBoss Web Console</a></li>
-               </ul>
-       </div>
-       <p class="menu_title"> Jboss docs</p>
-       <div class="menu_content">
-               <ul>
-                       <li><a href="http://wiki.jboss.org/";> JBoss Wiki 
</a></li>
-                       <li><a href="http://www.jboss.org/docs/index";>JBoss 
Docs</a></li>
-               </ul>
-       </div>
-       <p class="menu_title"> Tomcat docs</p>
-       <div class="menu_content">
-               <ul>
-                       <li><a href="http://tomcat.apache.org/tomcat-5.5-doc/";> 
tomcat </a></li>
-                       <li><a 
href="http://tomcat.apache.org/tomcat-5.5-doc/config/";>tomcat 5.5 
configuration</a></li>
-               </ul>
-       </div>
-       <p class="menu_title"> TIPS </p>
-       <div class="menu_content">
-               <ul>
-                       <li><a href="?page=vhost">Setting up a vhost</a></li>
-                       <li><a href="?page=profile_manager">Managing 
profiles</a></li>
-
-               </ul>                   
-       </div>
-</div>
-

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
deleted file mode 100644
index a24e2f1..0000000
--- a/www-servers/jboss-bin/files/4.0.5/tomcat/webapp/profile_manager.jsp
+++ /dev/null
@@ -1,44 +0,0 @@
-<div class="content">
-
-       <h2>Abstract</h2> 
-       <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>
-       <p class="code">  /usr/bin/jboss-bin-4-profiles-creator.sh: action 
[ACTION_OPTIONS]</p>
-       <p>  valid options are:</p>
-       <ul>
-               <li>delete</li>
-               <p>Delete a profile</p>
-               <li>create</li>
-               <p>Create a new profile</p>
-               <li>help</li>
-               <p>print this helper</p>
-               <li>list</li>
-               <p>List actual profiles</p>
-       </ul>
-       
-       <p>Valid arguments are:</p>
-       <ul>
-               <li>--profile=serverdir_template</li>
-                       <p>the name of the template to use to create the new 
profile with --create</p>
-               <p>the name of the profile to delete with --delete</p>
-                       <p>Default is 'gentoo'</p>
-               <li>--path=/path/to/profile_to_create      SCOPE:create</li>
-               <p>don't use the leading / for a subdir of /server</p>
-               <p>indicate the full location to other wanted location</p>
-               <li>--vhost=VHOST</p>
-               <p>Set the vhost (default is 'localhost')</p>
-               <p>Must exist a valid /srv/VHOST subdir</p>
- 
-       <p>TIPS:</p>
-       <p> For create and delete, you must give the profile's name</p>
- 
-       <p>Examples</p>
-       <p>/usr/bin/jboss-bin-4-profiles-creator.sh create --profile=gentoo 
--path=/opt/newprofile</p>
-        <p>A new profile will be created in /opt/newprofile using 
default_vhost/gentoo as a template</p>
-       <p>A symlick in /srvdir/defaultvhost/jbossversion/newprofile will be 
done</p>
-       <p>/usr/bin/jboss-bin-4-profiles-creator.sh create --profile=gentoo 
--path=newprofile</p>
-       <p>A new profile will be created in default vhost using 
-               srvdir/defaultvhost/jbossversion/igentoo as a template</p>
-       <p>/usr/bin/jboss-bin-4-profiles-creator.sh --delete  --profile=gentoo
-       <p>the 'gentoo' profile in default vhost will be deleted</p>
- 
-</div>

diff --git a/www-servers/jboss-bin/jboss-bin-4.0.5.ebuild 
b/www-servers/jboss-bin/jboss-bin-4.0.5.ebuild
deleted file mode 100644
index 567f602..0000000
--- a/www-servers/jboss-bin/jboss-bin-4.0.5.ebuild
+++ /dev/null
@@ -1,296 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-inherit eutils user java-pkg-2
-
-MY_P="jboss-${PV}"
-MY_P="${MY_P}.GA"
-MY_EJB3="jboss-EJB-3.0_RC9_Patch_1"
-
-DESCRIPTION="An open source, standards-compliant, J2EE-based application 
server implemented in 100% Pure Java."
-SRC_URI="mirror://sourceforge/jboss/${MY_P}.zip
-                ejb3? ( mirror://sourceforge/jboss/${MY_EJB3}.zip )"
-RESTRICT="mirror"
-HOMEPAGE="http://www.jboss.org";
-LICENSE="LGPL-2"
-IUSE="doc ejb3 srvdir"
-SLOT="4"
-KEYWORDS="~amd64 x86"
-RDEPEND="ejb3? ( >=virtual/jdk-1.5 )
-               !ejb3? ( >=virtual/jdk-1.4 )"
-
-DEPEND="${RDEPEND} app-arch/unzip dev-java/ant-core dev-java/ant-contrib"
-
-S=${WORKDIR}/${MY_P}
-INSTALL_DIR="/opt/${PN}-${SLOT}"
-DEFAULT_VHOST="localhost"
-CACHE_INSTALL_DIR="/var/cache/${PN}-${SLOT}"
-LOG_INSTALL_DIR="/var/log/${PN}-${SLOT}"
-RUN_INSTALL_DIR="/var/run/${PN}-${SLOT}"
-TMP_INSTALL_DIR="/var/tmp/${PN}-${SLOT}"
-CONF_INSTALL_DIR="/etc/${PN}-${SLOT}"
-FILESDIR_CONF_DIR=""
-
-#switching configuration files directory
-if use "srvdir" ; then
-       SERVICES_DIR="/srv/${DEFAULT_VHOST}/${PN}-${SLOT}"
-       FILESDIR_CONF_DIR="${FILESDIR}/${PV}/srvdir"
-else
-       SERVICES_BASE_DIR="/var/lib/${PN}-${SLOT}"
-       SERVICES_DIR="${SERVICES_BASE_DIR}/${DEFAULT_VHOST}"
-       FILESDIR_CONF_DIR="${FILESDIR}/${PV}/normal"
-fi
-
-# NOTE: When you are updating CONFIG_PROTECT env.d file, you can use this 
script on your current install
-# run from /var/lib/jboss-${SLOT} to get list of files that should be config 
protected. We protect *.xml,
-# *.properties and *.tld files.
-# SLOT="4" TEST=`find /var/lib/jboss-${SLOT}/ -type f | grep -E -e 
"\.(xml|properties|tld)$"`; echo $TEST
-# by kiorky better:
-# echo "CONFIG_PROTECT=\"$(find /srv/localhost/jboss-bin-4/ -name "*xml" -or 
-name \
-#          "*properties" -or -name "*tld" |xargs echo 
-n)\"">>env.d/50jboss-bin-4
-
-# NOTE: using now GLEP20 as default
-
-pkg_setup() {
-       # create jboss user/group
-       enewgroup jboss || die "Unable to create jboss group"
-       enewuser jboss -1 /bin/sh ${SERVICES_DIR}  jboss \
-               || die  "Unable to create jboss user"
-}
-
-src_install() {
-       # jboss core stuff
-       # create the directory structure and copy the files
-       diropts -m755
-       dodir "${INSTALL_DIR}"        \
-                 "${INSTALL_DIR}/bin"    \
-                 "${INSTALL_DIR}/client" \
-                 "${INSTALL_DIR}/lib"    \
-                 "${SERVICES_DIR}/${DEFAULT_VHOST}" \
-                 "${CACHE_INSTALL_DIR}/${DEFAULT_VHOST}"  \
-                 "${CONF_INSTALL_DIR}/${DEFAULT_VHOST}"   \
-                 "${LOG_INSTALL_DIR}/${DEFAULT_VHOST}"    \
-                 "${RUN_INSTALL_DIR}/${DEFAULT_VHOST}"    \
-                 "${TMP_INSTALL_DIR}/${DEFAULT_VHOST}"
-       insopts -m645
-       diropts -m755
-       insinto "${INSTALL_DIR}/bin"
-       doins -r bin/*.conf bin/*.jar
-       exeinto "${INSTALL_DIR}/bin"
-       doexe bin/*.sh
-       insinto "${INSTALL_DIR}"
-       doins -r client lib
-
-       # copy startup stuff
-       doinitd  "${FILESDIR_CONF_DIR}/init.d/${PN}-${SLOT}"
-       # add multi instances support (here:localhost)
-       dosym "/etc/init.d/${PN}-${SLOT}" \
-                       "/etc/init.d/${PN}-${SLOT}.${DEFAULT_VHOST}"
-       newconfd "${FILESDIR_CONF_DIR}/conf.d/${PN}-${SLOT}" \
-                       "${PN}-${SLOT}"
-       # add multi instances support (here:localhost)
-       newconfd "${FILESDIR_CONF_DIR}/conf.d/${PN}-${SLOT}" \
-                       "${PN}-${SLOT}.${DEFAULT_VHOST}"
-       gunzip  -c 
"${FILESDIR_CONF_DIR}/env.d/50${PN}-${SLOT}.gz">50${PN}-${SLOT}
-       doenvd  "50${PN}-${SLOT}"
-       # jboss profiles creator binary
-       exeinto  /usr/bin
-       doexe    "${FILESDIR_CONF_DIR}/bin/jboss-bin-4-profiles-creator.sh"
-       # implement GLEP20: srvdir
-       addpredict "${SERVICES_DIR}"
-       # make a "gentoo" profile with "default" one as a template
-       cp -rf server/default    server/gentoo
-       # add optionnal jboss EJB 3.0 implementation
-       if use ejb3;then
-               einfo "EJB 3.0 support  Activation"
-               cd "../$MY_EJB3" || die "cd failed"
-               cp -rf "${FILESDIR}/${PV}/ejb3/install.xml" . || die "cp failed"
-
-               # add the latest EJB3 patch for profiles "all" and "default"
-               JBOSS_HOME="../${MY_P}" ant -f install.xml || die "EJB3 Patch 
failed"
-               einfo "EJB3 installed"
-               cd "../${MY_P}" || die "cd failed"
-               local backported_jars="jgroups.jar jboss-cache.jar"
-               for jar in ${backported_jars};do
-                       cp -rf "server/all/lib/${jar}"    server/gentoo/lib || 
die "cp failed"
-               done
-               local backported_apps="jbossws.sar"
-               for app in ${backported_apps};do
-                       cp -rf "server/all/deploy/${app}"    
server/gentoo/deploy || die "cp failed"
-               done
-
-               #Since the default profile will not have the jars "jgroups.jar 
jboss-cache.jar"
-               # it should not also have the following configuration files
-               rm server/default/deploy/ejb3-entity-cache-service.xml
-               rm server/default/deploy/ejb3-clustered-sfsbcache-service.xml
-
-       fi
-       # our nice little welcome app
-       cp -rf "${FILESDIR}/${PV}/tomcat/webapp/gentoo" . || die "cp failed"
-       cd gentoo || die "cd failed"
-       #for /gentoo-doc context    
-       jar cf ../gentoo.war * || die "jar failed"
-       # for root context
-       rm -f WEB-INF/jboss-web.xml || die "rm failed"
-       jar cf ../ROOT.war * || die "jar failed"
-       cd .. || die "cd failed"
-       # installing the tomcat configuration and the webapp
-       for PROFILE in all default gentoo ; do
-               rm -rf 
"server/${PROFILE}/deploy/jbossweb-tomcat55.sar/ROOT.war" || die "rm failed"
-               cp -rf gentoo.war "server/${PROFILE}/deploy/" || die "cp failed"
-               cp -rf ROOT.war    
"server/${PROFILE}/deploy/jbossweb-tomcat55.sar/" || die "cp failed"
-               # our tomcat configuration to point to our helper
-               cp -rf "${FILESDIR}/${PV}/tomcat/server.xml" \
-                       
"server/${PROFILE}/deploy/jbossweb-tomcat55.sar/server.xml"\
-                       || die "cp failed"
-       done
-       rm -f gentoo.war ROOT.war || die "rm failed"
-               # installing profiles
-       for PROFILE in all default gentoo minimal; do
-               # create directory
-               diropts -m775
-               dodir "${SERVICES_DIR}/${PROFILE}/conf"   \
-                     "${SERVICES_DIR}/${PROFILE}/deploy" \
-                         "${SERVICES_DIR}/${PROFILE}/lib"
-               # keep stuff
-               keepdir     "${CACHE_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}" \
-                                       
"${CONF_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}"  \
-                                       
"${LOG_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}"         \
-                                       
"${TMP_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}"   \
-                                       
"${RUN_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}"
-               if [[ ${PROFILE} != "minimal" ]]; then
-                       insopts -m665
-                       diropts -m775
-                       insinto  "${SERVICES_DIR}/${PROFILE}/deploy"
-                       doins -r server/${PROFILE}/deploy/*
-               else
-                       dodir  
"${SERVICES_DIR}/${DEFAULT_VHOST}/${PROFILE}/deploy"
-               fi
-               # singleton is just on "all" profile
-               local clustering="false"
-               [[ ${PROFILE} == "all" ]] && clustering="true"
-               # deploy clustering stuff for ejb3
-               use "ejb3" && [[ ${PROFILE} == "gentoo" ]] && clustering="true"
-               if [[ $clustering == "true" ]];then
-                       ewarn "Activating clustering support for profile: 
${PROFILE}"
-                       insopts -m665
-                       diropts -m775
-                       dodir    "${SERVICES_DIR}/${PROFILE}/deploy-hasingleton"
-                       insinto  "${SERVICES_DIR}/${PROFILE}/deploy-hasingleton"
-                       doins -r server/all/deploy-hasingleton
-                       dodir    "${SERVICES_DIR}/${PROFILE}/farm"
-                       insinto  "${SERVICES_DIR}/${PROFILE}/farm"
-                       doins -r server/all/farm
-               fi
-               # copy files
-               insopts -m664
-               diropts -m772
-               insinto  "${SERVICES_DIR}/${PROFILE}/conf"
-               doins -r server/${PROFILE}/conf/*
-               insopts -m644
-               diropts -m755
-               insinto  "${SERVICES_DIR}/${PROFILE}/lib"
-               doins -r server/${PROFILE}/lib/*
-               # do symlink
-               dosym "${CACHE_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}" \
-                               "${SERVICES_DIR}/${PROFILE}/data"
-               dosym  "${LOG_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}"  \
-                               "${SERVICES_DIR}/${PROFILE}/log"
-               dosym  "${TMP_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}"  \
-                               "${SERVICES_DIR}/${PROFILE}/tmp"
-               dosym  "${RUN_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}"  \
-                               "${SERVICES_DIR}/${PROFILE}/work"
-               # for conf file, doing the contrary is trickier
-               # keeping the conf file with the whole installation but
-               # putting a symlink to /etc/ for easy configuration
-               dosym "${SERVICES_DIR}/${PROFILE}/conf"\
-                               
"${CONF_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}/conf"
-               # symlink the tomcat server.xml configuration file
-               dosym 
"${SERVICES_DIR}/${PROFILE}/deploy/jbossweb-tomcat55.sar/server.xml" \
-                               
"${CONF_INSTALL_DIR}/${DEFAULT_VHOST}/${PROFILE}"
-       done
-
-       # set some cp
-       if use ejb3;then
-               java-pkg_regjar "${D}/${INSTALL_DIR}/client/activation.jar"
-               java-pkg_regjar "${D}/${SERVICES_DIR}/all/lib/jboss-cache.jar"
-               java-pkg_regjar "${D}/${SERVICES_DIR}/all/lib/jgroups.jar"
-       fi
-       # register runners
-       java-pkg_regjar ${D}/${INSTALL_DIR}/bin/*.jar
-       #do launch helper scripts which set the good VM to use
-       java-pkg_dolauncher jboss-start.sh  --java_args  '${JAVA_OPTIONS}'\
-               --main org.jboss.Main      -into "${INSTALL_DIR}"
-       java-pkg_dolauncher jboss-stop.sh   --java_args  '${JAVA_OPTIONS}'\
-               --main org.jboss.Shutdown  -into "${INSTALL_DIR}"
-
-       # documentation stuff
-       insopts -m645
-       diropts -m755
-       insinto "/usr/share/doc/${PF}/${DOCDESTTREE}"
-       doins copyright.txt
-       doins -r docs/*
-#      # write access is set for jboss group so user can use netbeans to start 
jboss
-#      # fix permissions
-#      local DIR="" srvdir=""
-#      use srvdir      && srvdir="${SERVICES_DIR}" \
-#                              || srvdir="${SERVICES_BASE_DIR}"
-#      # NOTE: installing in "PN-SL/localhos"t , .. mean set for "PN-SL/"
-#      DIR="${D}/${INSTALL_DIR} ${D}/${LOG_INSTALL_DIR} 
${D}/${TMP_INSTALL_DIR}"
-#      DIR="${DIR} ${D}/${CACHE_INSTALL_DIR} ${D}/${RUN_INSTALL_DIR}"
-#      DIR="${DIR} ${D}/${CONF_INSTALL_DIR} ${D}/${srvdir}"
-#      chmod -R 755 "/usr/share/${PN}-${SLOT}" || die chmod failed
-#      chmod -R 765 ${DIR} || die "chmod  failed"
-#      chown -R jboss:jboss ${DIR} || die "chown failed"
-
-}
-
-pkg_postinst() {
-       # write access is set for jboss group so user can use netbeans to start 
jboss
-       # fix permissions
-       local DIR="" srvdir=""
-       use srvdir      && srvdir="${SERVICES_DIR}" \
-                               || srvdir="${SERVICES_BASE_DIR}"
-       # NOTE: installing in "PN-SL/localhos"t , .. mean set for "PN-SL/"
-       DIR="/${INSTALL_DIR} /${LOG_INSTALL_DIR} /${TMP_INSTALL_DIR}"
-       DIR="${DIR} /${CACHE_INSTALL_DIR} /${RUN_INSTALL_DIR}"
-       DIR="${DIR} /${CONF_INSTALL_DIR} /${srvdir}"
-       chmod -R 755 "/usr/share/${PN}-${SLOT}" || die chmod failed
-       chmod -R 765 ${DIR} || die "chmod  failed"
-       chown -R jboss:jboss ${DIR} || die "chown failed"
-
-       elog
-       elog "Multi Instance Usage"
-       elog " If you want to run multiple instances of JBoss, you can do that 
this way:"
-       elog " 1) Symlink init script:"
-       elog "    ln -s /etc/init.d/${PN}-${SLOT} /etc/init.d/${PN}-${SLOT}.foo"
-       elog " 2) Copy original config file:"
-       elog "    cp /etc/conf.d/${PN}-${SLOT} /etc/conf.d/${PN}-${SLOT}.foo"
-       elog " 3) Edit the new config file as it will use another 
JBOSS_SERVER_NAME."
-       elog "          Set what do you want to run your new profile/vhost"
-       elog "          You have to either:"
-       elog "                  Bind new JBoss instance to another IP address 
or change"
-       elog "                  Change the  used ports in tiomcat configuration 
so they do not be in conflict)"
-       elog " 4) Run the new JBoss instance:"
-       elog "          /etc/init.d/${PN}-${SLOT}.vhost start (eg 
vhost=localhost"
-       elog "          -> ${PN}-${SLOT}.localhost"
-       elog
-       elog "Profile manager:"
-       elog "We provide now a tool to manage your multiple JBoss profiles"
-       elog "  see jboss-profiles-creator.sh --help for usage"
-       elog
-       elog "Jboss usage:"
-       elog "We profile a jboss documentation available for all vhosts"
-       elog "  you can access it with"
-       elog "  /etc/init.d/${PN}-${SLOT}.localhost start"
-       elog "  and now point your browser to http://YOURIP:8080/gentoo-doc";
-       elog "  TIPS: "
-       elog "          * If you have not redefine the root context, You can 
even reach it to http://YOURIP:8080/";
-       elog
-       elog "To redifine the root context: (the thing you reach with 
http://vhost/)"
-       elog "  * Just deploy your one as PROFILE_PATH/deploy/ROOT.war"
-       elog "  * To make a war go to the basedir of your application and do "
-       elog "                  jar cvf ROOT.war *"
-       elog "  * Another thing: you can eITher deploy it in a ear or in a war"
-}

diff --git a/www-servers/jboss-bin/metadata.xml 
b/www-servers/jboss-bin/metadata.xml
deleted file mode 100644
index bf88acc..0000000
--- a/www-servers/jboss-bin/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
-<pkgmetadata>
-       <maintainer type="project">
-               <email>[email protected]</email>
-               <name>Java</name>
-       </maintainer>
-       <longdescription lang="en">
-       </longdescription>
-       <use>
-               <flag name="ejb3">Enable EJB3 support.</flag>
-               <flag name="srvdir">Store configuration in /srv</flag>
-       </use>
-</pkgmetadata>

Reply via email to