This is an automated email from the git hooks/post-receive script. tmancill pushed a commit to branch master in repository commons-daemon.
commit 5e30df5d8a9dc615b3ead9c139d727455859c330 Author: Arnaud Vandyck <[email protected]> Date: Fri Nov 12 17:48:04 2004 +0100 Imported Debian patch 1.0-3 --- debian/changelog | 18 +++ debian/compat | 1 + debian/control | 91 ++++++++++++ debian/copyright | 213 +++++++++++++++++++++++++++ debian/docs | 5 + debian/jsvc-dev.dirs | 1 + debian/jsvc-dev.install | 9 ++ debian/jsvc.1 | 102 +++++++++++++ debian/jsvc.1.xml | 156 ++++++++++++++++++++ debian/jsvc.dirs | 1 + debian/jsvc.install | 1 + debian/jsvc.manpages | 1 + debian/libcommons-daemon-java.dirs | 2 + debian/patches/01_dist_without_javadoc.patch | 11 ++ debian/rules | 38 +++++ debian/watch | 2 + src/native/unix/Makedefs | 71 +++++++++ src/native/unix/Makefile | 80 ++++++++++ src/native/unix/native/Makefile | 43 ++++++ 19 files changed, 846 insertions(+) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7346e93 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,18 @@ +commons-daemon (1.0-3) unstable; urgency=low + + * changed build-dep-indep to build-dep (closes: #280933). + + -- Arnaud Vandyck <[email protected]> Fri, 12 Nov 2004 17:48:04 +0100 + +commons-daemon (1.0-2) unstable; urgency=low + + * improved description for jsvc-dev. + + -- Arnaud Vandyck <[email protected]> Fri, 29 Oct 2004 11:57:53 +0200 + +commons-daemon (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Arnaud Vandyck <[email protected]> Sat, 9 Oct 2004 17:51:44 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..d806580 --- /dev/null +++ b/debian/control @@ -0,0 +1,91 @@ +Source: commons-daemon +Section: contrib/libs +Priority: optional +Maintainer: Debian Java Maintainers <[email protected]> +Uploaders: Arnaud Vandyck <[email protected]> +Build-Depends: debhelper (>> 4.0.0), sablevm, jikes, kaffe (>= 2:1.1.4), junit, cdbs, libant1.6-java, j2sdk1.4 | java2-compiler, libxerces2-java, libjaxp1.2-java +Standards-Version: 3.6.1 + +Package: libcommons-daemon-java +Architecture: all +Depends: kaffe (>= 2:1.1.4) | sablevm | gij | java2-runtime +Recommends: jsvc +Description: java API to launch java applications as daemons + Having a single-point of entry is a valid solution for client + applications, where interactively a user can command to the application + to quit (which can terminate the Virtual Machine process at calling the + System .exit( int ) method), but in those cases where the + application is not interactive (server applications) there is currently + no portable way to notify the Virtual Machine of its imminent shutdown. + . + Most multi-user operating systems already have a way in which server + applications are started and stopped, under Unix based operating + systems non interactive server applications are called daemons and are + controlled by the operating system with a set of specified + signals. Under Windows such programs are called services and are + controlled by appropriate calls to specific functions defined in the + application binary, but although the ways of dealing with the problem + are different, in both cases the operating system can notify a server + application of its imminent shutdown, and the application has the + ability to perform certain tasks before its process of execution is + destroyed. + . + This is the java library, see jsvc for the application + . + This is a part of the Apache Jakarta Project. + Home: <http://jakarta.apache.org/commons/daemon/> + +Package: jsvc +Section: contrib/net +Architecture: any +Depends: ${shlibs:Depends}, libcommons-daemon-java +Description: native application to launch java applications as daemons + Having a single-point of entry is a valid solution for client + applications, where interactively a user can command to the application + to quit (which can terminate the Virtual Machine process at calling the + System .exit( int ) method), but in those cases where the + application is not interactive (server applications) there is currently + no portable way to notify the Virtual Machine of its imminent shutdown. + . + Most multi-user operating systems already have a way in which server + applications are started and stopped, under Unix based operating + systems non interactive server applications are called daemons and are + controlled by the operating system with a set of specified + signals. Under Windows such programs are called services and are + controlled by appropriate calls to specific functions defined in the + application binary, but although the ways of dealing with the problem + are different, in both cases the operating system can notify a server + application of its imminent shutdown, and the application has the + ability to perform certain tasks before its process of execution is + destroyed. + . + This is the native application to launch the java daemon. + . + This is a part of the Apache Jakarta Project. + Home: <http://jakarta.apache.org/commons/daemon/> + +Package: jsvc-dev +Architecture: all +Depends: jsvc +Description: development files for jsvc + Having a single-point of entry is a valid solution for client + applications, where interactively a user can command to the application + to quit (which can terminate the Virtual Machine process at calling the + System .exit( int ) method), but in those cases where the + application is not interactive (server applications) there is currently + no portable way to notify the Virtual Machine of its imminent shutdown. + . + Most multi-user operating systems already have a way in which server + applications are started and stopped, under Unix based operating + systems non interactive server applications are called daemons and are + controlled by the operating system with a set of specified + signals. Under Windows such programs are called services and are + controlled by appropriate calls to specific functions defined in the + application binary, but although the ways of dealing with the problem + are different, in both cases the operating system can notify a server + application of its imminent shutdown, and the application has the + ability to perform certain tasks before its process of execution is + destroyed. + . + This is a part of the Apache Jakarta Project. + Home: <http://jakarta.apache.org/commons/daemon/> diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..70ecf8d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,213 @@ +This package was debianized by Arnaud Vandyck <[email protected]> on +Sam, 09 Oct 2004 17:46:48 +0200 + +It was downloaded from http://jakarta.apache.org/commons/daemon + +Upstream Authors: Jean-Frederic Clere, Remy Maucherat, Yoav Shapira, + Bill Barker + + http://jakarta.apache.org/commons/daemon/team-list.html + +Copyright: + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..52020f3 --- /dev/null +++ b/debian/docs @@ -0,0 +1,5 @@ +KEYS +PROPOSAL.html +README +RELEASE-NOTES.txt +STATUS.html diff --git a/debian/jsvc-dev.dirs b/debian/jsvc-dev.dirs new file mode 100644 index 0000000..2222461 --- /dev/null +++ b/debian/jsvc-dev.dirs @@ -0,0 +1 @@ +usr/include/jsvc diff --git a/debian/jsvc-dev.install b/debian/jsvc-dev.install new file mode 100644 index 0000000..4d50506 --- /dev/null +++ b/debian/jsvc-dev.install @@ -0,0 +1,9 @@ +src/native/unix/native/arguments.h usr/include/jsvc/ +src/native/unix/native/debug.h usr/include/jsvc/ +src/native/unix/native/dso.h usr/include/jsvc/ +src/native/unix/native/help.h usr/include/jsvc/ +src/native/unix/native/home.h usr/include/jsvc/ +src/native/unix/native/java.h usr/include/jsvc/ +src/native/unix/native/jsvc.h usr/include/jsvc/ +src/native/unix/native/location.h usr/include/jsvc/ +src/native/unix/native/replace.h usr/include/jsvc/ diff --git a/debian/jsvc.1 b/debian/jsvc.1 new file mode 100644 index 0000000..fb096fc --- /dev/null +++ b/debian/jsvc.1 @@ -0,0 +1,102 @@ +.\"Generated by db2man.xsl. Don't modify this, modify the source. +.de Sh \" Subsection +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Ip \" List item +.br +.ie \\n(.$>=3 .ne \\$3 +.el .ne 3 +.IP "\\$1" \\$2 +.. +.TH "JSVC" 1 "" "" "" +.SH NAME +jsvc \- application to launch java daemon +.SH "SYNOPSIS" +.ad l +.hy 0 +.HP 5 +\fBjsvc\fR [\-jvm\ \fIJVM\ name\fR] [\-classpath\ \fIpath\fR] [\-cp\ \fIpath\fR] [\-home\ \fIdirectory\fR] [\-version] [\-help] [\-?] [\-nodetach] [\-debug] [\-check] [\-user] [\-verbose\fI:class|gc|jni\fR] [\-outfile\ \fI/full/path/to/file\fR] [\-errfile\ \fI/full/path/to/file\fR] [\-pidfile\ \fI/full/path/to/file\fR] [\-Dproperty=\fIvalue\fR] [\-X\fIoption\fR] +.ad +.hy + +.SH "DESCRIPTION" + +.PP +\fBjsvc\fR executes classfile that implements a Daemon interface\&. + +.SH "OPTIONS" + +.TP +\fB\-jvm\fR JVM name +use a specific Java Virtual Machine\&. + +.TP +\fB\-cp/ \-classpath\fR directory and zip/jar files +set search path for service classes and resouces + +.TP +\fB\-home\fR directory +set the path of your JDK or JRE installation (or set the JAVA_HOME environment variable) + +.TP +\fB\-version\fR +show the current Java environment version (to check correctness of \-home and \-jvm\&. Implies \-nodetach) + +.TP +\fB\-help\fR +show this help page (implies \-nodetach) + +.TP +\fB\-nodetach\fR +don't detach from parent process and become a daemon + +.TP +\fB\-debug\fR +verbosely print debugging information + +.TP +\fB\-check\fR +only check service (implies \-nodetach) + +.TP +\fB\-user\fR +user used to run the daemon (defaults to current user) + +.TP +\fB\-verbose[:class|gc|jni]\fR +enable verbose output + +.TP +\fB\-outfile\fR /full/path/to/file +Location for output from stdout (defaults to /dev/null)\&. Use the value '&2' to simulate '1>&2' + +.TP +\fB\-errfile\fR /full/path/to/file +Location for output from stderr (defaults to /dev/null)\&. Use the value '&1' to simulate '2>&1' + +.TP +\fB\-pidfile\fR /full/path/to/file +Location for output from the file containing the pid of jsvc (defaults to /var/run/jsvc\&.pid) + +.TP +\fB\-D\fR<name>=<value> +set a Java system property + +.TP +\fB\-X\fR<option> +set Virtual Machine specific option + +.SH "AUTHOR" + +.PP +JSVC is part of the Jakarta Commons Daemon project\&. Authors are Jean\-Frederic Clere, Remy Maucherat, Yoav Shapira, Bill Barker\&. JSVC is under the Apache License Version 2\&.0\&. + diff --git a/debian/jsvc.1.xml b/debian/jsvc.1.xml new file mode 100644 index 0000000..e076677 --- /dev/null +++ b/debian/jsvc.1.xml @@ -0,0 +1,156 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" + "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> +<refentry id='jsvc1'> + <refmeta> + <refentrytitle>JSVC</refentrytitle> + <manvolnum>1</manvolnum> + <refmiscinfo class='date'>October 2004</refmiscinfo> + <refmiscinfo class='source'>Jsvc version 1.0</refmiscinfo> + <refmiscinfo class='manual'>Jakarta project</refmiscinfo> + </refmeta> + <refnamediv id='name'> + <refname>jsvc</refname> + <refpurpose>application to launch java daemon</refpurpose> + </refnamediv> + <!-- body begins here --> + <refsynopsisdiv id='synopsis'> + <cmdsynopsis> + <command>jsvc</command> + <arg choice='opt'>-jvm <replaceable>JVM name</replaceable></arg> + <arg choice='opt'>-classpath <replaceable>path</replaceable></arg> + <arg choice='opt'>-cp <replaceable>path</replaceable></arg> + <arg choice='opt'>-home <replaceable>directory</replaceable></arg> + <arg choice='opt'>-version</arg> + <arg choice='opt'>-help</arg> + <arg choice='opt'>-?</arg> + <arg choice='opt'>-nodetach</arg> + <arg choice='opt'>-debug</arg> + <arg choice='opt'>-check</arg> + <arg choice='opt'>-user</arg> + <arg choice='opt'>-verbose<replaceable>:class|gc|jni</replaceable></arg> + <arg choice='opt'>-outfile <replaceable>/full/path/to/file</replaceable></arg> + <arg choice='opt'>-errfile <replaceable>/full/path/to/file</replaceable></arg> + <arg choice='opt'>-pidfile <replaceable>/full/path/to/file</replaceable></arg> + <arg choice='opt'>-Dproperty=<replaceable>value</replaceable></arg> + <arg choice='opt'>-X<replaceable>option</replaceable></arg> + <!-- end of the new arguments --> + </cmdsynopsis> + </refsynopsisdiv> + <refsect1 id="description"> + <title>DESCRIPTION</title> + <para><command>jsvc</command> executes <emphasis remap="I">classfile</emphasis> + that implements a Daemon interface.</para> + </refsect1> + + <refsect1 id="options"> + <title>OPTIONS</title> + + <variablelist remap="TP"> + <varlistentry> + <term><option>-jvm</option> JVM name</term> + <listitem> + <para>use a specific Java Virtual Machine.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-cp/ -classpath</option> directory and zip/jar + files</term> + <listitem> + <para>set search path for service classes and resouces</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-home</option> directory</term> + <listitem> + <para>set the path of your JDK or JRE installation (or set + the JAVA_HOME environment variable) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-version</option></term> + <listitem> + <para>show the current Java environment version (to check + correctness of -home and -jvm. Implies -nodetach)</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-help</option></term> + <listitem> + <para>show this help page (implies -nodetach)</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-nodetach</option></term> + <listitem> + <para>don't detach from parent process and become a daemon</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-debug</option></term> + <listitem> + <para>verbosely print debugging information</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-check</option></term> + <listitem> + <para>only check service (implies -nodetach)</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-user</option></term> + <listitem> + <para>user used to run the daemon (defaults to current user)</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-verbose[:class|gc|jni]</option></term> + <listitem> + <para>enable verbose output</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-outfile</option> /full/path/to/file</term> + <listitem> + <para>Location for output from stdout (defaults to /dev/null). Use + the value '&2' to simulate '1>&2'</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-errfile</option> /full/path/to/file</term> + <listitem> + <para>Location for output from stderr (defaults to /dev/null). Use + the value '&1' to simulate '2>&1'</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-pidfile</option> /full/path/to/file</term> + <listitem> + <para>Location for output from the file containing the pid of jsvc + (defaults to /var/run/jsvc.pid)</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-D</option><name>=<value></term> + <listitem> + <para>set a Java system property</para> + </listitem> + </varlistentry> + <varlistentry> + <term><option>-X</option><option></term> + <listitem> + <para>set Virtual Machine specific option</para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + + <refsect1 id='author'><title>AUTHOR</title> + <para>JSVC is part of the Jakarta Commons Daemon project. Authors are + Jean-Frederic Clere, Remy Maucherat, Yoav Shapira, Bill Barker. JSVC is + under the Apache License Version 2.0.</para> + </refsect1> + +</refentry> diff --git a/debian/jsvc.dirs b/debian/jsvc.dirs new file mode 100644 index 0000000..e772481 --- /dev/null +++ b/debian/jsvc.dirs @@ -0,0 +1 @@ +usr/bin diff --git a/debian/jsvc.install b/debian/jsvc.install new file mode 100644 index 0000000..9c06d89 --- /dev/null +++ b/debian/jsvc.install @@ -0,0 +1 @@ +src/native/unix/jsvc usr/bin diff --git a/debian/jsvc.manpages b/debian/jsvc.manpages new file mode 100644 index 0000000..bff7d42 --- /dev/null +++ b/debian/jsvc.manpages @@ -0,0 +1 @@ +debian/jsvc.1 diff --git a/debian/libcommons-daemon-java.dirs b/debian/libcommons-daemon-java.dirs new file mode 100644 index 0000000..a8fb5cb --- /dev/null +++ b/debian/libcommons-daemon-java.dirs @@ -0,0 +1,2 @@ +usr/share/java +usr/share/doc diff --git a/debian/patches/01_dist_without_javadoc.patch b/debian/patches/01_dist_without_javadoc.patch new file mode 100644 index 0000000..42a7056 --- /dev/null +++ b/debian/patches/01_dist_without_javadoc.patch @@ -0,0 +1,11 @@ +--- build.xml.orig 2004-10-09 17:53:58.698052672 +0200 ++++ build.xml 2004-10-09 17:57:13.151491256 +0200 +@@ -201,7 +201,7 @@ + </target> + + +- <target name="dist" depends="compile,javadoc" ++ <target name="dist" depends="compile" + description="Create binary distribution"> + <mkdir dir="${dist.home}"/> + <mkdir dir="${dist.home}/lib"/> diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..5253d07 --- /dev/null +++ b/debian/rules @@ -0,0 +1,38 @@ +#!/usr/bin/make -f +# debian/rules for commons-daemon + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +#export DH_COMPAT=4 + +# this is for my IBM ppc's JDK +export JITC_PROCESSOR_TYPE=6 + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/ant.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +JAVA_HOME := /usr/lib/j2se/1.4 +ANT_HOME := /usr/share/ant1.6 +DEB_JARS := /usr/share/ant1.6/lib/ant-launcher.jar jaxp-1.2 xercesImpl +DEB_ANT_COMPILER := jikes +DEB_ANT_BUILD_TARGET := dist + +LIBRARY=commons-daemon +VERSION=1.0 + +install/lib${LIBRARY}-java:: + install -m 644 dist/${LIBRARY}.jar debian/lib${LIBRARY}-java/usr/share/java/${LIBRARY}-${VERSION}.jar + echo "usr/share/java/${LIBRARY}-${VERSION}.jar usr/share/java/${LIBRARY}.jar" > debian/lib${LIBRARY}-java.links +# NO DOCUMENTATION AT THE MOMENT +# -cp -a dist/docs/ debian/lib${LIBRARY}-java/usr/share/doc/lib${LIBRARY}-java/ + +install/jsvc:: + cd src/native/unix ; ./configure --with-java=$(JAVA_HOME) ; make + +clean:: + -rm debian/lib${LIBRARY}-java.links + -(cd src/native/unix ; make clean) + -rm src/native/unix/config.log src/native/unix/config.status diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..c5440cc --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://www.apache.org/dist/jakarta/commons/daemon/source/daemon-(.*)\.tar\.gz debian uupdate diff --git a/src/native/unix/Makedefs b/src/native/unix/Makedefs new file mode 100644 index 0000000..13b929a --- /dev/null +++ b/src/native/unix/Makedefs @@ -0,0 +1,71 @@ +# ========================================================================= # +# # +# The Apache Software License, Version 1.1 # +# # +# Copyright (c) 1999-2001 The Apache Software Foundation. # +# All rights reserved. # +# # +# ========================================================================= # +# # +# Redistribution and use in source and binary forms, with or without modi- # +# fication, are permitted provided that the following conditions are met: # +# # +# 1. Redistributions of source code must retain the above copyright notice # +# notice, this list of conditions and the following disclaimer. # +# # +# 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 end-user documentation included with the redistribution, if any, # +# must include the following acknowlegement: # +# # +# "This product includes software developed by the Apache Software # +# Foundation <http://www.apache.org/>." # +# # +# Alternately, this acknowlegement may appear in the software itself, if # +# and wherever such third-party acknowlegements normally appear. # +# # +# 4. The names "The Jakarta Project", "WebApp", and "Apache Software # +# Foundation" must not be used to endorse or promote products derived # +# from this software without prior written permission. For written # +# permission, please contact <[email protected]>. # +# # +# 5. Products derived from this software may not be called "Apache" nor may # +# "Apache" appear in their names without prior written permission of the # +# Apache Software Foundation. # +# # +# THIS SOFTWARE IS PROVIDED "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 # +# THE APACHE SOFTWARE FOUNDATION OR ITS 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. # +# # +# ========================================================================= # +# # +# This software consists of voluntary contributions made by many indivi- # +# duals on behalf of the Apache Software Foundation. For more information # +# on the Apache Software Foundation, please see <http://www.apache.org/>. # +# # +# ========================================================================= # + +# @author Pier Fumagalli <mailto:[email protected]> +# @version $Id: Makedefs.in,v 1.1.1.1 2003/09/04 23:28:20 yoavs Exp $ + +CC = gcc +JAVAC = /usr/lib/j2se/1.4/bin/javac +JAR = /usr/lib/j2se/1.4/bin/jar +CFLAGS = -g -O2 -DCPU=\"powerpc\" -DOS_LINUX -DDSO_DLFCN -I/usr/lib/j2se/1.4/include -I/usr/lib/j2se/1.4/include/linux -Wall -Wstrict-prototypes +LDFLAGS = -ldl +JAVACFLAGS = +RANLIB = ranlib +LDCMD = gcc + +.c.o: + $(CC) $(CFLAGS) -c $< -o $@ diff --git a/src/native/unix/Makefile b/src/native/unix/Makefile new file mode 100644 index 0000000..ba4fc2b --- /dev/null +++ b/src/native/unix/Makefile @@ -0,0 +1,80 @@ +# ========================================================================= # +# # +# The Apache Software License, Version 1.1 # +# # +# Copyright (c) 1999-2001 The Apache Software Foundation. # +# All rights reserved. # +# # +# ========================================================================= # +# # +# Redistribution and use in source and binary forms, with or without modi- # +# fication, are permitted provided that the following conditions are met: # +# # +# 1. Redistributions of source code must retain the above copyright notice # +# notice, this list of conditions and the following disclaimer. # +# # +# 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 end-user documentation included with the redistribution, if any, # +# must include the following acknowlegement: # +# # +# "This product includes software developed by the Apache Software # +# Foundation <http://www.apache.org/>." # +# # +# Alternately, this acknowlegement may appear in the software itself, if # +# and wherever such third-party acknowlegements normally appear. # +# # +# 4. The names "The Jakarta Project", "WebApp", and "Apache Software # +# Foundation" must not be used to endorse or promote products derived # +# from this software without prior written permission. For written # +# permission, please contact <[email protected]>. # +# # +# 5. Products derived from this software may not be called "Apache" nor may # +# "Apache" appear in their names without prior written permission of the # +# Apache Software Foundation. # +# # +# THIS SOFTWARE IS PROVIDED "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 # +# THE APACHE SOFTWARE FOUNDATION OR ITS 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. # +# # +# ========================================================================= # +# # +# This software consists of voluntary contributions made by many indivi- # +# duals on behalf of the Apache Software Foundation. For more information # +# on the Apache Software Foundation, please see <http://www.apache.org/>. # +# # +# ========================================================================= # + +# @author Pier Fumagalli <mailto:[email protected]> +# @version $Id: Makefile.in,v 1.1.1.1 2003/09/04 23:28:20 yoavs Exp $ + +SUBDIRS = native + +all: native/all + +native/all: + $(MAKE) -C native all + +clean: + $(MAKE) -C native clean + +distclean: clean + rm -f config.cache + rm -f config.log + rm -f config.status + rm -f native/Makefile + rm -f Makefile + rm -f Makedefs + +realclean: distclean + rm -f configure diff --git a/src/native/unix/native/Makefile b/src/native/unix/native/Makefile new file mode 100644 index 0000000..93ea2b7 --- /dev/null +++ b/src/native/unix/native/Makefile @@ -0,0 +1,43 @@ +# +# Copyright 2001-2004 The Apache Software Foundation. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# @author Pier Fumagalli <mailto:[email protected]> +# @version $Id: Makefile.in,v 1.2 2004/02/09 15:55:21 jfclere Exp $ + +include ../Makedefs + +OBJS = arguments.o \ + debug.o \ + dso-dlfcn.o \ + dso-dyld.o \ + help.o \ + home.o \ + java.o \ + location.o \ + replace.o \ + signals.o + +all: jsvc libservice.a + +libservice.a: $(OBJS) + ar cr libservice.a $(OBJS) + $(RANLIB) libservice.a + +jsvc: jsvc-unix.o libservice.a + $(LDCMD) $(LDFLAGS) jsvc-unix.o libservice.a -o ../jsvc + +clean: + rm -f $(OBJS) ../jsvc jsvc-unix.o libservice.a + -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/commons-daemon.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

