Update url2pkg to 1.23. In this version, the SourceForge magic now works

with or without the '?use_mirror=.*' suffix.
This commit is contained in:
rh 2003-04-23 09:18:29 +00:00
parent 0652bebd8a
commit 6b665bbfbd
2 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.25 2003/04/22 00:35:08 rh Exp $
# $NetBSD: Makefile,v 1.26 2003/04/23 09:18:29 rh Exp $
#
DISTNAME= url2pkg-1.22
DISTNAME= url2pkg-1.23
WRKSRC= ${WRKDIR}
CATEGORIES= pkgtools sysutils
MASTER_SITES= # Nothing

View file

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: url2pkg,v 1.23 2003/04/22 00:35:09 rh Exp $
# $NetBSD: url2pkg,v 1.24 2003/04/23 09:18:30 rh Exp $
#
# url2pkg
# (c) 1999-2002 Hubert Feyrer <hubert@feyrer.de>
@ -40,8 +40,8 @@ if [ ! -f w*/.extract_done ]; then
fi
sourceforge="http://prdownloads.sourceforge.net/"
if [ `expr "$url" : "$sourceforge"` -gt 0 ]; then
DISTNAME=`expr "$url" : '.*/\([^/]*\)?'`
if [ `expr "$url" : "$sourceforge.*"` -gt 0 ]; then
DISTNAME=`expr "$url" : '.*/\([^/?]*\)'`
sfname=`expr "$url" : "${sourceforge}\(.*\)/[^/]*\$"`
MASTER_SITES='${MASTER_SITE_SOURCEFORGE:='"$sfname"'/}'
HOMEPAGE="http://$sfname.sourceforge.net/"