debian/0000755000000000000000000000000012211043770007163 5ustar debian/avisd.80000644000000000000000000000033512200713255010363 0ustar .TH AVISD 8 .SH NAME avisd \- run the avis router .SH SYNOPSIS .B avisd [\fB\-daemon\fR] .SH DESCRIPTION .B avisd runs the avis router process. .SH OPTIONS .TP .BR \-daemon Run as a daemon process Default runs on console debian/avis.postrm0000644000000000000000000000110312200714111011356 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then # MySQL uses debconf to get user confirmation before # wiping it's lib database directory, a similar # approach might be desirable for avis #rm -rf /var/lib/avis #rm -rf /var/run/avis if getent passwd avis >/dev/null; then userdel avis fi if getent group avis >/dev/null; then groupdel avis fi fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/avis.manifest0000644000000000000000000000047612200712510011655 0ustar usr/share/avis/avis-router.jar: Class-Path: /usr/share/java/junit4.jar /usr/share/java/mina-core.jar /usr/share/java/mina-filter-ssl.jar /usr/share/java/slf4j-simple.jar Main-class: org.avis.router.Main debian/watch0000644000000000000000000000013412200743330010207 0ustar version=3 http://sf.net/avis/avis-src-(\d\S*)\.\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian/patches/0000755000000000000000000000000012200706700010607 5ustar debian/patches/series0000644000000000000000000000013412200706626012031 0ustar 0001-Use-regular-Jar-task-instead-of-JarX.patch 0002-Look-for-JAR-in-correct-location.patch debian/patches/0001-Use-regular-Jar-task-instead-of-JarX.patch0000644000000000000000000000250412200706362020751 0ustar From: Daniel Pocock Date: Thu, 8 Aug 2013 13:53:46 +0200 Subject: Use regular Jar task instead of JarX --- server/build.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/server/build.xml b/server/build.xml index 211bf95..4c7b649 100644 --- a/server/build.xml +++ b/server/build.xml @@ -137,17 +137,25 @@ depends="compile,avis-router-jar-uptodate,properties" unless="avis-router-jar-uptodate"> - + - - + --> + + + + + + + + debian/patches/0002-Look-for-JAR-in-correct-location.patch0000644000000000000000000000130412200706362020164 0ustar From: Daniel Pocock Date: Thu, 8 Aug 2013 14:19:47 +0200 Subject: Look for JAR in correct location --- server/bin/avisd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/bin/avisd b/server/bin/avisd index 0b76fdb..35e852d 100755 --- a/server/bin/avisd +++ b/server/bin/avisd @@ -6,8 +6,9 @@ daemon=0 avis_opts="" # find avis-router.jar in either lib or libexec/avis -base_dir=`dirname "$0"` -avisd_jar="$base_dir/../lib/avis-router.jar" +#base_dir=`dirname "$0"` +#avisd_jar="$base_dir/../lib/avis-router.jar" +avisd_jar="/usr/share/avis/avis-router.jar" if [ ! -f "$avisd_jar" ]; then avisd_jar="$base_dir/../libexec/avis/avis-router.jar" debian/rules0000755000000000000000000000054412200712352010243 0ustar #!/usr/bin/make -f JAVA_HOME=/usr/lib/jvm/default-java #export CLASSPATH=/usr/share/java/junit4.jar:/usr/share/java/mina-core.jar:/usr/share/java/mina-filter-ssl.jar:/usr/share/java/slf4j-simple.jar %: dh $@ --with javahelper #override_dh_link: # dh_link usr/share/avis/avis-router.jar usr/bin/avis-router override_dh_auto_build: (cd server ; ant ) debian/compat0000644000000000000000000000000212200700703010353 0ustar 9 debian/avis.install0000644000000000000000000000010512200712735011513 0ustar server/lib/avis-router.jar usr/share/avis server/bin/avisd usr/sbin/ debian/control0000644000000000000000000000140612200743372010572 0ustar Source: avis Section: net Priority: extra Maintainer: Daniel Pocock Build-Depends: debhelper (>= 9.0.0), javahelper (>=0.25) Build-Depends-Indep: default-jdk, ant, libmina-java, libfastutil-java, junit4 Standards-Version: 3.9.4 Homepage: http://avis.sourceforge.net Vcs-Git: git://git.debian.org/collab-maint/avis.git Vcs-Browser: http://git.debian.org/?p=collab-maint/avis.git;a=summary Package: avis Architecture: all Depends: ${java:Depends}, ${misc:Depends}, adduser Recommends: ${java:Recommends} Description: high-performance publish/subscribe event router Avis is a high-performance event router. It provides a fast publish/subscribe event routing service compatible with the commercial Elvin implementation developed by Mantara Software. debian/copyright0000644000000000000000000000101212211043636011111 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: avis Upstream-Contact: Matthew Phillips Source: https://avis.svn.sourceforge.net/svnroot/avis Files: * Copyright: 2008, Matthew Phillips License: GPL-3 Files: debian/* Copyright: 2013, Daniel Pocock http://danielpocock.com License: GPL-3 License: GPL-3 On Debian systems, the full text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-3'. debian/source/0000755000000000000000000000000012200703111010451 5ustar debian/source/format0000644000000000000000000000001412200703111011657 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000047412211043770011042 0ustar avis (1.2.2-2) unstable; urgency=low * copyright: update license comment for GPL-3 -- Daniel Pocock Mon, 02 Sep 2013 10:10:12 +0200 avis (1.2.2-1) unstable; urgency=low * Initial packaging (Closes: #719081) -- Daniel Pocock Thu, 08 Aug 2013 07:33:11 +0200 debian/avis.manpages0000644000000000000000000000001712200713321011632 0ustar debian/avisd.8 debian/avis.init0000644000000000000000000000337312200713740011017 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: avisd # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: avis event router # Description: avis event router for real-time data ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin NAME=avisd DESC="event router" DAEMON=/usr/sbin/$NAME USER=avis GROUP=avis PIDFILE="/var/run/$NAME/$NAME.pid" #PIDFILE="/var/run/${NAME}.pid" PIDFILE_DIR=`dirname $PIDFILE` KILL_SPEC=TERM/20/KILL/5 test -x $DAEMON || exit 1 umask 002 # Include defaults if available if [ -f /etc/default/$NAME ] ; then . /etc/default/$NAME fi DAEMON_OPTS="-daemon -pidfile ${PIDFILE}" if [ ! -d "$PIDFILE_DIR" ];then mkdir -p "$PIDFILE_DIR" chown $USER:$GROUP "$PIDFILE_DIR" fi set -e case "$1" in start) echo -n "Starting $DESC: " start-stop-daemon --start --quiet --chuid $USER:$GROUP --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS echo "$NAME." ;; stop) echo -n "Stopping $DESC: " start-stop-daemon --stop --quiet --oknodo --user $USER --pidfile $PIDFILE --retry=${KILL_SPEC} --exec $DAEMON echo "$NAME." ;; status) echo -n "Status $DESC: " PID=$(cat $PIDFILE) kill -0 $PID rc=$? # Check exit code if [ "$rc" -ne 0 ] then echo "$NAME is NOT running." exit 7 else echo "$NAME is running with PID: $PID" fi ;; restart|force-reload) echo -n "Restarting $DESC: " #start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON $0 stop #start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS $0 start echo "$NAME." ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|status|restart|force-reload}" >&2 exit 1 ;; esac exit 0 debian/avis.postinst0000644000000000000000000000351312200714062011731 0ustar #!/bin/sh # currently comment out because otherwise it freezes #. /usr/share/debconf/confmodule set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # $1 = version of the package being upgraded. install() { AVIS_GROUP=avis if ! getent group "$AVIS_GROUP" >/dev/null; then addgroup --system "$AVIS_GROUP" || exit 1 fi AVIS_HOME=/var/lib AVIS_USER=avis if ! getent passwd "$AVIS_USER" >/dev/null; then adduser --system \ --home "${AVIS_HOME}" \ --shell /bin/false \ --no-create-home \ --ingroup "$AVIS_GROUP" \ --disabled-password \ --disabled-login \ --gecos "avis event router" \ "$AVIS_USER" || exit 1 fi if [ ! -d ${AVIS_HOME} ]; then #mkdir -p ${AVIS_HOME} || exit 1 #chown ${AVIS_USER}:${AVIS_GROUP} "${AVIS_HOME}" #chmod 0700 "${AVIS_HOME}" echo "${AVIS_HOME} doesn't exist! aborting" exit 1 fi } case "$1" in configure) install "$2" ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/linkjars0000644000000000000000000000002612200704674010726 0ustar common/lib server/lib