[libvt-ldap-java] 02/02: Initial git commit of debianisation

Matthew Vernon matthew at moszumanska.debian.org
Tue Jun 17 15:58:07 UTC 2014


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

matthew pushed a commit to annotated tag debian/3.3.7-2
in repository libvt-ldap-java.

commit 0241b445c719f77006376f50eed386c1ad1734b9
Author: Matthew Vernon <mcv21 at cam.ac.uk>
Date:   Tue Jun 17 16:53:45 2014 +0100

    Initial git commit of debianisation
---
 debian/README.source                    | 12 ++++++++++++
 debian/changelog                        | 14 ++++++++++++++
 debian/compat                           |  1 +
 debian/control                          | 33 +++++++++++++++++++++++++++++++++
 debian/copyright                        | 26 ++++++++++++++++++++++++++
 debian/libvt-ldap-java-doc.doc-base.api | 10 ++++++++++
 debian/libvt-ldap-java-doc.install      |  2 ++
 debian/libvt-ldap-java.poms             | 28 ++++++++++++++++++++++++++++
 debian/maven.cleanIgnoreRules           |  1 +
 debian/maven.ignoreRules                | 13 +++++++++++++
 debian/maven.properties                 |  5 +++++
 debian/maven.publishedRules             |  2 ++
 debian/maven.rules                      |  6 ++++++
 debian/orig-tar.sh                      | 20 ++++++++++++++++++++
 debian/rules                            |  9 +++++++++
 debian/source/format                    |  1 +
 debian/source/options                   |  1 +
 debian/source/patch-header              | 10 ++++++++++
 debian/watch                            |  4 ++++
 19 files changed, 198 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..e57441c
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,12 @@
+Information about libvt-ldap-java
+---------------------------------
+
+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.
+
+This package uses a version control system as described in
+http://wiki.debian.org/Java/JavaVcs and the pages linked from there.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4810251
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,14 @@
+libvt-ldap-java (3.3.7-2) unstable; urgency=low
+
+  * Remove SVN cruft
+  * Put into git (and add VCS headers to debian/control)
+  * Upload to unstable (closes: #741545)
+  
+ -- Matthew Vernon <matthew at debian.org>  Tue, 17 Jun 2014 16:53:23 +0100
+
+libvt-ldap-java (3.3.7-1) experimental; urgency=low
+
+  * Initial release (closes: #741545)
+  * This is (indirectly) a dependency of the Shibboleth IdP
+
+ -- Matthew Vernon <matthew at debian.org>  Thu, 13 Mar 2014 17:18:37 +0000
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..564b12f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,33 @@
+Source: libvt-ldap-java
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Matthew Vernon <matthew at debian.org>
+Build-Depends: debhelper (>= 9), cdbs, default-jdk, maven-debian-helper (>= 1.5)
+Build-Depends-Indep: libcommons-cli-java, libcommons-codec-java, libcommons-logging-java, libdom4j-java,  
+ libservlet2.5-java, default-jdk-doc, libcommons-codec-java-doc, libcommons-logging-java-doc,  
+ libdom4j-java-doc, libservlet2.5-java-doc, libmaven-javadoc-plugin-java 
+Standards-Version: 3.9.5
+Vcs-Git: git://anonscm.debian.org/pkg-java/libvt-ldap-java.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/libvt-ldap-java.git
+Homepage: http://code.google.com/p/vt-middleware/wiki/vtldap
+
+Package: libvt-ldap-java
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Suggests: ${maven:OptionalDepends}, libvt-ldap-java-doc
+Description: Virginia Tech LDAP Libraries
+ VT Ldap is a Java library for interfacing with version 3 LDAPs. It
+ aims to be easy and flexible to configure, and easy to use.
+
+Package: libvt-ldap-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${maven:DocDepends}
+Recommends: ${maven:DocOptionalDepends}
+Suggests: libvt-ldap-java
+Description: Documentation for VT LDAP Libraries
+ VT Ldap is a Java library for interfacing with version 3 LDAPs. It
+ aims to be easy and flexible to configure, and easy to use.
+ .
+ This package contains the API documentation of libvt-ldap-java.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f624aee
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: VT LDAP Libraries
+Upstream-Contact: Middleware Services <middleware at vt.edu>
+Source: http://code.google.com/p/vt-middleware/wiki/vtldap
+
+Files: *
+Copyright: 2003-2010 Virginia Tech.
+License: Apache-2.0 or LGPL-3
+
+Files: debian/*
+Copyright: 2014, Matthew Vernon <matthew at debian.org>
+License: Permissive
+ Copying and distribution of this package, with or without
+ modification, are permitted in any medium without royalty
+ provided the copyright notice and this notice are
+ preserved.
+
+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: LGPL-3
+ On Debian systems, the full text of the LGPL-3 license
+ can be found in the file '/usr/share/common-licenses/LGPL-3'
+
+
diff --git a/debian/libvt-ldap-java-doc.doc-base.api b/debian/libvt-ldap-java-doc.doc-base.api
new file mode 100644
index 0000000..fb2bd6c
--- /dev/null
+++ b/debian/libvt-ldap-java-doc.doc-base.api
@@ -0,0 +1,10 @@
+Document: libvt-ldap-java
+Title: API Javadoc for VT LDAP Libraries
+Author: VT LDAP Libraries developers
+Abstract: This is the API Javadoc provided for the
+ libvt-ldap-java library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libvt-ldap-java/api/index.html
+Files: /usr/share/doc/libvt-ldap-java/api/*
diff --git a/debian/libvt-ldap-java-doc.install b/debian/libvt-ldap-java-doc.install
new file mode 100644
index 0000000..6c108d5
--- /dev/null
+++ b/debian/libvt-ldap-java-doc.install
@@ -0,0 +1,2 @@
+target/apidocs/* usr/share/doc/libvt-ldap-java/api
+
diff --git a/debian/libvt-ldap-java.poms b/debian/libvt-ldap-java.poms
new file mode 100644
index 0000000..0417132
--- /dev/null
+++ b/debian/libvt-ldap-java.poms
@@ -0,0 +1,28 @@
+# 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 --has-package-version
diff --git a/debian/maven.cleanIgnoreRules b/debian/maven.cleanIgnoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.cleanIgnoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..6f7d708
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,13 @@
+
+commons-pool commons-pool * * * *
+httpunit httpunit * * * *
+jaxen jaxen * * * *
+log4j log4j * * * *
+org.apache.maven.plugins maven-assembly-plugin * * * *
+org.apache.maven.plugins maven-checkstyle-plugin * * * *
+org.apache.maven.plugins maven-javadoc-plugin * * * *
+org.apache.maven.plugins maven-source-plugin * * * *
+org.apache.maven.plugins maven-surefire-plugin * * * *
+org.jvnet.wagon-svn wagon-svn * * * *
+org.springframework spring-context * * * *
+org.testng testng * * * *
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..564ac37
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1,2 @@
+
+edu.vt.middleware vt-ldap jar s/.*/debian/ * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..41d434e
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,6 @@
+
+edu.vt.middleware vt-ldap jar s/.*/debian/ * *
+commons-logging s/commons-logging-api/commons-logging/ * s/.*/debian/ * *
+s/org.apache.tomcat/javax.el/ el-api jar s/.*/2.1/ * *
+s/org.apache.tomcat/javax.servlet/ jsp-api jar s/.*/2.1/ * *
+s/org.apache.tomcat/javax.servlet/ servlet-api jar s/.*/2.5/ * *
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..4f62995
--- /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=../libvt-ldap-java_$VERSION.orig.tar.xz
+DIR=libvt-ldap-java-$VERSION
+TAG=$(echo "libvt-ldap-java-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
+
+svn export https://vt-middleware.googlecode.com/svn/vt-ldap/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..b76c54a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/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
+
+get-orig-source:
+	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
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/source/options b/debian/source/options
new file mode 100644
index 0000000..7423a2d
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+single-debian-patch
diff --git a/debian/source/patch-header b/debian/source/patch-header
new file mode 100644
index 0000000..150c5e3
--- /dev/null
+++ b/debian/source/patch-header
@@ -0,0 +1,10 @@
+Subject: Collected Debian patches for libvt-ldap-java
+Author: Matthew Vernon <matthew at debian.org>
+
+The libvp-ldap-java package is maintained in Git rather than
+maintaining patches as separate files, and separating the patches
+doesn't seem to be worth the effort.  They are therefore all included
+in this single Debian patch.
+
+For full commit history and separated commits, see the packaging Git
+repository.
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b6cfb41
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts="uversionmangle=s/-(alpha|beta)-/~$1/" \
+  https://vt-middleware.googlecode.com/svn/vt-ldap/tags/ \
+  vt-ldap-(\d.*)/ debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list