diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2013-07-09 10:54:57 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2013-07-09 10:54:57 +0000 |
commit | 03a63708450b24f7cf7379a7d9c07e2a1d5443d0 (patch) | |
tree | ca9200793057c2b84c740b3c518319b70c1b28b1 /main/arpwatch/22_alpine_bihourly_script.patch | |
parent | 76210c5705eabbe85c64c1485072df7880a025dc (diff) | |
download | aports-03a63708450b24f7cf7379a7d9c07e2a1d5443d0.tar.bz2 aports-03a63708450b24f7cf7379a7d9c07e2a1d5443d0.tar.xz |
main/arpwatch: change maintainer, added subpackage for ethercodes, added script shipped with the package
Diffstat (limited to 'main/arpwatch/22_alpine_bihourly_script.patch')
-rw-r--r-- | main/arpwatch/22_alpine_bihourly_script.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/arpwatch/22_alpine_bihourly_script.patch b/main/arpwatch/22_alpine_bihourly_script.patch new file mode 100644 index 0000000000..729c2abd14 --- /dev/null +++ b/main/arpwatch/22_alpine_bihourly_script.patch @@ -0,0 +1,41 @@ +diff --git a/bihourly.sh b/bihourly.sh +index 33e54db..810bf80 100755 +--- a/bihourly.sh ++++ b/bihourly.sh +@@ -3,11 +3,14 @@ + # + # bihourly arpwatch job + # +-PATH=${PATH}:/usr/local/sbin +-export PATH +-# +-cd /usr/operator/arpwatch + # ++ ++. /etc/conf.d/arpwatch ++ ++ARPWATCH_REPORT_EMAIL= ++ ++cd /usr/share/arpwatch ++ + list="`cat list`" + cname="`cat cname`" + temp1=$(mktemp) +@@ -26,7 +29,7 @@ touch ${l} + + alist="" + for r in ${list}; do \ +- ./arpfetch ${r} ${cname} > ${r} 2> ${temp1} ++ arpfetch ${r} ${cname} > ${r} 2> ${temp1} + if [ -s ${temp1} ]; then + echo "arpfetch ${r} errors:" + xr=${d}/${r}.$$ +@@ -44,7 +47,7 @@ arpsnmp -d ${alist} > ${temp1} 2>&1 + sed -e '/arpsnmp: suppressed DECnet flip flop/d' ${temp1} > ${temp2} + if [ -s ${temp2} ]; then + mail -s "`hostname` arpwatch report" \ +- arpwatch-reports@noname.lbl.gov < ${temp2} ++ $ARPWATCH_REPORT_EMAIL < ${temp2} + fi + rm -f ${temp1} ${temp2} + |