mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
mysqlsniffer is a tcpdump clone specifically for dumping/sniffing/watching MySQL
network protocol traffic over TCP/IP networks. mysqlsniffer is coded in C using the pcap library and works with MySQL version 4.0 and newer. mysqlsniffer is the only MySQL-specific network sniffer. WWW: http://hackmysql.com/mysqlsniffer PR: ports/147079 Submitted by: Frederic Hardy <frederic.hardy at mageekbox.net>
This commit is contained in:
parent
4a979b24e7
commit
8715b1f933
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255668
7 changed files with 67 additions and 0 deletions
|
@ -232,6 +232,7 @@
|
|||
SUBDIR += mysqlman
|
||||
SUBDIR += mysqlreport
|
||||
SUBDIR += mysqlsla
|
||||
SUBDIR += mysqlsniffer
|
||||
SUBDIR += mysqltcl
|
||||
SUBDIR += mysqltuner
|
||||
SUBDIR += mytop
|
||||
|
|
27
databases/mysqlsniffer/Makefile
Normal file
27
databases/mysqlsniffer/Makefile
Normal file
|
@ -0,0 +1,27 @@
|
|||
# New ports collection makefile for: mysqlsniffer
|
||||
# Date created: 26 May 2010
|
||||
# Whom: Frederic Hardy <frederic.hardy@mageekbox.net>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mysqlsniffer
|
||||
PORTVERSION= 1.2
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://hackmysql.com/code/
|
||||
DISTNAME= mysqlsniffer
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= frederic.hardy@mageekbox.net
|
||||
COMMENT= Tcpdump clone specifically for MySQL
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
PLIST_FILES= bin/mysqlsniffer
|
||||
|
||||
do-build:
|
||||
${CC} -lpcap -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/mysqlsniffer.c ${WRKSRC}/packet_handlers.c ${WRKSRC}/misc.c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
3
databases/mysqlsniffer/distinfo
Normal file
3
databases/mysqlsniffer/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (mysqlsniffer.tgz) = 816575bfd06179192468a15dd3d26cdb
|
||||
SHA256 (mysqlsniffer.tgz) = 7267c3babbc0cad5714c466da6cffdd0f7a5c9bd49075ad00cb62f564cff2c35
|
||||
SIZE (mysqlsniffer.tgz) = 15782
|
10
databases/mysqlsniffer/files/patch-misc.c
Normal file
10
databases/mysqlsniffer/files/patch-misc.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- misc.c.ori 2006-08-18 16:37:02.000000000 +0200
|
||||
+++ misc.c 2010-05-26 14:01:16.000000000 +0200
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
+#include <sys/types.h>
|
||||
#include "user_defines.h"
|
||||
#include "mysql_defines.h"
|
||||
#include "misc.h"
|
10
databases/mysqlsniffer/files/patch-mysqlsniffer.c
Normal file
10
databases/mysqlsniffer/files/patch-mysqlsniffer.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- mysqlsniffer.c.ori 2006-08-18 16:52:52.000000000 +0200
|
||||
+++ mysqlsniffer.c 2010-05-26 14:01:24.000000000 +0200
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <getopt.h>
|
||||
#include <signal.h>
|
||||
#include <sys/socket.h>
|
||||
+#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include "user_defines.h"
|
10
databases/mysqlsniffer/files/patch-packet_handlers.c
Normal file
10
databases/mysqlsniffer/files/patch-packet_handlers.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- packet_handlers.c.ori 2006-08-18 16:37:02.000000000 +0200
|
||||
+++ packet_handlers.c 2010-05-26 14:01:30.000000000 +0200
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <sys/types.h>
|
||||
#include "mysql_defines.h"
|
||||
#include "user_defines.h"
|
||||
#include "state_map.h"
|
6
databases/mysqlsniffer/pkg-descr
Normal file
6
databases/mysqlsniffer/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
|||
mysqlsniffer is a tcpdump clone specifically for dumping/sniffing/watching MySQL
|
||||
network protocol traffic over TCP/IP networks.
|
||||
mysqlsniffer is coded in C using the pcap library and works with MySQL version
|
||||
4.0 and newer. mysqlsniffer is the only MySQL-specific network sniffer.
|
||||
|
||||
WWW: http://hackmysql.com/mysqlsniffer
|
Loading…
Add table
Reference in a new issue