mirror of https://github.com/apache/cassandra
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/branches/cassandra-0.7@1048913 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b4e5898403
commit
22a6d1c52e
|
|
@ -10,7 +10,8 @@ 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)
|
||||
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.
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue