--- libjboss-marshalling-java-1.1.3.GA.orig/debian/control
+++ libjboss-marshalling-java-1.1.3.GA/debian/control
@@ -0,0 +1,48 @@
+Source: libjboss-marshalling-java
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
+Uploaders: Torsten Werner <twerner@debian.org>
+Build-Depends-Indep: maven-repo-helper (>= 0.7), maven-ant-helper (>> 4)
+Build-Depends: ant, debhelper (>= 5), cdbs, default-jdk
+Standards-Version: 3.8.3
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libjboss-marshalling-java
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libjboss-marshalling-java/
+Homepage: http://jboss.org/jbossmarshalling/
+
+Package: libjboss-marshalling-java
+Architecture: all
+Depends: ${misc:Depends}, default-jre-headless | java5-runtime-headless
+Description: alternative serialization API
+ JBoss Marshalling is an alternative serialization API that fixes many of the
+ problems found in the JDK serialization API while remaining fully compatible
+ with java.io.Serializable and its relatives, and adds several new tunable
+ parameters and additional features, all of which are pluggable via factory
+ configuration (externalizers, class/instance lookup tables, class resolution,
+ and object replacement, to name a few).
+ .
+ This framework was inspired by the need for certain features unavailable with
+ the standard Object*Stream classes:
+ .
+ * Pluggable class resolvers, making it easy to customize classloader
+ policy, by implementing a small interface (rather than having to subclass
+ the Object*Stream classes)
+ * Pluggable object replacement (also without subclassing)
+ * Pluggable predefined class tables, which can dramatically decrease
+ stream size and serialization time for stream types which frequently use a
+ common set of classes
+ * Pluggable predefined instance tables, which make it easy to handle
+ remote references
+ * Pluggable externalizers which may be used to serialize classes
+ which are not Serializable, or for which an alternate strategy is needed
+ * Customizable stream headers
+ * Each marshaller instance is highly configurable and tunable to
+ maximize performance based on expected usage patterns A generalized API
+ which can support many different protocol implementations, including
+ protocols which do not necessarily provide all the above features
+ * Inexpensive instance creation, beneficial to applications where
+ many short-lived streams are used
+ * Support for separate class and instance caches, if the protocol
+ permits; useful for sending multiple messages or requests with a single
+ stream, with separate object graphs but retaining the class cache
+
--- libjboss-marshalling-java-1.1.3.GA.orig/debian/watch
+++ libjboss-marshalling-java-1.1.3.GA/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://anonsvn.jboss.org/repos/jbossmarshalling/core/tags/ (\d.*)/ \
+ debian debian/orig-tar.sh
--- libjboss-marshalling-java-1.1.3.GA.orig/debian/orig-tar.sh
+++ libjboss-marshalling-java-1.1.3.GA/debian/orig-tar.sh
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+TAR=../libjboss-marshalling-java_$2.orig.tar.gz
+DIR=jboss-marshalling-$2
+TAG=$2
+
+svn export http://anonsvn.jboss.org/repos/jbossmarshalling/core/tags/$TAG $DIR
+tar -c -z -f $TAR $DIR
+rm -rf $DIR ../$TAG
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+ . .svn/deb-layout
+ mv $TAR $origDir
+ echo "moved $TAR to $origDir"
+fi
+
--- libjboss-marshalling-java-1.1.3.GA.orig/debian/copyright
+++ libjboss-marshalling-java-1.1.3.GA/debian/copyright
@@ -0,0 +1,17 @@
+Format-Specification: http://dep.debian.net/deps/dep5/
+Name: JBoss Marshalling
+Maintainer: David M. Lloyd, Ron Sigal
+Source: http://jboss.org/jbossmarshalling/
+
+Files: *
+Copyright: 2005, 2008, JBoss Inc.
+License: LGPL-2.1+
+
+Files: debian/*
+Copyright: 2009, Torsten Werner <twerner@debian.org>
+License: LGPL-2.1+
+
+License: LGPL-2.1+
+ On Debian GNU/Linux system you can find the complete text of the
+ license in '/usr/share/common-licenses/LGPL-2.1'
+
--- libjboss-marshalling-java-1.1.3.GA.orig/debian/docs
+++ libjboss-marshalling-java-1.1.3.GA/debian/docs
@@ -0,0 +1 @@
+build/api
--- libjboss-marshalling-java-1.1.3.GA.orig/debian/libjboss-marshalling-java.poms
+++ libjboss-marshalling-java-1.1.3.GA/debian/libjboss-marshalling-java.poms
@@ -0,0 +1,6 @@
+pom.xml
+api/pom.xml
+river/pom.xml
+serial/pom.xml
+serialization-java/pom.xml
+
--- libjboss-marshalling-java-1.1.3.GA.orig/debian/changelog
+++ libjboss-marshalling-java-1.1.3.GA/debian/changelog
@@ -0,0 +1,11 @@
+libjboss-marshalling-java (1.1.3.GA-2) unstable; urgency=low
+
+ * Improve copyright information.
+
+ -- Torsten Werner <twerner@debian.org> Tue, 15 Sep 2009 22:13:07 +0200
+
+libjboss-marshalling-java (1.1.3.GA-1) unstable; urgency=low
+
+ * Initial release. (Closes: #546768)
+
+ -- Torsten Werner <twerner@debian.org> Tue, 15 Sep 2009 20:36:18 +0200
--- libjboss-marshalling-java-1.1.3.GA.orig/debian/build.properties
+++ libjboss-marshalling-java-1.1.3.GA/debian/build.properties
@@ -0,0 +1,5 @@
+build.javaVersion = 1.5
+build.javaVersion = 1.5
+javadoc.dir = build/api
+maven.test.skip = true
+classpath.compile = ${basedir}/api/build/marshalling-api-${version}.jar
--- libjboss-marshalling-java-1.1.3.GA.orig/debian/compat
+++ libjboss-marshalling-java-1.1.3.GA/debian/compat
@@ -0,0 +1 @@
+5
--- libjboss-marshalling-java-1.1.3.GA.orig/debian/build.xml
+++ libjboss-marshalling-java-1.1.3.GA/debian/build.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+
+<project name="pkg-java" default="package" basedir="..">
+
+ <property file="debian/build.properties"/>
+ <property name="maven.build" value="/usr/share/maven-ant-helper/maven-build.xml"/>
+ <property file="/usr/share/maven-ant-helper/maven-defaults.properties"/>
+
+ <macrodef name="cleanmodule">
+ <attribute name="dir"/>
+ <sequential>
+ <ant target="clean" antfile="${maven.build}" dir="@{dir}">
+ <property name="debian.dir" location="debian" />
+ <property name="project.dir" value="@{dir}" />
+ </ant>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="packagemodule">
+ <attribute name="dir"/>
+ <sequential>
+ <ant target="package" antfile="${maven.build}" dir="@{dir}">
+ <property name="debian.dir" location="debian" />
+ <property name="project.dir" value="@{dir}" />
+ </ant>
+ </sequential>
+ </macrodef>
+
+ <target name="clean">
+ <delete dir="build"/>
+ <cleanmodule dir="api"/>
+ <cleanmodule dir="river"/>
+ <cleanmodule dir="serial"/>
+ <cleanmodule dir="serialization-java"/>
+ </target>
+
+ <target name="package">
+ <packagemodule dir="api"/>
+ <packagemodule dir="river"/>
+ <packagemodule dir="serial"/>
+ <packagemodule dir="serialization-java"/>
+ </target>
+
+ <target name="javadoc">
+ <javadoc destdir="${javadoc.dir}">
+ <packageset dir="api/src/main/java/"/>
+ <packageset dir="river/src/main/java/"/>
+ <packageset dir="serial/src/main/java/"/>
+ <packageset dir="serialization-java/src/main/java/"/>
+ </javadoc>
+ </target>
+
+</project>
--- libjboss-marshalling-java-1.1.3.GA.orig/debian/rules
+++ libjboss-marshalling-java-1.1.3.GA/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+PACKAGE := jboss-marshalling
+VERSION := $(DEB_UPSTREAM_VERSION)
+JAVA_HOME := /usr/lib/jvm/default-java
+DEB_JARS := ant-nodeps
+DEB_ANT_BUILD_TARGET := package javadoc
+DEB_ANT_BUILDFILE := debian/build.xml
+DEB_ANT_ARGS := -Dpackage=$(PACKAGE) -Dversion=$(VERSION)
+
+get-orig-source:
+ uscan --download-version $(VERSION) --force-download --rename
+
+binary-post-install/lib$(PACKAGE)-java::
+ mh_installpoms -plib$(PACKAGE)-java
+ mh_installjar -plib$(PACKAGE)-java -l api/pom.xml api/build/marshalling-api-$(VERSION).jar
+ mh_installjar -plib$(PACKAGE)-java -l river/pom.xml river/build/river-$(VERSION).jar
+ mh_installjar -plib$(PACKAGE)-java -l serial/pom.xml serial/build/serial-$(VERSION).jar
+ mh_installjar -plib$(PACKAGE)-java -l serialization-java/pom.xml serialization-java/build/serialization-java-$(VERSION).jar
+
--- libjboss-marshalling-java-1.1.3.GA.orig/debian/doc-base
+++ libjboss-marshalling-java-1.1.3.GA/debian/doc-base
@@ -0,0 +1,9 @@
+Document: libjboss-marshalling-java
+Title: API Javadoc for JBoss Marshalling
+Author: David M. Lloyd, Ron Sigal
+Abstract: This is the API Javadoc provided by the JBoss Marshalling library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libjboss-marshalling-java/api/index.html
+Files: /usr/share/doc/libjboss-marshalling-java/api/*