Date: Fri, 12 Jul 2002 04:15:59 -0700 (PDT) From: Adrian Robinson <ajr@subdimension.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/40480: new port: finds fastest cvsup mirror in specified countries (updated #40476) Message-ID: <200207121115.g6CBFxLl053369@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <bsd.port.mk> 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 <ajr@subdimension.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207121115.g6CBFxLl053369>