wok-next diff aircrack-ng-oui/receipt @ rev 20106

Up aircrack-ng, aircrack-ng-oui, faad2, libxfce4util, xfconf; add brisk-menu, mate-menu, libb2, gtkhash, openssl11 (openssl-1.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Oct 29 20:13:43 2017 +0200 (2017-10-29)
parents f4c22f009037
children 6fe02d53a2a2
line diff
     1.1 --- a/aircrack-ng-oui/receipt	Sat Sep 07 18:25:02 2013 +0000
     1.2 +++ b/aircrack-ng-oui/receipt	Sun Oct 29 20:13:43 2017 +0200
     1.3 @@ -1,18 +1,26 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="aircrack-ng-oui"
     1.8 -VERSION="20120730"
     1.9 +VERSION="20171029"
    1.10  CATEGORY="misc"
    1.11 -SHORT_DESC="archive of oui.txt file for airdump-ng"
    1.12 +SHORT_DESC="Archive of oui.txt file for airdump-ng"
    1.13  MAINTAINER="slaxemulator@gmail.com"
    1.14  LICENSE="GPL2"
    1.15  WEB_SITE="http://standards.ieee.org/regauth/oui"
    1.16 -TARBALL="oui.txt"
    1.17 -WGET_URL="$WEB_SITE/$TARBALL"
    1.18  
    1.19 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.20 -genpkg_rules()
    1.21 -{
    1.22 -	mkdir -p $fs/etc/aircrack-ng
    1.23 -	cp -a $src/oui.txt $fs/etc/aircrack-ng
    1.24 +TARBALL="oui-$VERSION.txt"
    1.25 +WGET_URL="http://standards-oui.ieee.org/oui.txt"
    1.26 +
    1.27 +compile_rules() {
    1.28 +	# get the logic from airodump-ng-oui-update + dos2unix & sort
    1.29 +	mkdir -p $install/etc/aircrack-ng
    1.30 +	grep '(hex)' $TARBALL \
    1.31 +	| sed 's/^[ \t]*//g;s/[ \t]*$//g' \
    1.32 +	| dos2unix \
    1.33 +	| sort \
    1.34 +	> $install/etc/aircrack-ng/airodump-ng-oui.txt
    1.35  }
    1.36 +
    1.37 +genpkg_rules() {
    1.38 +	copy @std
    1.39 +}