]> git.pld-linux.org Git - packages/rkhunter.git/commitdiff
- parse $app -v for new versions of applications
authortiwek <tiwek@pld-linux.org>
Wed, 10 Nov 2004 09:16:56 +0000 (09:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rkhunter-appversion.patch -> 1.1

rkhunter-appversion.patch [new file with mode: 0644]

diff --git a/rkhunter-appversion.patch b/rkhunter-appversion.patch
new file mode 100644 (file)
index 0000000..36ea6c7
--- /dev/null
@@ -0,0 +1,24 @@
+--- files/rkhunter~    2004-10-28 16:45:16.000000000 +0200
++++ files/rkhunter     2004-11-10 09:59:18.297957280 +0100
+@@ -4267,7 +4267,7 @@
+         VERSION=""
+         case ${APPLICATION} in
+           clamd)
+-                VERSION=`${I}/clamd --version | grep 'ClamAV version' | awk '{ print $5 }'`
++                VERSION=`${I}/clamd clamd --version 2>&1 | cut -f 2 -d " " | cut -f 1 -d "/"`
+                 ;;
+           exim)
+@@ -4283,11 +4283,7 @@
+ #                VERSION=`${I}/mc -V | head -n 1 2> /tmp/mc.txt && cat /tmp/mc.txt | grep 'Midnight Commander' | sed 's/GNU Midnight Commander//' | awk '{ print $4 }' && rm -f /tmp/mc.txt`
+ #                ;;
+           named)
+-                VERSION=`${I}/named -v | grep 'named' | grep -v '/' | awk '{ print $2 }'`
+-                if [ ! "`echo ${VERSION} | grep "-"`" = "" ]
+-                  then
+-                    VERSION=`echo ${VERSION} | cut -d '-' -f1`
+-                fi
++                VERSION=`${I}/named -v | awk '{ print $2 }'`
+                 ;;
+         openssl)
+               VERSION=`${I}/openssl version | head -n 1 | cut -d' ' -f2`
This page took 0.040436 seconds and 4 git commands to generate.