debian/0000775000000000000000000000000012263044725007175 5ustar debian/copyright0000664000000000000000000000661112260136462011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: shush Upstream-Contact: Christophe Kalt Upstream-Source: http://web.taranis.org/shush/dist/ Files: * Copyright: 2003, 2009 Christophe Kalt License: BSD Copyright (c) The Regents of the University of California. All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2010-2013, Dario Minnucci License: BSD Copyright (c) The Regents of the University of California. All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/README.Debian0000664000000000000000000000041712260136462011235 0ustar shush for Debian ---------------- The shush Debian package was compiled using the option '--with-pcre', '--with-syslog' and '--with-sizelimit=2000', so you should be able to use these features. -- Dario Minnucci Sat, 06 Feb 2010 06:46:15 +0100 debian/shush.manpages0000664000000000000000000000001012260136462012030 0ustar shush.1 debian/shush.install0000664000000000000000000000002212260136462011706 0ustar src/shush usr/bin debian/README.source0000664000000000000000000000064612260136462011357 0ustar shush for Debian ---------------- This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. Please see: /usr/share/doc/quilt/README.source for more information on how to apply the patches, modify patches, or remove a patch. -- Dario Minnucci Sat, 06 Feb 2010 07:10:57 +0100 debian/changelog0000664000000000000000000000304112263044722011042 0ustar shush (1.2.3-3ubuntu1) trusty; urgency=low * Fix format string errors, resolving FTBFS. * Add missing preprocessor directive, resolving implicit function declaration. -- Daniel T Chen Tue, 07 Jan 2014 13:23:22 -0500 shush (1.2.3-3) unstable; urgency=low * debian/patches: - Drop patch: 01-fix-config.sub.diff - Drop patch: 02-fix-config.guess.diff - Update patch: 00_fix_shush.1.diff + Updated to fix spelling-error-in-manpage * debian/rules: - Add dh option --with autotools_dev * debian/copyright: - Update file to the current copyright format * debian/control: - Bump Standards-Version to 3.9.5 (no changes) - Update Build-Depends to debhelper (>= 9) - Added fields: Vcs-Git and Vcs-Browser -- Dario Minnucci Mon, 30 Dec 2013 01:24:36 +0100 shush (1.2.3-2) unstable; urgency=low * debian/control: Bump Standards-Version to 3.9.1 (no changes) * Added patches to update config.guess and config.sub files. + debian/patches/01-fix-config.sub.diff + debian/patches/02-fix-config.guess.diff (Closes: #571000) * debian/copyright: Pointer to BSD licensed repleced with the license text itself to suppress lintian warning. W: copyright-refers-to-deprecated-bsd-license-file -- Dario Minnucci Thu, 29 Jul 2010 22:18:33 +0200 shush (1.2.3-1) unstable; urgency=low * Initial release (Closes: #537971) * Switch to dpkg-source 3.0 (quilt) format -- Dario Minnucci Sat, 06 Feb 2010 07:20:04 +0100 debian/patches/0000775000000000000000000000000012263044660010622 5ustar debian/patches/00_fix_shush.1.diff0000664000000000000000000001140612260136462014113 0ustar # # Description: Fixes for shush.1 manpage. # # Deals with a few lintian warnings and info messages: # # I: shush: hyphen-used-as-minus-sign usr/share/man/man1/shush.1.gz:32 # I: shush: hyphen-used-as-minus-sign usr/share/man/man1/shush.1.gz:236 # I: shush: hyphen-used-as-minus-sign usr/share/man/man1/shush.1.gz:307 # I: shush: hyphen-used-as-minus-sign usr/share/man/man1/shush.1.gz:399 # I: shush: hyphen-used-as-minus-sign usr/share/man/man1/shush.1.gz:404 # I: shush: hyphen-used-as-minus-sign usr/share/man/man1/shush.1.gz:436 # I: shush: spelling-error-in-manpage usr/share/man/man1/shush.1.gz allows to allows one to # W: shush: manpage-has-errors-from-man usr/share/man/man1/shush.1.gz 2: warning: macro `DA' not defined # W: shush: manpage-has-errors-from-man usr/share/man/man1/shush.1.gz 278: expected `;' after scale-indicator (got `r') # W: shush: manpage-has-errors-from-man usr/share/man/man1/shush.1.gz 337: warning: numeric expression expected (got `o') # # Author: Dario Minnucci # Forwarded: Christophe Kalt # Updated: 2013-12-30 # Index: shush/shush.1 =================================================================== --- shush.orig/shush.1 2013-12-30 00:14:03.582414440 +0100 +++ shush/shush.1 2013-12-30 00:15:22.313236611 +0100 @@ -1,5 +1,4 @@ .TH SHUSH 1 "$Date: 2007-09-30 23:38:23 $" -.DA December 29, 2006 .SH NAME shush - Run a command and optionally report its output by mail .SH SYNOPSIS @@ -30,7 +29,7 @@ .B -R \fIto\fP ] [ .B -T \fIto\fP -] -C \fIname\fP [ \fIstdout\fP [ \fIstderr\fP ] ] +] \-C \fIname\fP [ \fIstdout\fP [ \fIstderr\fP ] ] .B shush [ @@ -234,7 +233,7 @@ This parameter allows one to control how long the \fIcommand\fP may run. It should be a comma separated list of actions. Valid actions are: a time duration (during which \fBshush\fP should simply wait for the \fIcommand\fP -to terminate), a signal (either "SIGNAME" or "-SIGNUMBER") that should be +to terminate), a signal (either "SIGNAME" or "\-SIGNUMBER") that should be sent to the \fIcommand\fP's process group, a signal (either "=SIGNAME" or "=SIGNUMBER") that should be sent to the \fIshell\fP used to spawn the \fIcommand\fP, the string "loop" (to mark where to start again from when @@ -272,11 +271,13 @@ "\fBsubject\fP" contains any "%" character. .IP "\fBuserprefix\fP" By default, specified subjects are prefixed with the username between -brackets. This parameter allows to disable this prefix. Any non zero value +brackets. This parameter allows one to disable this prefix. Any non zero value indicates that the username should be shown while zero causes the prefix to be omitted. This parameter is ignored if the "\fBsubject\fP" contains any "%" character. -.IP "\fBoutput\fP" (previously "\fBstderr\fB") +.IP "\fBoutput\fP" +(previously "\fBstderr\fB") + This defines how the command's standard output and standard error are captured and reported to the user: "errfirst", "mixed", "outfirst". When using "mixed", the \fIname.stderr\fP configuration file is ignored. When @@ -303,7 +304,7 @@ .IP "\fB$exit\fP" If the command terminated normally, this is its exit code. Otherwise, it is negative and indicates the signal number having caused the command to -terminate (e.g. -1 indicates signal number 1 caused the command to terminate). +terminate (e.g. \-1 indicates signal number 1 caused the command to terminate). .IP "\fB$size\fP" output size (in bytes), same as "$outsize + $errsize" .IP "\fB$outsize\fP" @@ -333,7 +334,10 @@ The "%" character .IP "\fB%h\fP" The hostname -.IP "\fB%\fP" or "\fB%-\FP" +.IP "\fB%\fP" +or +"\fB%-\FP" + A partial hostname: A positive digit indicates how many components of the fully qualified hostname to keep; a negative digit indicates how many trailing components of the fully qualified hostname to trim. @@ -392,12 +396,12 @@ Directory where temporary files are created. .SH EXAMPLE -The following configuration runs "shush -c /etc/shush -u" daily at 9:00, +The following configuration runs "shush \-c /etc/shush \-u" daily at 9:00, updating the user (root) crontab: .RS .nf -command=shush -c /etc/shush -u +command=shush \-c /etc/shush \-u schedule=0 9 * * * lock=notify=root root-logs,abort timeout=5m,loop,notify=root root-logs,15m @@ -429,7 +433,7 @@ A lock will be set while running the command, and mail sent to "root" and "root-logs" if the lock is held by another process when \fBshush\fP starts, in which case \fBshush\fP will abort. A mail will also be sent to "root" -and "root-logs" if "shush -c /etc/shush -u" runs for more than 5 minutes, +and "root-logs" if "shush \-c /etc/shush \-u" runs for more than 5 minutes, and for every 15 minutes following the first 5 minutes. Upon completion, the output will always be sent to "root-logs". debian/patches/01_fix_string_format.diff0000664000000000000000000000127512263043017015500 0ustar Index: shush-1.2.3/src/analyzer.c =================================================================== --- shush-1.2.3.orig/src/analyzer.c 2008-03-08 18:25:46.000000000 -0500 +++ shush-1.2.3/src/analyzer.c 2014-01-07 13:23:08.700034641 -0500 @@ -654,7 +654,7 @@ else tag = (format == CF_FORMAT_RICH) ? "" : ""; - if (fprintf(mail, tag) != strlen(tag)) + if (fprintf(mail, "%s", tag) != strlen(tag)) { error("fprintf() failed: %s", ERRSTR); return -1; @@ -675,7 +675,7 @@ else abort(); - if (fprintf(mail, esc) != strlen(esc)) + if (fprintf(mail, "%s", esc) != strlen(esc)) { error("fprintf() failed: %s", ERRSTR); return -1; debian/patches/series0000664000000000000000000000013012263044622012027 0ustar 00_fix_shush.1.diff 01_fix_string_format.diff 02_fix_implicit_declaration_strftime.diff debian/patches/02_fix_implicit_declaration_strftime.diff0000664000000000000000000000055412263044660020723 0ustar Index: shush-1.2.3/src/check.c =================================================================== --- shush-1.2.3.orig/src/check.c 2008-03-08 18:25:46.000000000 -0500 +++ shush-1.2.3/src/check.c 2014-01-07 13:38:36.991356799 -0500 @@ -9,6 +9,7 @@ #include #include +#include #if defined(HAVE_PATHS_H) # include #else debian/watch0000664000000000000000000000010012260136462010212 0ustar version=3 http://web.taranis.org/shush/ dist/shush-(.+)\.tgz debian/control0000664000000000000000000000274112263042335010577 0ustar Source: shush Section: admin Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Dario Minnucci Build-Depends: debhelper (>= 9), autotools-dev, libpcre3-dev Standards-Version: 3.9.5 Homepage: http://web.taranis.org/shush/ Vcs-Git: git://anonscm.debian.org/collab-maint/shush.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/shush.git Package: shush Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: runs a command and optionally reports its output by mail shush was written to be a generic wrapper around cron jobs so that it can be applied to any command without having to modify it or create a custom wrapper for it. In a sense, it solves a fairly simple problem, but it also brings some powerful features making it a useful tool beyond cron jobs. . Feature highlights: . * Multiple reports (for the output) may be defined * Decision to send a report (or not) is configurable based on: - Output content analysis (using regular expressions) - Command exit code - Size of output - Command execution duration * Support for plain text, enriched text and HTML report formatting. (The latter two allow rendering part of the output in bold.) * Various timeout actions such as notification and command termination * Locking support * Progress report logging via syslog * Automatic crontab file updating based on shush's configuration debian/source/0000775000000000000000000000000012260136462010472 5ustar debian/source/format0000664000000000000000000000001412260136462011700 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000212260136462010370 0ustar 9 debian/shush.dirs0000664000000000000000000000001012260136462011176 0ustar usr/bin debian/rules0000775000000000000000000000045112260136462010252 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 %: dh $@ --with autotools_dev CFLAGS += -Wformat=0 override_dh_clean: dh_clean rm -f config.status rm -f src/signals.h override_dh_auto_configure: ./configure \ --with-pcre \ --with-syslog \ --with-sizelimit=2000 override_dh_auto_install: