File tree 5 files changed +81
-2
lines changed 5 files changed +81
-2
lines changed Original file line number Diff line number Diff line change 2
2
* Remove russian translations; they are out of date and there is no static version of gettext available
3
3
* Do not stop parsing directory at unescaped .
4
4
* Fix "make dist" and "make check"
5
+ * Added gpg scripts to contrib
5
6
* Released version 0.11-rc2
7
+ * Changed version to post-0.11-rc2
6
8
7
9
2005-10-30 Richard van den Berg <
[email protected] >
8
10
* Warn if 'I' and 'c' are used together
Original file line number Diff line number Diff line change @@ -11,5 +11,4 @@ Rewrite for smaller memory footprint.
11
11
Localization
12
12
Relative paths in databases
13
13
Checksum of the binary at the start of the report
14
- PGP support
15
14
@@ifdef foo || ( bar && baz )
Original file line number Diff line number Diff line change 1
1
2
2
dnl Initialize autoconf/automake
3
3
AC_INIT(src/aide.c)
4
- AM_INIT_AUTOMAKE(aide, "0.11-rc2")
4
+ AM_INIT_AUTOMAKE(aide, "post- 0.11-rc2")
5
5
6
6
dnl The name of the configure h-file.
7
7
AM_CONFIG_HEADER(config.h)
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # $Id$
4
+
5
+ # aide check script
6
+ # Written by: charlie heselton
7
+ # Email: echo "hfouvyAdpy/ofu" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
8
+ # 09/23/2005
9
+
10
+ # Set up some variables
11
+ DBDIR=" /your/aide/db/directory"
12
+ DBFILE=" ${DBDIR} /aide.db"
13
+ ENC_DBFILE=" ${DBDIR} /aide.db.gpg"
14
+
15
+ # make the assumption that the database exists and is encrypted
16
+ # but test for it ;-)
17
+ [[ -f ${ENC_DBFILE} ]] && /usr/bin/gpg --batch -d ${ENC_DBFILE} > ${DBFILE}
18
+ rm -f ${ENC_DBFILE}
19
+
20
+ # (for now, we'll assume that encrypting the file includes an integrity check )
21
+ # Run the check.
22
+ /usr/bin/aide -C > /tmp/aide_check.out 2>&1
23
+
24
+ # mail out the results
25
+ /usr/bin/cat /tmp/aide_check.out
| /usr/bin/mutt -s
" AIDE Check for ` date` " [email protected]
26
+
27
+ # cleanup
28
+ # if the mail was successful, delete the output file
29
+ if [ $? -eq 0 ]
30
+ then
31
+ rm -f /tmp/aide_check.out
32
+ fi
33
+
34
+ # re-encrypt the database and delete the unencrypted version
35
+ /usr/bin/gpg --batch -se -r gentoo_root ${DBFILE}
36
+ rm -f ${DBFILE}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # $Id$
4
+
5
+ # aide update script
6
+ # Written by: charlie heselton
7
+ # Email: echo "hfouvyAdpy/ofu" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
8
+ # 09/23/2005
9
+
10
+ DBDIR=" /etc/aide/db"
11
+ DBFILE=" ${DBDIR} /aide.db"
12
+ ENC_DBFILE=" ${DBDIR} /aide.db.gpg"
13
+
14
+ # make the assumption that the database exists and is encrypted
15
+ # but test for it ;-)
16
+ [[ -f ${ENC_DBFILE} ]] && /usr/bin/gpg --batch -d ${ENC_DBFILE} > ${DBFILE}
17
+ rm -f ${ENC_DBFILE}
18
+
19
+ # (for now, we'll assume that encrypting the file includes an integrity check )
20
+ # Run the update.
21
+ /usr/bin/aide --update > /tmp/aide_update.out 2>&1
22
+
23
+ # mail out the results
24
+ # set the "Reply-to" address
25
+
26
+ export REPLYTO
27
+ # send the mail
28
+ /usr/bin/cat /tmp/aide_update.out
| /usr/bin/mutt -s
" AIDE Update for ` date` " [email protected]
29
+
30
+ # cleanup
31
+ # if the mailing was successful then delete the output file
32
+ if [ $? -eq 0 ]
33
+ then
34
+ rm -f /tmp/aide_update.out
35
+ fi
36
+
37
+ # move the aide.db.new file to the aide.db
38
+ mv ${DBDIR} /aide.db.new ${DBFILE}
39
+
40
+ # encrypt the new db file and remove the unencrypted version
41
+ /usr/bin/gpg --batch -se -r gentoo_root ${DBFILE}
42
+ rm -f ${DBFILE}
You can’t perform that action at this time.
0 commit comments