Bug 40480 - new port: finds fastest cvsup mirror in specified countries (updated #40476)
Summary: new port: finds fastest cvsup mirror in specified countries (updated #40476)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-12 12:20 UTC by Adrian Robinson
Modified: 2002-07-17 07:34 UTC (History)
0 users

See Also:


Attachments
file.shar (2.00 KB, text/plain)
2002-07-12 12:20 UTC, Adrian Robinson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Robinson 2002-07-12 12:20:01 UTC
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)
Comment 1 Cyrille Lefevre 2002-07-13 02:18:05 UTC
On Fri, Jul 12, 2002 at 04:15:59AM -0700, Adrian Robinson wrote:
> 
> >Number:         40480
> >Category:       ports
> >Synopsis:       new port: finds fastest cvsup mirror in specified countries (updated #40476)
> XPORTNAME=	fastest_cvsup
> XPORTVERSION=	0.2.3
> XCATEGORIES=	sysutils
> X
> XMASTER_SITES=	???  # needs hosting, tar.gz is 4.7kb

www.sf.net ?

also, if the project only contain a few (1?) files, you may provide
it in the `files' subdirectory.

> 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

humm! should the perl ports use ${PERL} or ${REINPLACE_CMD} ?

PS : to update a PR, it is better to submit a followup rather that to
submit a new PR. use something like this :

	echo please, close this PR which was a local problem. thanks. |
	mail -s "Re: ports/32524: Port build failed: x11-toolkits/qt23" \
	freebsd-gnats-submit@FreeBSD.org

the important thing is `ports/32524'.

more informations here :

	Writing FreeBSD Problem Reports
	http://www.FreeBSD.org/doc/en_US.ISO8859-1/articles/problem-reports/

Cyrille.
-- 
Cyrille Lefevre                 mailto:cyrille.lefevre@laposte.net
Comment 2 Adrian Robinson 2002-07-16 21:33:31 UTC
>Submitter-Id:	net
>Originator:	A.J.Robinson
>Organization:	
>Confidential:	no
>Synopsis:	Re: ports/40480 new port: fastest_cvsup, updated Makefile
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		change-request
>Release:	
>Environment:	      
>Description:
Updated Makefile, etc. This should work now!
>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:        16 July 2002
X# Whom:                A.J.Robinson (ajr@subdimension.com)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	fastest_cvsup
XPORTVERSION=	0.2.4
XCATEGORIES=	sysutils
X
XMASTER_SITES=	http://fastest-cvsup.sourceforge.net/download/
XMAINTAINER=	ajr@subdimension.com
X
XUSE_PERL5=	yes
XRUN_DEPENDS=	${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${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.4.tar.gz) = 134ffe6f2ab5729466669231df8ff4eb
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* can update the CVSup server list from www.freebsdmirrors.org
X
XWWW: http://fastest-cvsup.sourceforge.net/
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
Comment 3 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-07-17 07:34:48 UTC
State Changed
From-To: open->closed

committed, thanks