enable use of jna in debian packages

Patch by eevans and paul cannon for CASSANDRA-1689

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1048903 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Evans 2010-12-14 01:46:34 +00:00
parent 4732815c4d
commit 8087edf552
3 changed files with 12 additions and 1 deletions

1
debian/control vendored
View File

@ -11,6 +11,7 @@ Standards-Version: 3.8.3
Package: cassandra
Architecture: all
Depends: openjdk-6-jre-headless (>= 6b11) | java6-runtime, jsvc (>= 1.0), libcommons-daemon-java (>= 1.0), adduser
Recommends: libjna-java
Description: distributed storage system for structured data
Cassandra is a distributed (peer-to-peer) system for the management
and storage of structured data.

7
debian/default vendored Normal file
View File

@ -0,0 +1,7 @@
# NOTICE: See also /etc/cassandra/cassandra-env.sh
# EXTRA_CLASSPATH provides the means to extend Cassandra's classpath with
# additional libraries. It is formatted as a colon-delimited list of
# class directories and/or jar files. For example, to enable the
# JMX-to-web bridge install libmx4j-java and uncomment the following.
#EXTRA_CLASSPATH="/usr/share/java/mx4j-tools.jar"

5
debian/init vendored
View File

@ -77,11 +77,14 @@ fi
#
classpath()
{
cp=
cp="$EXTRA_CLASSPATH"
for j in /usr/share/$NAME/*.jar; do
[ "x$cp" = "x" ] && cp=$j || cp=$cp:$j
done
# use JNA if installed in standard location
[ -r /usr/share/java/jna.jar ] && cp="$cp:/usr/share/java/jna.jar"
# Include the conf directory for purposes of log4j-server.properties, and
# commons-daemon in support of the daemonization class.
printf "$cp:$CONFDIR:/usr/share/java/commons-daemon.jar"