Add a couple of patches from Debian and take maintainership

ok Dave Steinberg (old maintainer)
This commit is contained in:
giovanni 2012-03-08 09:30:59 +00:00
parent ee41268740
commit 4ee9e37040
3 changed files with 29 additions and 4 deletions

View File

@ -1,13 +1,14 @@
# $OpenBSD: Makefile,v 1.5 2010/11/26 07:18:59 espie Exp $
# $OpenBSD: Makefile,v 1.6 2012/03/08 09:30:59 giovanni Exp $
COMMENT= top clone for MySQL
DISTNAME= mytop-1.6
REVISION= 0
CATEGORIES= databases perl5
HOMEPAGE= http://jeremy.zawodny.com/mysql/mytop/
MAINTAINER= Dave Steinberg <dave@redterror.net>
MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
# GPL / Artistic License
PERMIT_PACKAGE_CDROM= Yes
@ -22,7 +23,6 @@ RUN_DEPENDS= databases/p5-DBD-mysql>=2.9004 \
BUILD_DEPENDS= ${RUN_DEPENDS}
CONFIGURE_STYLE=perl
USE_GROFF = Yes
PKG_ARCH= *

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-mytop,v 1.1 2012/03/08 09:30:59 giovanni Exp $
--- mytop.orig Sat Feb 17 05:57:46 2007
+++ mytop Tue Feb 28 13:18:20 2012
@@ -153,7 +153,7 @@ GetOptions(
"idle|i" => \$config{idle},
"resolve|r" => \$config{resolve},
"prompt!" => \$config{prompt},
- "long|!" => \$config{long_nums},
+ "long!" => \$config{long_nums},
"mode|m=s" => \$config{mode},
"sort=s" => \$config{sort},
);
@@ -952,8 +952,10 @@ sub GetData()
{
$thread->{Host} =~ s/:\d+$//;
my $host = gethostbyaddr(inet_aton($thread->{Host}), AF_INET);
- $host =~ s/^([^.]+).*/$1/;
- $thread->{Host} = $host;
+ if ($host) {
+ $host =~ s/^([^.]+).*/$1/;
+ $thread->{Host} = $host;
+ }
}
## Fix possible undefs

View File

@ -1,5 +1,5 @@
mytop is a console-based (non-gui) tool for monitoring the threads and
overall performance of MySQL 3.22.x, 3.23.x, and 4.x servers. It runs on
overall performance of MySQL 3.x, 4.x and 5.x servers. It runs on
most Unix systems (including Mac OS X) which have Perl, DBI, and
Term::ReadKey installed. And with Term::ANSIColor installed you even
get color. If you install Time::HiRes, you'll get good real-time