~ubuntu-branches/ubuntu/dapper/mailscanner/dapper

« back to all changes in this revision

Viewing changes to debian/patches/awk-location.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2004-05-06 07:13:51 UTC
  • Revision ID: james.westby@ubuntu.com-20040506071351-myyd25t1zk6ifcmb
Tags: 4.30.3-2
* Fix paths in ConfigDefs.pl (closes: #247632).
* Suggest libnet-ldap-perl (closes: #247633).
* Use ctime instead of atime in daily cron script (closes: #247699).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
 
 
3
# DP: Fix location of awk binary
 
4
 
 
5
dir=
 
6
if [ $# -eq 3 -a "$2" = '-d' ]; then
 
7
    pdir="-d $3"
 
8
    dir="$3/"
 
9
elif [ $# -ne 1 ]; then
 
10
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
11
    exit 1
 
12
fi
 
13
case "$1" in
 
14
    -patch)
 
15
        patch $pdir -f --no-backup-if-mismatch -p0 < $0
 
16
        ;;
 
17
    -unpatch)
 
18
        patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
 
19
        ;;
 
20
    *)
 
21
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
22
        exit 1
 
23
esac
 
24
exit 0
 
25
 
 
26
--- bin/check_mailscanner.linux
 
27
+++ bin/check_mailscanner.linux
 
28
@@ -42,7 +42,7 @@
 
29
 
 
30
 pid=`/bin/ps axww |
 
31
      /bin/grep '[ ]'$bindir/$process |
 
32
-     /bin/awk '{ print $1 }'`
 
33
+     /usr/bin/awk '{ print $1 }'`
 
34
 if [ "$pid" = "" ]; then
 
35
   # Quietly try to set the open_files limit
 
36
   ulimit -n 2000 >/dev/null 2>&1