diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2004-05-12 10:53:49 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2004-05-12 10:53:49 +0800 |
commit | e7a0ed783186ae706ee9ad5966d5ca7de2de1389 (patch) | |
tree | 47d597bb63899512ff50c3b95ffe5ccfe4883122 /net-mgmt | |
parent | e463c46a12cc507c0ba43104d0294a84e14b81c0 (diff) | |
download | freebsd-ports-gnome-e7a0ed783186ae706ee9ad5966d5ca7de2de1389.tar.gz freebsd-ports-gnome-e7a0ed783186ae706ee9ad5966d5ca7de2de1389.tar.zst freebsd-ports-gnome-e7a0ed783186ae706ee9ad5966d5ca7de2de1389.zip |
Prevent error in snmpconf script with recent perl.
Reported by: daver@vicor.com (Pomegranate)
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/net-snmp-devel/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/net-snmp-devel/files/patch-local:snmpconf | 11 | ||||
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/net-snmp/files/patch-local:snmpconf | 11 | ||||
-rw-r--r-- | net-mgmt/net-snmp53/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/net-snmp53/files/patch-local:snmpconf | 11 |
6 files changed, 33 insertions, 6 deletions
diff --git a/net-mgmt/net-snmp-devel/Makefile b/net-mgmt/net-snmp-devel/Makefile index 3a9fa1edcb21..4a577044099b 100644 --- a/net-mgmt/net-snmp-devel/Makefile +++ b/net-mgmt/net-snmp-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= snmp PORTVERSION= 5.1.1 -PORTREVISION= 3 +PORTREVISION= 4 PKGNAMEPREFIX= net- CATEGORIES= net-mgmt ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} diff --git a/net-mgmt/net-snmp-devel/files/patch-local:snmpconf b/net-mgmt/net-snmp-devel/files/patch-local:snmpconf index ae537cfcddd8..080b03479000 100644 --- a/net-mgmt/net-snmp-devel/files/patch-local:snmpconf +++ b/net-mgmt/net-snmp-devel/files/patch-local:snmpconf @@ -1,5 +1,5 @@ --- local/snmpconf.orig Wed Feb 11 01:33:42 2004 -+++ local/snmpconf Fri Apr 2 23:42:35 2004 ++++ local/snmpconf Wed May 12 11:51:15 2004 @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!%%PERL%% -w @@ -42,6 +42,15 @@ move ("$opts{'I'}/$i", "$opts{'I'}/$i.bak") if (-f "$opts{'I'}/$i"); if (move ("$didfile{$i}", "$opts{'I'}")) { +@@ -171,7 +171,7 @@ + print ("File $didfile{$i} left in current directory\n"); + } + } elsif ($opts{'p'}) { +- if (! (-d "$ENV{HOME}/.snmp") && ! (mkdir ("$ENV{HOME}/.snmp"))) { ++ if (! (-d "$ENV{HOME}/.snmp") && ! (mkdir("$ENV{HOME}/.snmp", 0777))) { + print "\nCould not create $ENV{HOME}/.snmp directory: $!\n"; + print ("File $didfile{$i} left in current directory\n"); + } @@ -198,7 +198,7 @@ } diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index 3a9fa1edcb21..4a577044099b 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -7,7 +7,7 @@ PORTNAME= snmp PORTVERSION= 5.1.1 -PORTREVISION= 3 +PORTREVISION= 4 PKGNAMEPREFIX= net- CATEGORIES= net-mgmt ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} diff --git a/net-mgmt/net-snmp/files/patch-local:snmpconf b/net-mgmt/net-snmp/files/patch-local:snmpconf index ae537cfcddd8..080b03479000 100644 --- a/net-mgmt/net-snmp/files/patch-local:snmpconf +++ b/net-mgmt/net-snmp/files/patch-local:snmpconf @@ -1,5 +1,5 @@ --- local/snmpconf.orig Wed Feb 11 01:33:42 2004 -+++ local/snmpconf Fri Apr 2 23:42:35 2004 ++++ local/snmpconf Wed May 12 11:51:15 2004 @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!%%PERL%% -w @@ -42,6 +42,15 @@ move ("$opts{'I'}/$i", "$opts{'I'}/$i.bak") if (-f "$opts{'I'}/$i"); if (move ("$didfile{$i}", "$opts{'I'}")) { +@@ -171,7 +171,7 @@ + print ("File $didfile{$i} left in current directory\n"); + } + } elsif ($opts{'p'}) { +- if (! (-d "$ENV{HOME}/.snmp") && ! (mkdir ("$ENV{HOME}/.snmp"))) { ++ if (! (-d "$ENV{HOME}/.snmp") && ! (mkdir("$ENV{HOME}/.snmp", 0777))) { + print "\nCould not create $ENV{HOME}/.snmp directory: $!\n"; + print ("File $didfile{$i} left in current directory\n"); + } @@ -198,7 +198,7 @@ } diff --git a/net-mgmt/net-snmp53/Makefile b/net-mgmt/net-snmp53/Makefile index 3a9fa1edcb21..4a577044099b 100644 --- a/net-mgmt/net-snmp53/Makefile +++ b/net-mgmt/net-snmp53/Makefile @@ -7,7 +7,7 @@ PORTNAME= snmp PORTVERSION= 5.1.1 -PORTREVISION= 3 +PORTREVISION= 4 PKGNAMEPREFIX= net- CATEGORIES= net-mgmt ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} diff --git a/net-mgmt/net-snmp53/files/patch-local:snmpconf b/net-mgmt/net-snmp53/files/patch-local:snmpconf index ae537cfcddd8..080b03479000 100644 --- a/net-mgmt/net-snmp53/files/patch-local:snmpconf +++ b/net-mgmt/net-snmp53/files/patch-local:snmpconf @@ -1,5 +1,5 @@ --- local/snmpconf.orig Wed Feb 11 01:33:42 2004 -+++ local/snmpconf Fri Apr 2 23:42:35 2004 ++++ local/snmpconf Wed May 12 11:51:15 2004 @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!%%PERL%% -w @@ -42,6 +42,15 @@ move ("$opts{'I'}/$i", "$opts{'I'}/$i.bak") if (-f "$opts{'I'}/$i"); if (move ("$didfile{$i}", "$opts{'I'}")) { +@@ -171,7 +171,7 @@ + print ("File $didfile{$i} left in current directory\n"); + } + } elsif ($opts{'p'}) { +- if (! (-d "$ENV{HOME}/.snmp") && ! (mkdir ("$ENV{HOME}/.snmp"))) { ++ if (! (-d "$ENV{HOME}/.snmp") && ! (mkdir("$ENV{HOME}/.snmp", 0777))) { + print "\nCould not create $ENV{HOME}/.snmp directory: $!\n"; + print ("File $didfile{$i} left in current directory\n"); + } @@ -198,7 +198,7 @@ } |