aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysqlsniffer/Makefile
blob: 22f0fc443bf930482169ef4ab91bf3714e6d76ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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>