[pkg-java] r9068 - in trunk/jaranalyzer: . debian debian/patches

Florian Grandel jerico-guest at alioth.debian.org
Fri Jul 10 01:33:52 UTC 2009


Author: jerico-guest
Date: 2009-07-10 01:33:52 +0000 (Fri, 10 Jul 2009)
New Revision: 9068

Added:
   trunk/jaranalyzer/debian/
   trunk/jaranalyzer/debian/changelog
   trunk/jaranalyzer/debian/compat
   trunk/jaranalyzer/debian/control
   trunk/jaranalyzer/debian/copyright
   trunk/jaranalyzer/debian/jaranalyzer.README.Debian
   trunk/jaranalyzer/debian/jaranalyzer.dirs
   trunk/jaranalyzer/debian/jaranalyzer.install
   trunk/jaranalyzer/debian/jaranalyzer.manifest
   trunk/jaranalyzer/debian/jaranalyzer.manpages
   trunk/jaranalyzer/debian/jaranalyzer.sh
   trunk/jaranalyzer/debian/orig-tar.sh
   trunk/jaranalyzer/debian/patches/
   trunk/jaranalyzer/debian/patches/adapt_build_xml.diff
   trunk/jaranalyzer/debian/patches/series
   trunk/jaranalyzer/debian/rules
   trunk/jaranalyzer/debian/watch
Log:
[svn-inject] Applying Debian modifications to trunk


Property changes on: trunk/jaranalyzer/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: trunk/jaranalyzer/debian/changelog
===================================================================
--- trunk/jaranalyzer/debian/changelog	                        (rev 0)
+++ trunk/jaranalyzer/debian/changelog	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1,18 @@
+jaranalyzer (1.2-3) unstable; urgency=low
+
+  * Added missing copyright note for jaranalyzer.xls
+
+ -- Florian Grandel <jerico.dev at gmail.com>  Tue, 05 Aug 2008 01:46:29 -0300
+
+jaranalyzer (1.2-2) unstable; urgency=low
+
+  * Removed versioned jar, removed manual install steps, thx to Matthew Johnson
+
+ -- Florian Grandel <jerico.dev at gmail.com>  Tue, 22 Jul 2008 14:09:11 -0300
+
+jaranalyzer (1.2-1) unstable; urgency=low
+
+  * Initial release. (Closes: #489164)
+  * Includes propositions by Manual Prinz and Matthew Johnson
+
+ -- Florian Grandel <jerico.dev at gmail.com>  Thu, 17 Jul 2008 19:47:14 -0300

Added: trunk/jaranalyzer/debian/compat
===================================================================
--- trunk/jaranalyzer/debian/compat	                        (rev 0)
+++ trunk/jaranalyzer/debian/compat	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1 @@
+5

Added: trunk/jaranalyzer/debian/control
===================================================================
--- trunk/jaranalyzer/debian/control	                        (rev 0)
+++ trunk/jaranalyzer/debian/control	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1,19 @@
+Source: jaranalyzer
+Section: devel
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Florian Grandel <jerico.dev at gmail.com>
+Build-Depends: cdbs, debhelper (>> 5), javahelper (>= 0.13), tofrodos, ant-optional, quilt
+Build-Depends-Indep: junit, libbcel-java, libregexp-java, help2man
+Standards-Version: 3.7.3
+Homepage: http://www.kirkk.com/main/Main/JarAnalyzer
+
+Package: jaranalyzer
+Architecture: all
+Depends: ${java:Depends}
+Suggests: graphviz, xsltproc
+Description: Dependency management utility for jar files
+ JarAnalyzer's primary purpose is to traverse through a directory,
+ parse each of the jar files in that directory, and identify the
+ dependencies between the jar files. The output is an xml or graphviz
+ file representing the dependencies between the jar files.

Added: trunk/jaranalyzer/debian/copyright
===================================================================
--- trunk/jaranalyzer/debian/copyright	                        (rev 0)
+++ trunk/jaranalyzer/debian/copyright	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1,41 @@
+This package was Debianised by Florian Grandel <jerico.dev at gmail.com> on Do 3. Jul 09:56:42 BRT 2008
+
+This package was downloaded from http://www.kirkk.com/main/Main/JarAnalyzer
+
+Upstream Author: Kirk Knoernschild
+
+Copyright (c) 2004, Kirk Knoernschild
+All rights reserved.
+
+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.
+    *   Neither the name of the Kirk Knoernschild nor the names of its
+        contributors may be used to endorse or promote products derived
+        from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER OR 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.
+
+usr/share/jaranalyzer/jaranalyzer.xsl is licenced under the terms of the Apache
+licence, Version 2.0. On Debian systems the Apache licence, Version 2.0 can be
+found in /usr/share/common-licenses/Apache-2.0.
+
+The packaging is Copyright 2008 Florian Grandel <jerico.dev at gmail.com> and is licenced
+under the terms of the BSD licence. On Debian systems the BSD licence can be
+found in /usr/share/common-licenses/BSD.

Added: trunk/jaranalyzer/debian/jaranalyzer.README.Debian
===================================================================
--- trunk/jaranalyzer/debian/jaranalyzer.README.Debian	                        (rev 0)
+++ trunk/jaranalyzer/debian/jaranalyzer.README.Debian	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1,43 @@
+-----------------------------------------------
+
+JarAnalyzer -   Kirk Knoernschild
+                www.kirkk.com
+                www.extensiblejava.com
+
+                This file contains very basic usage information.
+                More detailed documentation can be found at
+                http://www.kirkk.com/main/Main/JarAnalyzer.
+-----------------------------------------------
+
+This readme provides basic usage information for JarAnalyzer on Debian based on the original readme.txt published by jaranalyzer's author Kirk Knoernschild.
+
+You may also look at the manpage jaranalyzer(1) or execute jaranalyzer -h for more information.
+
+JarAnalyzer is a dependency management utility for jar files. It's primary purpose is to traverse through a directory, parse each of the jar files in that directory, and identify the dependencies between the jar files. The output is an xml or GraphViz dot file representing the PhysicalDependencies between the jar files.
+
+JarAnalyzer will ask for a directory to analyze and for a filename where results should been written to.
+
+- Run with XML output.
+To run the analyzer, execute /usr/bin/jaranalyzer. It'll prompt you for an input directory and an output file. The output file is stored in xml format.
+
+Example:
+# jaranalyzer
+...(enter /usr/share/java as directory and result.xml as file name)...
+
+You may now use your favourite xsl transformer to render the result in a more readeable HTML format:
+# xsltproc /usr/share/jaranalyzer/jaranalyzer.xsl result.xml >result.htm
+
+This produces a nice html report that shows all dependencies between jars.
+
+
+- Run with DOT output.
+To run the analyzer, execute /usr/bin/jaranalyzer -d. This creates a dot file that can be used with GraphViz (www.graphviz.org) to create a visual representation of the component relationships. Note that when running using dot, all "-" and "." will be stripped out of the jar file names.
+
+To transform the dot-output into a .png image file you'll need to install the graphviz package and use the dot program to transform jaranalyzer output to a png image file.
+
+Example:
+# apt-get install graphviz
+# jaranalyzer -d
+...(enter /usr/share/java as directory and result.grph as file name)...
+
+# dot -Tpng -Nshape=box -Nfontsize=30 -Nwidth=1.5 -Nheight=1.25 result.grph -o result.png

Added: trunk/jaranalyzer/debian/jaranalyzer.dirs
===================================================================
--- trunk/jaranalyzer/debian/jaranalyzer.dirs	                        (rev 0)
+++ trunk/jaranalyzer/debian/jaranalyzer.dirs	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1 @@
+/usr/bin

Added: trunk/jaranalyzer/debian/jaranalyzer.install
===================================================================
--- trunk/jaranalyzer/debian/jaranalyzer.install	                        (rev 0)
+++ trunk/jaranalyzer/debian/jaranalyzer.install	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1,3 @@
+jaranalyzer usr/bin
+jaranalyzer.jar usr/share/jaranalyzer
+*.xsl usr/share/jaranalyzer

Added: trunk/jaranalyzer/debian/jaranalyzer.manifest
===================================================================
--- trunk/jaranalyzer/debian/jaranalyzer.manifest	                        (rev 0)
+++ trunk/jaranalyzer/debian/jaranalyzer.manifest	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1,4 @@
+usr/share/jaranalyzer/jaranalyzer.jar:
+ Main-Class: com.kirkk.analyzer.textui.DOTSummary
+ Debian-Java-Home: /usr/lib/jvm/java-gcj
+ Class-Path: /usr/share/java/bcel.jar /usr/share/java/regexp.jar

Added: trunk/jaranalyzer/debian/jaranalyzer.manpages
===================================================================
--- trunk/jaranalyzer/debian/jaranalyzer.manpages	                        (rev 0)
+++ trunk/jaranalyzer/debian/jaranalyzer.manpages	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1 @@
+jaranalyzer.1

Added: trunk/jaranalyzer/debian/jaranalyzer.sh
===================================================================
--- trunk/jaranalyzer/debian/jaranalyzer.sh	                        (rev 0)
+++ trunk/jaranalyzer/debian/jaranalyzer.sh	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1,87 @@
+#!/bin/bash
+
+# The jar analyzer provides two different entry points,
+# one for a GraphViz dot format result and one for an
+# XML result.
+MAIN_CLASS_DOT=com.kirkk.analyzer.textui.DOTSummary
+MAIN_CLASS=com.kirkk.analyzer.textui.XMLUISummary
+
+# We only depend on the jarnalyzer jar as the jar's
+# manifest contains a Class-Path entry pointing to
+# further dependencies.
+CLASSPATH=/usr/share/jaranalyzer/jaranalyzer.jar
+
+# This method displays usage instructions.
+syntax()
+{
+  echo "JarAnalyzer is a dependency management utility for jar files."
+  echo "It's primary purpose is to traverse through a directory, parse"
+  echo "each of the jar files in that directory, and identify the"
+  echo "dependencies between the jar files. The output is an xml or"
+  echo "GraphViz dot file representing the PhysicalDependencies between"
+  echo "the jar files."
+  echo
+  echo "JarAnalyzer will ask for a directory to analyze and for a"
+  echo "filename where results should been written to."
+  echo
+  echo "Usage: jaranalyzer [OPTION]"
+  echo
+  echo "Options:"
+  echo -e "\t-h --help\tshow this text"
+  echo -e "\t-V --version\tprint the version"
+  echo -e "\t-d --dot\tproduce GraphViz output (dot-format), default is XML format."
+}
+
+# This method displays version info.
+version()
+{
+  VERSION=`ls /usr/share/jaranalyzer/jaranalyzer-*.jar | \
+           sed "s%/usr/share/jaranalyzer/jaranalyzer-\(.*\)\.jar$%\1%"`
+
+  echo "JarAnalyzer $VERSION"
+  echo
+  echo "Copyright (C) 2005, 2008 Kirk Knoernschild. See the source for"
+  echo "copying conditions. There is NO warranty; not even for MERCHANTABILITY"
+  echo "or FITNESS FOR A PARTICULAR PURPOSE."
+  echo
+  echo "Written by Kirk Knoernschild."
+}
+
+# Parse options
+OPTIONS=`getopt -o hVd -l help,version,dot \
+                -n 'jaranalyzer' -- "$@"`
+
+# Did we get an error while parsing options?
+if [ $? -ne 0 ]; then
+  echo
+  syntax
+  exit 1
+fi
+
+# Interpret options
+for OPT in $OPTIONS; do
+  case "$OPT" in
+    -h|--help) SHOW_HELP=true ; shift ;;
+    -V|--version) SHOW_VERSION=true ; shift ;;
+    -d|--dot) MAIN_CLASS=$MAIN_CLASS_DOT ; shift ;;
+    --) continue ;;
+    *) echo "Internal error while parsing options!" ; exit 1 ;;
+  esac
+done
+
+if [ $SHOW_HELP ]; then
+  syntax
+  exit 0
+fi
+
+if [ $SHOW_VERSION ]; then
+  version
+  exit 0
+fi
+
+# Set the default java executable
+if [ -z "$JAVA_CMD" ]; then
+  JAVA_CMD=/usr/bin/java
+fi
+
+$JAVA_CMD -cp "$CLASSPATH" "$MAIN_CLASS"

Added: trunk/jaranalyzer/debian/orig-tar.sh
===================================================================
--- trunk/jaranalyzer/debian/orig-tar.sh	                        (rev 0)
+++ trunk/jaranalyzer/debian/orig-tar.sh	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+DIR=jaranalyzer-$2.orig
+TAR=../jaranalyzer_$2.orig.tar.gz
+
+# clean up and tar the upstream source
+unzip -q $3 -d $DIR
+find $DIR -regextype posix-egrep -regex '.*\.(bat|java|properties|xml|txt)$' -exec dos2unix '{}' +
+tar -czf $TAR --exclude 'lib/*.jar' --exclude 'docs/*' $DIR
+rm -rf $DIR $3

Added: trunk/jaranalyzer/debian/patches/adapt_build_xml.diff
===================================================================
--- trunk/jaranalyzer/debian/patches/adapt_build_xml.diff	                        (rev 0)
+++ trunk/jaranalyzer/debian/patches/adapt_build_xml.diff	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1,131 @@
+Index: jaranalyzer-1.2/build.xml
+===================================================================
+--- jaranalyzer-1.2.orig/build.xml	2008-07-17 20:16:33.000000000 -0300
++++ jaranalyzer-1.2/build.xml	2008-07-22 14:07:59.000000000 -0300
+@@ -4,9 +4,7 @@
+     <property name="test"       location="${basedir}/test"/>
+     <property name="build"      location="${basedir}/build"/>
+     <property name="buildtest"  location="${basedir}/buildtest"/>
+-    <property name="bindist"    location="${basedir}/bin"/>
+     <property name="lib"        location="${basedir}/lib"/>
+-    <property name="srcdist"    location="${basedir}/srcdist"/>
+     <property name="testdata"   location="${basedir}/testdata"/>
+     <property name="deploy"     location="${basedir}/deploy"/>
+     <property name="docs"       location="${basedir}/docs" />
+@@ -14,17 +12,12 @@
+     <property name="version"        value="1.2"/>
+     <property name="app.package"    value="com.kirkk.analyzer"/>
+     
+-    <path id="project.class.path">
+-        <pathelement path="src"/>
+-        <pathelement location="${lib}/bcel-5.2.jar"/>
+-        <pathelement location="${lib}/jakarta-regexp-1.3.jar"/>
+-    </path>
+-    
+     <target name="clean" description="clean up">
+-        <delete dir="${bindist}"/>
+         <delete dir="${deploy}"/>
+         <delete dir="${build}"/>
+         <delete dir="${buildtest}"/>
++        <delete dir="${javadoc.dir}"/>
++        <delete file="jaranalyzer.jar"/>
+     </target>
+     
+     <target name="init" depends="clean">
+@@ -34,9 +27,7 @@
+     </target>
+     
+     <target name="compile" depends="init">
+-        <javac srcdir="${src}" destdir="${build}" source="1.4" target="1.4">
+-            <classpath refid="project.class.path"/>
+-        </javac>
++        <javac srcdir="${src}" destdir="${build}" source="1.4" target="1.4"/>
+     </target>
+     
+     <target name="compiletest" depends="compile">
+@@ -44,8 +35,6 @@
+             <classpath>
+                 <pathelement location="${test}"/>
+                 <pathelement location="${build}"/>
+-                <pathelement location="${lib}/bcel-5.2.jar"/>
+-                <pathelement location="${lib}/jakarta-regexp-1.3.jar"/>
+             </classpath>
+         </javac>
+     </target>
+@@ -55,8 +44,6 @@
+             <classpath>
+                 <pathelement location="${buildtest}"/>
+                 <pathelement location="${build}"/>
+-                <pathelement location="${lib}/bcel-5.2.jar"/>
+-                <pathelement location="${lib}/jakarta-regexp-1.3.jar"/>
+           </classpath>
+           
+             <test name="com.kirkk.analyzer.test.AllTests" haltonfailure="yes" outfile="result">
+@@ -77,62 +64,14 @@
+             windowtitle="JarAnalyzer API"
+             doctitle="JarAnalyzer API"
+             bottom="Copyright &#169; 2006 Kirk Knoernschild">
+-            <classpath refid="project.class.path" />
+         </javadoc>
+     </target>
+     
+     <target name="dist" depends="test, javadoc">
+-        <mkdir dir="${bindist}"/>
+-        <jar jarfile="${bindist}/jaranalyzer-${version}.jar" basedir="${build}"/>
+-        <mkdir dir="${bindist}/lib"/>
+-        <mkdir dir="${bindist}/docs"/>
+-        <copy file="${basedir}/runxmlsummary.bat" todir="${bindist}"/>
+-        <copy file="${basedir}/rundotsummary.bat" todir="${bindist}"/>
+-        <copy file="${basedir}/jaranalyzer.xsl" todir="${bindist}"/>
+-        <copy file="${basedir}/license.txt" todir="${bindist}"/>
+-        <copy file="${basedir}/readme.txt" todir="${bindist}"/>
+-        <copy todir="${bindist}/lib">
+-            <fileset dir="${lib}"/>
+-        </copy>
+-        <copy todir="${bindist}/docs">
+-            <fileset dir="${docs}"/>
+-        </copy>
+-        
+-        <mkdir dir="${srcdist}"/>
+-        <mkdir dir="${srcdist}/lib"/>
+-        <mkdir dir="${srcdist}/src"/>
+-        <mkdir dir="${srcdist}/test"/>
+-        <mkdir dir="${srcdist}/testdata"/>
+-        <mkdir dir="${srcdist}/docs"/>
+-        
+-        <copy todir="${srcdist}/lib">
++        <copy todir="${build}">
+             <fileset dir="${lib}"/>
+         </copy>
+-        <copy todir="${srcdist}/src">
+-            <fileset dir="${src}"/>
+-        </copy>
+-        <copy todir="${srcdist}/test">
+-            <fileset dir="${test}"/>
+-        </copy>
+-        <copy todir="${srcdist}/testdata">
+-            <fileset dir= "${testdata}"/>
+-        </copy>
+-        <copy file="${basedir}/build.xml" todir="${srcdist}"/>
+-        <copy file="${basedir}/runxmlsummary.bat" todir="${srcdist}"/>
+-        <copy file="${basedir}/jaranalyzer.xsl" todir="${srcdist}"/>
+-        <copy file="${basedir}/rundotsummary.bat" todir="${srcdist}"/>
+-        <copy file="${basedir}/license.txt" todir="${srcdist}"/>
+-        <copy file="${basedir}/readme.txt" todir="${srcdist}"/>
+-        <copy todir="${srcdist}/docs">
+-            <fileset dir="${docs}"/>
+-        </copy>
+-        
+-        
+-        <mkdir dir="${deploy}"/>
+-        <zip destfile="${deploy}/JarAnalyzer-${version}.zip" basedir="${bindist}"/>
+-        <zip destfile="${deploy}/JarAnalyzer-src-${version}.zip" basedir="${srcdist}"/>
+-        <delete dir="${srcdist}"/>
++        <jar destfile="jaranalyzer.jar" basedir="${build}"/>
+     </target>
+-    
+-    
+-</project>
+\ No newline at end of file
++</project>
++

Added: trunk/jaranalyzer/debian/patches/series
===================================================================
--- trunk/jaranalyzer/debian/patches/series	                        (rev 0)
+++ trunk/jaranalyzer/debian/patches/series	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1 @@
+adapt_build_xml.diff

Added: trunk/jaranalyzer/debian/rules
===================================================================
--- trunk/jaranalyzer/debian/rules	                        (rev 0)
+++ trunk/jaranalyzer/debian/rules	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+JAVA_HOME 		:= /usr/lib/jvm/java-gcj
+DEB_JARS		:= bcel regexp junit ant-junit
+
+clean::
+	rm -f result.xml jaranalyzer jaranalyzer.1
+	( cd debian && chmod a-x orig-tar.sh )
+
+build/jaranalyzer::
+	# move/rename/chmod wrapper script
+	install -m 755 debian/jaranalyzer.sh jaranalyzer
+
+	# generate the man page from help info
+	help2man -N -n "dependency management for jar files" -o jaranalyzer.1 ./jaranalyzer
+
+binary-install/jaranalyzer::
+	jh_manifest -i
+	jh_depends -i
+
+get-orig-source:
+	chmod u+x debian/orig-tar.sh
+	-uscan --upstream-version 0 --no-symlink


Property changes on: trunk/jaranalyzer/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/jaranalyzer/debian/watch
===================================================================
--- trunk/jaranalyzer/debian/watch	                        (rev 0)
+++ trunk/jaranalyzer/debian/watch	2009-07-10 01:33:52 UTC (rev 9068)
@@ -0,0 +1,2 @@
+version=3
+http://www.kirkk.com/main/Main/JarAnalyzer http://www.kirkk.com/main/zip/JarAnalyzer-src-(.*).zip debian debian/orig-tar.sh




More information about the pkg-java-commits mailing list