* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / mail / qmail-scanner / head-1-postst.diff
blob8a7219490d45d9488ddb921ffc57a9281142314b
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../qmail-scanner/head-1-postst.diff
5 # Copyright (C) 2005 - 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- ./configure.orig 2006-04-20 14:00:14.000000000 +0200
18 +++ ./configure 2006-04-20 14:03:53.000000000 +0200
19 @@ -800,7 +800,7 @@
20 echo -n "."
21 if test -x $dir/perl
22 then
23 - PERLRELEASE_DETAILS=${PERLRELEASE_DETAILS:-`$dir/perl -V 2>&1|grep perl5 |head -1`}
24 + PERLRELEASE_DETAILS=${PERLRELEASE_DETAILS:-`$dir/perl -V 2>&1|grep perl5 |head -n 1`}
25 if [ "$?" = "0" ]; then
26 PERL5="${PERL5:-$dir/perl}"
28 @@ -1326,9 +1326,9 @@
29 SPAMC_BINARY=''
30 else
31 DD="`$SETUIDGID $QS_USER $SPAMC_BINARY $SA_HN $SA_SKT -c < ./contrib/spamc-nasty.eml`"
32 - if [ "`echo $DD|tail -1|grep /`" != "" ]; then
33 + if [ "`echo $DD|tail -n 1|grep /`" != "" ]; then
34 SPAMASSASSIN_VERSION="fast_spamassassin"
35 - SA_THRESHOLD=`echo $DD|tail -1|sed -e 's/\(.*\)\/\(.*\)/\2/'`
36 + SA_THRESHOLD=`echo $DD|tail -n 1|sed -e 's/\(.*\)\/\(.*\)/\2/'`
40 --- ./autoupdaters/update_trend.orig 2005-12-07 16:22:25.000000000 -0300
41 +++ ./autoupdaters/update_trend 2005-12-07 16:24:55.000000000 -0300
42 @@ -16,7 +16,7 @@
43 exit
46 -SITE=`egrep "lpt.*zip" pattern.htm |sed -e 's/^.*HREF="//ig' -e 's/".*$//g' |tail -1`
47 +SITE=`egrep "lpt.*zip" pattern.htm |sed -e 's/^.*HREF="//ig' -e 's/".*$//g' |tail -n 1`
49 FILE=`basename $SITE`
51 --- ./autoupdaters/update_sophos.orig 2005-12-07 16:22:38.000000000 -0300
52 +++ ./autoupdaters/update_sophos 2005-12-07 16:24:50.000000000 -0300
53 @@ -26,7 +26,7 @@
54 FILE="ides.zip"
56 #looks like it's up!
57 -CURRENT=`/bin/ls -trc $SOPHOSDIR/*ides.zip 2>/dev/null|tail -1`
58 +CURRENT=`/bin/ls -trc $SOPHOSDIR/*ides.zip 2>/dev/null|tail -n 1`
59 if [ "$CURRENT" != "" ]; then
60 if [ "`cat $CURRENT |md5sum `" = "`cat $FILE|md5sum `" ]; then
61 echo "No change - exiting" > $SOPHOSDIR/update_sophos-$DAYOFWEEK.log 2>&1