[apache-directory-jdbm] 01/02: Initial packaging
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Thu Jun 25 14:50:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository apache-directory-jdbm.
commit 9ecb68d556946881cf0b4762bfce671550fba70a
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Thu Jun 25 16:44:35 2015 +0200
Initial packaging
---
debian/README.source | 9 ++++
debian/changelog | 5 ++
debian/compat | 1 +
debian/control | 29 ++++++++++++
debian/copyright | 79 +++++++++++++++++++++++++++++++
debian/libapache-directory-jdbm-java.poms | 30 ++++++++++++
debian/maven.ignoreRules | 9 ++++
debian/maven.properties | 5 ++
debian/maven.publishedRules | 6 +++
debian/maven.rules | 6 +++
debian/orig-tar.sh | 20 ++++++++
debian/rules | 12 +++++
debian/source/format | 1 +
debian/watch | 4 ++
14 files changed, 216 insertions(+)
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..193f1e8
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about apache-directory-jdbm
+---------------------------------------
+
+This package was debianized using the mh_make command
+from the maven-debian-helper package.
+
+The build system uses Maven but prevents it from downloading
+anything from the Internet, making the build compliant with
+the Debian policy.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7bdc6f7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+apache-directory-jdbm (2.0.0~M2-1) unstable; urgency=medium
+
+ * Initial release (Closes: #789948)
+
+ -- Emmanuel Bourg <ebourg at apache.org> Thu, 25 Jun 2015 15:38:02 +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..cb1b1cc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: apache-directory-jdbm
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Emmanuel Bourg <ebourg at apache.org>
+Build-Depends: cdbs,
+ debhelper (>= 9),
+ default-jdk,
+ libmaven-bundle-plugin-java,
+ libslf4j-java,
+ maven-debian-helper (>= 1.5)
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/apache-directory-jdbm.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/apache-directory-jdbm.git
+Homepage: http://directory.apache.org/jdbm
+
+Package: libapache-directory-jdbm-java
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: ApacheDS JDBM Implementation
+ JDBM is a transactional persistence engine for Java. It aims to be
+ for Java what GDBM is for other languages (C/C++, Python, Perl, etc.):
+ a fast, simple persistence engine. You can use it to store a mix
+ of objects and BLOBs, and all updates are done in a transactionally
+ safe manner. JDBM also provides scalable data structures, such as HTree
+ and B+Tree, to support persistence of large object collections.
+ .
+ This package contains the Apache fork of JDBM used by Apache Directory Server.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..199e438
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,79 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ApacheDS JDBM
+Source: http://svn.apache.org/repos/asf/directory/jdbm
+
+Files: *
+Copyright: 2000-2001, Alex Boisvert
+ 2000, Cees de Groot
+License: JDBM
+
+Files: jdbm1/src/main/java/jdbm/I18n.java
+ jdbm1/src/main/resources/*
+ jdbm1/src/site/*
+ jdbm1/src/test/java/jdbm/recman/LocationTest.java
+ jdbm2/src/main/java/jdbm/ActionRecordManager.java
+ jdbm2/src/main/java/jdbm/I18n.java
+ jdbm2/src/main/java/jdbm/helper/ActionContext.java
+ jdbm2/src/main/java/jdbm/helper/ActionVersioning.java
+ jdbm2/src/main/java/jdbm/helper/EntryIO.java
+ jdbm2/src/main/java/jdbm/helper/ExplicitList.java
+ jdbm2/src/main/java/jdbm/helper/LRUCache.java
+ jdbm2/src/main/java/jdbm/recman/SnapshotRecordManager.java
+ jdbm2/src/main/resources/*
+ jdbm2/src/site/*
+ jdbm2/src/test/java/jdbm/btree/TestBTreeBrowser.java
+ jdbm2/src/test/java/jdbm/btree/TestSnapshotBTree.java
+ jdbm2/src/test/java/jdbm/helper/*
+ jdbm2/src/test/java/jdbm/recman/*
+ jdbm2/src/test/resources/*
+Copyright: 2012-2013, The Apache Software Foundation
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2015, Emmanuel Bourg <ebourg at apache.org>
+License: Apache-2.0
+
+License: Apache-2.0
+ On Debian systems, the full text of the Apache-2.0 license
+ can be found in the file '/usr/share/common-licenses/Apache-2.0'
+
+License: JDBM
+ JDBM LICENSE v1.00
+ .
+ Redistribution and use of this software and associated documentation
+ ("Software"), with or without modification, are permitted provided
+ that the following conditions are met:
+ .
+ 1. Redistributions of source code must retain copyright
+ statements and notices. Redistributions must also contain a
+ copy of this document.
+ .
+ 2. 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.
+ .
+ 3. The name "JDBM" must not be used to endorse or promote
+ products derived from this Software without prior written
+ permission of Cees de Groot. For written permission,
+ please contact cg at cdegroot.com.
+ .
+ 4. Products derived from this Software may not be called "JDBM"
+ nor may "JDBM" appear in their names without prior written
+ permission of Cees de Groot.
+ .
+ 5. Due credit should be given to the JDBM Project
+ (http://jdbm.sourceforge.net/).
+ .
+ THIS SOFTWARE IS PROVIDED BY THE JDBM PROJECT AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESSED 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
+ CEES DE GROOT OR ANY CONTRIBUTORS 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.
diff --git a/debian/libapache-directory-jdbm-java.poms b/debian/libapache-directory-jdbm-java.poms
new file mode 100644
index 0000000..34d29cd
--- /dev/null
+++ b/debian/libapache-directory-jdbm-java.poms
@@ -0,0 +1,30 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+# --ignore: ignore this POM and its artifact if any
+# --ignore-pom: don't install the POM. To use on POM files that are created
+# temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+# --no-parent: remove the <parent> tag from the POM
+# --package=<package>: an alternative package to use when installing this POM
+# and its artifact
+# --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+# of the version for the package.
+# --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+# during a clean operation with mh_cleanpom or mh_installpom
+# --artifact=<path>: path to the build artifact associated with this POM,
+# it will be installed when using the command mh_install. [mh_install]
+# --java-lib: install the jar into /usr/share/java to comply with Debian
+# packaging guidelines
+# --usj-name=<name>: name to use when installing the library in /usr/share/java
+# --usj-version=<version>: version to use when installing the library in /usr/share/java
+# --no-usj-versionless: don't install the versionless link in /usr/share/java
+# --dest-jar=<path>: the destination for the real jar.
+# It will be installed with mh_install. [mh_install]
+# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+# --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+# Empty by default. [mh_install]
+#
+pom.xml --no-parent
+jdbm1/pom.xml
+jdbm2/pom.xml
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..38256df
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,9 @@
+
+findbugs annotations * * * *
+org.apache.directory.buildtools checkstyle-configuration * * * *
+org.apache.directory.junit junit-addons * * * *
+org.apache.maven.plugins maven-checkstyle-plugin * * * *
+org.apache.maven.plugins maven-site-plugin * * * *
+org.apache.maven.wagon wagon-ssh-external * * * *
+org.apache.maven.wagon wagon-ssh * * * *
+org.apache.rat apache-rat-plugin * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..e593715
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,5 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
+maven.test.skip=true
diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..416487c
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1,6 @@
+
+org.apache.directory.jdbm apacheds-jdbm-parent pom s/.*/debian/ * *
+org.apache.directory.jdbm apacheds-jdbm1 bundle s/.*/debian/ * *
+org.apache.directory.jdbm apacheds-jdbm1 s/jar/bundle/ s/.*/debian/ * *
+org.apache.directory.jdbm apacheds-jdbm2 bundle s/.*/debian/ * *
+org.apache.directory.jdbm apacheds-jdbm2 s/jar/bundle/ s/.*/debian/ * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..2d23fd9
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,6 @@
+
+junit junit jar s/4\..*/4.x/ * *
+org.apache.directory.jdbm apacheds-jdbm-parent pom s/.*/debian/ * *
+org.apache.directory.jdbm apacheds-jdbm1 bundle s/.*/debian/ * *
+org.apache.directory.jdbm apacheds-jdbm2 bundle s/.*/debian/ * *
+log4j log4j * s/1\.2\..*/1.2.x/ * *
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..75b3d3c
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+#
+# Removes unwanted content from the upstream sources.
+# Called by uscan with '--upstream-version' <version> <file>
+#
+
+VERSION=$2
+TAR=../apache-directory-jdbm_$VERSION.orig.tar.xz
+DIR=apache-directory-jdbm-$VERSION
+TAG=$(echo "$VERSION" | sed -re's/~(alpha|beta|rc|M)/-\1/')
+
+svn export http://svn.apache.org/repos/asf/directory/jdbm/tags/${TAG}/ $DIR
+XZ_OPT=--best tar -c -J -f $TAR --exclude '*.jar' --exclude '*.class' $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
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..13e00dc
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/maven.mk
+
+JAVA_HOME := /usr/lib/jvm/default-java
+
+clean::
+ find . -name MANIFEST.MF | xargs -r rm
+
+get-orig-source:
+ uscan --download-current-version --force-download --no-symlink
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..14a3d8c
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts="uversionmangle=s/-(alpha|beta|rc|M)(-)?/~$1$2/" \
+ http://svn.apache.org/repos/asf/directory/jdbm/tags/ \
+ (\d.*)/ debian debian/orig-tar.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/apache-directory-jdbm.git
More information about the pkg-java-commits
mailing list