1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../qmail-scanner/head-1-postst.diff
5 # Copyright (C) 2005 - 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
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}"
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
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`
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
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