summaryrefslogtreecommitdiffstats
path: root/ports-mgmt/fastest_sites
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2008-03-25 00:46:36 +0000
committerwxs <wxs@FreeBSD.org>2008-03-25 00:46:36 +0000
commit595e1ca18ce79e15b95c4280400df96b343fec6d (patch)
tree4faa8b53ccb4087ee534072de6e69925e9f8f628 /ports-mgmt/fastest_sites
parent1b28d54ece49a900d5fff5d82997329829983e4c (diff)
downloadFreeBSD-ports-595e1ca18ce79e15b95c4280400df96b343fec6d.zip
FreeBSD-ports-595e1ca18ce79e15b95c4280400df96b343fec6d.tar.gz
Sort every mirror list in bsd.sites.mk.
Output is suitable for inclusion into make.conf. Approved by: garga (mentor)
Diffstat (limited to 'ports-mgmt/fastest_sites')
-rw-r--r--ports-mgmt/fastest_sites/Makefile34
-rw-r--r--ports-mgmt/fastest_sites/distinfo3
-rw-r--r--ports-mgmt/fastest_sites/pkg-descr5
3 files changed, 42 insertions, 0 deletions
diff --git a/ports-mgmt/fastest_sites/Makefile b/ports-mgmt/fastest_sites/Makefile
new file mode 100644
index 0000000..b445fb6
--- /dev/null
+++ b/ports-mgmt/fastest_sites/Makefile
@@ -0,0 +1,34 @@
+# Ports collection makefile for: fastest_sites
+# Date created: 20 March 2008
+# Whom: Wesley Shields <wxs@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fastest_sites
+PORTVERSION= 20080320
+CATEGORIES= ports-mgmt
+MASTER_SITES= http://www.semicomplete.com/files/fastest_sites/ \
+ http://www.atarininja.org/~wxs/distfiles/
+DISTNAME= ${PORTNAME}-${PORTVERSION}.py
+EXTRACT_SUFX= # nada
+
+MAINTAINER= wxs@FreeBSD.org
+COMMENT= Sort MASTER_SITE_* based upon TCP handshake times
+
+USE_PYTHON= yes
+NO_BUILD= yes
+
+PLIST_FILES= bin/fastest_sites
+
+do-extract:
+ @${MKDIR} ${WRKSRC}
+ @${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC}
+
+post-patch:
+ @${REINPLACE_CMD} -e 's#/usr/local/bin/python#${PYTHON_CMD}#' ${WRKSRC}/fastest_sites-${PORTVERSION}.py
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/fastest_sites-${PORTVERSION}.py ${PREFIX}/bin/fastest_sites
+
+.include <bsd.port.mk>
diff --git a/ports-mgmt/fastest_sites/distinfo b/ports-mgmt/fastest_sites/distinfo
new file mode 100644
index 0000000..6dc26ea
--- /dev/null
+++ b/ports-mgmt/fastest_sites/distinfo
@@ -0,0 +1,3 @@
+MD5 (fastest_sites-20080320.py) = 078324a2ed2f0edf627defeaeb9c39cf
+SHA256 (fastest_sites-20080320.py) = d4e5440c1ea9aa3af094c8d5765e6e978cd6ea11c2724a5f0035d7ca3579d5d0
+SIZE (fastest_sites-20080320.py) = 4159
diff --git a/ports-mgmt/fastest_sites/pkg-descr b/ports-mgmt/fastest_sites/pkg-descr
new file mode 100644
index 0000000..d839e93
--- /dev/null
+++ b/ports-mgmt/fastest_sites/pkg-descr
@@ -0,0 +1,5 @@
+Find the fastest mirror for every mirror list in bsd.sites.mk.
+
+Output is suitable for inclusion into make.conf.
+
+WWW: http://www.semicomplete.com/blog/geekery/freebsd-ports-master-sites-sorting.html
OpenPOWER on IntegriCloud