diff options
author | abs <abs@pkgsrc.org> | 2002-05-14 08:38:23 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2002-05-14 08:38:23 +0000 |
commit | a0480c3ad460eefe351f4cfb44a854bd93044c47 (patch) | |
tree | 7dc17f44025635482130213f6826b8d8db230290 /net/nocol/patches | |
parent | 73ac093dba0bed3d4614ce33bbac448af8542537 (diff) | |
download | pkgsrc-a0480c3ad460eefe351f4cfb44a854bd93044c47.tar.gz |
Fix datadir location in perl lib, and allow subjects in mail sent from NetBSD
hosts. Bump to nocol-4.3.1nb2
Diffstat (limited to 'net/nocol/patches')
-rw-r--r-- | net/nocol/patches/patch-ai | 13 | ||||
-rw-r--r-- | net/nocol/patches/patch-aj | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/net/nocol/patches/patch-ai b/net/nocol/patches/patch-ai new file mode 100644 index 00000000000..b1841149429 --- /dev/null +++ b/net/nocol/patches/patch-ai @@ -0,0 +1,13 @@ +$NetBSD: patch-ai,v 1.1 2002/05/14 08:38:26 abs Exp $ + +--- perlnocol/nocollib.pl.orig Tue May 7 09:51:23 2002 ++++ perlnocol/nocollib.pl +@@ -52,7 +52,7 @@ + $etcdir = "$nocolroot/etc" unless $etcdir; # location of config file + $piddir = "$nocolroot/run" unless $piddir; # SET_THIS + $bindir = "$nocolroot/bin" unless $bindir; +-$datadir = "$nocolroot/data" unless $datadir; # output data file ++$datadir = "/var/run/data" unless $datadir; # output data file + + push(@INC, $bindir); push(@INC, $etcdir); # add to search paths for 'require' + $ENV{'PATH'} .= ":$bindir"; # add to path for snmpwalk, etc. diff --git a/net/nocol/patches/patch-aj b/net/nocol/patches/patch-aj new file mode 100644 index 00000000000..081aa47a35e --- /dev/null +++ b/net/nocol/patches/patch-aj @@ -0,0 +1,13 @@ +$NetBSD: patch-aj,v 1.1 2002/05/14 08:38:26 abs Exp $ + +--- utility/notifier.pl.orig Tue May 7 09:57:22 2002 ++++ utility/notifier.pl +@@ -256,7 +256,7 @@ + sub EmailNotify { # Send email notification of fault + local ($id, $address, $message) = @_; + +- if ($email_program =~ /ucb/) { ++ if ($^O eq 'netbsd' || $email_program =~ /ucb/) { + open(XPIPE, "|$email_program -s \"NOCOL notification: $sitename{i} $siteaddr{$i}\" $address") || + die "Cannot open $email_program.\n"; + } |