[pkg-java] r4119 - in trunk/libyanfs-java/trunk: . debian debian/patches

varun-guest at alioth.debian.org varun-guest at alioth.debian.org
Thu Sep 6 19:25:36 UTC 2007


Author: varun-guest
Date: 2007-09-06 19:25:36 +0000 (Thu, 06 Sep 2007)
New Revision: 4119

Added:
   trunk/libyanfs-java/trunk/build.properties
   trunk/libyanfs-java/trunk/build.xml
   trunk/libyanfs-java/trunk/debian/
   trunk/libyanfs-java/trunk/debian/README.Debian-source
   trunk/libyanfs-java/trunk/debian/changelog
   trunk/libyanfs-java/trunk/debian/compat
   trunk/libyanfs-java/trunk/debian/control
   trunk/libyanfs-java/trunk/debian/copyright
   trunk/libyanfs-java/trunk/debian/doc-base
   trunk/libyanfs-java/trunk/debian/install
   trunk/libyanfs-java/trunk/debian/orig-tar.exclude
   trunk/libyanfs-java/trunk/debian/orig-tar.sh
   trunk/libyanfs-java/trunk/debian/patches/
   trunk/libyanfs-java/trunk/debian/patches/build.diff
   trunk/libyanfs-java/trunk/debian/patches/series
   trunk/libyanfs-java/trunk/debian/rules
Log:
[svn-inject] Applying Debian modifications to trunk

Added: trunk/libyanfs-java/trunk/build.properties
===================================================================
--- trunk/libyanfs-java/trunk/build.properties	                        (rev 0)
+++ trunk/libyanfs-java/trunk/build.properties	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,4 @@
+class.dir=class
+source.dir=src
+doc.dir=api
+jar.name=yanfs.jar

Added: trunk/libyanfs-java/trunk/build.xml
===================================================================
--- trunk/libyanfs-java/trunk/build.xml	                        (rev 0)
+++ trunk/libyanfs-java/trunk/build.xml	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<project default="jar" name="yanfs" basedir=".">
+  <property file="./build.properties" />
+  <target name="clean">
+    <delete dir="${class.dir}" quiet="true" />
+    <delete file="${jar.name}" quiet="true" />
+    <delete dir="${doc.dir}" quiet="true" />
+  </target>
+
+  <target name="compile">
+    <mkdir dir="${class.dir}" />
+    <javac srcdir="${source.dir}" destdir="${class.dir}"
+    deprecation="true" debug="true" optimize="false" />
+  </target>
+
+  <target name="jar" description="o Create the jar" depends="compile">
+    <jar jarfile="${jar.name}" basedir="${class.dir}"/>
+  </target>
+
+  <target name="javadoc" description="Creates Javadoc documentation">
+    <mkdir dir="${doc.dir}" />
+    <javadoc packagenames="com.sun.*"
+    sourcepath="${source.dir}" destdir="${doc.dir}" />
+  </target>
+
+  <target name="install" depends="jar">
+    <mkdir dir="${destdir}/usr/share/java/" />
+    <copy todir="${destdir}/usr/share/java/">
+      <fileset file="${jar.name}" />
+    </copy>
+  </target>
+</project>


Property changes on: trunk/libyanfs-java/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: trunk/libyanfs-java/trunk/debian/README.Debian-source
===================================================================
--- trunk/libyanfs-java/trunk/debian/README.Debian-source	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/README.Debian-source	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,13 @@
+libyanfs-java
+=============
+
+The upstream supplied source package contains binary jar files.
+Currently no clean source distribution exists. Therefore, the upstream
+sources were modified to comply with the Debian Free Software
+Guidelines.
+
+Use the rules/get-orig-source target to create the orig.tar.gz.
+For more details on repackaging of upstream sources please see the
+debian/orig-tar.sh and debian/orig-tar.exclude files.
+
+-- Varun Hiremath <varunhiremath at gmail.com>  Thu,  6 Sep 2007 13:53:01 +0530

Added: trunk/libyanfs-java/trunk/debian/changelog
===================================================================
--- trunk/libyanfs-java/trunk/debian/changelog	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/changelog	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,5 @@
+libyanfs-java (20070825-1) unstable; urgency=low
+
+  * Initial release (Closes: #441047)
+
+ -- Varun Hiremath <varunhiremath at gmail.com>  Sat, 25 Aug 2007 17:28:04 +0530

Added: trunk/libyanfs-java/trunk/debian/compat
===================================================================
--- trunk/libyanfs-java/trunk/debian/compat	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/compat	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1 @@
+5

Added: trunk/libyanfs-java/trunk/debian/control
===================================================================
--- trunk/libyanfs-java/trunk/debian/control	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/control	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,21 @@
+Source: libyanfs-java
+Section: libs
+Priority: extra
+Maintainer: Debian Java maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Varun Hiremath <varunhiremath at gmail.com>, Kumar Appaiah <akumar at ee.iitm.ac.in>
+Build-Depends: cdbs, debhelper (>= 5), quilt
+Build-Depends-Indep: java-gcj-compat-dev, ant, m4
+Standards-Version: 3.7.2
+
+Package: libyanfs-java
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, java-gcj-compat | gij | java2-runtime
+Description: Yet Another NFS - a Java NFS library
+ This project represents a Java implementation of the XDR, RPC, NFSv2,
+ and NFSv3 protocols in client side form.
+ .
+ WebNFS was the original name for this implementation but the name has
+ changed to reflect the expanded scope of the project to include a
+ server side implementation.
+ .
+  Homepage: https://yanfs.dev.java.net/

Added: trunk/libyanfs-java/trunk/debian/copyright
===================================================================
--- trunk/libyanfs-java/trunk/debian/copyright	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/copyright	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,34 @@
+This package was debianized by Varun Hiremath <varunhiremath at gmail.com> on
+Sat, 25 Aug 2007 17:28:04 +0530.
+
+It was downloaded from https://yanfs.dev.java.net/source/browse/yanfs/
+
+Upstream Authors:
+Agnes Jacob
+Brent Callaghan
+Lin Ling
+Ricardo Labiaga
+
+Copyright: (c) 1997, 2007 Sun Microsystems, Inc.
+
+License:
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted under the terms of the BSD License.
+
+    THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
+
+On Debian systems, the complete text of the BSD License can be 
+found in `/usr/share/common-licenses/BSD'.
+
+The Debian packaging is (C) 2007, Varun Hiremath <varunhiremath at gmail.com> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.

Added: trunk/libyanfs-java/trunk/debian/doc-base
===================================================================
--- trunk/libyanfs-java/trunk/debian/doc-base	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/doc-base	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,9 @@
+Document: libyanfs-java
+Title: API for yanfs
+Authors: Agnes Jacob, Brent Callaghan, Lin Ling, Ricardo Labiaga
+Abstract: yet another nfs
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libyanfs-java/api/index.html
+Files: /usr/share/doc/libyanfs-java/api/*.html

Added: trunk/libyanfs-java/trunk/debian/install
===================================================================
--- trunk/libyanfs-java/trunk/debian/install	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/install	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,2 @@
+*.jar /usr/share/java
+api/* /usr/share/doc/libyanfs-java/api/

Added: trunk/libyanfs-java/trunk/debian/orig-tar.exclude
===================================================================
--- trunk/libyanfs-java/trunk/debian/orig-tar.exclude	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/orig-tar.exclude	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,4 @@
+*CVS*
+*xhandler*
+*images.tar.gz*
+*www*

Added: trunk/libyanfs-java/trunk/debian/orig-tar.sh
===================================================================
--- trunk/libyanfs-java/trunk/debian/orig-tar.sh	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/orig-tar.sh	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+DATE=$1
+DIR=libyanfs-java-$DATE.orig
+TAR=../libyanfs-java_$DATE.orig.tar.gz
+echo -n "Enter username for cvs.dev.java.net: "; read USERNAME
+CVSROOT=:pserver:$USERNAME at cvs.dev.java.net:/cvs
+
+# checkout the sources and clean them up
+cvs -d$CVSROOT login
+cvs -z9 -d$CVSROOT export -D $DATE -d $DIR yanfs
+mkdir $DIR/src $DIR/src/com 
+mv $DIR/orig/ $DIR/src/com/sun
+GZIP=--best tar -c -z -f $TAR -X debian/orig-tar.exclude $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir
+  echo "moved $TAR to $origDir"
+fi
+
+exit 0

Added: trunk/libyanfs-java/trunk/debian/patches/build.diff
===================================================================
--- trunk/libyanfs-java/trunk/debian/patches/build.diff	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/patches/build.diff	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,76 @@
+Index: yanfs-0.0.20070825/src/com/sun/gssapi/mechs/dummy/Makefile
+===================================================================
+--- yanfs-0.0.20070825.orig/src/com/sun/gssapi/mechs/dummy/Makefile	2007-03-20 13:47:41.000000000 +0530
++++ yanfs-0.0.20070825/src/com/sun/gssapi/mechs/dummy/Makefile	2007-08-31 00:39:31.000000000 +0530
+@@ -59,7 +59,7 @@
+ M4DEF_PROP += -D CRED=_K2102CC5
+ 
+ Dummy.java: Dummy.m4
+-	/usr/ccs/bin/m4 $(M4DEF_PROP) Dummy.m4 > Dummy.java 
++	$(M4) $(M4DEF_PROP) Dummy.m4 > Dummy.java 
+ 
+ # Service Provider Interface Context Class and its methods/interface
+ M4DEF_CTXTSPI = -D GSSCtxtSpi=C018FE95
+@@ -86,5 +86,5 @@
+ M4DEF_CTXTSPI += -D _dispose=_S020B957
+ 
+ DummyCtxt.java: DummyCtxt.m4
+-	/usr/ccs/bin/m4 $(M4DEF_CTXTSPI) DummyCtxt.m4 > DummyCtxt.java
++	$(M4) $(M4DEF_CTXTSPI) DummyCtxt.m4 > DummyCtxt.java
+ 
+Index: yanfs-0.0.20070825/src/com/sun/Makefile.common
+===================================================================
+--- yanfs-0.0.20070825.orig/src/com/sun/Makefile.common	2007-03-20 13:47:34.000000000 +0530
++++ yanfs-0.0.20070825/src/com/sun/Makefile.common	2007-08-31 00:39:31.000000000 +0530
+@@ -35,7 +35,14 @@
+ # nuclear facility.
+ #
+ 
+-include $(CODEMGR_WS)/src/com/sun/Makefile.defs
++CDIR=		$(CODEMGR_WS)/classes
++JAVADIR=	/usr/java
++CLASSPATH=	$(CDIR):$(JAVADIR)/lib/classes.zip
++JCFLAGS=	-classpath $(CLASSPATH)
++JC=		$(JAVADIR)/bin/javac
++TFILE=		$(CDIR)/$(PKGDIR)/.tfile
++M4=		/usr/bin/m4
++
+ 
+ # XXX
+ #SWINGDIR, BEANCLASSPATH, JCBFLAGS need to be removed once JDK1.2 is FCS.
+Index: yanfs-0.0.20070825/src/com/sun/nfs/XFileAccessor.java
+===================================================================
+--- yanfs-0.0.20070825.orig/src/com/sun/nfs/XFileAccessor.java	2007-03-20 13:47:44.000000000 +0530
++++ yanfs-0.0.20070825/src/com/sun/nfs/XFileAccessor.java	2007-08-31 00:39:31.000000000 +0530
+@@ -71,7 +71,7 @@
+             return true;
+         } catch (IOException e) {
+             return false;
+-        };
++        }
+     }
+ 
+     public XFile getXFile() {
+Index: yanfs-0.0.20070825/src/com/sun/xfile/XFile.java
+===================================================================
+--- yanfs-0.0.20070825.orig/src/com/sun/xfile/XFile.java	2007-03-20 13:47:47.000000000 +0530
++++ yanfs-0.0.20070825/src/com/sun/xfile/XFile.java	2007-08-31 00:39:31.000000000 +0530
+@@ -391,7 +391,7 @@
+         } catch (Exception e) {
+             System.out.println("Error: makenative:" + f.getPath());
+             return null;
+-        };
++        }
+     }
+ 
+ 
+Index: yanfs-0.0.20070825/src/com/sun/Makefile.defs
+===================================================================
+--- yanfs-0.0.20070825.orig/src/com/sun/Makefile.defs	2007-08-31 00:42:28.000000000 +0530
++++ yanfs-0.0.20070825/src/com/sun/Makefile.defs	2007-08-31 00:42:34.000000000 +0530
+@@ -41,4 +41,4 @@
+ JCFLAGS=	-classpath $(CLASSPATH)
+ JC=		$(JAVADIR)/bin/javac
+ TFILE=		$(CDIR)/$(PKGDIR)/.tfile
+-M4=		/usr/ccs/bin/m4
++M4=		/usr/bin/m4

Added: trunk/libyanfs-java/trunk/debian/patches/series
===================================================================
--- trunk/libyanfs-java/trunk/debian/patches/series	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/patches/series	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1 @@
+build.diff

Added: trunk/libyanfs-java/trunk/debian/rules
===================================================================
--- trunk/libyanfs-java/trunk/debian/rules	                        (rev 0)
+++ trunk/libyanfs-java/trunk/debian/rules	2007-09-06 19:25:36 UTC (rev 4119)
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+
+export CODEMGR_WS=.
+export JAVADIR=/usr
+
+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_ANT_BUILD_TARGET   := jar javadoc
+
+clean::
+	(cd ./src/com/sun/gssapi/mechs/dummy/; $(RM) Dummy.java DummyCtxt.java)	
+	(cd ./src/com/sun/gssapi/; $(RM) GSSCtxtSpi.java)	
+	$(RM) debian/build-m4
+
+post-patches:: debian/build-m4
+debian/build-m4::
+	(cd ./src/com/sun/gssapi/mechs/dummy/; $(MAKE) Dummy.java DummyCtxt.java)
+	(cd ./src/com/sun/gssapi/; $(MAKE) C018FE95.java)
+	touch $@
+
+install/libyanfs-java::
+	dh_link /usr/share/java/yanfs.jar \
+		/usr/share/java/yanfs$(DEB_UPSTREAM_VERSION).jar
+
+get-orig-source:
+	sh debian/orig-tar.sh $(DEB_UPSTREAM_VERSION)


Property changes on: trunk/libyanfs-java/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *




More information about the pkg-java-commits mailing list