--- sec-2.8.1.orig/debian/changelog +++ sec-2.8.1/debian/changelog @@ -0,0 +1,205 @@ +sec (2.8.1-1) unstable; urgency=medium + + * New upstream release, bugfix on dumpfile creation. + + -- Jaakko Niemi Fri, 05 Oct 2018 07:30:27 +0300 + +sec (2.8.0-1) unstable; urgency=medium + + * New upstream release, please see ChangeLog for details. + + -- Jaakko Niemi Sun, 02 Sep 2018 02:42:03 +0300 + +sec (2.7.12-1) unstable; urgency=medium + + * New upstream release + + -- Jaakko Niemi Wed, 13 Dec 2017 18:48:29 +0200 + +sec (2.7.11-1) unstable; urgency=medium + + * New upstream release, please see ChangeLog for details. + + -- Jaakko Niemi Mon, 13 Feb 2017 18:49:10 +0200 + +sec (2.7.10-1) unstable; urgency=medium + + * New upstream release, please see ChangeLog for details. + + -- Jaakko Niemi Tue, 14 Jun 2016 19:15:55 +0300 + +sec (2.7.9-1) unstable; urgency=medium + + * New upstream release, please see ChangeLog for details. + + -- Jaakko Niemi Fri, 11 Mar 2016 18:54:37 +0200 + +sec (2.7.8-1) unstable; urgency=medium + + * New upstream release, please see ChangeLog for details. + + -- Jaakko Niemi Sun, 29 Nov 2015 20:21:05 +0200 + +sec (2.7.7-2) unstable; urgency=medium + + * Fix typoes in unit file (Closes: #791581) + * Ship new unit file which changes type to forking, defines pidfile and reads options from /etc/default/sec (Closes: #789809) + * Change options in /etc/default/sec to use two dashes instead one, to follow upstream convention + + -- Jaakko Niemi Tue, 14 Jul 2015 18:07:53 +0300 + +sec (2.7.7-1) unstable; urgency=medium + + * New upstream release + + -- Jaakko Niemi Sat, 14 Mar 2015 08:28:59 +0200 + +sec (2.7.6-1) unstable; urgency=medium + + * New upstream release + * enable systemd support and ship service file + + -- Jaakko Niemi Thu, 14 Aug 2014 00:28:38 +0300 + +sec (2.7.5-1) unstable; urgency=low + + * New upstream release, please see ChangeLog for details. + + -- Jaakko Niemi Mon, 27 Jan 2014 18:07:15 +0200 + +sec (2.7.4-1) unstable; urgency=low + + * New upstream release, please see ChangeLog for details. + + -- Jaakko Niemi Tue, 02 Jul 2013 19:06:38 +0300 + +sec (2.7.3-2) unstable; urgency=low + + * Change init script stop target to $NAME and disable + secondary stop since it's never needed (Closes: 711942) + + -- Jaakko Niemi Tue, 11 Jun 2013 17:35:36 +0300 + +sec (2.7.3-1) unstable; urgency=low + + * New upstream release + * update standards version, no changes needed + * Apply patch from #669109 to avoid multiple starts, + Thanks, Frank Baalbergen (Closes: #669109) + * Update FHS fields in init script (argh!) + + -- Jaakko Niemi Fri, 07 Jun 2013 23:18:05 +0300 + +sec (2.7.0-0.1) unstable; urgency=low + + * New upstream release + + -- Jaakko Niemi Thu, 31 Jan 2013 23:04:49 +0200 + +sec (2.6.2-1) unstable; urgency=low + + * New upstream release + + -- Jaakko Niemi Mon, 09 Apr 2012 21:16:20 +0300 + +sec (2.6.0-1) unstable; urgency=low + + * New upstream release (not uploaded) + * Modify debian/rules to match the sec.pl -> sec name change + + -- Jaakko Niemi Sat, 13 Aug 2011 23:51:09 +0300 + +sec (2.5.3-1+nmu1) unstable; urgency=low + + * Non-maintainer upload with permission from maintainer + * New upstream (Closes: #539808) + + -- Toni Mueller Thu, 28 Jan 2010 18:05:35 +0100 + +sec (2.5.2-1) unstable; urgency=low + + * New upstream + + -- Toni Mueller Thu, 29 Oct 2009 13:07:31 +0100 + +sec (2.4.2-1) unstable; urgency=low + + * New upstream release + * Add initscript (Closes: #414958) + + -- Jaakko Niemi Sat, 15 Mar 2008 20:16:56 +0200 + +sec (2.4.0-1) unstable; urgency=low + + * New upstream release + * update standards version, no changes needed + + -- Jaakko Niemi Sat, 28 Oct 2006 22:32:35 +0300 + +sec (2.3.2-1) unstable; urgency=low + + * New upstream release + + -- Jaakko Niemi Thu, 8 Sep 2005 22:30:31 +0300 + +sec (2.3.1-1) unstable; urgency=low + + * New upstream release + + -- Jaakko Niemi Mon, 28 Feb 2005 21:36:41 +0200 + +sec (2.3.0-1) unstable; urgency=low + + * New upstream release + + -- Jaakko Niemi Sun, 6 Feb 2005 17:07:57 +0200 + +sec (2.2.4-1) unstable; urgency=low + + * New upstream release + + -- Jaakko Niemi Tue, 15 Jun 2004 23:41:30 +0300 + +sec (2.2.2-1) unstable; urgency=low + + * New upstream release + + -- Jaakko Niemi Sun, 23 May 2004 11:13:44 +0300 + +sec (2.2.0-3) unstable; urgency=low + + * Really fix build-depends, duh (closes: #233140) + + -- Jaakko Niemi Tue, 17 Feb 2004 18:34:09 +0200 + +sec (2.2.0-2) unstable; urgency=low + + * Fix depends and build-depends (closes: #231241) + * update standards version, no changes needed + + -- Jaakko Niemi Thu, 5 Feb 2004 18:22:38 +0200 + +sec (2.2.0-1) unstable; urgency=low + + * New upstream release + + -- Jaakko Niemi Sat, 24 Jan 2004 22:12:37 +0200 + +sec (2.1.11-3) unstable; urgency=low + + * Initial upload (closes: #221164) + + -- Jaakko Niemi Sat, 13 Dec 2003 23:29:23 +0200 + +sec (2.1.11-2) unstable; urgency=low + + * change sec.pl to sec in manpage and few other places + + -- Jaakko Niemi Sun, 16 Nov 2003 11:12:08 +0200 + +sec (2.1.11-1) unstable; urgency=low + + * Initial packaging + + -- Jaakko Niemi Sun, 16 Nov 2003 10:20:11 +0200 + --- sec-2.8.1.orig/debian/compat +++ sec-2.8.1/debian/compat @@ -0,0 +1 @@ +7 --- sec-2.8.1.orig/debian/control +++ sec-2.8.1/debian/control @@ -0,0 +1,17 @@ +Source: sec +Section: utils +Priority: optional +Maintainer: Jaakko Niemi +Standards-Version: 3.9.4.0 +Build-Depends: debhelper (>= 7), cdbs, dh-systemd + +Package: sec +Architecture: all +Depends: ${misc:Depends}, perl (>= 5.6.0) +Description: Simple Event Correlator + SEC is a simple event correlation tool that takes + input and executes actions based on rules. It is + very flexible and can be used with anything that + can write out to a file stream. + + --- sec-2.8.1.orig/debian/copyright +++ sec-2.8.1/debian/copyright @@ -0,0 +1,13 @@ + + This package was debianized by Jaakko Niemi in November 2003. + + It was downloaded from http://prdownloads.sourceforge.net/simple-evcorr/ + + Upstream author: Risto Vaarandi (risto.vaarandi@eyp.ee) + + Upstream site is in: http://www.estpak.ee/~risto/sec/ + + Copyright (C) 2000-2003 Risto Vaarandi + + Distributed under GPLv2:i /usr/share/common-licenses/GPL-2 + --- sec-2.8.1.orig/debian/dirs +++ sec-2.8.1/debian/dirs @@ -0,0 +1 @@ +usr/bin --- sec-2.8.1.orig/debian/rules +++ sec-2.8.1/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/rules/debhelper.mk + +binary-post-install/sec:: + install -m 0755 -D sec debian/sec/usr/bin/sec + install -m 0644 -D sec.man debian/sec/usr/share/man/man1/sec.1 --- sec-2.8.1.orig/debian/sec.default +++ sec-2.8.1/debian/sec.default @@ -0,0 +1,3 @@ +#Defaults for sec +RUN_DAEMON="no" +DAEMON_ARGS="--conf=/etc/sec.conf --input=/var/log/syslog --pid=/var/run/sec.pid --detach --syslog=daemon" --- sec-2.8.1.orig/debian/sec.examples +++ sec-2.8.1/debian/sec.examples @@ -0,0 +1,3 @@ +contrib/convert.pl +contrib/swatch2sec.pl +contrib/itostream.c --- sec-2.8.1.orig/debian/sec.init +++ sec-2.8.1/debian/sec.init @@ -0,0 +1,159 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: sec +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: starts and stops the Simple Event Correlator +# Description: SEC is Simple Event Correlator +### END INIT INFO + +# Author: Jaakko Niemi +# +# Based on Etch skeleton. Thanks to The Anarcat for first script. + +# Do NOT "set -e" + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="Simple Event Correlator" +NAME=sec +PERL=/usr/bin/perl +DAEMON=/usr/bin/$NAME +#DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +if [ "$RUN_DAEMON" != "yes" ] ; then + echo "SEC disabled in /etc/default/sec" + exit 0 +fi + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $PERL --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $PERL --startas $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + #start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + #[ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: --- sec-2.8.1.orig/debian/sec.service +++ sec-2.8.1/debian/sec.service @@ -0,0 +1,13 @@ +[Unit] +Description=simple event correlator +Documentation=man:sec(1) http://simple-evcorr.sourceforge.net + +[Service] +Type=forking +PIDFile=/var/run/sec.pid +EnvironmentFile=-/etc/default/sec +EnvironmentFile=-/etc/default/sec.d/* +ExecStart=/usr/bin/sec $DAEMON_ARGS + +[Install] +WantedBy=default.target