diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2006-02-23 07:29:45 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2006-02-23 07:29:45 +0800 |
commit | ac4a1dd67a1740826d369c5e0c37a848aa8f14a5 (patch) | |
tree | 74d9d9504a6e7ec29437321c6251b73a74be50e9 /sysutils | |
parent | bda01a2d8cca7189c9af080aa565f2c433c596a1 (diff) | |
download | freebsd-ports-gnome-ac4a1dd67a1740826d369c5e0c37a848aa8f14a5.tar.gz freebsd-ports-gnome-ac4a1dd67a1740826d369c5e0c37a848aa8f14a5.tar.zst freebsd-ports-gnome-ac4a1dd67a1740826d369c5e0c37a848aa8f14a5.zip |
Provide optional patch to show round-trip in the result and bump PORTREVISION.
PR: 91757
Submitted by: Doug Poland <doug@polands.org>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/fastest_cvsup/Makefile | 8 | ||||
-rw-r--r-- | sysutils/fastest_cvsup/files/extrapatch-fastest_cvsup | 27 |
2 files changed, 34 insertions, 1 deletions
diff --git a/sysutils/fastest_cvsup/Makefile b/sysutils/fastest_cvsup/Makefile index 2f352a75b466..1f4bfb394eb5 100644 --- a/sysutils/fastest_cvsup/Makefile +++ b/sysutils/fastest_cvsup/Makefile @@ -7,7 +7,7 @@ PORTNAME= fastest_cvsup PORTVERSION= 0.2.9 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= http://fastest-cvsup.sourceforge.net/download/ @@ -20,8 +20,14 @@ USE_PERL5= yes MAN7= fastest_cvsup.7 PLIST_FILES= bin/fastest_cvsup +OPTIONS= ROUNDTRIP "Build with round-trip patch" off + .include <bsd.port.pre.mk> +.if defined(WITH_ROUNDTRIP) +EXTRA_PATCHES= ${FILESDIR}/extrapatch-fastest_cvsup +.endif + .if ${PERL_LEVEL} < 500805 RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes .endif diff --git a/sysutils/fastest_cvsup/files/extrapatch-fastest_cvsup b/sysutils/fastest_cvsup/files/extrapatch-fastest_cvsup new file mode 100644 index 000000000000..7750773f9c39 --- /dev/null +++ b/sysutils/fastest_cvsup/files/extrapatch-fastest_cvsup @@ -0,0 +1,27 @@ +--- fastest_cvsup 2006/01/13 13:24:38 1.1 ++++ fastest_cvsup 2006/01/13 13:43:08 +@@ -526,9 +526,9 @@ + + if ( $VERBOSE ) { # print pretty display + +- my $ms = sprintf("%.2f", 1000 * $time_taken); # time in ms ++ $time{$server} = 1000 * $time_taken ; # time in ms + print $SERVER_RESULT, "server replied: $reply\n"; +- print $SERVER_RESULT, "time taken: $ms ms\n"; ++ print $SERVER_RESULT, "time taken: " . sprintf("%.2f",$time{$server}) . " ms\n"; + + } + } +@@ -547,9 +547,9 @@ + + if ( $VERBOSE ) { + print "\n", $GENERAL_INFO, "Speed Daemons:\n" if $fastest[0]; # just checking ;) +- print $SERVER_RESULT, "1st: $fastest[0]\n" if $fastest[0]; +- print $SERVER_RESULT, "2nd: $fastest[1]\n" if $fastest[1]; +- print $SERVER_RESULT, "3rd: $fastest[2]\n" if $fastest[2]; ++ printf("%s1st: %-24s %.2f ms\n", $SERVER_RESULT, $fastest[0], $time{$fastest[0]}) if $fastest[0]; ++ printf("%s2st: %-24s %.2f ms\n", $SERVER_RESULT, $fastest[1], $time{$fastest[1]}) if $fastest[1]; ++ printf("%s3st: %-24s %.2f ms\n", $SERVER_RESULT, $fastest[2], $time{$fastest[2]}) if $fastest[2]; + } + else { # otherwise just output the fastest. + print $fastest[0]; |