aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-05-03 03:25:11 +0800
committerpav <pav@FreeBSD.org>2004-05-03 03:25:11 +0800
commitfe16da53f1aa55db28918e1533c79e48387c8f00 (patch)
tree8756f0c1bbc29ce703568e67b457c366e57f32e9 /databases
parenta2789413b22cb638f987cee83c08a31166eb9915 (diff)
downloadfreebsd-ports-gnome-fe16da53f1aa55db28918e1533c79e48387c8f00.tar.gz
freebsd-ports-gnome-fe16da53f1aa55db28918e1533c79e48387c8f00.tar.zst
freebsd-ports-gnome-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')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/mrtg-mysql-load/Makefile36
-rw-r--r--databases/mrtg-mysql-load/distinfo2
-rw-r--r--databases/mrtg-mysql-load/files/patch-mrtg-mysql-load5
-rw-r--r--databases/mrtg-mysql-load/pkg-descr6
-rw-r--r--databases/mrtg-mysql-load/pkg-plist3
6 files changed, 53 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index adca5ff1ce78..f1be225772d9 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -77,6 +77,7 @@
SUBDIR += mergeant
SUBDIR += metakit
SUBDIR += mird
+ SUBDIR += mrtg-mysql-load
SUBDIR += msql
SUBDIR += mtop
SUBDIR += myodbc
diff --git a/databases/mrtg-mysql-load/Makefile b/databases/mrtg-mysql-load/Makefile
new file mode 100644
index 000000000000..2bfee2bbc365
--- /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 000000000000..740a6d3347f3
--- /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 000000000000..ebb461b426d1
--- /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 000000000000..9422c8014c6a
--- /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 000000000000..6b86f478bea8
--- /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