1f92da925c
ports-mgmt/fastest_sites: Fix runtime with modern bsd.sites.mk fastest_sites currently can't parse entries like https://archives.fedoraproject.org/pub/archive/fedora/linux/%SUBDIR%/:DEFAULT,SOURCE => Checking servers for MASTER_SITE_FEDORA_LINUX (6 servers) Traceback (most recent call last): File "/usr/local/bin/fastest_sites", line 164, in <module> latency_list = FindFastest(varname, sitelist) File "/usr/local/bin/fastest_sites", line 110, in FindFastest AsyncConnect(url, callback) File "/usr/local/bin/fastest_sites", line 53, in __init__ self.ParseURL() File "/usr/local/bin/fastest_sites", line 64, in ParseURL (scheme, remainder) = self._url.split(":", 2) ValueError: too many values to unpack PR: 224854 Approved by: ports-secteam blanket
28 lines
643 B
Makefile
28 lines
643 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= fastest_sites
|
|
PORTVERSION= 20110317
|
|
PORTREVISION= 2
|
|
CATEGORIES= ports-mgmt
|
|
MASTER_SITES= http://www.semicomplete.com/files/fastest_sites/
|
|
EXTRACT_SUFX= .py
|
|
|
|
MAINTAINER= wxs@FreeBSD.org
|
|
COMMENT= Sort MASTER_SITE_* based upon TCP handshake times
|
|
|
|
USES= python shebangfix
|
|
NO_BUILD= yes
|
|
|
|
PLIST_FILES= bin/fastest_sites
|
|
SHEBANG_FILES= fastest_sites-${PORTVERSION}.py
|
|
python_OLD_CMD= /usr/local/bin/python
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKSRC}
|
|
@${CP} ${DISTDIR}/${DISTNAME}.py ${WRKSRC}
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/fastest_sites-${PORTVERSION}.py \
|
|
${STAGEDIR}${PREFIX}/bin/fastest_sites
|
|
|
|
.include <bsd.port.mk>
|