svn commit: r334732 - in head/mail/majordomo: . files
Andrej Zverev
az at FreeBSD.org
Sun Nov 24 15:03:54 UTC 2013
Author: az
Date: Sun Nov 24 15:03:51 2013
New Revision: 334732
URL: http://svnweb.freebsd.org/changeset/ports/334732
Log:
- Add patches to allow run under perl 5.16
PR: ports/183863
Submitted by: wolfgang at lyxys.ka.sub.org
With hat: perl@
Added:
head/mail/majordomo/files/patch-approve (contents, props changed)
head/mail/majordomo/files/patch-archive2.pl (contents, props changed)
head/mail/majordomo/files/patch-config-test (contents, props changed)
head/mail/majordomo/files/patch-contrib__sequencer (contents, props changed)
head/mail/majordomo/files/patch-majordomo (contents, props changed)
head/mail/majordomo/files/patch-md-sub__md-sub.cgi (contents, props changed)
head/mail/majordomo/files/patch-resend (contents, props changed)
Modified:
head/mail/majordomo/Makefile
Modified: head/mail/majordomo/Makefile
==============================================================================
--- head/mail/majordomo/Makefile Sun Nov 24 14:53:40 2013 (r334731)
+++ head/mail/majordomo/Makefile Sun Nov 24 15:03:51 2013 (r334732)
@@ -3,7 +3,7 @@
PORTNAME= majordomo
PORTVERSION= 1.94.5
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= mail
MASTER_SITES= ftp://ftp.nuug.no/pub/anders/distfiles/ \
ftp://ftp.sgi.com/other/majordomo/1.94.5/ \
Added: head/mail/majordomo/files/patch-approve
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/majordomo/files/patch-approve Sun Nov 24 15:03:51 2013 (r334732)
@@ -0,0 +1,14 @@
+--- ./approve.orig 2013-11-24 18:53:39.307114948 +0400
++++ ./approve 2013-11-24 18:45:58.000000000 +0400
+@@ -70,9 +70,9 @@
+ if !$MAILER;
+
+
+-require "getopts.pl";
++use Getopt::Std;
+
+-&Getopts("df:") ||
++getopts("df:") ||
+ die("USAGE: approve [-f <config-file>] [-d] [<file> ...]\nStopped");
+
+ if (!defined($opt_f)) {
Added: head/mail/majordomo/files/patch-archive2.pl
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/majordomo/files/patch-archive2.pl Sun Nov 24 15:03:51 2013 (r334732)
@@ -0,0 +1,29 @@
+--- ./archive2.pl.orig 2013-11-24 18:52:35.932149986 +0400
++++ ./archive2.pl 2013-11-24 18:49:56.000000000 +0400
+@@ -74,7 +74,7 @@
+
+ # All these should be in the standard PERL library
+ unshift(@INC, $homedir);
+-require "ctime.pl"; # To get MoY definitions for month abbrevs
++use POSIX qw(ctime);
+ require "majordomo_version.pl"; # What version of Majordomo is this?
+ require "majordomo.pl"; # all sorts of general-purpose Majordomo subs
+ require "shlock.pl"; # NNTP-style file locking
+@@ -85,7 +85,7 @@
+
+ # Here's where the fun begins...
+
+-require "getopts.pl";
++use Getopt::Std;
+
+ $m = 1;
+ foreach (@ctime'MoY) {
+@@ -94,7 +94,7 @@
+
+ $usage = "Usage: $0 -f <file> {-u|-a} [-d|-D|-m|-M|-y|-Y] [file ...]";
+
+-&Getopts("f:uadDmMyY") || die("$usage\nStopped");
++getopts("f:uadDmMyY") || die("$usage\nStopped");
+
+ if (!defined($opt_f)) {
+ print STDERR "'-f <list>' required\n$usage\n";
Added: head/mail/majordomo/files/patch-config-test
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/majordomo/files/patch-config-test Sun Nov 24 15:03:51 2013 (r334732)
@@ -0,0 +1,13 @@
+--- ./config-test.orig 2013-11-24 18:52:22.394976553 +0400
++++ ./config-test 2013-11-24 18:49:26.000000000 +0400
+@@ -7,8 +7,8 @@
+ # execute this by cd to your majordomo dir, then 'wrapper config-test'
+ #
+
+- at requires = ( "ctime.pl",
+- "majordomo_version.pl",
++use POSIX qw(ctime);
++ at requires = ( "majordomo_version.pl",
+ "majordomo.pl",
+ "shlock.pl",
+ "config_parse.pl",
Added: head/mail/majordomo/files/patch-contrib__sequencer
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/majordomo/files/patch-contrib__sequencer Sun Nov 24 15:03:51 2013 (r334732)
@@ -0,0 +1,18 @@
+--- ./contrib/sequencer.orig 2013-11-24 18:53:58.067356022 +0400
++++ ./contrib/sequencer 2013-11-24 18:48:32.000000000 +0400
+@@ -59,13 +59,13 @@
+
+ chdir($homedir) || die("Can't chdir(\"$homedir\"): $!");
+ unshift(@INC, $homedir);
++use Getopt::Std;
+ require "majordomo.pl";
+ require "majordomo_version.pl";
+-require "getopts.pl";
+ require "config_parse.pl";
+ require "shlock.pl";
+
+-&Getopts("Aa:df:h:I:l:m:M:nNp:Rr:s") || die("sequencer: Getopts() failed: $!");
++getopts("Aa:df:h:I:l:m:M:nNp:Rr:s") || die("sequencer: Getopts() failed: $!");
+
+ if (! defined($opt_l) || ! defined($opt_h)) {
+ die("sequencer: must specify both '-l list' and '-h host' arguments");
Added: head/mail/majordomo/files/patch-majordomo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/majordomo/files/patch-majordomo Sun Nov 24 15:03:51 2013 (r334732)
@@ -0,0 +1,11 @@
+--- ./majordomo.orig 2013-11-24 18:52:53.333372091 +0400
++++ ./majordomo 2013-11-24 18:50:33.000000000 +0400
+@@ -71,7 +71,7 @@
+
+ # All these should be in the standard PERL library
+ unshift(@INC, $homedir);
+-require "ctime.pl"; # To get MoY definitions for month abbrevs
++use POSIX qw(ctime); # To get MoY definitions for month abbrevs
+ require "majordomo_version.pl"; # What version of Majordomo is this?
+ require "majordomo.pl"; # all sorts of general-purpose Majordomo subs
+ require "shlock.pl"; # NNTP-style file locking
Added: head/mail/majordomo/files/patch-md-sub__md-sub.cgi
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/majordomo/files/patch-md-sub__md-sub.cgi Sun Nov 24 15:03:51 2013 (r334732)
@@ -0,0 +1,20 @@
+--- ./md-sub/md-sub.cgi.orig 2013-11-24 18:54:07.634476295 +0400
++++ ./md-sub/md-sub.cgi 2013-11-24 18:47:15.000000000 +0400
+@@ -78,7 +78,7 @@
+ #
+ # Required file
+ require 'cgi-lib.pl';
+-require 'getopts.pl';
++use Getopt::Std;
+
+ #
+ # Version number
+@@ -90,7 +90,7 @@
+
+ #
+ # Call Getopts
+-&Getopts( 'C:v');
++getopts( 'C:v');
+
+ #
+ # Check to see if we are creating a DB
Added: head/mail/majordomo/files/patch-resend
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/majordomo/files/patch-resend Sun Nov 24 15:03:51 2013 (r334732)
@@ -0,0 +1,23 @@
+--- ./resend.orig 2013-11-24 18:53:15.076805222 +0400
++++ ./resend 2013-11-24 18:50:15.000000000 +0400
+@@ -71,8 +71,9 @@
+ # getopts.pl was place where it's supposed to be. This changes previous
+ # behavior which allowed getopts.pl to be in the same place as
+ # majordomo.cf.
+-require "getopts.pl";
+-&Getopts("C:c:Aa:df:h:I:l:M:p:Rr:s") || die("resend: Getopts() failed: $!");
++use Getopt::Std;
++
++getopts("C:c:Aa:df:h:I:l:M:p:Rr:s") || die("resend: Getopts() failed: $!");
+
+ if (! defined($opt_l)) {
+ die("resend: must specify '-l list'");
+@@ -105,7 +106,7 @@
+ chdir($homedir) || die("Can't chdir(\"$homedir\"): $!");
+
+ unshift(@INC, $homedir);
+-require "ctime.pl"; # For logging purposes
++use POSIX qw(ctime); # For logging purposes
+ require "majordomo.pl";
+ require "majordomo_version.pl";
+ require "config_parse.pl";
More information about the svn-ports-all
mailing list