install.sh, uninstall.sh: moved to obsolete/ : no longer supported.
README, INSTALL: adjusted likewise.
Joost van Baal-Ilić
5 years ago
0 | INSTALL for FileTraq v0.2 | |
1 | Copyright (c) 2000 Jeremy Weatherford | |
2 | See file COPYING included with distribution. | |
3 | ||
4 | ----> Upgrading | |
5 | ||
6 | To upgrade a previous version of FileTraq, simply follow the procedure | |
7 | below, specifying the same directories as before, and the new version will | |
8 | replace the old one. Your backups and config files will continue to work | |
9 | with the new version. | |
10 | ||
11 | ----> Installation | |
12 | ||
13 | First, be root. | |
14 | $ su | |
15 | ||
16 | Extract the archive if you haven't already. | |
17 | # tar -xvzf filetraq-0.2.tgz | |
18 | # cd filetraq-0.2 | |
19 | ||
20 | Run the install script. | |
21 | # ./install.sh | |
22 | (answer questions) | |
23 | # crontab -e | |
24 | (add an entry to run FileTraq periodically. Every 5 minutes, say) | |
25 | ||
26 | Sample crontab entry: (every five minutes) | |
27 | */5 * * * * /usr/local/sbin/filetraq | |
28 | ||
29 | Most modern cron daemons support the syntax */5. If yours doesn't, substitute | |
30 | 0,5,10,15,20,25,30,35,40,45,50,55 for the */5. | |
31 | ||
32 | Make sure the output from the crontab is being mailed to you. If there's | |
33 | no MAILTO= setting in the crontab, the output should be mailed to root. If | |
34 | you want it mailed to a specific user, add a MAILTO=user line at the top. | |
35 | ||
36 | You'll get one initial mailing when it runs the first time, then it'll be quiet | |
37 | until there are changes. | |
38 | ||
39 | If you don't receive an initial mailing at the designated time, make sure the | |
40 | cron daemon is actually running. If a ps auxc | grep crond doesn't show | |
41 | anything running, start it manually, then make sure it will start when your | |
42 | system boots. | |
43 | ||
44 | Edit /usr/local/filetraq/filetraq.conf (or wherever you put it) to add/delete | |
45 | files to be monitored. | |
46 | ||
47 | See the README file if you want more information. | |
48 | ||
49 | That's that. | |
50 | ||
51 | ----> Uninstallation: | |
52 | ||
53 | There's an uninstall.sh script that should work fairly well for removing all | |
54 | of FileTraq's files. | |
55 | ||
56 | # ./uninstall.sh | |
57 | (review info and confirm) | |
58 | ||
59 | And it'll be uninstalled.⏎ |
0 | See file VERSION | |
0 | NEWS for FileTraq v0.2 | |
1 | Copyright (c) 2000 Jeremy Weatherford | |
2 | See file COPYING included with distribution. | |
3 | ||
4 | ||
5 | See file debian/NEWS and debian/changelog for changes after filetraq | |
6 | version 0.3 | |
7 | ||
8 | ||
9 | filetraq version 0.3, released FIXME 2018 | |
10 | ||
11 | - releases are from now on being published on | |
12 | https://packages.debian.org/src:filetraq . | |
13 | ||
14 | - filetraq, filetraq.conf: applied patches by Sergio Talens-Oliag | |
15 | from 2006: | |
16 | - filetraq.conf: also monitor /etc/shadow, /etc/group, /etc/gshadow | |
17 | and /etc/filetraq.conf | |
18 | - filetraq: support difforder and diffopts settings in | |
19 | /etc/default/filetraq. | |
20 | ||
21 | - VERSION: renamed to this file "NEWS" | |
22 | ||
23 | - install.sh, uninstall.sh: moved to obsolete/ : no longer supported. | |
24 | README, INSTALL: adjusted likewise. | |
25 | ||
26 | ||
27 | FileTraq v0.2, released 01/02/00 | |
28 | ||
29 | v0.2: Changes suggested by Chris Ausbrooks incorporated, including: | |
30 | - improved reading from config file | |
31 | - allowing wildcards and directories in config file | |
32 | - allowing comment characters in config file | |
33 | - comments on licensing | |
34 | Thanks Chris! | |
35 | ||
36 | ||
37 | v0.1: First release |
1 | 1 | Copyright (c) 2000 Jeremy Weatherford |
2 | 2 | See file COPYING included with distribution. |
3 | 3 | |
4 | ----> Quick Install: | |
4 | ----> Code, development, contact | |
5 | 5 | |
6 | # ./install.sh | |
6 | The latest filetraq release is available from | |
7 | https://packages.debian.org/src:filetraq . Please use the Debian bugtracking | |
8 | system at https://bugs.debian.org/ for any feedback. If you really need to | |
9 | contact the current maintainer privately: Joost van Baal-Ilić | |
10 | <joostvb-filetraq@mdcc.cx> . | |
7 | 11 | |
8 | Full installation info is in INSTALL. | |
12 | Code is maintained using git at https://salsa.debian.org/debian/filetraq . | |
13 | ||
14 | Below is Jeremy Weatherford's original README for FileTraq. | |
15 | ||
9 | 16 | |
10 | 17 | ----> What's it do? |
11 | 18 | |
59 | 66 | This program is distributed under the terms of the GNU Public License. |
60 | 67 | See the file COPYING included with this distribution. |
61 | 68 | |
69 | -------------------------------------------------------------------------- | |
62 | 70 | |
71 | FileTraq versions 0.2 and earlier came with scripts for installation and | |
72 | uninstallation. Since 0.3, the preferred way of installing FileTraq is via | |
73 | binary packages (.deb, .rpm, ...). If you really want to do things manually, | |
74 | see below. | |
75 | ||
76 | ----> Upgrading | |
77 | ||
78 | To upgrade a previous version of FileTraq, simply follow the procedure | |
79 | below, specifying the same directories as before, and the new version will | |
80 | replace the old one. Your backups and config files will continue to work | |
81 | with the new version. | |
82 | ||
83 | ----> Installation | |
84 | ||
85 | First, be root. | |
86 | $ su | |
87 | ||
88 | Extract the archive if you haven't already. | |
89 | # tar -xvzf filetraq-0.2.tgz | |
90 | # cd filetraq-0.2 | |
91 | ||
92 | Optionally, edit pathnames in the script filetraq to your taste. Then, copy | |
93 | the script to e.g. /usr/sbin/filetraq. Optionally, adjust filetraq.conf to | |
94 | your needs. Then copy filetraq.conf to e.g. /etc/filetraq.conf. | |
95 | ||
96 | # crontab -e | |
97 | (add an entry to run FileTraq periodically. Every 5 minutes, say) | |
98 | ||
99 | Sample crontab entry: (every five minutes) | |
100 | */5 * * * * /usr/local/sbin/filetraq | |
101 | ||
102 | Most modern cron daemons support the syntax */5. If yours doesn't, substitute | |
103 | 0,5,10,15,20,25,30,35,40,45,50,55 for the */5. | |
104 | ||
105 | Make sure the output from the crontab is being mailed to you. If there's | |
106 | no MAILTO= setting in the crontab, the output should be mailed to root. If | |
107 | you want it mailed to a specific user, add a MAILTO=user line at the top. | |
108 | ||
109 | You'll get one initial mailing when it runs the first time, then it'll be quiet | |
110 | until there are changes. | |
111 | ||
112 | If you don't receive an initial mailing at the designated time, make sure the | |
113 | cron daemon is actually running. If a ps auxc | grep crond doesn't show | |
114 | anything running, start it manually, then make sure it will start when your | |
115 | system boots. | |
116 | ||
117 | Edit /usr/local/filetraq/filetraq.conf (or wherever you put it) to add/delete | |
118 | files to be monitored. | |
119 | ||
120 | See the README file if you want more information. | |
121 | ||
122 | That's that. | |
123 | ||
124 | ----> Uninstallation: | |
125 | ||
126 | There's an uninstall.sh script that should work fairly well for removing all | |
127 | of FileTraq's files. | |
128 | ||
129 | # ./uninstall.sh | |
130 | (review info and confirm) | |
131 | ||
132 | And it'll be uninstalled. |
0 | VERSION for FileTraq v0.2 | |
1 | Copyright (c) 2000 Jeremy Weatherford | |
2 | See file COPYING included with distribution. | |
3 | ||
4 | ||
5 | filetraq version 0.3, released FIXME 2018 | |
6 | ||
7 | - releases are from now on being published on | |
8 | https://packages.debian.org/src:filetraq . | |
9 | ||
10 | - filetraq, filetraq.conf: applied patches by Sergio Talens-Oliag | |
11 | from 2006: | |
12 | - filetraq.conf: also monitor /etc/shadow, /etc/group, /etc/gshadow | |
13 | and /etc/filetraq.conf | |
14 | - filetraq: support difforder and diffopts settings in | |
15 | /etc/default/filetraq. | |
16 | ||
17 | ||
18 | FileTraq v0.2, released 01/02/00 | |
19 | ||
20 | v0.2: Changes suggested by Chris Ausbrooks incorporated, including: | |
21 | - improved reading from config file | |
22 | - allowing wildcards and directories in config file | |
23 | - allowing comment characters in config file | |
24 | - comments on licensing | |
25 | Thanks Chris! | |
26 | ||
27 | ||
28 | v0.1: First release |
10 | 10 | - debian/patches/01_filetraq.patch, |
11 | 11 | debian/patches/02_filetraq.conf.patch: no longer shipped, since included |
12 | 12 | in upstream 0.3 |
13 | - debian/rules: drop cdbs simple-patchsys usage, debhelper.mk will do fine now. | |
13 | - debian/rules: drop cdbs simple-patchsys usage, debhelper.mk will do fine | |
14 | now. | |
14 | 15 | - debian/filetraq.8: upstream now honors /etc/default/filetraq. |
15 | 16 | |
16 | 17 | * TODO lintian, find, copyright, manpage, ... |
0 | #!/bin/sh | |
1 | ||
2 | # install script for FileTraq v0.2 | |
3 | # Copyright (c) 2000 Jeremy Weatherford | |
4 | # See COPYING file included with distribution | |
5 | ||
6 | echo This script will install FileTraq 0.2 in the directories you specify. | |
7 | echo If you are not root, hit control-C now. | |
8 | echo | |
9 | echo "If you're presently using FileTraq 0.1, simply specify the same" | |
10 | echo "directories, and FileTraq 0.2 will be installed on top of the" | |
11 | echo "existing installation." | |
12 | echo | |
13 | ||
14 | ok=0 | |
15 | while [ $ok = 0 ]; do | |
16 | echo -n "Where would you like the FileTraq binary? [/usr/local/sbin] " | |
17 | read dir | |
18 | if [ -z "$dir" ]; then | |
19 | dir=/usr/local/sbin | |
20 | fi | |
21 | if [ ! -d $dir ]; then | |
22 | echo | |
23 | echo -n "$dir does not exist. Create it now? [yes/NO] " | |
24 | read resp | |
25 | echo | |
26 | case $resp in | |
27 | y*|Y*) | |
28 | mkdir $dir | |
29 | ok=1 | |
30 | ;; | |
31 | esac | |
32 | else | |
33 | ok=1 | |
34 | fi | |
35 | done | |
36 | ||
37 | bindir=$dir | |
38 | echo Using binary directory $bindir. | |
39 | echo | |
40 | ||
41 | ok=0 | |
42 | while [ $ok = 0 ]; do | |
43 | echo -n "Where would you like FileTraq to keep its files? [/usr/local/filetraq] " | |
44 | read dir | |
45 | if [ -z "$dir" ]; then | |
46 | dir=/usr/local/filetraq | |
47 | fi | |
48 | if [ ! -d $dir ]; then | |
49 | echo | |
50 | echo -n "$dir does not exist. Create it now? [yes/NO] " | |
51 | read resp | |
52 | echo | |
53 | case $resp in | |
54 | y*|Y*) | |
55 | mkdir $dir | |
56 | ok=1 | |
57 | ;; | |
58 | esac | |
59 | else | |
60 | ok=1 | |
61 | fi | |
62 | done | |
63 | ||
64 | datadir=$dir | |
65 | echo Using data directory $datadir. | |
66 | echo | |
67 | ||
68 | echo "Patching shell script for default values and copying to $bindir..." | |
69 | cat filetraq | sed "s|/usr/local/filetraq|$dir|g" > $bindir/filetraq | |
70 | chmod 700 $bindir/filetraq | |
71 | echo "Setting up data directory in $datadir..." | |
72 | if [ -e $datadir/filelist ]; then | |
73 | mv -f $datadir/filelist $datadir/filetraq.conf | |
74 | echo "Renamed $datadir/filelist to $datadir/filetraq.conf..." | |
75 | fi | |
76 | ||
77 | if [ ! -e $datadir/filetraq.conf ]; then | |
78 | cat filetraq.conf | sed "s|/usr/local/filetraq|$dir|g" > $datadir/filetraq.conf | |
79 | echo "Setting up default filetraq.conf in $datadir..." | |
80 | else | |
81 | echo "Continuing to use existing filetraq.conf in $datadir..." | |
82 | fi | |
83 | ||
84 | if [ ! -d $datadir/backups ]; then | |
85 | mkdir $datadir/backups | |
86 | chmod 700 $datadir | |
87 | chmod 700 $datadir/backups | |
88 | fi | |
89 | ||
90 | ||
91 | echo $bindir > .bindir | |
92 | echo $datadir > .datadir | |
93 | ||
94 | echo | |
95 | echo All done! | |
96 | echo "FileTraq is designed to be run at intervals from root's crontab, with its output being mailed to root. The files checked are controlled by $datadir/filelist. Please see the README file for more information. Thank you!" | |
97 |
0 | #!/bin/sh | |
1 | ||
2 | # uninstall script for FileTraq v0.2 | |
3 | # Copyright (c) 2000 Jeremy Weatherford | |
4 | # See COPYING file included with distribution | |
5 | ||
6 | if [ ! -e .bindir ]; then | |
7 | echo FileTraq 0.2 has not been installed, or was not installed from this directory. | |
8 | exit | |
9 | fi | |
10 | ||
11 | if [ ! -e .datadir ]; then | |
12 | echo FileTraq 0.2 has not been installed, or was not installed from this directory. | |
13 | exit | |
14 | fi | |
15 | ||
16 | bindir=`cat .bindir` | |
17 | datadir=`cat .datadir` | |
18 | ||
19 | echo "This program will uninstall FileTraq v0.2." | |
20 | echo "The following commands will be executed:" | |
21 | echo " rm -f $bindir/filetraq" | |
22 | echo " rm -fr $datadir" | |
23 | echo "Do you wish to continue uninstalling FileTraq v0.2? [yes/NO] " | |
24 | read resp | |
25 | case $resp in | |
26 | y*|Y*) | |
27 | rm -f $bindir/filetraq | |
28 | rm -fr $datadir | |
29 | echo "Uninstallation complete." | |
30 | echo "If you added a crontab entry for FileTraq, you need to remove that entry." | |
31 | rm -f .bindir | |
32 | rm -f .datadir | |
33 | exit | |
34 | esac | |
35 | ||
36 | echo "Uninstallation canceled."⏎ |