debian/0000775000000000000000000000000012666105106007173 5ustar debian/control0000664000000000000000000001002612666105125010576 0ustar Source: bsh Section: devel Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Java Maintainers Uploaders: Emmanuel Bourg Build-Depends: ant, cdbs, debhelper (>= 9), default-jdk, default-jdk-doc, javacc, javahelper (>= 0.32~), libbsf-java, libservlet3.0-java, libservlet3.0-java-doc, maven-repo-helper Standards-Version: 3.9.5 Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/bsh Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/bsh Homepage: http://www.beanshell.org Package: bsh Architecture: all Depends: default-jre-headless | java1-runtime-headless | java2-runtime-headless, libjline-java, libbsh-java (= ${source:Version}), ${misc:Depends} Suggests: bsh-doc, default-jre | java1-runtime | java2-runtime, libservlet3.0-java Enhances: libbsf-java Description: Java scripting environment (BeanShell) Version 2 BeanShell is a small, free, embeddable, Java source interpreter with object scripting language features, written in Java. BeanShell executes standard Java statements and expressions, in addition to obvious scripting commands and syntax. BeanShell supports scripted objects as simple method closures like those in Perl and JavaScript(tm). . You can use BeanShell interactively for Java experimentation and debugging or as a simple scripting engine for you applications. In short: BeanShell is a dynamically interpreted Java, plus some useful stuff. Package: libbsh-java Architecture: all Section: java Depends: ${misc:Depends} Replaces: bsh (<= 2.0b4-13~) Breaks: bsh (<= 2.0b4-13~) Description: Java scripting environment (BeanShell) Version 2 (library) BeanShell is a small, free, embeddable, Java source interpreter with object scripting language features, written in Java. BeanShell executes standard Java statements and expressions, in addition to obvious scripting commands and syntax. BeanShell supports scripted objects as simple method closures like those in Perl and JavaScript(tm). . You can use BeanShell interactively for Java experimentation and debugging or as a simple scripting engine for you applications. In short: BeanShell is a dynamically interpreted Java, plus some useful stuff. . This package contains the Java library without the command line tools. Package: bsh-doc Section: doc Architecture: all Depends: ${misc:Depends} Recommends: ${java:Recommends} Suggests: bsh Description: Documentation for bsh BeanShell is a small, free, embeddable, Java source interpreter with object scripting language features, written in Java. BeanShell executes standard Java statements and expressions, in addition to obvious scripting commands and syntax. BeanShell supports scripted objects as simple method closures like those in Perl and JavaScript(tm). . You can use BeanShell interactively for Java experimentation and debugging or as a simple scripting engine for you applications. In short: BeanShell is a dynamically interpreted Java, plus some useful stuff. . The documentation includes the javadoc API for bsh version 2 as well as the faq and manual in html-format. Package: bsh-src Section: java Architecture: all Depends: ${misc:Depends} Suggests: bsh Description: Java scripting environment (BeanShell) Version 2 (source code) BeanShell is a small, free, embeddable, Java source interpreter with object scripting language features, written in Java. BeanShell executes standard Java statements and expressions, in addition to obvious scripting commands and syntax. BeanShell supports scripted objects as simple method closures like those in Perl and JavaScript(tm). . You can use BeanShell interactively for Java experimentation and debugging or as a simple scripting engine for you applications. In short: BeanShell is a dynamically interpreted Java, plus some useful stuff. . This package contains the bsh source code. debian/bsh.dirs0000664000000000000000000000001012243432321010612 0ustar usr/bin debian/pom.xml0000664000000000000000000000225311275136545010520 0ustar 4.0.0 org.beanshell beanshell 2.0b4 bsh BeanShell BeanShell debian/libbsh-java.poms0000664000000000000000000000007412243432321012247 0ustar debian/pom.xml --no-parent --has-package-version --java-lib debian/bsh-doc.doc-base.10000664000000000000000000000043411064734534012255 0ustar Document: bsh-doc1 Title: Manual for BeanShell Author: Pat Niemeyer Abstract: This is the manual of the Java scripting environment BeanShell. Section: Programming/Java Format: HTML Index: /usr/share/doc/bsh-doc/html/index.html Files: /usr/share/doc/bsh-doc/html/*.html debian/xbsh.10000664000000000000000000000231711064734534010230 0ustar .TH XBSH 1 .SH NAME xbsh \- BeanShell: A Java scripting environment (windowed version). .SH SYNOPSIS .B xbsh .RB [\| \-classpath .IR path \|] .RI [\| file \|] .br .SH "DESCRIPTION BeanShell is a small, embeddable, Java source interpreter with object scripting language features, written in Java. BeanShell executes standard Java statements and expressions, in addition to obvious scripting commands and syntax. You can also script objects as simple method closures like those in Perl and JavaScript(tm). .B xbsh starts the windowed version of BeanShell. .SH OPTIONS The program .B xbsh optionally takes a .B \-classpath option which sets the value of the .B CLASSPATH environment variable to the specified path before starting the BeanShell. This option is mainly provided for compatibility with JDE (Java Development Environment for Emacs). In addition, a file to be executed may be given as argument to .BR xbsh . .SH "SEE ALSO" .B bsh - the command-line version of BeanShell. More documentation on BeanShell can be found in .I /usr/share/doc/bsh-doc/ if the bsh-doc package is installed. .SH AUTHOR This manual page was written by Ruud de Rooij for the Debian GNU/Linux system (but may be used by others). debian/changelog0000664000000000000000000002247412666105106011056 0ustar bsh (2.0b4-15ubuntu0.14.04.1) trusty-security; urgency=medium * SECURITY UPDATE: remote code execution vulnerability via deserialization - debian/patches/CVE-2016-2510.patch: prevent deserialization of Handler in src/bsh/XThis.java. - CVE-2016-2510 -- Marc Deslauriers Thu, 03 Mar 2016 14:02:14 -0500 bsh (2.0b4-15) unstable; urgency=low * Added the poms missing in the previous upload (Closes: #730008) * Transition to the Servlet API 3.0 (Closes: #729972) -- Emmanuel Bourg Thu, 21 Nov 2013 17:16:04 +0100 bsh (2.0b4-14) unstable; urgency=low * Upload to unstable * Removed the bsh-gcj package * Moved the jar and the Maven artifacts in a new libbsh-java package that doesn't depend on a Java runtime. * debian/control: - Removed Michael Koch from the uploaders (Closes: #653998) - Use canonical URLs for the Vcs-* fields - Updated Standards-Version to 3.9.5 (no changes) * Build depend on debhelper >= 9 [ Niels Thykier ] * Changed the section of bsh to devel -- Emmanuel Bourg Mon, 04 Nov 2013 16:45:40 +0100 bsh (2.0b4-13) experimental; urgency=low * Team upload. * Upload to experimental due to freeze. * Moved the gcj package to the java section. * Replaced B-D on default-jdk-builddep with gcj-native-helper and default-jdk. * Bumped Standards-Versions 3.9.1 - no changes required. * Updated README.Debian to better reflect the current times. * Added descriptions to the patches. * Added patch to fix a typo in the upstream code. * Added mh_clean to the clean rule. * Linked the javadoc against the system javadoc. -- Niels Thykier Sun, 21 Nov 2010 20:11:13 +0100 bsh (2.0b4-12) unstable; urgency=low * Build-depend on libservlet2.5-java instead of libservlet2.4-java. -- Thierry Carrez Fri, 11 Jun 2010 16:20:23 +0200 bsh (2.0b4-11) unstable; urgency=low [ Ludovic Claude ] * Change bsh-gcj section to libs. [ Gabriele Giacone ] * Team upload. * Added bsh-src binary package generation. * Source format 3.0 (quilt). * debhelper compatibility to 7. * Standards-Version to 3.8.4. * Removed Arnaud Vandyck from Uploaders. -- Gabriele Giacone <1o5g4r8o@gmail.com> Fri, 16 Apr 2010 22:28:13 +0200 bsh (2.0b4-10) unstable; urgency=low * Upload to unstable. -- Torsten Werner Sun, 09 Aug 2009 10:28:52 +0200 bsh (2.0b4-9) experimental; urgency=low * Change section to java, bump up Standards-Version to 3.8.1 * Add support for -classpath option on xbsh script (closes: #504784) * rules: add optional support for gcj and optimisation * Add the Maven POM to the package, * Add a Build-Depends dependency on maven-repo-helper * Use mh_installpom and mh_installjar to install the POM and the jar to the Maven repository -- Ludovic Claude Sat, 09 May 2009 20:38:06 +0100 bsh (2.0b4-8ubuntu3) intrepid; urgency=low * bsh: Suggest libservlet2.4-java instead of libservlet2.3-java, suggest default-jre | java-runtime instead of libgcj8-1-awt. LP: #257402. -- Matthias Klose Mon, 08 Sep 2008 14:56:14 +0000 bsh (2.0b4-8ubuntu2) intrepid; urgency=low * debian/control - Replace build dependency libservlet2.3-java with libservlet2.4-java. - Remove unneeded build dependency lynx. - Replace suggests libservlet2.3-java with libservlet2.4-java. - Remove libgcj8-1-awt from recommends to suggests. * debian/rules - Add appropriate jar file name for servlet api 2.4. -- Onkar Shinde Wed, 13 Aug 2008 00:43:22 +0530 bsh (2.0b4-8ubuntu1) intrepid; urgency=low * Depend on default-jre-headless. * Set Ubuntu maintainer address. -- Matthias Klose Thu, 31 Jul 2008 10:46:33 +0000 bsh (2.0b4-8) unstable; urgency=low * Build-Depends on default-jdk-builddep. Closes: #477849 * Clarified debian/copyright. * Put bsh-doc.doc-base.1 into Programming/Java section. * Added Homepage, Vcs-Svn and Vcs-Browser fields. * Updated Standards-Version to 3.7.3. * Added watch file. -- Michael Koch Sun, 27 Apr 2008 20:12:21 -0100 bsh (2.0b4-7) unstable; urgency=low * Fixed menu file to follow new policy. * Recommend libgcj-8-1-awt instead of libgcj-7-1-awt. -- Michael Koch Thu, 01 Nov 2007 07:32:43 +0100 bsh (2.0b4-6) unstable; urgency=low * bsh: Removed Recommends on xlibs. Closes: #372852. * bsh: Recommend libgcj7-1-awt. Closes: #401461. -- Michael Koch Tue, 26 Jun 2007 09:16:37 +0200 bsh (2.0b4-5) unstable; urgency=low * Build a bsh-gcj package. * Move Build-Depends-Indep to Build-Depends. * Added myself to Uploaders and removed Wolfgang. -- Michael Koch Sun, 10 Jun 2007 14:30:58 -0100 bsh (2.0b4-4) unstable; urgency=low * depends on java-gcj-compat (closes: #370411) * updated Standards Version to 3.7.2, nothing to do. * build with java-gcj-compat, kaffe removed from build-dep. -- Arnaud Vandyck Tue, 6 Jun 2006 09:41:10 +0000 bsh (2.0b4-3) unstable; urgency=low * kaffe compiler transition -- Wolfgang Baer Mon, 16 Jan 2006 14:01:07 +0100 bsh (2.0b4-2) unstable; urgency=low * With the recent packaging of jline we are now able to provide a pure java commandline history function for bsh and therefore we can close our oldest bug (closes: #80572, #305529) + Added libjline-java to depends + Modified startup script to make use of jline * Register documentation with doc-base * Updated FSF address in debian/copyright -- Wolfgang Baer Thu, 13 Oct 2005 16:34:14 +0200 bsh (2.0b4-1) unstable; urgency=low * New upstream release (closes: #261393, 321633) * Move to main - as libbsf-java moved to main * Build with kaffe / jikes - no more non-free JDK needed (closes: #306597) * Changed build system to cdbs * Patches: + Enable build of bsf adapter (01_EnableBsfAdapter_buildXml.patch) + Use AWTConsole if gnu classpath derived vm (02_GNUvms_workaround.patch) + target=1.3 to support JDK 1.3 (03_target13_buildXml.patch) * Added new documentation package and added javadoc * Added libbsf-java as Enhances (provides bsf adapter) and build-depends * Enabled junit tests - removed tests which also fail with SUN JDK * Changed libant1.6-java build-dep to ant (now in main) * Splitted bsh manpage into one for each version (bsh and xbsh) * Standards-Version 3.6.2 (no changes) * Added myself to uploaders * Upload sponsored by Petter Reinholdtsen -- Wolfgang Baer Fri, 5 Aug 2005 20:11:00 +0200 bsh (1.3.0-3) unstable; urgency=low * debian/rules: apply a patch from Grzegorz B. Prokopski to change the directory for the compiler (closes: #300497). * debian/control: added lynx to the build-dep-indep. -- Arnaud Vandyck Wed, 23 Mar 2005 14:17:26 +0100 bsh (1.3.0-2) unstable; urgency=low * debian/bsh.1: changed the location of the 'more documentation' location. Thanks to Alex Malinovich (closes: #226955). -- Arnaud Vandyck Sat, 10 Jan 2004 01:00:13 +0100 bsh (1.3.0-1) unstable; urgency=low * New upstream release (closes: #192186). * New maintainer (closes: #224860). * debian/control: - Build-Depends-Indep: changed the debhelper version depends, added javacc (now in Debian), added j2sdk1.3. - Standards-Version: 3.6.1 (but did not change anything). - Description: removed the leading `A', added Homepage. * debian/rule: - removed the JAVACC_DIR variable and changed the location of jjtree and javacc * debian/xbsh: - added minimal and maximal size of the virtual machine. -- Arnaud Vandyck Sun, 28 Dec 2003 01:42:13 +0100 bsh (1.2b6-2) unstable; urgency=low * Orphan the package. -- Tollef Fog Heen Tue, 23 Dec 2003 02:04:34 +0100 bsh (1.2b6-1) unstable; urgency=low * New upstream version (closes: #159673) -- Tollef Fog Heen Mon, 9 Sep 2002 22:52:59 +0200 bsh (1.1alpha5-1) unstable; urgency=low * New maintainer (closes: #90307) * New upstream version * Build with j2sdk1.3 available from blackdown. I think it still works with older jre's. (It does, according to the docs.) * add bsh/classpath/*.class into the jar file * Updated standards-version to 3.5.2 -- Tollef Fog Heen Mon, 16 Apr 2001 22:34:58 +0200 bsh (1.0-beta-2) unstable; urgency=low * Forgot to include bsh/commands/*.bsh into jar file. -- Ruud de Rooij Fri, 5 Nov 1999 22:28:59 +0100 bsh (1.0-beta-1) unstable; urgency=low * New upstream release. * Move from non-free to contrib, since BeanShell is now LGPL but depends on JavaCC for compilation. * Updated debian/control, debian/copyright and debian/rules. -- Ruud de Rooij Fri, 5 Nov 1999 21:17:35 +0100 bsh (0.96-3) unstable; urgency=low * Standards-Version: 3.0.1. -- Ruud de Rooij Tue, 7 Sep 1999 18:42:09 +0200 bsh (0.96-2) unstable; urgency=low * Removed `free' from the package description. -- Ruud de Rooij Mon, 16 Aug 1999 20:18:45 +0200 bsh (0.96-1) unstable; urgency=low * Initial Release. -- Ruud de Rooij Sun, 11 Jul 1999 12:41:22 +0200 debian/bsh.menu0000664000000000000000000000035011064734534010637 0ustar ?package(bsh):needs="text" section="Applications/Programming" \ title="BeanShell (text)" command="/usr/bin/bsh" ?package(bsh):needs="X11" section="Applications/Programming" \ title="BeanShell (windowed)" command="/usr/bin/xbsh" debian/source/0000775000000000000000000000000012243403550010466 5ustar debian/source/format0000664000000000000000000000001411674373047011712 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000212243432321010362 0ustar 9 debian/patches/0000775000000000000000000000000012666105063010624 5ustar debian/patches/02_GNUvms_workaround.patch0000664000000000000000000000250211674373047015606 0ustar Description: Insert a work around for GNU JVMs to use an AWT based GUI instead of swing. Author: Wolfgang Baer --- bsh~/src/bsh/Console.java 2003-08-29 17:11:14.000000000 +0200 +++ bsh/src/bsh/Console.java 2005-02-22 23:20:35.422962248 +0100 @@ -35,6 +35,7 @@ package bsh; import bsh.util.*; +import java.util.Properties; /** Console startup class. @@ -47,18 +48,25 @@ System.out.println("Can't find the BeanShell utilities..."); if ( Capabilities.haveSwing() ) - { - bsh.util.Util.startSplashScreen(); - try { - new Interpreter().eval("desktop()"); - } catch ( EvalError e ) { - System.err.println("Couldn't start desktop: "+e); + { + + // Test if gnu classpath vm + Properties props = System.getProperties(); + if(props.getProperty("gnu.classpath.version") == null) { // ok sun vm + + bsh.util.Util.startSplashScreen(); + try { + new Interpreter().eval("desktop()"); + } catch ( EvalError e ) { + System.err.println("Couldn't start desktop: "+e); + } + } + else { // gnu classpath derived vm + AWTConsole.main( args ); } } else { System.err.println( - "Can't find javax.swing package: " - +" An AWT based Console is available but not built by default."); - //AWTConsole.main( args ); + "Can't find javax.swing package ! "); } } } debian/patches/series0000664000000000000000000000022512666105063012040 0ustar 01_EnableBsfAdapter_buildXml.patch 02_GNUvms_workaround.patch 03_target13_buildXml.patch 04_fix_typo.patch 05_link_javadoc.patch CVE-2016-2510.patch debian/patches/05_link_javadoc.patch0000664000000000000000000000126312243432321014566 0ustar Description: Link the Javadoc against system installed javadocs. Author: Niels Thykier --- a/build.xml 2010-11-21 20:16:20.000000000 +0100 +++ b/build.xml 2010-11-21 20:24:15.544531250 +0100 @@ -201,7 +201,11 @@ windowtitle="BeanShell ${version}" doctitle="<h1>BeanShell ${version}<h1>" bottom="<em>© 2000-2005 pat@pat.net :-)</em>" - /> + > + + + + debian/patches/04_fix_typo.patch0000664000000000000000000000114711674373047014023 0ustar Description: Fixes a typo. Author: Niels Thykier --- a/src/bsh/BshClassManager.java 2010-11-21 19:59:08.597086821 +0100 +++ b/src/bsh/BshClassManager.java 2010-11-21 20:01:06.128078201 +0100 @@ -493,7 +493,7 @@ if ( cur != null ) throw new InterpreterError("Defining class problem: "+className +": BeanShell cannot yet simultaneously define two or more " - +"dependant classes of the same name. Attempt to define: " + +"dependent classes of the same name. Attempt to define: " + className +" while defining: "+cur ); definingClasses.put( className, NOVALUE ); debian/patches/01_EnableBsfAdapter_buildXml.patch0000664000000000000000000000114511674373047017137 0ustar Description: Build without the BSF adapter. Author: Wolfgang Baer --- bsh~/build.xml 2005-08-08 19:56:01.000000000 +0200 +++ bsh/build.xml 2005-08-06 21:16:21.000000000 +0200 @@ -54,10 +54,10 @@ --> + - + -->