1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
Source: polchat-nick-server
Section: contrib/net
Priority: extra
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.5.8
Upstream-Source: <URL:http://www.polchat.pl/serwer/download/util/polchat-nick-server-(.*)\.src.tar.gz>
Home-Page: <URL:http://www.polchat.pl/>
Description: POLChat Nick Server
Packaged-For: Netia Telekom SA
Copyright: GPL
Major-Changes:
none
Build-Depends-Indep: java-compiler
Build: sh
javac -O -deprecation src/*.java
( cd src; jar cvf NickServer.jar *.class ) || false
Clean: sh
rm -f src/*.class src/*.jar || true
Package: polchat-nick-server
Architecture: all
Depends: polchat-common, java2-runtime, []
Description: POLChat Nick Server
POLChat Nick Server provides database connectivity for POLChat Server.
.
Instead of contacting with a database directly, POLChat Server delegates
all queries to the nick server. Since POLChat Nick Server is a Java
application and comes will full source code, it's easy to connect to any
database that supports JDBC (e.g. Oracle, MySQL, PostgreSQL, etc.)
.
See INSTALL file for information on how to set up a database for use
with the nick server.
.
POLChat Nick Server requires a Java Virtual Machine (e.g. JDK/JRE) to run.
Install: sh
yada install -conffile -subdir polchat debian/conf/NickServer.conf
yada install -data -into /usr/share/java src/*.jar
yada install -doc -as README.mysql INSTALL
yada install -doc nickserv.sql nickserv.txt
yada install -doc -as changelog NEWS
Init: sh
start 91 2 3 4 5 . stop 21 0 1 6 .
.
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=NickServer
DESC="POLChat Nick Server"
PIDFILE="/var/run/polchat/$NAME.pid"
.
DAEMON=/usr/bin/java
.
test -x $DAEMON || exit 0
.
CLASS=NickServer
USER=polchat
GROUP=polchat
PORT=13991
CONFFILE=/etc/polchat/NickServer.conf
LOGFILE=/var/log/polchat/NickServer.log
.
if [ -f $CONFFILE ]; then
. $CONFFILE
fi
.
test "$NICKSERVER_START" = "yes" || exit 0
.
export CLASSPATH="/usr/share/java/NickServer.jar:$JDBC_LIBRARY:$CLASSPATH"
.
ARGS="--nsport 13991 --dbdriver $JDBC_DRIVER --dbconnection $JDBC_DSN"
.
case "$1" in
start)
echo -n "Starting $DESC: "
touch $PIDFILE $LOGFILE
chown $USER:$GROUP $PIDFILE $LOGFILE
chmod 644 $LOGFILE
if start-stop-daemon --test --start --pidfile $PIDFILE \
--user $USER --startas $DAEMON > /dev/null; then
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--make-pidfile --chuid $USER:$GROUP --exec $DAEMON -- \
$ARGS >>$LOGFILE 2>&1 &
echo "$NAME."
else
echo "(already running)."
fi
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --oknodo --quiet --pidfile $PIDFILE \
--user $USER
rm -f $PIDFILE || true
echo "$NAME."
;;
restart|force-reload)
$0 stop
sleep 5
$0 start
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
|