--- jaminid-0.99a.orig/debian/changelog +++ jaminid-0.99a/debian/changelog @@ -0,0 +1,23 @@ +jaminid (0.99a-1.1ubuntu1) bionic; urgency=medium + + * Drop build dependency on gcj-jdk. + * Stop calling dh_javadoc. + + -- Matthias Klose Mon, 26 Mar 2018 09:55:12 +0800 + +jaminid (0.99a-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "FTBFS: xargs: /usr/lib/jvm/java-6-openjdk/bin/javac: No such + file or directory": build-depend on default-jdk, set JAVA_HOME in + debian/rules accordingly. (Closes: #640613) + * Apply patches before building by adjusting the targets in debian/rules. + * Build-depend on gcj-jdk instead of gjdoc for getting dh_javadoc. + + -- gregor herrmann Sat, 18 Feb 2012 13:30:42 +0100 + +jaminid (0.99a-1) unstable; urgency=low + + * Initial release. (Closes: #533883) + + -- Rail Aliev Sun, 21 Jun 2009 09:45:18 +0400 --- jaminid-0.99a.orig/debian/compat +++ jaminid-0.99a/debian/compat @@ -0,0 +1 @@ +6 --- jaminid-0.99a.orig/debian/control +++ jaminid-0.99a/debian/control @@ -0,0 +1,29 @@ +Source: jaminid +Section: java +Priority: optional +Maintainer: Rail Aliev +Build-Depends: debhelper (>= 6.0.7~), javahelper, quilt +Build-Depends-Indep: default-jdk +Standards-Version: 3.8.2 +Homepage: http://jaminid.sourceforge.net/ +Vcs-Bzr: http://bzr.debian.org/users/rail-guest/jaminid/ +Vcs-Browser: http://bzr.debian.org/loggerhead/users/rail-guest/jaminid + +Package: jaminid +Architecture: all +Depends: ${java:Depends}, ${misc:Depends} +Description: Small and fast daemon for Java applications + jaminid is a very small (and fast) daemon meant to embed in Java applications + as an add-on HTTP interface. + . + There are many advantages to using jaminid in your programs: + * Couples the server as closely as possible to the application. + * Can easily provide an elegant interface, in a style of programming that is + not at all harder than traditional console I/O. + * May be used to attach a thin client interface to pre-existing applications + with ease. + * Enables HTTP deployment without developing an HTTP daemon or knowledge of + the protocols. + * The server can bundle with the application removing the need of a third + party server. This makes the application easier to distribute. + * Does not require knowledge of any other scripting language. --- jaminid-0.99a.orig/debian/copyright +++ jaminid-0.99a/debian/copyright @@ -0,0 +1,19 @@ +This package was debianized by Rail Aliev on +Sun, 21 Jun 2009 11:21:37 +0400 + +It was downloaded from http://jaminid.sourceforge.net/ + +Upstream Author: + + Constantinos Michael + +Copyright: + + Copyright © 2005 Constantinos Michael + +License: + + Licensed under the LGPL, see `/usr/share/common-licenses/LGPL-2.1' + +The Debian packaging is © 2009, Rail Aliev and +is licensed under the GPL, see `/usr/share/common-licenses/GPL-3'. --- jaminid-0.99a.orig/debian/jaminid.doc-base +++ jaminid-0.99a/debian/jaminid.doc-base @@ -0,0 +1,9 @@ +Document: jaminid +Title: API JavaDoc for jaminid +Author: Constantinos Michael +Abstract: This the API JavaDoc provided by Constantinos Michael for jaminid +Section: Programming + +Format: HTML +Index: /usr/share/doc/jaminid/api/ +Files: /usr/share/doc/jaminid/api/*.html --- jaminid-0.99a.orig/debian/jaminid.javadoc +++ jaminid-0.99a/debian/jaminid.javadoc @@ -0,0 +1,3 @@ +com.prolixtech.jaminid +com.prolixtech.jaminid_examples +com.prolixtech.utils --- jaminid-0.99a.orig/debian/jaminid.jlibs +++ jaminid-0.99a/debian/jaminid.jlibs @@ -0,0 +1 @@ +jaminid.jar --- jaminid-0.99a.orig/debian/jaminid.lintian-overrides +++ jaminid-0.99a/debian/jaminid.lintian-overrides @@ -0,0 +1 @@ +jaminid: no-upstream-changelog --- jaminid-0.99a.orig/debian/patches/jaminid.diff +++ jaminid-0.99a/debian/patches/jaminid.diff @@ -0,0 +1,128 @@ +# Description: UTF-8 support +--- a/src/com/prolixtech/jaminid/Connection.java (revision 13) ++++ b/src/com/prolixtech/jaminid/Connection.java (working copy) +@@ -3,10 +3,13 @@ + import java.io.IOException; + import java.io.InputStream; + import java.io.OutputStream; ++import java.io.UnsupportedEncodingException; + import java.net.InetAddress; + import java.net.Socket; + import java.text.SimpleDateFormat; ++import java.util.ArrayList; + import java.util.Date; ++import java.util.List; + import java.util.Locale; + import java.util.Timer; + import java.util.TimerTask; +@@ -82,7 +85,7 @@ + + CONNECTED: + while(true){ +- StringBuffer requestInputBuffer = new StringBuffer(); ++ List requestInputBuffer = new ArrayList(); + + int byteIn = -1; + int CRLFState = 0; +@@ -106,7 +109,7 @@ + byteIn = socketInput.read(); + if (byteIn > 0) { + +- requestInputBuffer.append((char) byteIn); ++ requestInputBuffer.add((byte)byteIn); + if (doubleCRLFpassed) + bodyCharsParsed++; + +@@ -142,10 +145,10 @@ + if ("\n".charAt(0) == (thischar)) { + CRLFState++; + doubleCRLFpassed = true; +- serviceRequest.addRequestLines(requestInputBuffer +- .toString()); +- +- requestInputBuffer = new StringBuffer(); ++ String inputString = bytesToString(requestInputBuffer); ++ serviceRequest.addRequestLines(inputString); ++ ++ requestInputBuffer = new ArrayList(); + + expectedBodySize = serviceRequest.switchToBody(); + } else { +@@ -163,8 +166,9 @@ + && bodyCharsParsed < expectedBodySize || doubleCRLFpassed + && byteIn != -1 && socketInput.available() > 0); + +- printlog("Request: " + requestInputBuffer.toString()); +- serviceRequest.addRequestLines(requestInputBuffer.toString()); ++ String inputString = bytesToString(requestInputBuffer); ++ printlog("Request: " + inputString); ++ serviceRequest.addRequestLines(inputString); + + serviceRequest.switchToCompleted(); + +@@ -242,6 +246,22 @@ + } + + /** ++ * Added dnaber 2007-06-09, to make UTF-8 input work. ++ */ ++ private String bytesToString(List requestInputBuffer) { ++ Byte[] b = (Byte[])requestInputBuffer.toArray(new Byte[]{}); ++ byte[] bytes = new byte[b.length]; ++ for (int i = 0; i < b.length; i++) { ++ bytes[i] = b[i]; ++ } ++ try { ++ return new String(bytes, "utf-8"); ++ } catch (UnsupportedEncodingException e) { ++ throw new RuntimeException(e.toString(), e); ++ } ++ } ++ ++ /** + * a shortcut method + * + * @param message +@@ -261,7 +281,7 @@ + protected void sendString(Object string) throws IOException { + if (string == null) + return; +- socketOutput.write((string.toString()).getBytes()); ++ socketOutput.write((string.toString()).getBytes("UTF-8")); + } + + protected void sendString(byte[] bytes) { +--- a/src/com/prolixtech/jaminid/Protocol.java (revision 13) ++++ b/src/com/prolixtech/jaminid/Protocol.java (working copy) +@@ -280,7 +280,7 @@ + MIME.setProperty(".txt", "text/plain"); + + +- ++ /* dnaber, 2006-09-16 + try { + OutputStream nmim = new FileOutputStream(Protocol.MIMEFILE); + MIME.storeToXML(nmim, "\nJAMINID MIMETYPES\n\nThese are the default MIME types for the jaminid daemon. If you had a modified but invalid MIME file here, it may have been reverted to this."); +@@ -287,7 +287,8 @@ + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); +- } ++ ++ }*/ + + } + +--- a/src/com/prolixtech/jaminid/Request.java (revision 13) ++++ b/src/com/prolixtech/jaminid/Request.java (working copy) +@@ -321,8 +321,8 @@ + try { + String hex = s.substring(lastIndex + 1, lastIndex + 3); + char hin = (char) hex2int(hex); +- System.out.println(lastIndex + " Hex is " + hex + " or " +- + hin); ++ //System.out.println(lastIndex + " Hex is " + hex + " or " ++ // + hin); + String sBefore = s.substring(0, lastIndex); + String sAfter = s.substring(lastIndex + 3); + --- jaminid-0.99a.orig/debian/patches/series +++ jaminid-0.99a/debian/patches/series @@ -0,0 +1 @@ +jaminid.diff --- jaminid-0.99a.orig/debian/rules +++ jaminid-0.99a/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':')) +DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') +DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-) +DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//') + +export JAVA_HOME=/usr/lib/jvm/default-java + +build: build-arch-stamp build-indep-stamp +build-arch: build-arch-stamp +build-arch-stamp: + dh_testdir + touch $@ + +build-indep: build-indep-stamp +build-indep-stamp: $(QUILT_STAMPFN) + dh_testdir + jh_build jaminid.jar src + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + jh_build --clean + dh_clean + rm -f build-arch-stamp build-indep-stamp jaminid.jar + +install-indep: build-indep + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + +binary-arch: build-arch + # Java packages are arch: all, nothing to do here + +binary-indep: build-indep install-indep + dh_testdir + dh_testroot + dh_clean -k + dh_install -i + dh_installdocs -i + dh_installchangelogs -i + dh_lintian -i +# dh_javadoc -i --sourcedir=src + jh_installlibs -i + jh_depends -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary: binary-indep binary-arch + +get-orig-source: + svn export https://jaminid.svn.sourceforge.net/svnroot/jaminid/trunk/jaminid \ + $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) && \ + install /usr/share/common-licenses/LGPL-2.1 \ + $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)/LICENSE && \ + GZIP=--best tar czf $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \ + $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) && \ + rm -rf $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) + +.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install-indep