git: 870f8bc19b3a - main - Mk/bsd.octave.mk: improve fetching of source files for older ports.

From: Stephen Montgomery-Smith <stephen_at_FreeBSD.org>
Date: Mon, 10 Oct 2022 02:09:52 UTC
The branch main has been updated by stephen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=870f8bc19b3abc232c58566298cb4758e5a80d5b

commit 870f8bc19b3abc232c58566298cb4758e5a80d5b
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2022-10-10 02:07:41 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2022-10-10 02:07:41 +0000

    Mk/bsd.octave.mk: improve fetching of source files for older ports.
---
 Mk/bsd.octave.mk                             | 11 ++++++++---
 benchmarks/octave-forge-benchmark/Makefile   |  2 ++
 math/octave-forge-bioinfo/Makefile           |  2 ++
 math/octave-forge-civil-engineering/Makefile |  2 ++
 math/octave-forge-ident/Makefile             |  2 ++
 math/octave-forge-informationtheory/Makefile |  2 ++
 math/octave-forge-integration/Makefile       |  2 ++
 math/octave-forge-irsa/Makefile              |  2 ++
 math/octave-forge-missing-functions/Makefile |  2 ++
 math/octave-forge-multicore/Makefile         |  2 ++
 math/octave-forge-oct2mat/Makefile           |  2 ++
 math/octave-forge-odebvp/Makefile            |  2 ++
 math/octave-forge-outliers/Makefile          |  2 ++
 math/octave-forge-secs2d/Makefile            |  2 ++
 math/octave-forge-simp/Makefile              |  2 ++
 math/octave-forge-special-matrix/Makefile    |  2 ++
 math/octave-forge-symband/Makefile           |  2 ++
 math/octave-forge-tcl-octave/Makefile        |  2 ++
 math/octave-forge-zenity/Makefile            |  2 ++
 19 files changed, 44 insertions(+), 3 deletions(-)

diff --git a/Mk/bsd.octave.mk b/Mk/bsd.octave.mk
index e2fc1710c47a..b9bbcfb256ad 100644
--- a/Mk/bsd.octave.mk
+++ b/Mk/bsd.octave.mk
@@ -6,9 +6,14 @@
 # It is, in effect, a wrapper using the package handling already built
 # into math/octave.
 
-MASTER_SITES=	SF/octave/Octave%20Forge%20Packages/Individual%20Package%20Releases \
-		SF/octave/Octave%20Forge%20Packages/Old%20Monolithic%20Releases/R2009-06-07 \
-		SF/octave/Octave%20Forge%20Packages/Old%20Monolithic%20Releases/R2009-05-08
+.if !empty(MASTER_SITE_OLD:MR2009_05)
+MASTER_SITES=	SF/octave/Octave%20Forge%20Packages/Old%20Monolithic%20Releases/R2009-05-08
+.elif !empty(MASTER_SITE_OLD:MR2009_06)
+MASTER_SITES=	SF/octave/Octave%20Forge%20Packages/Old%20Monolithic%20Releases/R2009-06-07
+.else
+MASTER_SITES=	SF/octave/Octave%20Forge%20Packages/Individual%20Package%20Releases
+.endif
+
 DISTNAME=	${OCTAVE_PKGNAME}-${DISTVERSIONFULL}
 
 bsd_octave_mk_MAINTAINER=	stephen@FreeBSD.org
diff --git a/benchmarks/octave-forge-benchmark/Makefile b/benchmarks/octave-forge-benchmark/Makefile
index 63b7e14c2974..d0c1546b1b14 100644
--- a/benchmarks/octave-forge-benchmark/Makefile
+++ b/benchmarks/octave-forge-benchmark/Makefile
@@ -10,5 +10,7 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_05
+
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
 .include <bsd.port.mk>
diff --git a/math/octave-forge-bioinfo/Makefile b/math/octave-forge-bioinfo/Makefile
index 2870d37d97d0..05dcb4ed8bcb 100644
--- a/math/octave-forge-bioinfo/Makefile
+++ b/math/octave-forge-bioinfo/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-civil-engineering/Makefile b/math/octave-forge-civil-engineering/Makefile
index 0e2d5d28761a..c7bc6e5797a5 100644
--- a/math/octave-forge-civil-engineering/Makefile
+++ b/math/octave-forge-civil-engineering/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-ident/Makefile b/math/octave-forge-ident/Makefile
index 4f97905ab23c..7f7d04834b1b 100644
--- a/math/octave-forge-ident/Makefile
+++ b/math/octave-forge-ident/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-informationtheory/Makefile b/math/octave-forge-informationtheory/Makefile
index 34840c92df94..39e52c8f9da1 100644
--- a/math/octave-forge-informationtheory/Makefile
+++ b/math/octave-forge-informationtheory/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_06
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-integration/Makefile b/math/octave-forge-integration/Makefile
index 49a5061063b3..b4f482f815c8 100644
--- a/math/octave-forge-integration/Makefile
+++ b/math/octave-forge-integration/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-irsa/Makefile b/math/octave-forge-irsa/Makefile
index 449d7008ce26..11e67755285d 100644
--- a/math/octave-forge-irsa/Makefile
+++ b/math/octave-forge-irsa/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-missing-functions/Makefile b/math/octave-forge-missing-functions/Makefile
index d905fd5ef9e2..d116a699ade1 100644
--- a/math/octave-forge-missing-functions/Makefile
+++ b/math/octave-forge-missing-functions/Makefile
@@ -7,6 +7,8 @@ MAINTAINER=	stephen@FreeBSD.org
 COMMENT=	Octave-forge package ${OCTAVE_PKGNAME}
 WWW=		http://octave.sourceforge.net/
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-multicore/Makefile b/math/octave-forge-multicore/Makefile
index df8a93604194..b899c404ed0f 100644
--- a/math/octave-forge-multicore/Makefile
+++ b/math/octave-forge-multicore/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_06
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-oct2mat/Makefile b/math/octave-forge-oct2mat/Makefile
index a631aaa5a233..6e9da32289a7 100644
--- a/math/octave-forge-oct2mat/Makefile
+++ b/math/octave-forge-oct2mat/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_06
+
 GNU_CONFIGURE=	yes
 
 RUN_DEPENDS+=	${TARBALLS_DIR}/io.tar.gz:math/octave-forge-io
diff --git a/math/octave-forge-odebvp/Makefile b/math/octave-forge-odebvp/Makefile
index c9be38936fcb..b62f23cc3456 100644
--- a/math/octave-forge-odebvp/Makefile
+++ b/math/octave-forge-odebvp/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-outliers/Makefile b/math/octave-forge-outliers/Makefile
index 6cde34e173da..9765d6af114d 100644
--- a/math/octave-forge-outliers/Makefile
+++ b/math/octave-forge-outliers/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-secs2d/Makefile b/math/octave-forge-secs2d/Makefile
index c784cba2c5cb..451abd9c65ef 100644
--- a/math/octave-forge-secs2d/Makefile
+++ b/math/octave-forge-secs2d/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 post-patch:
diff --git a/math/octave-forge-simp/Makefile b/math/octave-forge-simp/Makefile
index bfa3b290b1eb..360086600d4f 100644
--- a/math/octave-forge-simp/Makefile
+++ b/math/octave-forge-simp/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-special-matrix/Makefile b/math/octave-forge-special-matrix/Makefile
index a10dbde8eae0..0a2c36d8ac78 100644
--- a/math/octave-forge-special-matrix/Makefile
+++ b/math/octave-forge-special-matrix/Makefile
@@ -7,6 +7,8 @@ MAINTAINER=	stephen@FreeBSD.org
 COMMENT=	Octave-forge package ${OCTAVE_PKGNAME}
 WWW=		http://octave.sourceforge.net/
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-symband/Makefile b/math/octave-forge-symband/Makefile
index f14acaad3ba8..942cf406df5d 100644
--- a/math/octave-forge-symband/Makefile
+++ b/math/octave-forge-symband/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_06
+
 GNU_CONFIGURE=	yes
 
 .include "${.CURDIR}/../../Mk/bsd.octave.mk"
diff --git a/math/octave-forge-tcl-octave/Makefile b/math/octave-forge-tcl-octave/Makefile
index aed0dd6b9cd4..e1cd7bf8d33b 100644
--- a/math/octave-forge-tcl-octave/Makefile
+++ b/math/octave-forge-tcl-octave/Makefile
@@ -7,6 +7,8 @@ MAINTAINER=	stephen@FreeBSD.org
 COMMENT=	Octave-forge package ${OCTAVE_PKGNAME}
 WWW=		http://octave.sourceforge.net/
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 USES+=		tcl:wrapper
diff --git a/math/octave-forge-zenity/Makefile b/math/octave-forge-zenity/Makefile
index f96035cc0d27..ddde3f20988a 100644
--- a/math/octave-forge-zenity/Makefile
+++ b/math/octave-forge-zenity/Makefile
@@ -10,6 +10,8 @@ WWW=		http://octave.sourceforge.net/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+MASTER_SITE_OLD=	R2009_05
+
 GNU_CONFIGURE=	yes
 
 RUN_DEPENDS+=	zenity:x11/zenity