wok annotate python-scapy/receipt @ rev 25706
BootProg/boot32.asm: add int 21h services 02h, 09h, 25h, 35h
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 26 17:36:15 2024 +0000 (4 months ago) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pascal@21199 | 1 # SliTaz package receipt. |
pascal@21199 | 2 |
pascal@21199 | 3 PACKAGE="python-scapy" |
Hans-G?nter@23557 | 4 VERSION="2.4.3" |
pascal@21199 | 5 CATEGORY="development" |
Hans-G?nter@23557 | 6 SHORT_DESC="Interactive packet manipulation tool." |
pascal@21199 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@21199 | 8 LICENSE="GPL2" |
pascal@21199 | 9 WEB_SITE="https://scapy.net/" |
Hans-G?nter@23557 | 10 |
Hans-G?nter@23557 | 11 SOURCE="scapy" |
Hans-G?nter@23557 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23557 | 13 WGET_URL="https://github.com/secdev/$SOURCE/archive/v$VERSION.tar.gz" |
pascal@21199 | 14 |
pascal@21200 | 15 DEPENDS="python" |
Hans-G?nter@23557 | 16 BUILD_DEPENDS="python python-setuptools" |
pascal@21199 | 17 |
pascal@25601 | 18 # What is the latest version available today? |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25601 | 22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
pascal@21199 | 25 # Rules to configure and make the package. |
pascal@21199 | 26 compile_rules() |
pascal@21199 | 27 { |
pascal@21199 | 28 python setup.py build && |
pascal@21199 | 29 python setup.py install --root=$DESTDIR |
pascal@21199 | 30 } |
pascal@21199 | 31 |
pascal@21199 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21199 | 33 genpkg_rules() |
pascal@21199 | 34 { |
pascal@21199 | 35 mkdir -p $fs/usr |
Hans-G?nter@23557 | 36 |
Hans-G?nter@23557 | 37 cp -a $install/usr/bin $fs |
Hans-G?nter@23557 | 38 cp -a $install/usr/lib $fs |
pascal@21199 | 39 } |