[bnd1] 01/01: Imported Debian patch 1.50.0-1

Markus Koschany apo-guest at moszumanska.debian.org
Sun Jun 14 12:42:08 UTC 2015


This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch master
in repository bnd1.

commit 816d167e5fcfb2a713c04d92d3d0ce6fb8ac85ed
Author: Markus Koschany <apo at gambaru.de>
Date:   Sat Jun 13 14:38:01 2015 +0200

    Imported Debian patch 1.50.0-1
---
 debian/ant.properties                             |   5 +
 debian/bnd-1.5.1                                  | 231 ++++++++++++++++
 debian/bnd-1.5.pod                                | 101 +++++++
 debian/bnd.poms                                   |   3 +
 debian/bnd.sh                                     |  14 +
 debian/bootstrap.xml                              |  36 +++
 debian/changelog                                  |   8 +
 debian/compat                                     |   1 +
 debian/control                                    |  55 ++++
 debian/copyright                                  | 309 ++++++++++++++++++++++
 debian/git-transform.sh                           |  35 +++
 debian/manpages                                   |   1 +
 debian/orig-tar.sh                                |  22 ++
 debian/patches/OSGi-6-methods.patch               |  53 ++++
 debian/patches/ant-1.9-compatibility.diff         |  30 +++
 debian/patches/build_excludes.diff                |  18 ++
 debian/patches/display_bsn_on_missing_bundle.diff |  29 ++
 debian/patches/find_swt_jar.diff                  |  21 ++
 debian/patches/fix-encoding.diff                  |  13 +
 debian/patches/java8-compatibility.diff           |  74 ++++++
 debian/patches/no_ee_minimum.diff                 |  50 ++++
 debian/patches/no_felix.diff                      |  20 ++
 debian/patches/no_git_during_build.diff           |  19 ++
 debian/patches/osgi43_fixes.diff                  |  88 ++++++
 debian/patches/series                             |  11 +
 debian/pom-annotation.xml                         |  35 +++
 debian/pom-bnd.xml                                |  34 +++
 debian/pom-bndlib.xml                             |  64 +++++
 debian/rules                                      | 133 ++++++++++
 debian/source/format                              |   1 +
 debian/watch                                      |   2 +
 31 files changed, 1516 insertions(+)

diff --git a/debian/ant.properties b/debian/ant.properties
new file mode 100644
index 0000000..15c17a0
--- /dev/null
+++ b/debian/ant.properties
@@ -0,0 +1,5 @@
+javac.excludes=**/aQute/bnd/junit/*.java
+# Ensure that source and target are 1.5
+# For backwards compat on Java 7
+ant.build.javac.source=1.5
+ant.build.javac.target=1.5
diff --git a/debian/bnd-1.5.1 b/debian/bnd-1.5.1
new file mode 100644
index 0000000..2b462ab
--- /dev/null
+++ b/debian/bnd-1.5.1
@@ -0,0 +1,231 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.28)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings.  \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
+.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+.    ds -- \(*W-
+.    ds PI pi
+.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
+.    ds L" ""
+.    ds R" ""
+.    ds C` ""
+.    ds C' ""
+'br\}
+.el\{\
+.    ds -- \|\(em\|
+.    ds PI \(*p
+.    ds L" ``
+.    ds R" ''
+.    ds C`
+.    ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el       .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD.  Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+.    if \nF \{
+.        de IX
+.        tm Index:\\$1\t\\n%\t"\\$2"
+..
+.        if !\nF==2 \{
+.            nr % 0
+.            nr F 2
+.        \}
+.    \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
+.    \" fudge factors for nroff and troff
+.if n \{\
+.    ds #H 0
+.    ds #V .8m
+.    ds #F .3m
+.    ds #[ \f1
+.    ds #] \fP
+.\}
+.if t \{\
+.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+.    ds #V .6m
+.    ds #F 0
+.    ds #[ \&
+.    ds #] \&
+.\}
+.    \" simple accents for nroff and troff
+.if n \{\
+.    ds ' \&
+.    ds ` \&
+.    ds ^ \&
+.    ds , \&
+.    ds ~ ~
+.    ds /
+.\}
+.if t \{\
+.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+.    \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+.    \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+.    \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+.    ds : e
+.    ds 8 ss
+.    ds o a
+.    ds d- d\h'-1'\(ga
+.    ds D- D\h'-1'\(hy
+.    ds th \o'bp'
+.    ds Th \o'LP'
+.    ds ae ae
+.    ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "BND-1.5 1"
+.TH BND-1.5 1 "2015-06-13" "bnd1-1.50.0" "BND for Debian GNU/Linux"
+.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+bnd \- Create and diagnose OSGi R4 bundles.
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+\&\fBbnd\fR [\fIgeneral-options\fR] [\fIcmd\fR] [\fIcmd-options\fR]
+.PP
+\&\fBbnd\fR [\fIgeneral-options\fR] <file>.jar
+.PP
+\&\fBbnd\fR [\fIgeneral-options\fR] <file>.bnd
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+The bnd tool helps you create and diagnose OSGi R4 bundles. The key functions are:
+.PP
+.Vb 4
+\& * Show the manifest and JAR contents of a bundle
+\& * Wrap a JAR so that it becomes a bundle
+\& * Create a Bundle from a specification and a class path
+\& * Verify the validity of the manifest entries
+.Ve
+.SH "GENERAL OPTIONS"
+.IX Header "GENERAL OPTIONS"
+.IP "\-failok" 4
+.IX Item "-failok"
+Same as the property \-failok. The current run will create a \s-1JAR\s0 file even if there were errors.
+.IP "\-exceptions" 4
+.IX Item "-exceptions"
+Will print the exception when the software has ran into a bad exception and bails out. Normally only a message is printed. For debugging or diagnostic reasons, the exception stack trace can be very helpful.
+.SH "COMMANDS"
+.IX Header "COMMANDS"
+.IP "print ( \-verify | \-manifest | \-list | \- all ) * <file>.jar +" 4
+.IX Item "print ( -verify | -manifest | -list | - all ) * <file>.jar +"
+The print function will take a list of \s-1JAR\s0 file and print one or more aspect of the \s-1JAF\s0 riles. The following aspects can be added.
+.Sp
+.Vb 5
+\&    * \-verify \- Verify the JAR for consistency with the specification
+\&      The print will exit with an error if the verify fails.
+\&    * \-manifest \- Show the manifest
+\&    * \-list \- List the entries in the JAR file
+\&    * \-all \- Do all (this is the default.
+.Ve
+.Sp
+\&\f(CW\*(C`bnd print \-verify *.jar\*(C'\fR
+.IP "buildx ( \-classpath \s-1LIST\s0 | \-eclipse <lt>file> | \-noeclipse | \-output <file> ) * <file>.bnd +" 4
+.IX Item "buildx ( -classpath LIST | -eclipse <lt>file> | -noeclipse | -output <file> ) * <file>.bnd +"
+The build function will assemble a bundle from the bnd specification. The default name of the output bundle is the name of the bnd file with a .jar extension.
+.Sp
+.Vb 10
+\&    * \-classpath \- A list of JAR files and/or directories that should
+\&      be placed on the class path before the calculation starts.
+\&    * \-eclipse \- Parse the file as an Eclipse .classpath file, use
+\&      the information to create an Eclipse\*(Aqs project class path.
+\&      If this option is used, the default .classpath file is not read
+\&    * \-noeclipse \- Do not parse the .classpath file of an Eclipse
+\&      project.
+\&    * \-output \- Override the default output name of the bundle or the
+\&      directory. If the output is a directory, the name will be
+\&      derived from the bnd file name.
+.Ve
+.Sp
+\&\f(CW\*(C`bnd build \-classpath bin \-noeclipse \-output test.jar xyz.bnd\*(C'\fR
+.IP "wrap ( \-classpath (<lt>file>(','<lt>file>)*)\-output <lt>fileE|dir<gt> | \-properties <lt>file> ) * \-ignoremanifest? <lt>file>.jar *" 4
+.IX Item "wrap ( -classpath (<lt>file>(','<lt>file>)*)-output <lt>fileE|dir<gt> | -properties <lt>file> ) * -ignoremanifest? <lt>file>.jar *"
+The wrap command takes an existing \s-1JAR\s0 file and guesses the manifest headers that will make this \s-1JAR\s0 useful for an OSGi Service Platform. If the output file is not overridden, the name of the input file is used with a .bar extension. The default bnd file for the header calculation is:
+.Sp
+.Vb 2
+\& Export\-Package: *
+\& Import\-Package: <packages inside the target jar>
+.Ve
+.Sp
+If the target bundle has a manifest, the headers are merged with the properties.
+.Sp
+The defaults can be overridden with a specific properties file.
+.Sp
+.Vb 6
+\&    * \-output \- Set the output file or directory
+\&    * \-classpath \- Sets the classpath as a comma separated list
+\&    * \-properties \- Use a special property file for the manifest
+\&      calculation.
+\&    * \-ignoremanifest \- Do not include the manifest headers from
+\&      the target bundle
+.Ve
+.Sp
+\&\f(CW\*(C`bnd wrap \-classpath osgi.jar *.jar\*(C'\fR
+.SH "SEE ALSO"
+.IX Header "SEE ALSO"
+<http://www.aqute.biz/Code/Bnd>
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Ludovic Claude <ludovic.claude at laposte.net>
+.PP
+Damien Raude-Morvan <drazzib at debian.org>
diff --git a/debian/bnd-1.5.pod b/debian/bnd-1.5.pod
new file mode 100644
index 0000000..ee0747b
--- /dev/null
+++ b/debian/bnd-1.5.pod
@@ -0,0 +1,101 @@
+=head1 NAME
+
+bnd - Create and diagnose OSGi R4 bundles.
+
+=head1 SYNOPSIS
+
+B<bnd> [S<I<general-options>>] [S<I<cmd>>] [S<I<cmd-options>>]
+
+B<bnd> [S<I<general-options>>] E<lt>fileE<gt>.jar
+
+B<bnd> [S<I<general-options>>] E<lt>fileE<gt>.bnd
+
+=head1 DESCRIPTION
+
+The bnd tool helps you create and diagnose OSGi R4 bundles. The key functions are:
+
+ * Show the manifest and JAR contents of a bundle
+ * Wrap a JAR so that it becomes a bundle
+ * Create a Bundle from a specification and a class path
+ * Verify the validity of the manifest entries
+
+=head1 GENERAL OPTIONS
+
+=over
+
+=item -failok
+
+Same as the property -failok. The current run will create a JAR file even if there were errors.
+
+=item -exceptions
+
+Will print the exception when the software has ran into a bad exception and bails out. Normally only a message is printed. For debugging or diagnostic reasons, the exception stack trace can be very helpful.
+
+=back
+
+=head1 COMMANDS
+
+=over
+
+=item print ( -verify | -manifest | -list | - all ) * E<lt>fileE<gt>.jar +
+
+The print function will take a list of JAR file and print one or more aspect of the JAF riles. The following aspects can be added.
+
+    * -verify - Verify the JAR for consistency with the specification
+      The print will exit with an error if the verify fails.
+    * -manifest - Show the manifest
+    * -list - List the entries in the JAR file
+    * -all - Do all (this is the default.
+
+C<bnd print -verify *.jar>
+
+=item buildx ( -classpath LIST | -eclipse <lt>fileE<gt> | -noeclipse | -output E<lt>fileE<gt> ) * E<lt>fileE<gt>.bnd +
+
+The build function will assemble a bundle from the bnd specification. The default name of the output bundle is the name of the bnd file with a .jar extension.
+
+    * -classpath - A list of JAR files and/or directories that should
+      be placed on the class path before the calculation starts.
+    * -eclipse - Parse the file as an Eclipse .classpath file, use
+      the information to create an Eclipse's project class path.
+      If this option is used, the default .classpath file is not read
+    * -noeclipse - Do not parse the .classpath file of an Eclipse
+      project.
+    * -output - Override the default output name of the bundle or the
+      directory. If the output is a directory, the name will be
+      derived from the bnd file name.
+
+C<bnd build -classpath bin -noeclipse -output test.jar xyz.bnd>
+
+=item wrap ( -classpath (<lt>fileE<gt>(','<lt>fileE<gt>)*)-output <lt>fileE|dir<gt> | -properties <lt>fileE<gt> ) *
+-ignoremanifest? <lt>fileE<gt>.jar *
+
+The wrap command takes an existing JAR file and guesses the manifest headers that will make this JAR useful for an OSGi Service Platform. If the output file is not overridden, the name of the input file is used with a .bar extension. The default bnd file for the header calculation is:
+
+ Export-Package: *
+ Import-Package: <packages inside the target jar>
+
+If the target bundle has a manifest, the headers are merged with the properties.
+
+The defaults can be overridden with a specific properties file.
+
+    * -output - Set the output file or directory
+    * -classpath - Sets the classpath as a comma separated list
+    * -properties - Use a special property file for the manifest
+      calculation.
+    * -ignoremanifest - Do not include the manifest headers from
+      the target bundle
+
+C<bnd wrap -classpath osgi.jar *.jar>
+
+=back
+
+=head1 SEE ALSO
+
+L<http://www.aqute.biz/Code/Bnd>
+
+=head1 AUTHOR
+
+Ludovic Claude <ludovic.claude at laposte.net>
+
+Damien Raude-Morvan <drazzib at debian.org>
+
diff --git a/debian/bnd.poms b/debian/bnd.poms
new file mode 100644
index 0000000..32060f0
--- /dev/null
+++ b/debian/bnd.poms
@@ -0,0 +1,3 @@
+debian/pom-bnd.xml --has-package-version --java-lib
+debian/pom-bndlib.xml --has-package-version --java-lib
+debian/pom-annotation.xml --has-package-version --java-lib
diff --git a/debian/bnd.sh b/debian/bnd.sh
new file mode 100644
index 0000000..bd926ac
--- /dev/null
+++ b/debian/bnd.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Include the wrappers utility script
+. /usr/lib/java-wrappers/java-wrappers.sh
+
+# We need a java5 runtime
+find_java_runtime java5
+
+# Define our classpath
+find_jars bnd1
+
+# Run bnd
+run_java aQute.bnd.main.bnd $extra_args "$@"
+
diff --git a/debian/bootstrap.xml b/debian/bootstrap.xml
new file mode 100644
index 0000000..58259f3
--- /dev/null
+++ b/debian/bootstrap.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+
+<project name="bootstrap" default="bootstrap" basedir="..">
+
+    <target name="clean">
+        <delete dir="bootstrap"/>
+    </target>
+
+    <target name="bootstrap">
+        <mkdir dir="bootstrap/build"/>
+        <javac
+                destdir="bootstrap/build"
+                classpath="/usr/share/java/osgi.core.jar:/usr/share/java/osgi.compendium.jar:/usr/share/java/bindex.jar"
+                encoding="UTF-8"
+                debug="true">
+            <src path="aQute.libg/src"/>
+            <src path="biz.aQute.bndlib/src"/>
+            <src path="biz.aQute.bnd/src"/>
+            <exclude name="aQute/bnd/plugin/**"/>
+            <exclude name="aQute/bnd/launch/**"/>
+            <exclude name="aQute/bnd/classpath/**"/>
+            <exclude name="aQute/bnd/jareditor/**"/>
+            <exclude name="aQute/bnd/junit/**"/>
+            <exclude name="swing2swt/**"/>
+            <exclude name="biz/aqute/bnd/eclipse/**"/>
+            <exclude name="test/**"/>
+        </javac>
+        <copy
+                todir="bootstrap/build/aQute/bnd/ant/"
+                file="biz.aQute.bnd/src/aQute/bnd/ant/taskdef.properties" />
+        <jar destfile="bootstrap/bnd.jar">
+           <fileset dir="bootstrap/build/"/>
+        </jar>
+    </target>
+
+</project>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9088ed7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,8 @@
+bnd1 (1.50.0-1) unstable; urgency=medium
+
+  * Initial release for the Bnd 1to2 transition.
+    The sole purpose of this package is to ensure a smooth transition from
+    Bnd 1.50 to Bnd 2.1.0 and later. New packages should depend on the original
+    bnd package instead.
+
+ -- Markus Koschany <apo at gambaru.de>  Sat, 13 Jun 2015 14:38:01 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..eea6407
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,55 @@
+Source: bnd1
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders:
+ Markus Koschany <apo at gambaru.de>
+Build-Depends:
+ ant,
+ ant-optional,
+ cdbs,
+ debhelper (>= 9),
+ default-jdk,
+ eclipse-jdt,
+ eclipse-rcp,
+ javahelper,
+ junit,
+ libbindex-java (>= 2.2+svn101),
+ libosgi-compendium-java (>= 5.0.0),
+ libosgi-core-java (>= 6.0.0),
+ libswt-gtk-3-java,
+ maven-ant-helper,
+ maven-repo-helper
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/bnd.git
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-java/bnd.git
+Homepage: http://www.aQute.biz/Bnd
+
+Package: bnd1
+Architecture: all
+Depends:
+ default-jre-headless | java5-runtime-headless,
+ java-wrappers,
+ libosgi-compendium-java (>= 5.0.0),
+ libosgi-core-java (>= 6.0.0),
+ ${misc:Depends}
+Recommends:
+ libbindex-java (>= 2.2+svn101)
+Suggests:
+ eclipse-jdt,
+ eclipse-rcp
+Description: tool to create and diagnose OSGi R4 bundles
+ The bnd tool helps you create and diagnose OSGi R4 bundles.
+ The key functions are:
+ .
+   * Show the manifest and JAR contents of a bundle
+   * Wrap a JAR so that it becomes a bundle
+   * Create a Bundle from a specification and a class path
+   * Verify the validity of the manifest entries
+ .
+ The tool is capable of acting as:
+ .
+   * Command line tool
+   * Eclipse Plugin
+   * Maven Plugin
+   * Ant Plugin
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a709fbc
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,309 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: BND
+Upstream-Contact: Peter Kriens, aQute SARL
+Source: https://github.com/bnd/bnd
+
+Files: *
+Copyright: 2006-2009, aQute SARL
+License: Apache-2.0
+
+Files: biz.aQute.bnd/src/swing2swt/layout/AWTLayout.java
+ biz.aQute.bnd/src/swing2swt/layout/GridLayout.java
+Copyright: 2003, IBM Corporation and others.
+License: IBM-License
+
+Files: aQute.libg/src/aQute/lib/filter/Filter.java
+Copyright: OSGi Alliance
+License: Apache-2.0
+Comment:
+ This file was originally licensed from Gatespace to OSGi in the year 2000. A
+ member donated this as ASL 2.0 licensed matching BND's default license. See
+ also https://github.com/bndtools/bnd/issues/944 for a clarification from
+ upstream. This license header will be corrected in a future upstream release.
+
+Files: aQute.libg/src/aQute/libg/clauses/Selector.java
+ biz.aQute.bndlib/src/aQute/bnd/compatibility/Signatures.java
+Copyright: 2006-2010, OSGi Alliance.
+License: Apache-2.0
+
+Files: biz.aQute.bndlib/src/test/lib/deployer/obr/NanoHTTPD.java
+Copyright: 2001,2005-2011, Jarno Elonen <elonen at iki.fi>
+           2010, Konstantinos Togias <info at ktogias.gr>
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2009, Ludovic Claude <ludovic.claude at laposte.net>
+           2011, Damien Raude-Morvan <drazzib at debian.org>
+           2015, Markus Koschany <apo at gambaru.de>
+License: Apache-2.0
+
+Files: biz.aQute.junit/src/aQute/junit/runtime/Operation.java
+ biz.aQute.junit/src/aQute/junit/runtime/OSGiTestCase.java
+ biz.aQute.junit/src/aQute/junit/runtime/VoidOperation.java
+Copyright: 2010, Neil Bartlett.
+License: EPL-1.0
+    Eclipse Public License - v 1.0
+ .
+    THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
+    PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE
+    PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
+ .
+    1. DEFINITIONS
+ .
+    "Contribution" means:
+ .
+    a) in the case of the initial Contributor, the initial code and documentation
+    distributed under this Agreement, and
+    b) in the case of each subsequent Contributor:
+ .
+    i) changes to the Program, and
+ .
+    ii) additions to the Program;
+ .
+    where such changes and/or additions to the Program originate from and are
+    distributed by that particular Contributor. A Contribution 'originates'
+    from a Contributor if it was added to the Program by such Contributor itself
+    or anyone acting on such Contributor's behalf. Contributions do not include
+    additions to the Program which: (i) are separate modules of software
+    distributed in conjunction with the Program under their own license
+    agreement, and (ii) are not derivative works of the Program.
+ .
+    "Contributor" means any person or entity that distributes the Program.
+ .
+    "Licensed Patents " mean patent claims licensable by a Contributor which are
+    necessarily infringed by the use or sale of its Contribution alone or when
+    combined with the Program.
+ .
+    "Program" means the Contributions distributed in accordance with this
+    Agreement.
+ .
+    "Recipient" means anyone who receives the Program under this Agreement,
+    including all Contributors.
+ .
+    2. GRANT OF RIGHTS
+ .
+    a) Subject to the terms of this Agreement, each Contributor hereby grants
+    Recipient a non-exclusive, worldwide, royalty-free copyright license to
+    reproduce, prepare derivative works of, publicly display, publicly perform,
+    distribute and sublicense the Contribution of such Contributor, if any,
+    and such derivative works, in source code and object code form.
+ .
+    b) Subject to the terms of this Agreement, each Contributor hereby grants
+    Recipient a non-exclusive, worldwide, royalty-free patent license under
+    Licensed Patents to make, use, sell, offer to sell, import and otherwise
+    transfer the Contribution of such Contributor, if any, in source code and
+    object code form. This patent license shall apply to the combination of
+    the Contribution and the Program if, at the time the Contribution is added
+    by the Contributor, such addition of the Contribution causes such
+    combination to be covered by the Licensed Patents. The patent license shall
+    not apply to any other combinations which include the Contribution. No
+    hardware per se is licensed hereunder.
+ .
+    c) Recipient understands that although each Contributor grants the licenses
+    to its Contributions set forth herein, no assurances are provided by any
+    Contributor that the Program does not infringe the patent or other
+    intellectual property rights of any other entity. Each Contributor disclaims
+    any liability to Recipient for claims brought by any other entity based on
+    infringement of intellectual property rights or otherwise. As a condition to
+    exercising the rights and licenses granted hereunder, each Recipient hereby
+    assumes sole responsibility to secure any other intellectual property rights
+    needed, if any. For example, if a third party patent license is required to
+    allow Recipient to distribute the Program, it is Recipient's responsibility
+    to acquire that license before distributing the Program.
+ .
+    d) Each Contributor represents that to its knowledge it has sufficient
+    copyright rights in its Contribution, if any, to grant the copyright license
+    set forth in this Agreement.
+ .
+    3. REQUIREMENTS
+ .
+    A Contributor may choose to distribute the Program in object code form under
+    its own license agreement, provided that:
+ .
+    a) it complies with the terms and conditions of this Agreement; and
+ .
+    b) its license agreement:
+ .
+    i) effectively disclaims on behalf of all Contributors all warranties and
+    conditions, express and implied, including warranties or conditions of title
+    and non-infringement, and implied warranties or conditions of merchantability
+    and fitness for a particular purpose;
+ .
+    ii) effectively excludes on behalf of all Contributors all liability for
+    damages, including direct, indirect, special, incidental and consequential
+    damages, such as lost profits;
+ .
+    iii) states that any provisions which differ from this Agreement are offered
+    by that Contributor alone and not by any other party; and
+ .
+    iv) states that source code for the Program is available from such
+    Contributor, and informs licensees how to obtain it in a reasonable manner on
+    or through a medium customarily used for software exchange.
+ .
+    When the Program is made available in source code form:
+ .
+    a) it must be made available under this Agreement; and
+ .
+    b) a copy of this Agreement must be included with each copy of the Program.
+ .
+    Contributors may not remove or alter any copyright notices contained within
+    the Program.
+ .
+    Each Contributor must identify itself as the originator of its Contribution,
+    if any, in a manner that reasonably allows subsequent Recipients to identify
+    the originator of the Contribution.
+ .
+    4. COMMERCIAL DISTRIBUTION
+ .
+    Commercial distributors of software may accept certain responsibilities with
+    respect to end users, business partners and the like. While this license is
+    intended to facilitate the commercial use of the Program, the Contributor who
+    includes the Program in a commercial product offering should do so in a manner
+    which does not create potential liability for other Contributors. Therefore,
+    if a Contributor includes the Program in a commercial product offering, such
+    Contributor ("Commercial Contributor") hereby agrees to defend and indemnify
+    every other Contributor ("Indemnified Contributor") against any losses,
+    damages and costs (collectively "Losses") arising from claims, lawsuits and
+    other legal actions brought by a third party against the Indemnified
+    Contributor to the extent caused by the acts or omissions of such Commercial
+    Contributor in connection with its distribution of the Program in a commercial
+    product offering. The obligations in this section do not apply to any claims
+    or Losses relating to any actual or alleged intellectual property
+    infringement. In order to qualify, an Indemnified Contributor must:
+    a) promptly notify the Commercial Contributor in writing of such claim, and
+    b) allow the Commercial Contributor to control, and cooperate with the
+    Commercial Contributor in, the defense and any related settlement
+    negotiations. The Indemnified Contributor may participate in any such claim
+    at its own expense.
+ .
+    For example, a Contributor might include the Program in a commercial product
+    offering, Product X. That Contributor is then a Commercial Contributor. If
+    that Commercial Contributor then makes performance claims, or offers
+    warranties related to Product X, those performance claims and warranties are
+    such Commercial Contributor's responsibility alone. Under this section, the
+    Commercial Contributor would have to defend claims against the other
+    Contributors related to those performance claims and warranties, and if a
+    court requires any other Contributor to pay any damages as a result, the
+    Commercial Contributor must pay those damages.
+ .
+    5. NO WARRANTY
+ .
+    EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON
+    AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER
+    EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR
+    CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A
+    PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the
+    appropriateness of using and distributing the Program and assumes all
+    risks associated with its exercise of rights under this Agreement ,
+    including but not limited to the risks and costs of program errors,
+    compliance with applicable laws, damage to or loss of data, programs or
+    equipment, and unavailability or interruption of operations.
+ .
+    6. DISCLAIMER OF LIABILITY
+ .
+    EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY
+    CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION
+    LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+    ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
+    EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
+    POSSIBILITY OF SUCH DAMAGES.
+ .
+    7. GENERAL
+ .
+    If any provision of this Agreement is invalid or unenforceable under
+    applicable law, it shall not affect the validity or enforceability of the
+    remainder of the terms of this Agreement, and without further action by
+    the parties hereto, such provision shall be reformed to the minimum extent
+    necessary to make such provision valid and enforceable.
+ .
+    If Recipient institutes patent litigation against any entity (including a
+    cross-claim or counterclaim in a lawsuit) alleging that the Program itself
+    (excluding combinations of the Program with other software or hardware)
+    infringes such Recipient's patent(s), then such Recipient's rights granted
+    under Section 2(b) shall terminate as of the date such litigation is filed.
+ .
+    All Recipient's rights under this Agreement shall terminate if it fails to
+    comply with any of the material terms or conditions of this Agreement and
+    does not cure such failure in a reasonable period of time after becoming
+    aware of such noncompliance. If all Recipient's rights under this Agreement
+    terminate, Recipient agrees to cease use and distribution of the Program as
+    soon as reasonably practicable. However, Recipient's obligations under this
+    Agreement and any licenses granted by Recipient relating to the Program
+    shall continue and survive.
+ .
+    Everyone is permitted to copy and distribute copies of this Agreement, but
+    in order to avoid inconsistency the Agreement is copyrighted and may only
+    be modified in the following manner. The Agreement Steward reserves the
+    right to publish new versions (including revisions) of this Agreement from
+    time to time. No one other than the Agreement Steward has the right to
+    modify this Agreement. The Eclipse Foundation is the initial Agreement
+    Steward. The Eclipse Foundation may assign the responsibility to serve as
+    the Agreement Steward to a suitable separate entity. Each new version of
+    the Agreement will be given a distinguishing version number. The Program
+    (including Contributions) may always be distributed subject to the version
+    of the Agreement under which it was received. In addition, after a new
+    version of the Agreement is published, Contributor may elect to distribute
+    the Program (including its Contributions) under the new version. Except as
+    expressly stated in Sections 2(a) and 2(b) above, Recipient receives no
+    rights or licenses to the intellectual property of any Contributor under
+    this Agreement, whether expressly, by implication, estoppel or otherwise.
+    All rights in the Program not expressly granted under this Agreement are
+    reserved.
+ .
+    This Agreement is governed by the laws of the State of New York and the
+    intellectual property laws of the United States of America. No party to
+    this Agreement will bring a legal action under this Agreement more than
+    one year after the cause of action arose. Each party waives its rights to
+    a jury trial in any resulting litigation.
+
+License: Apache-2.0
+  On Debian GNU/Linux system you can find the complete text of the
+  Apache 2.0 license in '/usr/share/common-licenses/Apache-2.0'.
+
+License: BSD-3-clause
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted provided that the following conditions
+    are met:
+ .
+    Redistributions of source code must retain the above copyright notice,
+    this list of conditions and the following disclaimer. Redistributions in
+    binary form must reproduce the above copyright notice, this list of
+    conditions and the following disclaimer in the documentation and/or other
+    materials provided with the distribution. The name of the author may not
+    be used to endorse or promote products derived from this software without
+    specific prior written permission.
+ .
+    THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+    IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+    NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: IBM-License
+ The sample program(s) is/are owned by International Business Machines
+ Corporation or one of its subsidiaries ("IBM") and is/are copyrighted and
+ licensed, not sold.
+ .
+ You may copy, modify, and distribute this/these sample program(s) in any form
+ without payment to IBM, for any purpose including developing, using, marketing
+ or distributing programs that include or are derivative works of the sample
+ program(s).
+ .
+ The sample program(s) is/are provided to you on an "AS IS" basis, without
+ warranty of any kind.  IBM HEREBY EXPRESSLY DISCLAIMS ALL WARRANTIES, EITHER
+ EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  Some jurisdictions do
+ not allow for the exclusion or limitation of implied warranties, so the above
+ limitations or exclusions may not apply to you.  IBM shall not be liable for
+ any damages you suffer as a result of using, modifying or distributing the
+ sample program(s) or its/their derivatives.
+ .
+ Each copy of any portion of this/these sample program(s) or any derivative
+ work, must include the above copyright notice and disclaimer of warranty.
diff --git a/debian/git-transform.sh b/debian/git-transform.sh
new file mode 100644
index 0000000..4b6de2b
--- /dev/null
+++ b/debian/git-transform.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+# Usage: git-transform src dest
+
+set -e
+
+SRC=$1
+DEST=$2
+SRC=${SRC:-bnd-git}
+DEST=${DEST:-bnd-clean}
+VERSION=$(dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' '| cut -d: -f2- | cut -d'-' -f 1)
+
+rm -rf $DEST
+
+echo "Copy files..."
+rsync --cvs-exclude -r --exclude '**/*.class' --exclude '**/*.jar' --exclude '.git*' $SRC/ $DEST/
+
+echo "Cleanup..."
+
+# Remove all JARs
+find $DEST/cnf/repo/ -name "*.jar" -delete
+rm -rf $DEST/biz.aQute.bndlib/maven/org/apache
+rm -rf $DEST/biz.aQute.bndlib/jar/
+
+# Remove Eclipse compiler, not needed and under EPL-v1
+rm -rf $DEST/biz.aQute.eclipse.compiler
+
+# Remove bld (to many dependencies)
+rm -rf $DEST/biz.aQute.bld
+
+# Cleanup of binary blobs
+rm -rf $DEST/biz.aQute.bndlib/test/maven-repo/
+rm -rf $DEST/biz.aQute.bndlib/src/test/*.jclass
+rm -rf $DEST/biz.aQute.bndlib/src/test/*.clazz
+rm -rf $DEST/biz.aQute.bndlib/test/beasymock.bar
+rm -rf $DEST/biz.aQute.bndlib/test/eclipse/plugins/beasymock.bar
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..07afbc4
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/bnd-1.5.1
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..bf78d35
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+
+VERSION=$2
+TAR=../bnd_$VERSION.orig.tar.gz
+DIR=bnd-$VERSION
+GIT_DIR=bnd-git
+
+DATE=2011-11-04
+git clone git://github.com/bndtools/bnd.git $GIT_DIR
+(
+  cd $GIT_DIR
+  git checkout `git rev-list -n 1 --before="$DATE" master`
+)
+
+# Bnd git cleanup
+chmod +x debian/git-transform.sh
+debian/git-transform.sh $GIT_DIR $DIR
+
+tar -c -z -f $TAR $DIR
+rm -rf $DIR
+rm -rf $GIT_DIR
+
diff --git a/debian/patches/OSGi-6-methods.patch b/debian/patches/OSGi-6-methods.patch
new file mode 100644
index 0000000..0446117
--- /dev/null
+++ b/debian/patches/OSGi-6-methods.patch
@@ -0,0 +1,53 @@
+From: Markus Koschany <apo at gambaru.de>
+Date: Fri, 5 Jun 2015 23:41:41 +0200
+Subject: OSGi 6 methods
+
+Fix FTBFS due to unimplemented methods.
+
+Forwarded: not-needed
+---
+ biz.aQute.launcher/src/aQute/launcher/minifw/Context.java       | 6 ++++++
+ biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java | 9 +++++++++
+ 2 files changed, 15 insertions(+)
+
+diff --git a/biz.aQute.launcher/src/aQute/launcher/minifw/Context.java b/biz.aQute.launcher/src/aQute/launcher/minifw/Context.java
+index a3d872a..07ac65e 100644
+--- a/biz.aQute.launcher/src/aQute/launcher/minifw/Context.java
++++ b/biz.aQute.launcher/src/aQute/launcher/minifw/Context.java
+@@ -357,4 +357,10 @@ public class Context extends URLClassLoader implements Bundle, BundleContext, Bu
+             java.util.Dictionary<java.lang.String,?> properties) {
+         throw new UnsupportedOperationException();
+     }
++    public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> reference) {
++        return null;
++    }
++    public <S> ServiceRegistration<S> registerService(Class<S> clazz, ServiceFactory<S> factory, Dictionary<String, ?> properties) {
++        return null;
++    }
+ }
+diff --git a/biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java b/biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java
+index 8939ce6..50c4bd2 100644
+--- a/biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java
++++ b/biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java
+@@ -27,6 +27,9 @@ public class MiniFramework implements Framework, Bundle, BundleContext {
+ 		state = Bundle.ACTIVE;
+ 	}
+ 
++    public void init(FrameworkListener... listeners) throws BundleException {
++    }
++
+ 	public FrameworkEvent waitForStop(long timeout) throws InterruptedException {
+ 		long deadline = System.currentTimeMillis() + timeout;
+ 
+@@ -315,5 +318,11 @@ public class MiniFramework implements Framework, Bundle, BundleContext {
+             java.util.Dictionary<java.lang.String,?> properties) {
+         throw new UnsupportedOperationException();
+     }
++    public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> reference) {
++        return null;
++    }
+ 
++    public <S> ServiceRegistration<S> registerService(Class<S> clazz, ServiceFactory<S> factory, Dictionary<String, ?> properties) {
++        return null;
++    }
+ }
diff --git a/debian/patches/ant-1.9-compatibility.diff b/debian/patches/ant-1.9-compatibility.diff
new file mode 100644
index 0000000..4cf9ed2
--- /dev/null
+++ b/debian/patches/ant-1.9-compatibility.diff
@@ -0,0 +1,30 @@
+Description: Ensures the source compatibility with Ant 1.9.
+ This patch can be removed when upgrading to bnd 2.x.
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/biz.aQute.bnd/src/aQute/bnd/main/bnd.java
++++ b/biz.aQute.bnd/src/aQute/bnd/main/bnd.java
+@@ -1373,7 +1373,7 @@
+ 	}
+ 
+ 	public boolean doWrap(File properties, File bundle, File output, File classpath[], int options,
+-			Map<String, String> additional) throws Exception {
++			Map<String, Object> additional) throws Exception {
+ 		if (!bundle.exists()) {
+ 			error("No such file: " + bundle.getAbsolutePath());
+ 			return false;
+--- a/biz.aQute.bndlib/src/aQute/lib/osgi/Analyzer.java
++++ b/biz.aQute.bndlib/src/aQute/lib/osgi/Analyzer.java
+@@ -1527,9 +1527,9 @@
+ 		return sb.toString();
+ 	}
+ 
+-	public void putAll(Map<String, String> additional, boolean force) {
+-		for (Iterator<Map.Entry<String, String>> i = additional.entrySet().iterator(); i.hasNext();) {
+-			Map.Entry<String, String> entry = i.next();
++	public void putAll(Map<String, Object> additional, boolean force) {
++		for (Iterator<Map.Entry<String, Object>> i = additional.entrySet().iterator(); i.hasNext();) {
++			Map.Entry<String, Object> entry = i.next();
+ 			if (force || getProperties().get(entry.getKey()) == null)
+ 				setProperty((String) entry.getKey(), (String) entry.getValue());
+ 		}
diff --git a/debian/patches/build_excludes.diff b/debian/patches/build_excludes.diff
new file mode 100644
index 0000000..f5e295b
--- /dev/null
+++ b/debian/patches/build_excludes.diff
@@ -0,0 +1,18 @@
+Description: Add a way to exclude some source file from build using
+ javac.excludes property (used in debian/ant.properties)
+Author: Damien Raude-Morvan <drazzib at debian.org>
+Last-Update: 2011-10-26
+Forwarded: no
+Index: b/cnf/build.xml
+===================================================================
+--- a/cnf/build.xml
++++ b/cnf/build.xml
+@@ -49,7 +49,7 @@
+ 	-->
+ 	<target name="compile" depends="dependencies" if="project.sourcepath">
+ 		<mkdir dir="${project.output}" />
+-		<javac fork="yes" executable="${javac}" srcdir="${project.sourcepath}" destdir="${project.output}" classpath="${project.buildpath}" bootclasspath="${project.bootclasspath}" deprecation="true" listfiles="true" target="${javac.target}" source="${javac.source}" debug="${javac.debug}" includeAntRuntime="no" verbose="${verbose}" />
++		<javac fork="yes" executable="${javac}" srcdir="${project.sourcepath}" destdir="${project.output}" classpath="${project.buildpath}" bootclasspath="${project.bootclasspath}" deprecation="true" listfiles="true" target="${javac.target}" source="${javac.source}" debug="${javac.debug}" includeAntRuntime="no" verbose="${verbose}" excludes="${javac.excludes}" />
+ 		<!-- 
+ 		  The eclipse compiler copies resources but the Javac compiler does not
+ 		  If ${src} == ${bin} then this is not necessary, but unfortunately, now 
diff --git a/debian/patches/display_bsn_on_missing_bundle.diff b/debian/patches/display_bsn_on_missing_bundle.diff
new file mode 100644
index 0000000..f2b1716
--- /dev/null
+++ b/debian/patches/display_bsn_on_missing_bundle.diff
@@ -0,0 +1,29 @@
+Description: Add a print to System.err when some bundle
+ is missing (will improve diagnostic when some symlink is broken).
+Author: Damien Raude-Morvan <drazzib at debian.org>
+Last-Update: 2012-01-17
+--- a/biz.aQute.bndlib/src/aQute/bnd/build/Project.java
++++ b/biz.aQute.bndlib/src/aQute/bnd/build/Project.java
+@@ -977,8 +977,11 @@
+ 						File file = plugin.get(bsn, range, useStrategy, attrs);
+ 						// and the entry must exist
+ 						// if it does, return this as a result
+-						if (file != null)
++						if (file != null) {
+ 							return toContainer(bsn, range, attrs, file);
++						} else {
++                            System.err.println("Missing: " + bsn + " " + range);
++						}
+ 					}
+ 				}
+ 			}
+@@ -1002,6 +1005,9 @@
+ 					RepositoryPlugin repo = versions.get(provider);
+ 					String version = provider.toString();
+ 					File result = repo.get(bsn, version, Strategy.EXACT, attrs);
++					if (result == null) {
++                        System.err.println("Missing: " + bsn + " " + range);          
++					}
+ 					return toContainer(bsn, version, attrs, result);
+ 				} else
+ 					error("Unexpected, found versions %s but then not provider for startegy %s?",
diff --git a/debian/patches/find_swt_jar.diff b/debian/patches/find_swt_jar.diff
new file mode 100644
index 0000000..5a41f10
--- /dev/null
+++ b/debian/patches/find_swt_jar.diff
@@ -0,0 +1,21 @@
+From: Jakub Adam <jakub.adam at ktknet.cz>
+Date: Mon, 30 Apr 2012 19:50:31 +0200
+Subject: find_swt_jar
+
+---
+ biz.aQute.bnd/bnd.bnd |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/biz.aQute.bnd/bnd.bnd b/biz.aQute.bnd/bnd.bnd
+index b15cd90..b54ed5c 100644
+--- a/biz.aQute.bnd/bnd.bnd
++++ b/biz.aQute.bnd/bnd.bnd
+@@ -28,7 +28,7 @@ Bundle-License: 				http://www.opensource.org/licenses/apache2.0.php; \
+ 	org.eclipse.ui.editors,\
+ 	org.eclipse.ui.ide,\
+ 	org.eclipse.ui.workbench.texteditor,\
+-	org.eclipse.swt.carbon.macosx,\
++	org.eclipse.swt,\
+ 	org.eclipse.core.jobs,\
+ 	org.eclipse.equinox.common,\
+ 	org.eclipse.equinox.registry,\
diff --git a/debian/patches/fix-encoding.diff b/debian/patches/fix-encoding.diff
new file mode 100644
index 0000000..35d0f25
--- /dev/null
+++ b/debian/patches/fix-encoding.diff
@@ -0,0 +1,13 @@
+Description: Set the encoding of the source file to avoid compilation warnings/errors
+Author: Emmanuel Bourg <ebourg at apache.org>
+--- a/cnf/build.xml
++++ b/cnf/build.xml
+@@ -49,7 +49,7 @@
+ 	-->
+ 	<target name="compile" depends="dependencies" if="project.sourcepath">
+ 		<mkdir dir="${project.output}" />
+-		<javac fork="yes" executable="${javac}" srcdir="${project.sourcepath}" destdir="${project.output}" classpath="${project.buildpath}" bootclasspath="${project.bootclasspath}" deprecation="true" listfiles="true" target="${javac.target}" source="${javac.source}" debug="${javac.debug}" includeAntRuntime="no" verbose="${verbose}" excludes="${javac.excludes}" />
++		<javac fork="yes" executable="${javac}" srcdir="${project.sourcepath}" destdir="${project.output}" classpath="${project.buildpath}" bootclasspath="${project.bootclasspath}" deprecation="true" listfiles="true" target="${javac.target}" source="${javac.source}" debug="${javac.debug}" includeAntRuntime="no" verbose="${verbose}" excludes="${javac.excludes}" encoding="UTF-8"/>
+ 		<!-- 
+ 		  The eclipse compiler copies resources but the Javac compiler does not
+ 		  If ${src} == ${bin} then this is not necessary, but unfortunately, now 
diff --git a/debian/patches/java8-compatibility.diff b/debian/patches/java8-compatibility.diff
new file mode 100644
index 0000000..1430776
--- /dev/null
+++ b/debian/patches/java8-compatibility.diff
@@ -0,0 +1,74 @@
+Description: Fixes the compilation errors with Java 8
+Author: Emmanuel Bourg
+Forwarded: no
+--- a/biz.aQute.bndlib/src/aQute/bnd/signing/Signer.java
++++ b/biz.aQute.bndlib/src/aQute/bnd/signing/Signer.java
+@@ -7,7 +7,7 @@
+ import java.util.jar.*;
+ import java.util.regex.*;
+ 
+-import aQute.lib.base64.*;
++import aQute.lib.base64.Base64;
+ import aQute.lib.osgi.*;
+ 
+ /**
+--- a/biz.aQute.bndlib/src/aQute/lib/osgi/Jar.java
++++ b/biz.aQute.bndlib/src/aQute/lib/osgi/Jar.java
+@@ -9,7 +9,7 @@
+ import java.util.regex.*;
+ import java.util.zip.*;
+ 
+-import aQute.lib.base64.*;
++import aQute.lib.base64.Base64;
+ import aQute.libg.reporter.*;
+ 
+ public class Jar implements Closeable {
+--- a/biz.aQute.bndlib/src/aQute/lib/osgi/Analyzer.java
++++ b/biz.aQute.bndlib/src/aQute/lib/osgi/Analyzer.java
+@@ -29,7 +29,7 @@
+ 
+ import aQute.bnd.annotation.*;
+ import aQute.bnd.service.*;
+-import aQute.lib.base64.*;
++import aQute.lib.base64.Base64;
+ import aQute.lib.collections.*;
+ import aQute.lib.filter.*;
+ import aQute.lib.hex.*;
+--- a/aQute.libg/src/aQute/lib/collections/MultiMap.java
++++ b/aQute.libg/src/aQute/lib/collections/MultiMap.java
+@@ -24,6 +24,7 @@
+ 		return set.addAll(value);
+ 	}
+ 	
++/*
+ 	public boolean remove( K key, V value ) {
+ 		Set<V> set = get(key);
+ 		if ( set == null) {
+@@ -34,6 +35,7 @@
+ 			remove(key);
+ 		return result;
+ 	}
++*/
+ 	
+ 	public boolean removeAll( K key, Collection<V> value ) {
+ 		Set<V> set = get(key);
+--- a/biz.aQute.junit/bnd.bnd
++++ b/biz.aQute.junit/bnd.bnd
+@@ -7,7 +7,7 @@
+ Tester-Plugin: aQute.junit.plugin.ProjectTesterImpl
+ 
+ javac.source = 1.5
+-javac.target = jsr14
++javac.target = 1.5
+ Private-Package: aQute.junit.*,\
+ 	junit.framework
+ Export-Package: junit.framework; version=3.8
+--- a/biz.aQute.launcher/bnd.bnd
++++ b/biz.aQute.launcher/bnd.bnd
+@@ -11,4 +11,4 @@
+ 	
+ Bundle-Version: 1.0.0
+ javac.source = 1.5
+-javac.target = jsr14
+\ No newline at end of file
++javac.target = 1.5
diff --git a/debian/patches/no_ee_minimum.diff b/debian/patches/no_ee_minimum.diff
new file mode 100644
index 0000000..95220a0
--- /dev/null
+++ b/debian/patches/no_ee_minimum.diff
@@ -0,0 +1,50 @@
+Description: Don't request ee.minimum since we have a full
+ blown JVM.
+Author: Damien Raude-Morvan <drazzib at debian.org>
+Last-Update: 2011-10-26
+Forwarded: no
+Index: b/biz.aQute.bndlib/bnd.bnd
+===================================================================
+--- a/biz.aQute.bndlib/bnd.bnd
++++ b/biz.aQute.bndlib/bnd.bnd
+@@ -34,7 +34,6 @@
+ 	osgi.cmpn;version=4.3,\
+ 	aQute.libg;version=project,\
+ 	osgi.core;version=4.1, \
+-	ee.j2se; version=1.5, \
+ 	org.osgi.impl.bundle.bindex
+ 
+ Bundle-Version: 1.49.0
+Index: b/biz.aQute.junit/bnd.bnd
+===================================================================
+--- a/biz.aQute.junit/bnd.bnd
++++ b/biz.aQute.junit/bnd.bnd
+@@ -1,5 +1,4 @@
+ -buildpath: com.springsource.junit,\
+-	ee.minimum;version=1.2.1,\
+ 	osgi.cmpn;version=4.2.1,\
+ 	biz.aQute.bndlib;version=project,\
+ 	aQute.libg;version=project,\
+Index: b/demo/bnd.bnd
+===================================================================
+--- a/demo/bnd.bnd
++++ b/demo/bnd.bnd
+@@ -2,9 +2,7 @@
+ Bundle-Activator: com.example.demo.Activator
+ Bundle-SymbolicName: demo
+ 
+--buildpath: osgi.core,\
+-	ee.minimum;version=1.2.1
+-	
++-buildpath: osgi.core
+ 	
+ -testpath: \
+ 	biz.aQute.junit; version=snapshot
+@@ -25,7 +23,6 @@
+ 	*
+ 
+ -buildpath: osgi.core,\
+-	ee.minimum;version=1.2.1,\
+ 	junit.osgi
+ 	
+ javac.target=1.4
diff --git a/debian/patches/no_felix.diff b/debian/patches/no_felix.diff
new file mode 100644
index 0000000..7dca61d
--- /dev/null
+++ b/debian/patches/no_felix.diff
@@ -0,0 +1,20 @@
+Description: Don't depends on felix for runtime
+ to break dependencies-cycles.
+Author: Damien Raude-Morvan <drazzib at debian.org>
+Last-Update: 2011-11-09
+Forwarded: no
+
+Index: b/demo/bnd.bnd
+===================================================================
+--- a/demo/bnd.bnd
++++ b/demo/bnd.bnd
+@@ -11,9 +11,6 @@
+ 	org.eclipse.osgi, \
+ 	biz.aQute.launcher; version=snapshot
+  	
+--runbundles: org.apache.felix.scr,\
+-	org.apache.felix.configadmin
+-	
+ 
+ Bundle-Activator: test.TestActivator
+ Private-Package: test
diff --git a/debian/patches/no_git_during_build.diff b/debian/patches/no_git_during_build.diff
new file mode 100644
index 0000000..1efe381
--- /dev/null
+++ b/debian/patches/no_git_during_build.diff
@@ -0,0 +1,19 @@
+Description: Don't embed Git SHASUM in build MANIFEST.MF
+ since our tarball doesn't contains git metadata.
+Author: Damien Raude-Morvan <drazzib at debian.org>
+Last-Update: 2011-11-09
+Forwarded: no
+
+Index: b/cnf/build.bnd
+===================================================================
+--- a/cnf/build.bnd
++++ b/cnf/build.bnd
+@@ -1,6 +1,6 @@
+ # We use git
+-Git-Descriptor: ${system;git describe --dirty --always}
+-Git-SHA: ${system;git rev-list -1 HEAD}
++#Git-Descriptor: ${system;git describe --dirty --always}
++#Git-SHA: ${system;git rev-list -1 HEAD}
+ 
+ Bundle-SCM				= git://github.com/bndtools/bnd.git
+ 
diff --git a/debian/patches/osgi43_fixes.diff b/debian/patches/osgi43_fixes.diff
new file mode 100644
index 0000000..ac1320a
--- /dev/null
+++ b/debian/patches/osgi43_fixes.diff
@@ -0,0 +1,88 @@
+Description: Implements some missing methods for OSGi R4.3
+Author: Damien Raude-Morvan <drazzib at debian.org>
+Last-Update: 2011-11-09
+Forwarded: no
+
+Index: b/biz.aQute.launcher/src/aQute/launcher/Launcher.java
+===================================================================
+--- a/biz.aQute.launcher/src/aQute/launcher/Launcher.java
++++ b/biz.aQute.launcher/src/aQute/launcher/Launcher.java
+@@ -458,7 +458,7 @@
+ 			Class<?> clazz = loader.loadClass(implementation);
+ 			FrameworkFactory factory = (FrameworkFactory) clazz.newInstance();
+ 			trace("Framework factory %s", factory);
+-			systemBundle = factory.newFramework(p);
++			systemBundle = factory.newFramework((java.util.Map)p);
+ 			trace("framework instance %s", systemBundle);
+ 		} else {
+ 			trace("using embedded mini framework because we were told not to use META-INF/services");
+Index: b/biz.aQute.launcher/src/aQute/launcher/minifw/Context.java
+===================================================================
+--- a/biz.aQute.launcher/src/aQute/launcher/minifw/Context.java
++++ b/biz.aQute.launcher/src/aQute/launcher/minifw/Context.java
+@@ -331,4 +331,30 @@
+     public String toString() {
+         return id + " " + location;
+     }
++
++    public <A> A adapt(java.lang.Class<A> type) {
++        return null;
++    }
++
++    public int compareTo(Bundle bundle) {
++        return 0;
++    }
++
++    public Bundle getBundle(java.lang.String location) {
++        return null;
++    }
++    
++    public <S> ServiceReference<S> getServiceReference(java.lang.Class<S> clazz) {
++        return null;
++    }
++
++    public <S> java.util.Collection<ServiceReference<S>> getServiceReferences(java.lang.Class<S> clazz, String filter)
++            throws InvalidSyntaxException {
++        return null;
++    }
++    
++    public <S> ServiceRegistration<S> registerService(java.lang.Class<S> clazz, S service,
++            java.util.Dictionary<java.lang.String,?> properties) {
++        throw new UnsupportedOperationException();
++    }
+ }
+Index: b/biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java
+===================================================================
+--- a/biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java
++++ b/biz.aQute.launcher/src/aQute/launcher/minifw/MiniFramework.java
+@@ -290,4 +290,30 @@
+ 			throw new ClassNotFoundException(name);
+ 		}
+ 	}
++	
++    public <A> A adapt(java.lang.Class<A> type) {
++        return null;
++    }
++
++    public int compareTo(Bundle bundle) {
++        return 0;
++    }
++
++    public Bundle getBundle(java.lang.String location) {
++        return null;
++    }
++    public <S> ServiceReference<S> getServiceReference(java.lang.Class<S> clazz) {
++        return null;
++    }
++
++    public <S> java.util.Collection<ServiceReference<S>> getServiceReferences(java.lang.Class<S> clazz, String filter)
++            throws InvalidSyntaxException {
++        return null;
++    }
++    
++    public <S> ServiceRegistration<S> registerService(java.lang.Class<S> clazz, S service,
++            java.util.Dictionary<java.lang.String,?> properties) {
++        throw new UnsupportedOperationException();
++    }
++
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bb4cf9c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,11 @@
+build_excludes.diff
+no_ee_minimum.diff
+no_felix.diff
+no_git_during_build.diff
+osgi43_fixes.diff
+display_bsn_on_missing_bundle.diff
+find_swt_jar.diff
+fix-encoding.diff
+ant-1.9-compatibility.diff
+java8-compatibility.diff
+OSGi-6-methods.patch
diff --git a/debian/pom-annotation.xml b/debian/pom-annotation.xml
new file mode 100644
index 0000000..5a41b93
--- /dev/null
+++ b/debian/pom-annotation.xml
@@ -0,0 +1,35 @@
+<project xmlns='http://maven.apache.org/POM/4.0.0'
+xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
+xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>biz.aQute</groupId>
+  <artifactId>annotation</artifactId>
+  <version>1.50.0</version>
+  <name>bnd Annotations Library</name>
+  <description>The annotations for bnd.</description>
+  <url>http://www.aQute.biz/Code/Bnd</url>
+  <scm>
+    <url>git://github.com/bndtools/bnd.git</url>
+    <connection>scm:git:git://github.com/bndtools/bnd.git</connection>
+  </scm>
+  <organization>
+    <name>aQute SARL</name>
+    <url>http://www.aQute.biz</url>
+  </organization>
+  <developers>
+    <developer>
+      <id>Peter.Kriens at aQute.biz</id>
+      <name>Peter.Kriens</name>
+      <email>Peter.Kriens at aQute.biz</email>
+      <organization>aQute</organization>
+    </developer>
+  </developers>
+  <licenses>
+    <license>
+      <name>Apache Software License 2.0</name>
+      <url>http://www.opensource.org/licenses/apache2.0.php</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+</project>
diff --git a/debian/pom-bnd.xml b/debian/pom-bnd.xml
new file mode 100644
index 0000000..89b03c1
--- /dev/null
+++ b/debian/pom-bnd.xml
@@ -0,0 +1,34 @@
+<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>biz.aQute</groupId>
+  <artifactId>bnd</artifactId>
+  <version>1.50.0</version>
+  <packaging>jar</packaging>
+  <description>A utility and plugin to wrap, build, or print bundles</description>
+  <name>aQute Bundle Tool</name>
+  <url>http://www.aQute.biz/Code/Bnd</url>
+  <scm>
+    <url>https://github.com/bndtools/bnd</url>
+    <connection>scm:git:git://github.com/bndtools/bnd.git</connection>
+  </scm>
+  <organization>
+    <name>aQute SARL</name>
+    <url>http://www.aQute.biz</url>
+  </organization>
+  <developers>
+    <developer>
+      <name>Peter Kriens</name>
+      <email>peter.kriens at aqute.biz</email>
+      <roles>
+        <role>Primary Developer</role>
+      </roles>
+    </developer>
+  </developers>
+  <licenses>
+    <license>
+    <name>All files contained in this JAR are licensed under the Apache 2.0 license, unless noted differently in their source (see swing2swt).</name>
+    <url>http://www.opensource.org/licenses/apache2.0.php</url>
+    <distribution>repo</distribution>
+    </license>
+  </licenses>
+</project>
diff --git a/debian/pom-bndlib.xml b/debian/pom-bndlib.xml
new file mode 100644
index 0000000..7ab4513
--- /dev/null
+++ b/debian/pom-bndlib.xml
@@ -0,0 +1,64 @@
+
+<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>biz.aQute</groupId>
+  <artifactId>bndlib</artifactId>
+  <version>1.50.0</version>
+  <description>
+    A Swiss Army Knife for OSGi
+  </description>
+  <name>
+    bnd - Bundle Tool
+  </name>
+  <url>
+    http://www.aQute.biz/Code/Bnd
+  </url>
+  <scm>
+    <url>
+      git://github.com/bndtools/bnd.git
+    </url>
+    <connection>
+      git://github.com/bndtools/bnd.git
+    </connection>
+    <developerConnection>
+      git://github.com/bndtools/bnd.git
+    </developerConnection>
+  </scm>
+  <organization>
+    <name>
+      aQute SARL
+    </name>
+    <url>
+      http://www.aQute.biz
+    </url>
+  </organization>
+  <developers>
+    <developer>
+      <id>
+        Peter.Kriens at aQute.biz
+      </id>
+      <name>
+        Peter.Kriens
+      </name>
+      <email>
+        Peter.Kriens at aQute.biz
+      </email>
+      <organization>
+        aQute
+      </organization>
+    </developer>
+  </developers>
+  <licenses>
+    <license>
+      <name>
+        Apache Software License 2.0
+      </name>
+      <url>
+        http://www.opensource.org/licenses/apache2.0.php
+      </url>
+      <distribution>
+        repo
+      </distribution>
+    </license>
+  </licenses>
+</project>
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..edde4aa
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,133 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+MAVEN_REPO           := http://repo1.maven.org/maven2/biz/aQute/
+MAVEN_VERSION        := 1.50.0
+
+PACKAGE              := $(DEB_SOURCE_PACKAGE)
+VERSION              := $(DEB_UPSTREAM_VERSION)
+JAVA_HOME            := /usr/lib/jvm/default-java
+DEB_JARS             := ant-nodeps ant junit
+DEB_ANT_BUILD_TARGET := build
+
+### Bootstrap build
+pre-build:: debian/stamp-bootstrap
+bootstrap: debian/stamp-bootstrap
+debian/stamp-bootstrap: DEB_BUILDDIR=$(CURDIR)
+debian/stamp-bootstrap: DEB_ANT_BUILDFILE=$(CURDIR)/debian/bootstrap.xml
+debian/stamp-bootstrap:
+	$(DEB_ANT_INVOKE)
+	mkdir -p cnf/repo/biz.aQute.bnd/ \
+		cnf/repo/com.springsource.junit/ \
+		cnf/repo/org.eclipse.osgi \
+		cnf/repo/osgi.core \
+		cnf/repo/osgi.cmpn \
+		cnf/repo/ee.minimum \
+		cnf/repo/junit.osgi \
+		cnf/repo/org.apache.tools.ant \
+		cnf/repo/org.eclipse.core.runtime \
+		cnf/repo/org.eclipse.core.resources \
+		cnf/repo/org.eclipse.core.commands \
+		cnf/repo/org.eclipse.jdt.core \
+		cnf/repo/org.eclipse.jdt.ui \
+		cnf/repo/org.eclipse.jdt.debug.ui \
+		cnf/repo/org.eclipse.jdt.junit \
+		cnf/repo/org.eclipse.jdt.launching \
+		cnf/repo/org.eclipse.jface \
+		cnf/repo/org.eclipse.jface.text \
+		cnf/repo/org.eclipse.swt \
+		cnf/repo/org.eclipse.debug.ui \
+		cnf/repo/org.eclipse.debug.core \
+		cnf/repo/org.eclipse.equinox.common \
+		cnf/repo/org.eclipse.equinox.registry \
+		cnf/repo/org.eclipse.ui \
+		cnf/repo/org.eclipse.ui.editors \
+		cnf/repo/org.eclipse.ui.workbench \
+		cnf/repo/org.eclipse.ui.workbench.texteditor \
+		cnf/repo/org.eclipse.ui.ide \
+		cnf/repo/org.eclipse.core.jobs \
+		cnf/repo/org.eclipse.text \
+		cnf/repo/org.osgi.impl.bundle.bindex
+	ln -s $(CURDIR)/bootstrap/bnd.jar cnf/repo/biz.aQute.bnd/biz.aQute.bnd-latest.jar
+	ln -s /usr/share/java/junit.jar cnf/repo/com.springsource.junit/com.springsource.junit-3.8.2.jar
+	ln -s /usr/share/java/junit.jar cnf/repo/junit.osgi/junit.osgi-3.8.2.jar
+	ln -s /usr/share/java/osgi.core.jar cnf/repo/org.eclipse.osgi/org.eclipse.osgi-3.5.0.jar
+	ln -s /usr/share/java/osgi.core.jar cnf/repo/osgi.core/osgi.core-4.2.1.jar
+	ln -s /usr/share/java/osgi.compendium.jar cnf/repo/osgi.cmpn/osgi.cmpn-4.3.0.jar
+#	ln -s /usr/share/java/ee.foundation.jar cnf/repo/ee.minimum/ee.minimum-1.2.1.jar
+	ln -s /usr/share/java/ant.jar cnf/repo/org.apache.tools.ant/org.apache.tools.ant-1.7.1.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.core.runtime_*.jar cnf/repo/org.eclipse.core.runtime/org.eclipse.core.runtime-3.3.100.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.core.resources_*.jar cnf/repo/org.eclipse.core.resources/org.eclipse.core.resources-3.3.1.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.core.commands_*.jar cnf/repo/org.eclipse.core.commands/org.eclipse.core.commands-3.3.3.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.jdt.core_*.jar cnf/repo/org.eclipse.jdt.core/org.eclipse.jdt.core-3.3.3.jar
+	ln -s /usr/share/eclipse/dropins/jdt/plugins/org.eclipse.jdt.ui_*.jar cnf/repo/org.eclipse.jdt.ui/org.eclipse.jdt.ui-3.3.3.jar
+	ln -s /usr/share/eclipse/dropins/jdt/plugins/org.eclipse.jdt.debug.ui_*.jar cnf/repo/org.eclipse.jdt.debug.ui/org.eclipse.jdt.debug.ui-3.2.102.jar
+	ln -s /usr/share/eclipse/dropins/jdt/plugins/org.eclipse.jdt.junit_*.jar cnf/repo/org.eclipse.jdt.junit/org.eclipse.jdt.junit-3.3.3.jar
+	ln -s /usr/share/eclipse/dropins/jdt/plugins/org.eclipse.jdt.launching_*.jar cnf/repo/org.eclipse.jdt.launching/org.eclipse.jdt.launching-3.3.3.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.jface_*.jar cnf/repo/org.eclipse.jface/org.eclipse.jface-3.3.2.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.jface.text_*.jar cnf/repo/org.eclipse.jface.text/org.eclipse.jface.text-3.3.2.jar
+	ln -s /usr/lib/java/swt-gtk-*.jar cnf/repo/org.eclipse.swt/org.eclipse.swt-3.3.2.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.debug.ui_*.jar cnf/repo/org.eclipse.debug.ui/org.eclipse.debug.ui-3.3.2.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.debug.core_*.jar cnf/repo/org.eclipse.debug.core/org.eclipse.debug.core-3.3.2.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.equinox.common_*.jar cnf/repo/org.eclipse.equinox.common/org.eclipse.equinox.common-3.3.0.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.equinox.registry_*.jar cnf/repo/org.eclipse.equinox.registry/org.eclipse.equinox.registry-3.3.0.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.ui_*.jar cnf/repo/org.eclipse.ui/org.eclipse.ui-3.3.2.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.ui.editors_*.jar cnf/repo/org.eclipse.ui.editors/org.eclipse.ui.editors-3.3.2.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.ui.workbench_*.jar cnf/repo/org.eclipse.ui.workbench/org.eclipse.ui.workbench-3.3.2.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.ui.workbench.texteditor_*.jar cnf/repo/org.eclipse.ui.workbench.texteditor/org.eclipse.ui.workbench.texteditor-3.3.2.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.ui.ide_*.jar cnf/repo/org.eclipse.ui.ide/org.eclipse.ui.ide-3.3.2.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.core.jobs_*.jar cnf/repo/org.eclipse.core.jobs/org.eclipse.core.jobs-3.3.1.jar
+	ln -s /usr/lib/eclipse/plugins/org.eclipse.text_*.jar cnf/repo/org.eclipse.text/org.eclipse.text-3.5.100.jar
+	ln -s /usr/share/java/bindex.jar cnf/repo/org.osgi.impl.bundle.bindex/org.osgi.impl.bundle.bindex-2.2.0.jar
+	touch $@
+clean-bootstrap: DEB_BUILDDIR=$(CURDIR)
+clean-bootstrap: DEB_ANT_BUILDFILE=$(CURDIR)/debian/bootstrap.xml
+clean-bootstrap:
+	$(DEB_ANT_INVOKE) clean
+	rm -rf cnf/repo/biz.aQute.bnd/
+	rm -f debian/stamp-bootstrap
+
+### Standard build
+install/$(PACKAGE)::
+	pod2man -c 'BND for Debian GNU/Linux' \
+	  -r $(PACKAGE)-$(VERSION) \
+	  debian/bnd-1.5.pod > debian/bnd-1.5.1
+
+binary-post-install/$(PACKAGE)::
+	mkdir install/
+	cp biz.aQute.launcher/tmp/biz.aQute.launcher.jar install/bnd.launcher.jar
+	cp biz.aQute.junit/tmp/biz.aQute.junit.jar install/bnd.junit.jar
+	mh_installpoms -p$(PACKAGE) -e$(VERSION)
+	mh_installjar -p$(PACKAGE) -e$(VERSION) -l debian/pom-bndlib.xml     --usj-name=bndlib         biz.aQute.bndlib/tmp/biz.aQute.bndlib.jar
+	mh_installjar -p$(PACKAGE) -e$(VERSION) -l debian/pom-bnd.xml        --usj-name=bnd            biz.aQute.bnd/tmp/biz.aQute.bnd.jar
+	mh_installjar -p$(PACKAGE) -e$(VERSION) -l debian/pom-annotation.xml --usj-name=bnd.annotation biz.aQute.bnd/tmp/biz.aQute.bnd.annotation.jar
+	jh_installlibs -p$(PACKAGE) install/bnd.launcher.jar
+	jh_installlibs -p$(PACKAGE) install/bnd.junit.jar
+	dh_install -p$(PACKAGE) debian/bnd.sh /usr/bin/
+	mv $(DEB_DESTDIR)/usr/bin/bnd.sh $(DEB_DESTDIR)/usr/bin/bnd-1.5
+	mv debian/bnd1/usr/share/java/bnd.launcher.jar debian/bnd1/usr/share/java/bnd1.launcher.jar
+	mv debian/bnd1/usr/share/java/bnd.junit.jar debian/bnd1/usr/share/java/bnd1.junit.jar
+	mv debian/bnd1/usr/share/java/bndlib.jar debian/bnd1/usr/share/java/bndlib1.jar
+	mv debian/bnd1/usr/share/java/bnd.jar debian/bnd1/usr/share/java/bnd1.jar
+	mv debian/bnd1/usr/share/java/bnd.annotation.jar debian/bnd1/usr/share/java/bnd1.annotation.jar
+
+clean::
+	-rm -f debian/stamp-bootstrap
+	-find -type l -name '*.jar' -delete
+	jh_clean
+	mh_clean
+	-rm -rf install/
+	-rm -f debian/bnd1.1
+	-rm -Rf bootstrap
+
+get-orig-source:
+	debian/orig-tar.sh "" $(VERSION)
+
+get-orig-pom:
+	wget --user-agent="" -O debian/pom-bnd.xml $(MAVEN_REPO)/bnd/$(MAVEN_VERSION)/bnd-$(MAVEN_VERSION).pom
+	wget --user-agent="" -O debian/pom-bndlib.xml $(MAVEN_REPO)/bndlib/$(MAVEN_VERSION)/bndlib-$(MAVEN_VERSION).pom
+	wget --user-agent="" -O debian/pom-annotation.xml $(MAVEN_REPO)/annotation/$(MAVEN_VERSION)/annotation-$(MAVEN_VERSION).pom
+
+.PHONY: bootstrap clean-bootstrap
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..249665a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/bndtools/bnd/releases .*/([\d\.]+)(?:.REL)?.tar.gz debian debian/orig-tar.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/bnd1.git



More information about the pkg-java-commits mailing list