Package list metche / e5ccb93
Releasing 1.0-1. intrigeri 10 years ago
11 changed file(s) with 215 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 metche (1.0-1) unstable; urgency=low
1
2 * Initial Release.
3
4 -- boum.org collective <boum@anargeek.net> Fri, 17 Feb 2006 03:57:48 +0100
0 #!/bin/sh
1
2 CONFIGFILE=/etc/metche.conf
3 set -e
4 . /usr/share/debconf/confmodule
5
6 if [ -e $CONFIGFILE ]; then
7 . $CONFIGFILE || true
8 db_set metche/email $EMAIL_ADDRESS
9 db_set metche/changelog/type "No changelog monitoring"
10 if [ "$CHANGELOG_FILE" ]; then
11 db_set metche/changelog/type "Single changelog file"
12 db_set metche/changelog/file $CHANGELOG_FILE
13 fi
14 if [ "$CHANGELOG_DIR" ]; then
15 db_set metche/changelog/type "Multiple changelog files"
16 db_set metche/changelog/directory $CHANGELOG_DIR
17 fi
18 fi
19
20 db_input medium metche/email || true
21 db_input medium metche/changelog/type || true
22 db_go || true
23 db_get metche/changelog/type
24 case "$RET" in
25 "Single changelog file")
26 db_input medium metche/changelog/file || true
27 db_go || true
28 ;;
29 "Multiple changelog files")
30 db_input medium metche/changelog/directory || true
31 db_go || true
32 ;;
33 esac
0 Source: metche
1 Section: admin
2 Priority: optional
3 Maintainer: boum.org collective <boum@anargeek.net>
4 Build-Depends-Indep: debhelper (>> 4.0.0)
5 Standards-Version: 3.6.2
6
7 Package: metche
8 Architecture: all
9 Depends: debconf (>= 0.5.00) | debconf-2.0, mutt, bzip2
10 Recommends: apt-show-versions, gnupg
11 Description: configuration monitor to ease collective administration
12 metche monitors changes made to a "system state" composed of:
13 - a "watched" directory (typically: /etc)
14 - changelogs written by you in one or several files
15 (e.g. /root/Changelog)
16 - States and versions of Debian packages (using apt-show-versions)
17 by periodically:
18 - saving backups of the corresponding files
19 - emailing the changes in the system state to your administrator's
20 mailing list
0 This package was debianized by boum.org collective <boum@anargeek.net> on
1 Thu, 24 Nov 2005 19:18:47 +0100.
2
3 It was downloaded from http://www.poivron.org/dev/metche/metche-1.0.tar.gz
4
5 Copyright:
6
7 Upstream Authors: boum.org collective <boum@anargeek.net>
8
9 Copyright (C) 2004-2006 boum.org collective - property is theft !
10
11 You are free to distribute this software under the terms of
12 the GNU General Public License.
13 On Debian systems, the complete text of the GNU General Public
14 License can be found in the file `/usr/share/common-licenses/GPL'.
0 0-59/5 * * * * root test -x /usr/sbin/metche && /usr/sbin/metche cron
0 etc
1 etc/cron.d
2 usr/sbin
3 usr/share/man/man8
4 var/lib/metche
0 README
0 #!/bin/sh
1
2 CONFIGFILE=/etc/metche.conf
3 set -e
4 . /usr/share/debconf/confmodule
5
6 cp -a -f $CONFIGFILE $CONFIGFILE.tmp
7
8 db_get metche/email
9 EMAIL_ADDRESS="$RET"
10 sed -e "s/^ *EMAIL_ADDRESS=.*/EMAIL_ADDRESS=\"$EMAIL_ADDRESS\"/" -i $CONFIGFILE.tmp
11
12 db_get metche/changelog/type
13 case "$RET" in
14 "Single changelog file")
15 db_get metche/changelog/file
16 CHANGELOG_FILE="$RET"
17 sed -e "s@^[# ]*CHANGELOG_FILE=.*@CHANGELOG_FILE=\"$CHANGELOG_FILE\"@" \
18 -e "s@^[# ]*CHANGELOG_DIR@#CHANGELOG_DIR@" -i $CONFIGFILE.tmp
19 ;;
20 "Multiple changelog files")
21 db_get metche/changelog/directory
22 CHANGELOG_DIR="$RET"
23 sed -e "s@^[# ]*CHANGELOG_DIR=.*@CHANGELOG_DIR=\"$CHANGELOG_DIR\"@" \
24 -e "s@^[# ]*CHANGELOG_FILE@#CHANGELOG_FILE@" -i $CONFIGFILE.tmp
25 ;;
26 "No changelog monitoring")
27 sed -e "s@^[# ]*CHANGELOG_FILE@#CHANGELOG_FILE@" \
28 -e "s@^[# ]*CHANGELOG_DIR@#CHANGELOG_DIR@" -i $CONFIGFILE.tmp
29 ;;
30 esac
31
32 mv -f $CONFIGFILE.tmp $CONFIGFILE
33
34 metche cron
35
36 #DEBHELPER#
0 #!/usr/bin/make -f
1 # debian rules file for metche
2
3 PACKAGE = metche
4 DESTDIR = $(CURDIR)/debian/$(PACKAGE)
5
6 build: build-stamp
7 build-stamp:
8 dh_testdir
9 touch build-stamp
10
11 clean:
12 dh_testdir
13 dh_testroot
14 rm -f build-stamp
15 dh_clean
16
17 install: build
18 dh_testdir
19 dh_testroot
20 dh_clean -k
21 dh_installdirs
22 cp $(CURDIR)/metche $(DESTDIR)/usr/sbin
23 cp $(CURDIR)/metche.conf.default $(DESTDIR)/etc/metche.conf
24 cp $(CURDIR)/metche.8 $(DESTDIR)/usr/share/man/man8
25 chown root:staff $(DESTDIR)/var/lib/metche
26 chmod 750 $(DESTDIR)/var/lib/metche
27
28 # Build architecture-independent files here.
29 binary-indep: build install
30
31 # Build architecture-dependent files here.
32 binary-arch: build install
33 dh_testdir
34 dh_testroot
35 dh_installchangelogs Changelog
36 dh_installdocs
37 dh_installexamples
38 dh_installdebconf
39 dh_installcron
40 dh_installman metche.8
41 dh_link
42 dh_compress
43 dh_fixperms
44 dh_installdeb
45 dh_gencontrol
46 dh_md5sums
47 dh_builddeb
48
49 binary: binary-indep binary-arch
50 .PHONY: build clean binary-indep binary-arch binary install
0 Template: metche/email
1 Type: string
2 Default: root
3 Description: E-mail address receiving metche reports
4 metche monitors "system state" changes. An hour after the last change has
5 been recorded an e-mail report is sent describing changes made to:
6 - files inside the watched directory (/etc by default),
7 - user maintainted changelog file(s) (if configured to do so),
8 - the list of installed Debian packages (if configured to do so).
9 .
10 Please enter the e-mail that should receive these reports. It typically
11 corresponds to the alias or mailing-list used by system administators for
12 this computer.
13 .
14 Note: by default, metche does not send detailed diffs describing file changes
15 as this can leak confidential information. If you want to use this feature,
16 we strongly encourage you to turn on GPG encryption at the same time.
17 See the metche(8) man page and the configuration file for more details.
18
19 Template: metche/changelog/type
20 Type: select
21 Choices: Single changelog file, Multiple changelog files, No changelog monitoring
22 Description: Changelog monitoring type.
23 metche can monitor one or more changelogs written by the system
24 administrators.
25 .
26 These changelogs should contain comments describing the changes made
27 to the system. The easiest way to organize these comments is to put them all
28 together in one file.
29 .
30 Another possibility is to have a subdirectory for each administrative task
31 with a file named "Changelog". This way, you can store source code or
32 configuration examples along with the documentation on how they have been used.
33
34 Template: metche/changelog/file
35 Type: string
36 Description: Changelog file to be monitored.
37 This option sets the path of the changelog file to be monitored.
38
39 Template: metche/changelog/directory
40 Type: string
41 Description: Changelog directory to be monitored.
42 This option sets the path to the root directory containing the Changelogs. Each
43 "Changelog" file should be in a sub-directory of this directory.