diff options
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/mx4j/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/mx4j/Manifest | 3 | ||||
-rw-r--r-- | dev-java/mx4j/files/digest-mx4j-2.1.0 | 1 | ||||
-rw-r--r-- | dev-java/mx4j/files/mx4j-2.1.0-gentoo.patch | 79 | ||||
-rw-r--r-- | dev-java/mx4j/metadata.xml | 10 | ||||
-rw-r--r-- | dev-java/mx4j/mx4j-2.1.0.ebuild | 71 |
6 files changed, 174 insertions, 0 deletions
diff --git a/dev-java/mx4j/ChangeLog b/dev-java/mx4j/ChangeLog new file mode 100644 index 000000000000..64fa942410d1 --- /dev/null +++ b/dev-java/mx4j/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-java/mx4j +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j/ChangeLog,v 1.1 2005/01/22 15:23:32 luckyduck Exp $ + +*mx4j-2.1.0 (22 Jan 2005) + + 22 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml, + +files/mx4j-2.1.0-gentoo.patch, +mx4j-2.1.0.ebuild: + Inital import. Fixes bug #65302 + diff --git a/dev-java/mx4j/Manifest b/dev-java/mx4j/Manifest new file mode 100644 index 000000000000..6b2a2d9f72ce --- /dev/null +++ b/dev-java/mx4j/Manifest @@ -0,0 +1,3 @@ +MD5 934ea56f8f92ce601a5c30462dafb707 mx4j-2.1.0.ebuild 1984 +MD5 be55fe365b4d3539f734ecfb88cf1738 files/mx4j-2.1.0-gentoo.patch 4583 +MD5 16c385c3352e0ef59ed72e8942600d95 files/digest-mx4j-2.1.0 66 diff --git a/dev-java/mx4j/files/digest-mx4j-2.1.0 b/dev-java/mx4j/files/digest-mx4j-2.1.0 new file mode 100644 index 000000000000..d8fc5435f17c --- /dev/null +++ b/dev-java/mx4j/files/digest-mx4j-2.1.0 @@ -0,0 +1 @@ +MD5 e5b0a056d25cee4bb7708a97715336b4 mx4j-2.1.0-src.tar.gz 675671 diff --git a/dev-java/mx4j/files/mx4j-2.1.0-gentoo.patch b/dev-java/mx4j/files/mx4j-2.1.0-gentoo.patch new file mode 100644 index 000000000000..0e7939f9700a --- /dev/null +++ b/dev-java/mx4j/files/mx4j-2.1.0-gentoo.patch @@ -0,0 +1,79 @@ +diff -uprN mx4j-2.1.0.orig/build/build.xml mx4j-2.1.0/build/build.xml +--- mx4j-2.1.0.orig/build/build.xml 2004-12-23 17:56:18.000000000 +0100 ++++ mx4j-2.1.0/build/build.xml 2004-12-23 23:34:15.153231952 +0100 +@@ -225,7 +225,7 @@ + <mkdir dir="${core.classes.dir}"/>
+ <mkdir dir="${dist.lib.dir}"/>
+
+- <javac srcdir="${core.src.dir}" destdir="${core.classes.dir}" debug="on" deprecation="on" encoding="US-ASCII">
++ <javac srcdir="${core.src.dir}" destdir="${core.classes.dir}" debug="off" deprecation="off" encoding="US-ASCII" source="1.4" target="1.4">
+ <patternset refid="mx4j.classes"/>
+ <classpath refid="lib.classpath"/>
+ </javac>
+@@ -264,7 +264,7 @@ + </target>
+
+ <target name="compile.rjmx" description="Compiles the Remote JMX (JSR 160) classes" depends="compile.jmx" if="jaas.present">
+- <javac srcdir="${core.src.dir}" destdir="${core.classes.dir}" debug="on" deprecation="on" encoding="US-ASCII">
++ <javac srcdir="${core.src.dir}" destdir="${core.classes.dir}" debug="off" deprecation="off" encoding="US-ASCII" source="1.4" target="1.4">
+ <patternset refid="rmx4j.classes"/>
+ <classpath refid="lib.classpath"/>
+ </javac>
+@@ -295,7 +295,7 @@ + <target name="compile.tools" description="Compiles the MX4J tools classes" depends="compile.rjmx">
+ <mkdir dir="${tools.classes.dir}"/>
+
+- <javac srcdir="${tools.src.dir}" destdir="${tools.classes.dir}" debug="on" deprecation="on" encoding="US-ASCII">
++ <javac srcdir="${tools.src.dir}" destdir="${tools.classes.dir}" debug="off" deprecation="off" encoding="US-ASCII" source="1.4" target="1.4">
+ <patternset refid="tools.classes"/>
+ <exclude name="mx4j/tools/mail/**" unless="javamail.present"/>
+ <exclude name="mx4j/tools/jython/**" unless="jython.present"/>
+@@ -369,7 +369,7 @@ + <mkdir dir="${test.classes.dir}"/>
+ <mkdir dir="${dist.test.dir}"/>
+
+- <javac srcdir="${test.src.dir}" destdir="${test.classes.dir}" debug="on" deprecation="on" encoding="US-ASCII">
++ <javac srcdir="${test.src.dir}" destdir="${test.classes.dir}" debug="off" deprecation="off" encoding="US-ASCII" source="1.4" target="1.4">
+ <patternset refid="tests.classes"/>
+ <exclude name="test/javax/management/remote/**" unless="jaas.present"/>
+ <exclude name="test/mx4j/remote/**" unless="jaas.present"/>
+@@ -398,7 +398,7 @@ + <target name="compile.examples" description="Compiles and jars the MX4J examples" depends="compile.tools">
+ <mkdir dir="${examples.classes.dir}"/>
+
+- <javac srcdir="${examples.src.dir}" destdir="${examples.classes.dir}" debug="on" deprecation="on" encoding="US-ASCII">
++ <javac srcdir="${examples.src.dir}" destdir="${examples.classes.dir}" debug="off" deprecation="off" source="1.4" target="1.4" encoding="US-ASCII">
+ <classpath refid="classpath"/>
+ <exclude name="mx4j/examples/tools/xdoclet/**"/>
+ <exclude name="mx4j/examples/remote/rmi/ssl/**" unless="jdk14.present"/>
+@@ -685,4 +685,9 @@ + <delete dir="${dist.dir}" quiet="true"/>
+ </target>
+
++ <target name="sourcezip">
++ <zip destfile="${dist.dir}/${name}-src.zip">
++ <zipfileset dir="${core.src.dir}" />
++ </zip>
++ </target>
+ </project>
+diff -uprN mx4j-2.1.0.orig/src/core/mx4j/remote/MX4JRemoteUtils.java mx4j-2.1.0/src/core/mx4j/remote/MX4JRemoteUtils.java +--- mx4j-2.1.0.orig/src/core/mx4j/remote/MX4JRemoteUtils.java 2004-12-23 17:56:18.000000000 +0100 ++++ mx4j-2.1.0/src/core/mx4j/remote/MX4JRemoteUtils.java 2004-12-23 18:08:50.000000000 +0100 +@@ -336,7 +336,7 @@ public class MX4JRemoteUtils
+ Principal[] principals = (Principal[])subject.getPrincipals().toArray(new Principal[0]);
+ try
+ {
+- domain = (ProtectionDomain)domainConstructor.newInstance(new Object[]{new CodeSource(null, null), null, null, principals});
++ domain = (ProtectionDomain)domainConstructor.newInstance(new Object[]{new java.security.CodeSource(null, null), null, null, principals});
+ }
+ catch (Exception x)
+ {
+@@ -346,7 +346,7 @@ public class MX4JRemoteUtils
+ if (domain == null)
+ {
+ // This is done for JDK 1.3 compatibility.
+- domain = new SubjectProtectionDomain(new CodeSource(null, null), subject);
++ domain = new SubjectProtectionDomain(new java.security.CodeSource(null, null), subject);
+ }
+ }
+
diff --git a/dev-java/mx4j/metadata.xml b/dev-java/mx4j/metadata.xml new file mode 100644 index 000000000000..a3589cacc8e5 --- /dev/null +++ b/dev-java/mx4j/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<longdescription> +MX4J is a project to build an Open Source implementation of the Java(TM) Management Extensions (JMX) and of the JMX Remote API (JSR 160) specifications, and to build tools relating to JMX. + +JMX is an optional package for J2SE that provides a standard way to manage applications. It can also be used to wrap legacy systems and provide a standard interface to the outside world, enabling the development of web services. JMX allows developers to write more modular and loosely coupled system components and reduce the complexity of large, interoperating systems. +</longdescription> +</pkgmetadata> diff --git a/dev-java/mx4j/mx4j-2.1.0.ebuild b/dev-java/mx4j/mx4j-2.1.0.ebuild new file mode 100644 index 000000000000..ed76391b0195 --- /dev/null +++ b/dev-java/mx4j/mx4j-2.1.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j/mx4j-2.1.0.ebuild,v 1.1 2005/01/22 15:23:32 luckyduck Exp $ + +inherit eutils java-pkg + +DESCRIPTION="MX4J is a project to build an Open Source implementation of the Java(TM) Management Extensions (JMX) and of the JMX Remote API (JSR 160) specifications, and to build tools relating to JMX." +HOMEPAGE="http://mx4j.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" +DEPEND=">=virtual/jdk-1.4 + >=dev-java/ant-1.6 + jikes?( >=dev-java/jikes-1.21) + source?( app-arch/zip )" +RDEPEND=">=virtual/jre-1.4 + >=dev-java/commons-logging-1.0.4 + >=dev-java/sun-jaf-bin-1.0.2 + >=dev-java/sun-javamail-bin-1.3.1 + >=dev-java/jython-2.1 + =dev-java/servletapi-2.3* + =dev-java/xmlunit-1* + =www-servers/axis-1* + >=www-servers/resin-3.0.8" +LICENSE="mx4j" +SLOT="2.1" +KEYWORDS="~x86 ~amd64" +IUSE="doc examples jikes source" + +src_unpack(){ + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/mx4j-2.1.0-gentoo.patch + + cd ${S}/lib + java-pkg_jar-from sun-jaf-bin + java-pkg_jar-from sun-javamail-bin mail.jar + java-pkg_jar-from jython + java-pkg_jar-from axis-1 + java-pkg_jar-from servletapi-2.3 + java-pkg_jar-from resin resin.jar + java-pkg_jar-from xmlunit-1 +} + +src_compile() { + cd build/ + + local antflags="compile.jmx compile.rjmx compile.tools" + use doc && antflags="${antflags} javadocs" + use examples && antflags="${antflags} compile.examples" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + use source && antflags="${antflags} sourcezip" + ant ${antflags} || die "ant failed" +} + +src_install () { + java-pkg_dojar dist/lib/*.jar + java-pkg_dowar dist/lib/*.war + + dodoc LICENSE README + if use doc ; then + java_pkg-dohtml -r dist/docs/api/* + fi + if use source; then + dodir /usr/share/doc/${PF}/source + cp dist/${PN}-src.zip ${D}usr/share/doc/${PF}/source + fi + if use examples; then + dodir /usr/share/doc/${PF}/examples + cp -r src/examples/mx4j/examples/* ${D}usr/share/doc/${PF}/examples + fi +} |