diff options
author | pav <pav@FreeBSD.org> | 2004-05-03 03:25:11 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-05-03 03:25:11 +0800 |
commit | fe16da53f1aa55db28918e1533c79e48387c8f00 (patch) | |
tree | 8756f0c1bbc29ce703568e67b457c366e57f32e9 /databases/mrtg-mysql-load | |
parent | a2789413b22cb638f987cee83c08a31166eb9915 (diff) | |
download | freebsd-ports-graphics-fe16da53f1aa55db28918e1533c79e48387c8f00.tar.gz freebsd-ports-graphics-fe16da53f1aa55db28918e1533c79e48387c8f00.tar.zst freebsd-ports-graphics-fe16da53f1aa55db28918e1533c79e48387c8f00.zip |
mrtg-mysq-load is a small Perl script which is meant
to be run by mrtg. It will fetch the total number of queries
and slow queries handled by a mysql server.
Author: Carsten H. Pedersen <mysqlfaq@bitbybit.dk>
WWW: http://www.bitbybit.dk/mysqlfaq/mrtg-mysql-load/
PR: ports/65325
Submitted by: Piet Delport <pjd@303.za.net>
Diffstat (limited to 'databases/mrtg-mysql-load')
-rw-r--r-- | databases/mrtg-mysql-load/Makefile | 36 | ||||
-rw-r--r-- | databases/mrtg-mysql-load/distinfo | 2 | ||||
-rw-r--r-- | databases/mrtg-mysql-load/files/patch-mrtg-mysql-load | 5 | ||||
-rw-r--r-- | databases/mrtg-mysql-load/pkg-descr | 6 | ||||
-rw-r--r-- | databases/mrtg-mysql-load/pkg-plist | 3 |
5 files changed, 52 insertions, 0 deletions
diff --git a/databases/mrtg-mysql-load/Makefile b/databases/mrtg-mysql-load/Makefile new file mode 100644 index 00000000000..2bfee2bbc36 --- /dev/null +++ b/databases/mrtg-mysql-load/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: mrtg-mysql-load +# Date created: 2004-04-08 +# Whom: Piet Delport <pjd@303.za.net> +# +# $FreeBSD$ +# + +PORTNAME= mrtg-mysql-load +PORTVERSION= 1.02 +CATEGORIES= databases net-mgmt +MASTER_SITES= http://www.bitbybit.dk/mysqlfaq/mrtg-mysql-load/ + +MAINTAINER= ports@FreeBSD.org +COMMENT= A MySQL load analysis fetcher for MRTG + +RUN_DEPENDS= mrtg:${PORTSDIR}/net-mgmt/mrtg \ + mysqladmin:${PORTSDIR}/databases/mysql40-client + +NO_BUILD= yes +NO_WRKSUBDIR= yes +USE_PERL5_RUN= yes +USE_REINPLACE= yes + +MAN1= ${PORTNAME}.1 + +post-patch: + @${REINPLACE_CMD} -e 's|%%PERL%%|${PERL}|' ${WRKSRC}/${PORTNAME} + +do-install: + @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + @${MKDIR} ${PREFIX}/etc/mrtg + @${INSTALL_DATA} ${WRKSRC}/mrtg-cfg.example ${PREFIX}/etc/mrtg/mrtg.cfg-mysql-load.example + @${INSTALL_DATA} ${WRKSRC}/mysql-load-cfg.example ${PREFIX}/etc/mrtg/mysql-load-cfg.example + @${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${PREFIX}/man/man1 + +.include <bsd.port.mk> diff --git a/databases/mrtg-mysql-load/distinfo b/databases/mrtg-mysql-load/distinfo new file mode 100644 index 00000000000..740a6d3347f --- /dev/null +++ b/databases/mrtg-mysql-load/distinfo @@ -0,0 +1,2 @@ +MD5 (mrtg-mysql-load-1.02.tar.gz) = 74ff08053d992b7bdef2b8678c5ac9f7 +SIZE (mrtg-mysql-load-1.02.tar.gz) = 21761 diff --git a/databases/mrtg-mysql-load/files/patch-mrtg-mysql-load b/databases/mrtg-mysql-load/files/patch-mrtg-mysql-load new file mode 100644 index 00000000000..ebb461b426d --- /dev/null +++ b/databases/mrtg-mysql-load/files/patch-mrtg-mysql-load @@ -0,0 +1,5 @@ +--- mrtg-mysql-load.orig Mon Feb 18 11:03:52 2002 ++++ mrtg-mysql-load Thu Apr 8 14:24:57 2004 +@@ -1 +1 @@ +-#!/usr/local/bin/perl -w ++#!%%PERL%% -w diff --git a/databases/mrtg-mysql-load/pkg-descr b/databases/mrtg-mysql-load/pkg-descr new file mode 100644 index 00000000000..9422c8014c6 --- /dev/null +++ b/databases/mrtg-mysql-load/pkg-descr @@ -0,0 +1,6 @@ +mrtg-mysq-load is a small Perl script which is meant +to be run by mrtg. It will fetch the total number of queries +and slow queries handled by a mysql server. + +Author: Carsten H. Pedersen <mysqlfaq@bitbybit.dk> +WWW: http://www.bitbybit.dk/mysqlfaq/mrtg-mysql-load/ diff --git a/databases/mrtg-mysql-load/pkg-plist b/databases/mrtg-mysql-load/pkg-plist new file mode 100644 index 00000000000..6b86f478bea --- /dev/null +++ b/databases/mrtg-mysql-load/pkg-plist @@ -0,0 +1,3 @@ +bin/mrtg-mysql-load +etc/mrtg/mrtg.cfg-mysql-load.example +etc/mrtg/mysql-load-cfg.example |