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