diff options
author | leeym <leeym@FreeBSD.org> | 2008-07-07 00:02:59 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2008-07-07 00:02:59 +0800 |
commit | a617131c859541d4304049823e9400d2552557bb (patch) | |
tree | 1b9413f37b835cdd7d0b4f68a1e8ff400f9f179b /databases/mytop | |
parent | e07126e2481d8916c93fd4f4a9c3ad115a372bf5 (diff) | |
download | freebsd-ports-gnome-a617131c859541d4304049823e9400d2552557bb.tar.gz freebsd-ports-gnome-a617131c859541d4304049823e9400d2552557bb.tar.zst freebsd-ports-gnome-a617131c859541d4304049823e9400d2552557bb.zip |
- fix missing MAGENTA() for "mytop --nocolor"
- bump PORTREVISION
Submitted by: Michael Scheidell <scheidell at secnap.net>
Diffstat (limited to 'databases/mytop')
-rw-r--r-- | databases/mytop/Makefile | 11 | ||||
-rw-r--r-- | databases/mytop/files/patch-mytop | 28 |
2 files changed, 28 insertions, 11 deletions
diff --git a/databases/mytop/Makefile b/databases/mytop/Makefile index 8e9851fc2afd..c85c5fcc875c 100644 --- a/databases/mytop/Makefile +++ b/databases/mytop/Makefile @@ -7,16 +7,17 @@ PORTNAME= mytop PORTVERSION= 1.6 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= databases MASTER_SITES= http://jeremy.zawodny.com/mysql/mytop/ MAINTAINER= leeym@FreeBSD.org COMMENT= A top clone for MySQL -RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \ - ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql \ - ${SITE_PERL}/Term/ANSIColor.pm:${PORTSDIR}/devel/p5-Term-ANSIColor +RUN_DEPENDS= p5-DBD-mysql>=1.0:${PORTSDIR}/databases/p5-DBD-mysql \ + p5-DBI>=1.13:${PORTSDIR}/databases/p5-DBI \ + p5-Term-ANSIColor>=0:${PORTSDIR}/devel/p5-Term-ANSIColor \ + p5-Term-ReadKey>=2.10:${PORTSDIR}/devel/p5-Term-ReadKey PERL_CONFIGURE= yes @@ -25,7 +26,7 @@ MAN1= mytop.1 .include <bsd.port.pre.mk> .if ${PERL_LEVEL} < 500805 -RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes +RUN_DEPENDS+= p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes .endif .include <bsd.port.post.mk> diff --git a/databases/mytop/files/patch-mytop b/databases/mytop/files/patch-mytop index afe00a3bd744..f4d1a78abcf5 100644 --- a/databases/mytop/files/patch-mytop +++ b/databases/mytop/files/patch-mytop @@ -1,6 +1,22 @@ ---- mytop.orig Thu Apr 12 07:42:22 2007 -+++ mytop Thu Apr 12 07:42:24 2007 -@@ -369,6 +369,10 @@ +--- mytop.orig 2007-02-16 20:57:46.000000000 -0800 ++++ mytop 2008-07-06 08:27:54.000000000 -0700 +@@ -193,6 +193,7 @@ + *BLUE = sub { }; + *WHITE = sub { }; + *BOLD = sub { }; ++ *MAGENTA = sub { }; + } + + my $RESET = RESET() || ''; +@@ -202,6 +203,7 @@ + my $BLUE = BLUE() || ''; + my $WHITE = WHITE() || ''; + my $BOLD = BOLD() || ''; ++my $MAGENTA= MAGENTA() || ''; + + ## Connect + +@@ -369,6 +371,10 @@ require Data::Dumper; print Data::Dumper::Dumper([\%config]); ReadKey(0); @@ -11,7 +27,7 @@ } ## m - mode swtich to qps -@@ -377,7 +381,7 @@ +@@ -377,7 +383,7 @@ { $config{mode} = 'qps'; Clear() unless $config{batchmode}; @@ -20,7 +36,7 @@ next; } -@@ -889,8 +893,42 @@ +@@ -889,8 +895,42 @@ make_short(($STATUS{Bytes_received} - $OLD_STATUS{Bytes_received}) / $t_delta ), make_short(($STATUS{Bytes_sent} - $OLD_STATUS{Bytes_sent}) / $t_delta )) if ($t_delta); @@ -64,7 +80,7 @@ $lines_left--; } -@@ -1099,8 +1137,8 @@ +@@ -1099,8 +1139,8 @@ my @data = Hashes("SHOW INNODB STATUS"); open P, "|$config{pager}" or die "$!"; |