ports/mail/bsmtp/files/patch-configure
Mathieu Arnold aa1e173354 Fix with Perl 5.21.1+.
"defined(@array)" and "defined(%hash)" are now fatal errors
    These have been deprecated since v5.6.1 and have raised deprecation
    warnings since v5.16.

With hat:	perl@
Sponsored by:	Absolight
2015-04-20 17:19:24 +00:00

49 lines
1.6 KiB
Text

--- configure.orig 2015-04-20 17:10:57 UTC
+++ configure
@@ -41,6 +41,11 @@ if ($#ARGV == 0) {
"batcher",
"batcher.c",
"bsmtp.c",
+ "bsmtp.m4.8.14",
+ "bsmtp.m4.8.13",
+ "bsmtp.m4.8.12",
+ "bsmtp.m4.8.11",
+ "bsmtp.m4.8.10",
"bsmtp.m4.8.9",
"bsmtp.m4.8.8",
"bsmtp.m4.8.7",
@@ -146,7 +151,7 @@ if (! $redo) {
}
}
} elsif ($macro eq "\@DAEMONUID\@") {
- if (! defined @getpwnam) {
+ if (! @getpwnam) {
if (! defined $value{'@DAEMONUSER@'}) {
die "\@DAEMONUSER\@ must be defined before \@DAEMONUID\@\n";
}
@@ -158,7 +163,7 @@ if (! $redo) {
($name, $_, $uid, $_, $_, $_, $_, $_, $_) = @getpwnam;
$default[$i] = $uid;
} elsif ($macro eq "\@DAEMONGID\@") {
- if (! defined @getpwnam) {
+ if (! @getpwnam) {
if (! defined $value{'@DAEMONUSER@'}) {
die "\@DAEMONUSER\@ must be defined before \@DAEMONUID\@\n";
}
@@ -198,6 +203,16 @@ if (! $redo) {
$default[$i] = '8.8';
} elsif ($value{'@SENDMAILVERS@'} =~ /^\s*8\.9(\..*)?\s*$/) {
$default[$i] = '8.9';
+ } elsif ($value{'@SENDMAILVERS@'} =~ /^\s*8\.10(\..*)?\s*$/) {
+ $default[$i] = '8.10';
+ } elsif ($value{'@SENDMAILVERS@'} =~ /^\s*8\.11(\..*)?\s*$/) {
+ $default[$i] = '8.11';
+ } elsif ($value{'@SENDMAILVERS@'} =~ /^\s*8\.12(\..*)?\s*$/) {
+ $default[$i] = '8.12';
+ } elsif ($value{'@SENDMAILVERS@'} =~ /^\s*8\.13(\..*)?\s*$/) {
+ $default[$i] = '8.13';
+ } elsif ($value{'@SENDMAILVERS@'} =~ /^\s*8\.14(\..*)?\s*$/) {
+ $default[$i] = '8.14';
} else {
$default[$i] = ''; # Will not be installed
}