debian/0000755000000000000000000000000012251040172007160 5ustar debian/docs0000644000000000000000000000004610560601205010034 0ustar NEWS README TODO debian/README.Debian debian/compat0000644000000000000000000000000211477136242010373 0ustar 7 debian/stamp-patched0000644000000000000000000000000012011642420011621 0ustar debian/source/0000755000000000000000000000000012242265314010467 5ustar debian/source/format0000644000000000000000000000001412011643034011666 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012011644520010610 5ustar debian/patches/001_debian_systraq_user.diff0000644000000000000000000000371011121231056016066 0ustar # $Id: 001_debian_systraq_user.diff 383 2008-12-14 16:19:57Z joostvb $ # $URL: svn+ssh://svn.debian.org/svn/systraq/trunk/debian/trunk/debian/patches/001_debian_systraq_user.diff $ Don't use upstream name "_systraq" for systraq user, but use Debian specific name "debian-systraq". Index: systraq-0.0.20081214/etc/systraq.in =================================================================== --- systraq-0.0.20081214.orig/etc/systraq.in 2008-12-14 17:17:53.000000000 +0100 +++ systraq-0.0.20081214/etc/systraq.in 2008-12-14 17:18:42.000000000 +0100 @@ -7,18 +7,18 @@ # m h dom mon dow usercommand # # run filetraq every hour at :30. -30 * * * * _systraq [ -r @SYSCONF_PATH@/filetraq.conf ] && command -v filetraq >/dev/null && filetraq @SYSCONF_PATH@/filetraq.conf @LOCALSTATE_PATH@/filetraq +30 * * * * debian-systraq [ -r @SYSCONF_PATH@/filetraq.conf ] && command -v filetraq >/dev/null && filetraq @SYSCONF_PATH@/filetraq.conf @LOCALSTATE_PATH@/filetraq # # clean up filetraq backup files older than two months # @monthly -0 0 1 * * _systraq [ -d @LOCALSTATE_PATH@/filetraq ] && find @LOCALSTATE_PATH@/filetraq -type f -name "*.??.??__??.??" -ctime +60 -exec rm \{\} \; +0 0 1 * * debian-systraq [ -d @LOCALSTATE_PATH@/filetraq ] && find @LOCALSTATE_PATH@/filetraq -type f -name "*.??.??__??.??" -ctime +60 -exec rm \{\} \; # # sent the daily systraq email # @daily -0 0 * * * _systraq command -v systraq >/dev/null && systraq | mailx -s "[Systraq] `hostname` `date +\%Y\%m\%d`" _systraq +0 0 * * * debian-systraq command -v systraq >/dev/null && systraq | mailx -s "[Systraq] `hostname` `date +\%Y\%m\%d`" debian-systraq # # update the systraq status files # @hourly -0 * * * * _systraq command -v st_snapshot.hourly >/dev/null && st_snapshot.hourly +0 * * * * debian-systraq command -v st_snapshot.hourly >/dev/null && st_snapshot.hourly 0 * * * * root command -v st_snapshot.hourly >/dev/null && ST_MODE=root st_snapshot.hourly # debian/patches/series0000644000000000000000000000003511030550305012020 0ustar 001_debian_systraq_user.diff debian/rules0000755000000000000000000000147112242265303010250 0ustar #!/usr/bin/make -f # $Id: rules 442 2012-08-12 06:01:27Z joostvb $ # $URL: svn+ssh://svn.debian.org/svn/systraq/trunk/debian/trunk/debian/rules $ include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk DEB_CONFIGURE_EXTRA_FLAGS := --libexecdir=/usr/share install/systraq:: rm -f debian/systraq/etc/systraq/systraq.d/* rm -f debian/systraq/usr/share/doc/systraq/COPYING rm -f debian/systraq/usr/share/doc/systraq/LICENSE rm -f debian/systraq/usr/share/doc/systraq/ChangeLog mkdir -p debian/systraq/etc/default/systraq.d/examples mv debian/systraq/usr/share/doc/systraq/examples/systraq_is_unconfigured debian/systraq/etc/default/systraq.d/examples/ ln -s /etc/default/systraq.d/examples/systraq_is_unconfigured debian/systraq/usr/share/doc/systraq/examples/systraq_is_unconfigured debian/TODO0000644000000000000000000000215512251036111007651 0ustar сре, 20. нов 2013. 08:40:20 CET commit -5 to svn alioth once that's online again. for upstream TODO: check doc typesetting warnings ship typesetted docs w/ new upstream fix FIXME's in typesetted manpages ----- Hi, during a test with piuparts I noticed your package failed to install, remove+purge, and install again. Like a plain failure on initial install this makes the package too buggy for a release, thus the severity. This is often a problem with the home directory of a system user: the user is not deleted during purge (which is fine), but the home directory is removed. Since the user already exists on the next installation, adduser won't recreate the home. >From the attached log (scroll to the bottom...): Unpacking systraq (from .../systraq_0.0.20081217-6_all.deb) ... Setting up systraq (0.0.20081217-6) ... /var/lib/dpkg/info/systraq.postinst: 26: /var/lib/dpkg/info/systraq.postinst: cannot create /var/lib/systraq/.forward: Directory nonexistent dpkg: error processing systraq (--configure): subprocess installed post-installation script returned error exit status 2 cheers, Andreas debian/etc/0000755000000000000000000000000012242263640007742 5ustar debian/etc/default/0000755000000000000000000000000012242263640011366 5ustar debian/etc/default/systraq.d/0000755000000000000000000000000012242263640013316 5ustar debian/changelog0000644000000000000000000003143112251037730011042 0ustar systraq (0.0.20081217-7) unstable; urgency=low * debian/postinst: create directory if needed before writing /var/lib/systraq/.forward. Thanks Andreas Beckmann. Closes: #730407 "fails to install, purge, and install again: postinst: cannot create /var/lib/systraq/.forward: Directory nonexistent". -- Joost van Baal-Ilić Sun, 08 Dec 2013 10:31:24 +0100 systraq (0.0.20081217-6) unstable; urgency=low * debian/postrm, debian/README.Debian: no longer tries to remove user account debian-systraq or group debian-systraq on package purge, as per current best practice. Add note on how to do this manually to README.Debian. * debian/control: made myself maintainer, after ACK in private email from Laurent Fousse. Laurent: thanks a lot for your work! -- Joost van Baal-Ilić Thu, 21 Nov 2013 10:31:17 +0100 systraq (0.0.20081217-5) unstable; urgency=low * Thanks Stijn van Dongen for bandwidth making this release possible. * debian/rules,postinst: install systraq_is_unconfigured in /etc/default/systraq.d/examples/, /usr/share/doc/systraq/examples/systraq_is_unconfigured is now a symlink. Thanks Andreas Beckmann. Closes: #710264 "systraq: postinst uses /usr/share/doc content (Policy 12.3)". * debian/control: Standards updated from 3.9.3 to 3.9.5. * debian/control: dm-upload-allowed is obsolete, removed. Thanks lintian. * debian/TODO: added. -- Joost van Baal-Ilić Mon, 18 Nov 2013 01:49:38 +0100 systraq (0.0.20081217-4) unstable; urgency=low * debian/postrm: make sure /var/lib/systraq , /var/lib/systraq/{filetraq,.forward} are removed, even if deluser not available. Thanks Andreas Beckmann. (Closes: #657133) * debian/postrm: get rid of code dealing with pre-lenny installs: no longer try to deal with systraq user called systraq, no longer try to deal with md5sum-style installs. * debian/control: update my name. * debian/control: fold relationship fields for readability. * debian/control: DM-Upload is now Allowed. * debian/control: Standards updated from 3.9.1 to 3.9.3, no changes needed. * debian/copyright: converted to machine-readable format version 1.0. * debian/source/format: switch to dpkg-source 3.0 (quilt) format. * debian/rules: remove cdbs/1/rules/patchsys-quilt.mk: now handled by dpkg. -- Joost van Baal-Ilić Sun, 12 Aug 2012 03:49:43 +0200 systraq (0.0.20081217-3) unstable; urgency=low * debian/postrm: Don't rely on deluser --remove-home option to remove the debian-systraq user home directory. Thanks Julien Valroff for contributing an inspiring patch fixing this (in systraq 0.0.20081217-2.1). (Closes: #606810) * debian/postinst: Ensure dpkg --compare-versions calls don't fail if the "most-recently-configured-version" argument is not passed to postinst. Thanks Julien Valroff for contributing an inspiring patch fixing this (in systraq 0.0.20081217-2.1). * debian/TODO: remove: has been dealt with. * debian/README.source: remove: nothing substantial to say. -- Joost van Baal Sun, 13 Feb 2011 22:26:35 +0100 systraq (0.0.20081217-2) unstable; urgency=low * debian/postrm: don't fail hard if perl-modules not installed during package purge. Thanks Lucas Nussbaum. (closes: #604205). * debian/{compat,control}: change debhelper compat level from 4 to 7, no changes needed. * debian/control: Standards updated from 3.8.0 to 3.9.1, no changes needed. -- Joost van Baal Sun, 21 Nov 2010 11:29:05 +0100 systraq (0.0.20081217-1+squeeze2) testing-proposed-updates; urgency=low * Thanks Mehdi Dogguy مهدي الدڤي for help with this release. * debian/postrm: don't fail hard if perl-modules not installed during package purge. Thanks Lucas Nussbaum. (closes: #604205). -- Joost van Baal Mon, 06 Dec 2010 11:21:57 +0100 systraq (0.0.20081217-1) unstable; urgency=low * New upstream release. * debian/NEWS: mention trick for suppressing cron upgrade reminder messages. -- Joost van Baal Wed, 17 Dec 2008 00:43:18 +0100 systraq (0.0.20081214-1) unstable; urgency=low * New upstream release (not uploaded to Debian). * debian/NEWS: added upgrade instructions. * debian/postinst: install systraq_is_not_upgraded if applicable. * debian/patches/001_debian_systraq_user.diff: update for new upstream: upstream now uses user "systraq_", not "systraq". * debian/postinst: Enable scripts ae-release, ah-uname and ck-mdstat, as supplied by 20081119, by getting rid of hardcoded list of systraq.d/AA-foo scripts. * debian/control: add Vcs-Browser and Vcs-Svn to source package. -- Joost van Baal Sat, 13 Dec 2008 01:49:26 +0100 systraq (0.0.20081119-1) unstable; urgency=low * New bleeding edge upstream release (not uploaded to Debian). * Use convenience package exim4, not exim4-daemon-light in depends. Thanks Andreas Henriksson. (closes: #495839). * README.devel renamed to README.source in source package, following Debian practice. * debian/control: Standards updated from 3.7.3 to 3.8.0, no changes needed. -- Joost van Baal Sat, 13 Dec 2008 01:01:14 +0100 systraq (0.0.20070301-4) unstable; urgency=low * debian/patches/series, debian/patches/001_debian_systraq_user.diff: get rid of hardcoded -p0 in patches. Thanks Raphael Hertzog. (closes: #485260). * debian/control: Standards updated from 3.7.2 to 3.7.3, no changes needed. * debian/doc-base.manual: no longer register Systraq Manual in Apps/System: this doc-base section is obsolete. Use System/Monitoring. * debian/control: move Homepage from pseudo-header to now supported regular field. -- Joost van Baal Thu, 26 Jun 2008 01:14:56 +0200 systraq (0.0.20070301-3) unstable; urgency=low * debian/postinst: make sure /var/lib/systraq/filetraq belongs to debian-systraq when created (closes: #433731). -- Joost van Baal Wed, 15 Aug 2007 19:08:28 +0200 systraq (0.0.20070301-2) unstable; urgency=low * Use --remove-home instead of --remove-all-files in postinst to speed things up (closes: #415410). -- Laurent Fousse Sat, 24 Mar 2007 17:55:58 +0100 systraq (0.0.20070301-1) unstable; urgency=low * New upstream release. Fixes bug: "systraq cannot handle filenames with spaces" (closes: #409777). * debian/README.Debian: add note on how to disable or add scripts to systraq.d. * debian/systraq.8: removed; now shipped with upstream. -- Joost van Baal Sun, 04 Mar 2007 12:24:20 +0100 systraq (0.0.20070118-2) unstable; urgency=low * debian/control: add homepage url. * debian/{rules,conffiles,postinst}: no longer have symlinks in /etc/systraq/systraq.d be part of the package (as conffiles), but create/maintain these in postinst. We no longer rely on dpkg for managing these. This caused systraq's daily reports to be empty, and the symlinks in /etc/systraq/systraq.d/ to be broken. (Closes: #408359). * debian/postinst: run under "set -e". only do real stuff when called with argument "configure". * debian/postinst: tweaked message from cron in /etc/systraq/systraq_is_unconfigured. -- Joost van Baal Fri, 02 Feb 2007 11:51:35 +0100 systraq (0.0.20070118-1) unstable; urgency=low * New upstream release. Fixes bug: "systraq cron job is noisy after systraq is removed but not purged" (closes: #406149). * debian/dirs: removed: upstream Makefile creates all needed dirs. * debian/patches/{series,001_debian_systraq_user.diff}, debian/{control,rules}: manage our patch on /etc/cron.d/systraq using quilt, so that it can be maintained using svn. * debian/rules: install arch-independent scripts in /usr/share/systraq, not /usr/lib. * debian/rules: no longer installs upstream changelog as two files. * debian/control: Build-Depend on debhelper (>= 4.1.0): current cdbs needs that. * debian/doc-base.manual: added: register systraq manual using doc-base. -- Joost van Baal Thu, 18 Jan 2007 15:23:52 +0100 systraq (0.0.20050213-8) unstable; urgency=low * debian/postrm: do not assume the non-essential adduser package is installed at package purge time (closes: #398538). * debian/control: added myself to Uploaders, after ACK from Laurent (see Bug#398538). * debian/control: Standards updated, no changes needed. * debian/control: cdbs and debhelper moved from Build-Depends-Indep to Build-Depends (thanks lintian). * debian/copyright: New FSF snailmail address. -- Joost van Baal Sun, 19 Nov 2006 13:06:51 +0100 systraq (0.0.20050213-7) unstable; urgency=low * Changed packaging to use cdbs. * Set correct ownership of /var/lib/systraq/.forward on install (closes: #329282). * Added note about possible email delivery failures in README.Debian. -- Laurent Fousse Tue, 27 Sep 2005 17:28:57 +0200 systraq (0.0.20050213-6) unstable; urgency=low * Changed one remaining "systraq" to "debian-systraq" in the cron file, could cause email delivery to fail. * Modified postinst to not warn about the old username if the new username is already in use. * Updated Standards-Version to 3.6.2, no change needed. -- Laurent Fousse Thu, 11 Aug 2005 11:30:11 +0200 systraq (0.0.20050213-5) unstable; urgency=low * The new systraq username is now `debian-systraq'. Now we can do the right thing on purge (closes: #315683). -- Laurent Fousse Fri, 29 Jul 2005 15:11:56 +0200 systraq (0.0.20050213-4) unstable; urgency=low * Tagged files in /etc/systaq/systraq.d as conffiles. Closes: #297531. -- Laurent Fousse Tue, 1 Mar 2005 12:36:16 +0100 systraq (0.0.20050213-3) unstable; urgency=low * systraq_is_unconfigured should only be created if systraq *is* unconfigured. This is now fixed. -- Laurent Fousse Sun, 13 Feb 2005 21:18:36 +0100 systraq (0.0.20050213-2) unstable; urgency=low * Install /etc/systraq/systraq_is_unconfigured as it is no longer installed by upstream's makefile. -- Laurent Fousse Sun, 13 Feb 2005 20:42:14 +0100 systraq (0.0.20050213-1) unstable; urgency=low * New upstream release. -- Laurent Fousse Sun, 13 Feb 2005 18:11:52 +0100 systraq (0.0.20050209-1) unstable; urgency=low * New upstream release. + better fix for hourly cron mail annoyance (closes: #289791). * Use local DTD for documentation validation (closes: #291619). -- Laurent Fousse Fri, 11 Feb 2005 16:16:00 +0100 systraq (0.0.20041118-2) unstable; urgency=low * Install a working yet minimal configuration so that cronjobs don't yell at you (closes: #289791). -- Laurent Fousse Tue, 11 Jan 2005 12:15:23 +0100 systraq (0.0.20041118-1) unstable; urgency=low * First actual debian upload. * Thanks Joost for the packaging help. -- Laurent Fousse Wed, 8 Dec 2004 21:24:07 +0100 systraq (0.0.20041118-0.3) unstable; urgency=low * Non-maintainer build. * postinst: fix typo. -- Joost van Baal Thu, 18 Nov 2004 22:19:20 +0100 systraq (0.0.20041118-0.2) unstable; urgency=low * Non-maintainer build. * postinst: Do something sane when systraq homedirectory or group is missing from the system. This likely happens on systems where systraq has been installed from the tarball. * rules: clean up comments. * This version is not to be uploaded to the Debian archive. -- Joost van Baal Thu, 18 Nov 2004 22:10:23 +0100 systraq (0.0.20041118-0.1) unstable; urgency=low * Non-maintainer build. * New upstream release. * etc/systraq.in: don't name the systraq user "debian-systraq" but just "systraq". This patch to upstream is no longer needed. * postinst: systraq user called systraq. Made the adduser call quiet. No longer edit /etc/aliases, but create ~systraq/.forward: less intrusive. Don't try to create a filetraq.conf. (No stuff is removed from postinst, I've just commented it out.) * TODO: added * This version is not published. -- Joost van Baal Thu, 18 Nov 2004 21:42:57 +0100 systraq (0.0.20041015.cvs.9-1) unstable; urgency=low * New upstream release -- Laurent Fousse Mon, 1 Nov 2004 21:54:19 +0100 systraq (0.0.20041015.cvs.7-1) unstable; urgency=low * New upstream release. -- Laurent Fousse Fri, 15 Oct 2004 12:15:28 +0200 systraq (0.0.20040804-1) unstable; urgency=low * Initial Release (closes: #276627). -- Laurent Fousse Tue, 12 Oct 2004 17:51:59 +0200 debian/postrm0000644000000000000000000000275512242416724010452 0ustar #! /bin/sh # $Id: postrm 436 2012-08-12 02:11:52Z joostvb $ # $URL: svn+ssh://svn.debian.org/svn/systraq/trunk/debian/trunk/debian/postrm $ # postrm script for systraq # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge) # see http://wiki.debian.org/AccountHandlingInMaintainerScripts # for rationale for keeping debian-systraq user and group present # on system. rm -f /var/lib/systraq/.forward if rmdir /var/lib/systraq/filetraq then rmdir /var/lib/systraq else echo >&2 "failed to remove /var/lib/systraq. please remove manually after inspecting contents" fi rm -rf /etc/systraq ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm 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/README.Debian0000644000000000000000000000636012243350721011233 0ustar systraq for Debian ------------------ This package will not do anything useful until it is configured, except send you a friendly and regular warning about how to do so. The files in the examples directory are here to help you. Configuring the daily [Systraq] messages ---------------------------------------- Daily, you'll get an email message with a subject likel "[Systraq] hostname YYYYMMDD". It'll show output of various commands. If you'd like to add output of another command, create a script /etc/systraq/systraq.d/AA-local. Use "hh" for "AA" if you'd like to see the output between ff-netstat's output and gg-ps's output. Use "-local" for the rest of the filename. If you'd like to disable one's scripts output (e.g. gg-ps), run: # rm /etc/systraq/systraq.d/gg-ps # ln -s /bin/true /etc/systraq/systraq.d/gg-ps . Email delivery problems ----------------------- The current approach to deliver systraq-related emails to the "right person" is to put `root' in the systraq user's .forward file. This works fine with exim which is the default MTA for Debian, but you may experience problems depending on your MTA and configuration, for example the `-' in systraq's username might cause confusion. It is left up to you to arrange for a correct email delivery in this case, for example by editing /etc/aliases. Purging the systraq package, dealing with systraq system account and group -------------------------------------------------------------------------- Since systraq version 0.0.20081217-6, the debian-systraq user account and the debian-systraq system group no longer get removed when the systraq package is purged. See http://wiki.debian.org/AccountHandlingInMaintainerScripts for rationale. After package purge, you might want to check wether any files belonging to the systraq user or group are still on your system: find / -owner debian-systraq -o -group debian-systraq You might want to keep these files; in that case, make sure they won't end up owned by a no longer known user or group. Assign them to user and group root like this: find / -owner debian-systraq -o -group debian-systraq -execdir chown root.root \{\} \+ Once you've done this, you can purge the user account and group. Use the following script for that: -------------- #! /bin/sh set -e if getent passwd debian-systraq > /dev/null 2>&1; then if [ -x "$(command -v deluser)" ]; then # --remove-home needs package perl-modules deluser --remove-home --system --quiet debian-systraq > /dev/null || ( deluser --system --quiet debian-systraq && rm -r ~debian-systraq ) > /dev/null || true else echo >&2 "not removing debian-systraq system account because deluser command was not found" fi fi if getent group debian-systraq > /dev/null 2>&1; then if [ -x "$(command -v delgroup)" ]; then delgroup --system --only-if-empty debian-systraq || true else echo >&2 "not removing debian-systraq system group because delgroup command was not found" fi fi -------------- -- Laurent Fousse , Wed, 21 Sep 2005 15:27:00 +0200, Joost van Baal-Ilić , пон, 18. нов 2013. 16:03:47 CET # $Id: README.Debian 331 2007-07-29 23:31:24Z joostvb $ # $URL: svn+ssh://svn.debian.org/svn/systraq/trunk/debian/trunk/debian/README.Debian $ debian/copyright0000644000000000000000000000253712242265012011124 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: systraq Upstream-Contact: Joost van Baal Source: http://mdcc.cx/pub/systraq/ X-Packaged-By: This package was debianized by Laurent Fousse on Tue, 12 Oct 2004 17:51:59 +0200. X-Tag: $Id: copyright 439 2012-08-12 05:52:36Z joostvb $ $URL: svn+ssh://svn.debian.org/svn/systraq/trunk/debian/trunk/debian/copyright $ Files: * Copyright: Copyright 2001-2004 by Joost van Baal License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/doc-base.manual0000644000000000000000000000104712242265031012041 0ustar Document: systraq-manual Title: The systraq Manual Author: Joost van Baal Abstract: A manual explaining the purpose of the systraq system, instructions for configuring the system, hints on daily maitenance as well as some background information Section: System/Monitoring Format: PostScript Files: /usr/share/doc/systraq/manual.ps.gz Format: HTML Index: /usr/share/doc/systraq/manual.html Files: /usr/share/doc/systraq/manual.html Format: text Files: /usr/share/doc/systraq/manual.txt.gz Format: PDF Files: /usr/share/doc/systraq/manual.pdf.gz debian/NEWS0000644000000000000000000000164512242417124007672 0ustar systraq (0.0.20081214-1) unstable; urgency=low * st_snapshot no longer defaults to using md5sum. st_snapshot.hourly makes st_snapshot use sha256sum if available. lib/rr-localdigest, as called by systraq, no longer runs md5sum but sha256sum. Therefore, your old checksum files will no longer be used and (unless precautions are taken) systraq will complain about changes in monitored files. See the "UPGRADE INSTRUCTIONS" in the news about systraq version 20081214 in /usr/share/doc/systraq/NEWS.gz for upgrade instructions. As long as you haven't upgraded your systraq configuration, you'll get email messages from cron every hour. If you'd rather not receive these reminders, run # touch /etc/systraq/i_want_a_broken_systraq . Before you actually start performing the manual upgrade, remove this file. -- Joost van Baal Wed, 17 Dec 2008 00:57:02 +0100 debian/control0000644000000000000000000000262112242467615010603 0ustar Source: systraq Section: admin Priority: optional Maintainer: Joost van Baal-Ilić Build-Depends: debhelper (>= 7), cdbs, quilt Build-Depends-Indep: jade, sgml-data, w3m, jadetex, docbook-dsssl, docbook-xml, docbook-xsl, openjade, xsltproc Standards-Version: 3.9.5 Homepage: http://mdcc.cx/systraq Vcs-Browser: http://svn.debian.org/wsvn/systraq/trunk Vcs-Svn: svn://svn.debian.org/svn/systraq/trunk Package: systraq Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, exim4 | mail-transport-agent, adduser, filetraq (>= 0.2-10), procps, net-tools, debsums Description: monitor your system and warn when system files change Systraq daily sends you an email listing the state of your system. Furthermore, if critical files have changed, you'll get an email within a shorter notice. Systraq consists of few very small shell scripts. . It can help you implementing a not too strict security policy. For more demanding systems, you'd better use something like tripwire. Make sure you really want to do the monitoring this script offers: it might not comply with your site's privacy policy. Getting informed when users' config file change might be too intrusive. . Other similar tools are available in Debian (`diffmon' for instance), but systraq is less intrusive because it can warn for file changes without mailing a complete diff (which is not desirable for e.g. /etc/shadow). debian/postinst0000644000000000000000000000563712251036006011002 0ustar #! /bin/sh -e # $Id: postinst 436 2012-08-12 02:11:52Z joostvb $ # $URL: svn+ssh://svn.debian.org/svn/systraq/trunk/debian/trunk/debian/postinst $ # postinst script for systraq # http://women.debian.org/wiki/English/MaintainerScripts SYSTRAQUSER=debian-systraq # etch ships 0.0.20050213-8 # lennie 0.0.20081217-1 (?) # squeeze 0.0.20081217-1+squeeze2.1 # wheezy 0.0.20081217-3 # jessie MD5VERSION=0.0.20070301-4 # last version using md5sum by default case "$1" in configure) if ! getent passwd $SYSTRAQUSER > /dev/null 2>&1 then adduser --system --disabled-password --home /var/lib/systraq \ --quiet --group $SYSTRAQUSER fi # be sure to succeed, even in case /var/lib/systraq does not exist. # if user does: install; purge (rm homedir, useraccount kept); install, # homedir will not exist now. see #730407 mkdir -p /var/lib/systraq/filetraq || true chown $SYSTRAQUSER:$SYSTRAQUSER /var/lib/systraq \ /var/lib/systraq/filetraq if ! test -f /var/lib/systraq/.forward then echo root >/var/lib/systraq/.forward chown $SYSTRAQUSER:$SYSTRAQUSER /var/lib/systraq/.forward fi if ! getent group $SYSTRAQUSER >/dev/null 2>&1 then cat <&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0