wok-6.x annotate aircrack-ng-oui/receipt @ rev 25480

created recipe for py3k-asn1crypto
author Hans-G?nter Theisgen
date Mon Oct 17 07:37:41 2022 +0100 (2022-10-17)
parents b01314c762e9
children 73f36875e5a7
rev   line source
slaxemulator@13167 1 # SliTaz package receipt.
slaxemulator@13167 2
slaxemulator@13167 3 PACKAGE="aircrack-ng-oui"
pascal@20682 4 VERSION="20190127"
slaxemulator@13167 5 CATEGORY="misc"
slaxemulator@13167 6 SHORT_DESC="archive of oui.txt file for airdump-ng"
slaxemulator@13167 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15201 8 LICENSE="GPL2"
pascal@25436 9 WEB_SITE="https://standards.ieee.org/products-services/regauth/oui/"
pascal@20682 10 TARBALL="oui-$VERSION.txt"
pascal@20682 11 WGET_URL="http://standards-oui.ieee.org/oui.txt"
pascal@20682 12 HOST_ARCH="any"
slaxemulator@13167 13
pascal@24759 14 # What is the latest version available today?
pascal@24759 15 current_version()
pascal@24759 16 {
pascal@24759 17 wget -O - https://github.com/royhills/arp-scan/commits/master/ieee-oui.txt 2>/dev/null | \
pascal@24759 18 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
pascal@24759 19 }
pascal@24759 20
pascal@20683 21 # Rules to configure and make the package.
pascal@20683 22 compile_rules()
slaxemulator@13167 23 {
pascal@20682 24 # get the logic from airodump-ng-oui-update + dos2unix & sort
pascal@20683 25 mkdir -p $install/etc/aircrack-ng
pascal@20682 26 grep '(hex)' $TARBALL \
pascal@20682 27 | sed 's/^[ \t]*//g;s/[ \t]*$//g' \
pascal@20682 28 | dos2unix \
pascal@20682 29 | sort \
pascal@20683 30 > $install/etc/aircrack-ng/airodump-ng-oui.txt
slaxemulator@13167 31 }
pascal@20683 32
pascal@20683 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20683 34 genpkg_rules()
pascal@20683 35 {
pascal@20683 36 cp -a $install/etc $fs
pascal@20683 37 }