SourceForge changing file distribution scheme!

Dmitry Marakasov amdmi3 at amdmi3.ru
Tue Aug 11 15:41:10 UTC 2009


* Dmitry Marakasov (amdmi3 at amdmi3.ru) wrote:

Here's the patch I propose.

Unfortunately, there's no way to guess MASTER_SITE_SUBDIR (examples:

http://sunet.dl.sourceforge.net/project/maxima/Maxima-source/5.19.0-source/maxima-5.19.0.tar.gz
http://sunet.dl.sourceforge.net/project/lam/LAM/2.7.0/ldap-account-manager-2.7.0.tar.gz

) so for SFNEW it should be always set in the port.

I'm also thinking of writing to SF (their change also breaks at
least portscout). We may also consider switching to following
redirects in fetch.

--- bsd.sites.mk.patch begins here ---
Index: bsd.sites.mk
===================================================================
RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/Mk/bsd.sites.mk,v
retrieving revision 1.478
diff -u -r1.478 bsd.sites.mk
--- bsd.sites.mk	11 Aug 2009 06:58:24 -0000	1.478
+++ bsd.sites.mk	11 Aug 2009 15:36:25 -0000
@@ -1172,12 +1172,20 @@
 .endif
 
 .if !defined(IGNORE_MASTER_SITE_SOURCEFORGE)
-.for mirror in superb-east nchc kent easynews ufpr mesh heanet # garr
+.for mirror in garr superb-east nchc kent easynews ufpr mesh heanet
 MASTER_SITE_SOURCEFORGE+= \
 	http://${mirror}.dl.sourceforge.net/sourceforge/%SUBDIR%/
 .endfor
 .endif
 
+# new SourceForge url scheme
+.if !defined(IGNORE_MASTER_SITE_SOURCEFORGE_NEW)
+.for mirror in garr superb-east nchc kent easynews ufpr mesh heanet
+MASTER_SITE_SOURCEFORGE_NEW+= \
+	http://${mirror}.dl.sourceforge.net/project/%SUBDIR%/
+.endfor
+.endif
+
 # official sf.net mirrors that don't mirror all projects, check
 # http://prdownloads.sourceforge.net/%SUBDIR%/
 .if !defined(IGNORE_MASTER_SITE_SOURCEFORGE_EXTENDED)
@@ -1494,7 +1502,7 @@
 # Macro magic
 
 MASTER_SITES_ABBREVS=	CPAN:PERL_CPAN SF:SOURCEFORGE SFE:SOURCEFORGE_EXTENDED \
-			SFJP:SOURCEFORGE_JP RF:RUBYFORGE
+			SFNEW:SOURCEFORGE_NEW SFJP:SOURCEFORGE_JP RF:RUBYFORGE
 MASTER_SITES_SUBDIRS=	\
 			APACHE_JAKARTA:${PORTNAME:S,-,/,}/source \
 			BERLIOS:${PORTNAME:L} \
--- bsd.sites.mk.patch ends here ---

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3 at amdmi3.ru  ..:  jabber: amdmi3 at jabber.ru    http://www.amdmi3.ru


More information about the freebsd-ports mailing list