wok-current view mysqlsniffer/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="mysqlsniffer"
4 GITHASH="37410e18bc8a407be59a19a0cbf10c8ab4469fa2"
5 VERSION="2021"
6 CATEGORY="network"
7 SHORT_DESC="Watch MySQL traffic on a TCP/IP network"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL3"
10 TARBALL="$PACKAGE-$VERSION.zip"
11 WEB_SITE="https://github.com/daniel-nichter/hackmysql.com/"
12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
14 DEPENDS="libpcap"
15 BUILD_DEPENDS="libpcap-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
21 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y -d
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd mysqlsniffer
28 gcc -O2 -lpcap -o mysqlsniffer mysqlsniffer.c packet_handlers.c misc.c
29 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin
36 cp -a $src/mysqlsniffer/mysqlsniffer $fs/usr/bin
37 }