diff options
author | roam <roam@FreeBSD.org> | 2006-02-10 19:14:47 +0800 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2006-02-10 19:14:47 +0800 |
commit | c69fd9ab8def29104618bcc522532f1e34967e7e (patch) | |
tree | a545e55e43145efa402de302bb8a5ea49332e02d /sysutils | |
parent | c15d237e9cc760963bd63dc56684704bf349d98a (diff) | |
download | freebsd-ports-gnome-c69fd9ab8def29104618bcc522532f1e34967e7e.tar.gz freebsd-ports-gnome-c69fd9ab8def29104618bcc522532f1e34967e7e.tar.zst freebsd-ports-gnome-c69fd9ab8def29104618bcc522532f1e34967e7e.zip |
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
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/sysgather/Makefile | 8 | ||||
-rw-r--r-- | sysutils/sysgather/files/patch-Makefile | 24 | ||||
-rw-r--r-- | sysutils/sysgather/files/patch-sysgather.pl | 40 |
3 files changed, 71 insertions, 1 deletions
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 <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +MAKE_ENV+= PODCHECKER=true PODCHECKER_ARGS= +.endif + +.include <bsd.port.post.mk> 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"; + } + |