pkgsrc/net/arpwatch/patches/patch-ae
bouyer 4d67338c9e Update to 2.1a13, from Geert Hendrickx and William Fletcher.
arpwatch changes:
- Convert arp2ethers from csh to sh
- updated ethercode.dat
- misc minor bugfixes

Changes from Geert Hendrickx:
- move ethercodes.dat to share/arpwatch (from etc)
- Use ${VARBASE:Q} instead of ${VARBASE} as suggested by pkglint
 - Use OWN_DIRS to note the admin about the stale db directory after
   deinstallation
Changes from William Fletcher:
- add a rc.d script
- add a '-m' option to specify the recipient for email messages (still
  defaults to root)

Fix pkg/32151 by Geert Hendrickx
2005-11-30 22:36:43 +00:00

20 lines
559 B
Text

--- report.c.orig 2000-10-01 01:41:10.000000000 +0200
+++ report.c 2005-10-25 13:07:21.000000000 +0200
@@ -70,6 +70,8 @@
#define PLURAL(n) ((n) == 1 || (n) == -1 ? "" : "s")
+char *Watcher;
+
static int cdepth; /* number of outstanding children */
static char *fmtdate(time_t);
@@ -240,7 +242,7 @@
register FILE *f;
char tempfile[64], cpu[64], os[64];
char *fmt = "%20s: %s\n";
- char *watcher = WATCHER;
+ char *watcher = Watcher ? Watcher : WATCHER;
char *watchee = WATCHEE;
char *sendmail = PATH_SENDMAIL;
char *unknown = "<unknown>";