[Lunar-commits] <moonbase> commons-daemon: new module for java unix daemons
Christian Krause
wookietreiber at lunar-linux.org
Sat Sep 3 10:19:27 CEST 2011
commit d30feb1cb9625235d81d1ba9a627c03fb0281673
Author: Christian Krause <wookietreiber at lunar-linux.org>
Date: Sat Sep 3 10:19:27 2011 +0200
commons-daemon: new module for java unix daemons
---
zbeta/commons-daemon/BUILD | 28 ++++++++++++++++++++++++++++
zbeta/commons-daemon/CONFIGURE | 1 +
zbeta/commons-daemon/DEPENDS | 2 ++
zbeta/commons-daemon/DETAILS | 29 +++++++++++++++++++++++++++++
4 files changed, 60 insertions(+), 0 deletions(-)
diff --git a/zbeta/commons-daemon/BUILD b/zbeta/commons-daemon/BUILD
new file mode 100644
index 0000000..218cfe7
--- /dev/null
+++ b/zbeta/commons-daemon/BUILD
@@ -0,0 +1,28 @@
+(
+
+ # build commons-daemon.jar
+ ant
+
+ # build jsvc
+ cd src/native/unix
+ default_config
+ make
+
+ cd $SOURCE_DIRECTORY
+
+ prepare_install
+
+ # install commons-daemon.jar
+ install -Dm755 dist/$MODULE-$VERSION.jar /usr/share/java/$MODULE-$VERSION.jar
+ ln -sf /usr/share/java/$MODULE-$VERSION.jar /usr/share/java/$MODULE.jar
+
+ # optional install API docs
+ if [ "`get_module_config DOCS`" = "y" ] ; then
+ install -d /usr/share/doc/$MODULE
+ cp -r dist/docs/api/* /usr/share/doc/$MODULE
+ fi
+
+ # install jsvc
+ install -Dm755 src/native/unix/jsvc /usr/bin/jsvc
+
+) > $C_FIFO 2>&1
diff --git a/zbeta/commons-daemon/CONFIGURE b/zbeta/commons-daemon/CONFIGURE
new file mode 100644
index 0000000..115e481
--- /dev/null
+++ b/zbeta/commons-daemon/CONFIGURE
@@ -0,0 +1 @@
+mquery DOCS "Install devel-docs (API docs)?" n
diff --git a/zbeta/commons-daemon/DEPENDS b/zbeta/commons-daemon/DEPENDS
new file mode 100644
index 0000000..72ad214
--- /dev/null
+++ b/zbeta/commons-daemon/DEPENDS
@@ -0,0 +1,2 @@
+depends apache-ant
+depends libcap
diff --git a/zbeta/commons-daemon/DETAILS b/zbeta/commons-daemon/DETAILS
new file mode 100644
index 0000000..968eabe
--- /dev/null
+++ b/zbeta/commons-daemon/DETAILS
@@ -0,0 +1,29 @@
+ MODULE=commons-daemon
+ VERSION=1.0.7
+ SOURCE=$MODULE-$VERSION-src.tar.gz
+ SOURCE_URL=http://archive.apache.org/dist/commons/daemon/source
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION-src
+ SOURCE_VFY=sha1:72031ff9729b98c2dae34bb5118adb8213f8c3b3
+ WEB_SITE=http://commons.apache.org/daemon/
+ ENTERED=20110903
+ UPDATED=20110903
+ SHORT="runs java-apps as unix-daemons, Daemon API"
+
+cat << EOF
+Apache commons-daemon provides a portable means of starting and
+stopping a Java Virtual Machine (JVM) that is running server-side
+applications. Such applications often have additional requirements
+compared to client-side applications. For example, the servlet
+container Tomcat would need to serialize sessions and shutdown web
+applications before the JVM process terminates.
+
+Apache commons-daemon comprises 2 parts: a native library written
+in C that interfaces with the operating system, and the library that
+provides the Daemon API, written in Java.
+
+There are two ways to use Apache commons-daemon: by implementing the
+daemon interface or by calling a class that provides the required
+methods for daemon. For example, Tomcat-4.1.x uses the daemon
+interface and Tomcat-5.0.x provides a class whose methods are
+called by JSVC directly.
+EOF
More information about the Lunar-commits
mailing list