From owner-freebsd-ports Fri Jul 12 4:20:15 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D44F937B400 for ; Fri, 12 Jul 2002 04:20:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2463943E64 for ; Fri, 12 Jul 2002 04:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6CBK2JU092904 for ; Fri, 12 Jul 2002 04:20:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6CBK23m092902; Fri, 12 Jul 2002 04:20:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8811237B400 for ; Fri, 12 Jul 2002 04:15:59 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DFEF43E6E for ; Fri, 12 Jul 2002 04:15:59 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g6CBFxOT053370 for ; Fri, 12 Jul 2002 04:15:59 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g6CBFxLl053369; Fri, 12 Jul 2002 04:15:59 -0700 (PDT) Message-Id: <200207121115.g6CBFxLl053369@www.freebsd.org> Date: Fri, 12 Jul 2002 04:15:59 -0700 (PDT) From: Adrian Robinson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/40480: new port: finds fastest cvsup mirror in specified countries (updated #40476) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 40480 >Category: ports >Synopsis: new port: finds fastest cvsup mirror in specified countries (updated #40476) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 12 04:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Adrian Robinson >Release: 4.6-RELEASE >Organization: >Environment: >Description: Corrected errors in PR 40476 (http://www.freebsd.org/cgi/query-pr.cgi?pr=40476) Did not honour PREFIX (etc) in Makefile, my appologies! Perl script to find fastest FreeBSD CVSup server: * uses socket connections not just 'pings' * takes notice of server responses * connects to servers in countries specified on the command line - or - connects to the 'local' servers defined in the script - or - connects to *all* the servers in *all* the countries * returns either fastest server or top 3 (useful for scripts) * returns exit codes (useful for scripts) >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # Makefile # distinfo # pkg-comment # pkg-descr # pkg-plist # echo x - Makefile sed 's/^X//' >Makefile << 'END-of-Makefile' X# New ports collection makefile for: fastest_cvsup X# Date created: 11 July 2002 X# Whom: A.J.Robinson (ajr@subdimension.com) X# X# $FreeBSD$ X# X XPORTNAME= fastest_cvsup XPORTVERSION= 0.2.3 XCATEGORIES= sysutils X XMASTER_SITES= ??? # needs hosting, tar.gz is 4.7kb XMAINTAINER= ajr@subdimension.com X XUSE_PERL5= yes XRUN_DEPENDS= ${PREFIX}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes X XMAN7= fastest_cvsup.7 X Xpost-patch: X @${PERL} -pi -e 's|__PREFIX__|${PREFIX}|g ; \ X s|__INSTALL_MAN__|${INSTALL_MAN}|g ; \ X s|__INSTALL_SCRIPT__|${INSTALL_SCRIPT}|g' ${WRKSRC}/Makefile X X.include END-of-Makefile echo x - distinfo sed 's/^X//' >distinfo << 'END-of-distinfo' XMD5 (fastest_cvsup-0.2.3.tar.gz) = c44d4dff0fed3b9260e1f238059cf685 END-of-distinfo echo x - pkg-comment sed 's/^X//' >pkg-comment << 'END-of-pkg-comment' XFinds fastest CVSup server END-of-pkg-comment echo x - pkg-descr sed 's/^X//' >pkg-descr << 'END-of-pkg-descr' X XPerl script to find fastest FreeBSD CVSup server: X X* uses socket connections not just 'pings' X* takes notice of server responses X* connects to servers in countries specified on the command line X - or - X connects to the 'local' servers defined in the script X - or - X connects to *all* the servers in *all* the countries X* returns either fastest server or top 3 (useful for scripts) X* returns exit codes (useful for scripts) X X- Adrian END-of-pkg-descr echo x - pkg-plist sed 's/^X//' >pkg-plist << 'END-of-pkg-plist' Xbin/fastest_cvsup END-of-pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message