summaryrefslogtreecommitdiff
path: root/security/aide/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'security/aide/patches/patch-af')
-rw-r--r--security/aide/patches/patch-af31
1 files changed, 31 insertions, 0 deletions
diff --git a/security/aide/patches/patch-af b/security/aide/patches/patch-af
new file mode 100644
index 00000000000..a420384cbaa
--- /dev/null
+++ b/security/aide/patches/patch-af
@@ -0,0 +1,31 @@
+$NetBSD: patch-af,v 1.1 2010/08/30 22:30:27 pettai Exp $
+
+--- contrib/gpg2_update.sh.orig 2010-08-31 00:25:16.000000000 +0200
++++ contrib/gpg2_update.sh 2010-08-31 00:26:27.000000000 +0200
+@@ -22,10 +22,10 @@
+ # copy the old database
+ if [ -f aide.db ]; then
+ newfile="aide-`hostname`-`date +%Y%m%d-%H%M%S`.db"
+- if [ "${usegpg}" == 1 -a -f aide.db.sig ]; then
++ if [ "${usegpg}" = 1 -a -f aide.db.sig ]; then
+ # do an integrity check
+ gpg --verify aide.db.sig
+- if [ "$?" == "1" ]; then
++ if [ "$?" = "1" ]; then
+ echo "************************************************************"
+ echo "GPG signature FAILED! Your database has been tampered with!"
+ echo "************************************************************"
+@@ -34,11 +34,11 @@
+ fi
+ cp -av aide.db ${newfile}
+ /usr/sbin/aide --update -B "database=file:/var/lib/aide/${newfile}"
+- if [ "${usegpg}" == "1" ]; then
++ if [ "${usegpg}" = "1" ]; then
+ # create the signature file
+ [[ -f aide.db.sig ]] && rm -f aide.db.sig
+ gpg --detach-sign aide.db
+- if [ "$?" == "1" ]; then
++ if [ "$?" = "1" ]; then
+ echo "FATAL: Error occurred when creating the signature file!"
+ exit 1
+ fi