From ec772577a58fec1dcab6ccbab7c5462ba9304a0b Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Fri, 10 Feb 2006 11:14:47 +0000 Subject: Make this work with Perl 5.005: - supply a second argument to mkdir(); - bypass the podchecker invocation on Perl 5.005, which simply does not have it. Reported by: pointyhat via kris --- sysutils/sysgather/Makefile | 8 +++++- sysutils/sysgather/files/patch-Makefile | 24 +++++++++++++++++ sysutils/sysgather/files/patch-sysgather.pl | 40 +++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 sysutils/sysgather/files/patch-Makefile create mode 100644 sysutils/sysgather/files/patch-sysgather.pl (limited to 'sysutils/sysgather') diff --git a/sysutils/sysgather/Makefile b/sysutils/sysgather/Makefile index 209ab467b7f9..294d1e54c5b0 100644 --- a/sysutils/sysgather/Makefile +++ b/sysutils/sysgather/Makefile @@ -21,4 +21,10 @@ USE_PERL5= yes MAN1= sysgather.1 -.include +.include + +.if ${PERL_LEVEL} < 500600 +MAKE_ENV+= PODCHECKER=true PODCHECKER_ARGS= +.endif + +.include diff --git a/sysutils/sysgather/files/patch-Makefile b/sysutils/sysgather/files/patch-Makefile new file mode 100644 index 000000000000..b7d68f5e7f37 --- /dev/null +++ b/sysutils/sysgather/files/patch-Makefile @@ -0,0 +1,24 @@ +Index: Makefile +=================================================================== +--- Makefile (revision 217) ++++ Makefile (revision 218) +@@ -61,8 +61,10 @@ + SED?= sed + CP?= cp + TAR?= tar ++PODCHECKER?= podchecker + + TAR_CREATE?= -zcf ++PODCHECKER_ARGS?= -w + + VERSION_MAJ?= 1 + VERSION_MIN?= 0 +@@ -84,7 +86,7 @@ + perl -c ${PROG} + + ${MANPAGE}: ${PROG} +- podchecker -w ${PROG} ++ ${PODCHECKER} ${PODCHECKER_ARGS} ${PROG} + pod2man --section=1 ${PROG} > ${MANPAGE} || ${RM} ${MANPAGE} + + ${REALCONF}: ${TESTCONF} diff --git a/sysutils/sysgather/files/patch-sysgather.pl b/sysutils/sysgather/files/patch-sysgather.pl new file mode 100644 index 000000000000..eb292e4f01b8 --- /dev/null +++ b/sysutils/sysgather/files/patch-sysgather.pl @@ -0,0 +1,40 @@ +Index: sysgather.pl +=================================================================== +--- sysgather.pl (revision 217) ++++ sysgather.pl (revision 219) +@@ -211,7 +211,7 @@ + die "No base directory $g->{basedir} for $pkg\n"; + } + if (! -d $g->{'confdir'}) { +- mkdir $g->{'confdir'} or ++ mkdir $g->{'confdir'}, 0777 or + die "Could not create $g->{confdir}: $!\n"; + } + +@@ -269,7 +269,7 @@ + die "No source directory $g->{srcdir} for $pkg\n"; + } + if (! -d $g->{'confdir'}) { +- mkdir $g->{'confdir'} or ++ mkdir $g->{'confdir'}, 0777 or + die "Could not create $g->{confdir}: $!\n"; + } + +@@ -325,7 +325,7 @@ + die "No base directory $g->{basedir} for $pkg\n"; + } + if (! -d $g->{'confdir'}) { +- mkdir $g->{'confdir'} or ++ mkdir $g->{'confdir'}, 0777 or + die "Could not create $g->{confdir}: $!\n"; + } + +@@ -457,7 +457,7 @@ + die "No source directory $g->{srcdir} for $pkg\n"; + } + if (! -d $g->{'confdir'}) { +- mkdir $g->{'confdir'} or ++ mkdir $g->{'confdir'}, 0777 or + die "Could not create $g->{confdir}: $!\n"; + } + -- cgit v1.2.3