wok-next annotate reaver/receipt @ rev 20762
Add leanify
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 05 17:27:09 2018 +0300 (2018-06-05) |
parents | de49f29b101e |
children | d5aab818505e |
rev | line source |
---|---|
al@19837 | 1 # SliTaz package receipt v2. |
pascal@13609 | 2 |
pascal@13609 | 3 PACKAGE="reaver" |
al@19837 | 4 VERSION="1.6.1" |
pascal@13609 | 5 CATEGORY="network" |
al@19837 | 6 SHORT_DESC="Brute force attack against WPS (Wi-Fi Protected Setup)" |
pascal@13609 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15600 | 8 LICENSE="GPL2" |
al@19837 | 9 WEB_SITE="https://github.com/t6x/reaver-wps-fork-t6x" |
pascal@13609 | 10 |
al@19837 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19837 | 12 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL" |
al@19837 | 13 |
al@19837 | 14 BUILD_DEPENDS="libpcap-dev" |
pascal@13609 | 15 |
pascal@13609 | 16 # Rules to configure and make the package. |
pascal@13609 | 17 compile_rules() |
pascal@13609 | 18 { |
pascal@13609 | 19 cd $src/src |
al@19837 | 20 ./configure \ |
al@19837 | 21 --localstatedir=/var \ |
al@19837 | 22 $CONFIGURE_ARGS && |
al@19837 | 23 make && make install |
al@19837 | 24 |
al@19837 | 25 cd $src |
al@19837 | 26 docdir=$install/usr/share/doc/$PACKAGE-$VERSION |
al@19837 | 27 mkdir -p $docdir |
al@19837 | 28 cp -a README.md docs/README* $docdir |
al@19837 | 29 cook_pick_manpages docs/reaver.1.gz |
pascal@13609 | 30 } |
pascal@13609 | 31 |
pascal@13609 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13609 | 33 genpkg_rules() |
pascal@13609 | 34 { |
al@19837 | 35 copy @std var/ |
al@19837 | 36 DEPENDS="libpcap aircrack-ng pixiewps" |
pascal@13609 | 37 } |