]> git.pld-linux.org Git - packages/arpwatch.git/blame - arpwatch-debian_14opt_mailto.patch
- release 3
[packages/arpwatch.git] / arpwatch-debian_14opt_mailto.patch
CommitLineData
e2fb63d0
TP
1Index: arpwatch/arpsnmp.8
2diff -u arpwatch/arpsnmp.8:1.1.1.1.2.1 arpwatch/arpsnmp.8:1.1.1.1.12.4
3--- arpwatch/arpsnmp.8:1.1.1.1.2.1 Thu Aug 12 22:16:18 2004
4+++ arpwatch/arpsnmp.8 Thu Aug 12 22:50:39 2004
5@@ -40,6 +40,14 @@
6 .\" **
7 .br
8 .ti +8
9+[
10+.B -m
11+.I addr
12+]
13+.\" **
14+.\" **
15+.br
16+.ti +8
17 .I file
18 [
19 .I ...
20@@ -70,6 +78,15 @@
21 .\" **
22 .\" **
23 .LP
24+(Debian) The
25+.B -m
26+option is used to specify the e-mail address to which reports will be
27+sent. By default, reports are sent to
28+.I root
29+on the local machine.
30+.\" **
31+.\" **
32+.LP
33 Note that an empty
34 .I arp.dat
35 file must be created before the first time you run
36Index: arpwatch/arpsnmp.c
37diff -u arpwatch/arpsnmp.c:1.1.1.1.2.2 arpwatch/arpsnmp.c:1.1.1.1.2.1.8.2
38--- arpwatch/arpsnmp.c:1.1.1.1.2.2 Tue Aug 10 11:14:13 2004
39+++ arpwatch/arpsnmp.c Tue Aug 10 11:17:43 2004
40@@ -80,6 +80,7 @@
41 char errbuf[256];
42 char options[] =
43 "d"
44+ "m:"
45 "f:"
46 ;
47
48@@ -105,6 +106,10 @@
49 #endif
50 break;
51
52+ case 'm':
53+ mailaddress = optarg;
54+ break;
55+
56 case 'f':
57 arpfile = optarg;
58 break;
59@@ -188,6 +193,7 @@
60 extern char version[];
61 char usage[] =
62 "[-d] "
63+ "[-m addr ] "
64 "[-f datafile] "
65 "file [...]\n"
66 ;
67Index: arpwatch/arpwatch.8
68diff -u arpwatch/arpwatch.8:1.1.1.1.2.2 arpwatch/arpwatch.8:1.1.1.1.12.4
69--- arpwatch/arpwatch.8:1.1.1.1.2.2 Thu Aug 12 22:31:09 2004
70+++ arpwatch/arpwatch.8 Thu Aug 12 22:50:39 2004
71@@ -47,6 +47,8 @@
72 .B -i
73 .I interface
74 ]
75+.\" **
76+.\" **
77 .br
78 .ti +8
79 [
80@@ -63,6 +65,14 @@
81 ]
82 .\" **
83 .\" **
84+.br
85+.ti +8
86+[
87+.B -m
88+.I addr
89+]
90+.\" **
91+.\" **
92 .ad
93 .SH DESCRIPTION
94 .B Arpwatch
95@@ -127,6 +137,15 @@
96 .\" **
97 .\" **
98 .LP
99+(Debian) The
100+.B -m
101+option is used to specify the e-mail address to which reports will be
102+sent. By default, reports are sent to
103+.I root
104+on the local machine.
105+.\" **
106+.\" **
107+.LP
108 Note that an empty
109 .I arp.dat
110 file must be created before the first time you run
111Index: arpwatch/arpwatch.c
112diff -u arpwatch/arpwatch.c:1.1.1.1.2.5 arpwatch/arpwatch.c:1.1.1.1.2.1.8.3
113--- arpwatch/arpwatch.c:1.1.1.1.2.5 Sat Aug 14 02:33:07 2004
114+++ arpwatch/arpwatch.c Fri Aug 13 00:22:17 2004
115@@ -172,6 +172,9 @@
116 "r:"
117 /**/
118 /**/
119+ "m:"
120+ /**/
121+ /**/
122 ;
123
124 if (argv[0] == NULL)
125@@ -223,6 +226,11 @@
126 break;
127 /**/
128 /**/
129+ case 'm':
130+ mailaddress = optarg;
131+ break;
132+ /**/
133+ /**/
134 default:
135 usage();
136 }
137@@ -785,6 +793,9 @@
138 "[-r file] "
139 /**/
140 /**/
141+ "[-m addr] "
142+ /**/
143+ /**/
144 "\n"
145 ;
146
147Index: arpwatch/report.c
148diff -u arpwatch/report.c:1.1.1.1 arpwatch/report.c:1.1.1.1.12.1
149--- arpwatch/report.c:1.1.1.1 Tue Apr 17 13:31:37 2001
150+++ arpwatch/report.c Tue Apr 17 13:54:38 2001
151@@ -240,7 +240,7 @@
152 register FILE *f;
153 char tempfile[64], cpu[64], os[64];
154 char *fmt = "%20s: %s\n";
155- char *watcher = WATCHER;
156+ char *watcher = mailaddress;
157 char *watchee = WATCHEE;
158 char *sendmail = PATH_SENDMAIL;
159 char *unknown = "<unknown>";
160Index: arpwatch/util.c
161diff -u arpwatch/util.c:1.1.1.1.2.2 arpwatch/util.c:1.1.1.1.12.3
162--- arpwatch/util.c:1.1.1.1.2.2 Fri Aug 13 00:06:49 2004
163+++ arpwatch/util.c Fri Aug 13 00:22:17 2004
164@@ -50,6 +50,7 @@
165 #include "ec.h"
166 #include "file.h"
167 #include "util.h"
168+#include "addresses.h"
169
170 char *arpdir = ARPDIR;
171 char *arpfile = ARPFILE;
172@@ -63,6 +64,9 @@
173 int initializing = 1; /* true if initializing */
174 /**/
175 /**/
176+char *mailaddress = WATCHER;
177+/**/
178+/**/
179
180 /* syslog() helper routine */
181 void
182Index: arpwatch/util.h
183diff -u arpwatch/util.h:1.1.1.1.2.1 arpwatch/util.h:1.1.1.1.12.2
184--- arpwatch/util.h:1.1.1.1.2.1 Fri Aug 13 00:06:49 2004
185+++ arpwatch/util.h Fri Aug 13 00:22:17 2004
186@@ -19,3 +19,6 @@
187 extern int initializing;
188 /**/
189 /**/
190+extern char *mailaddress;
191+/**/
192+/**/
This page took 0.650305 seconds and 4 git commands to generate.