wok annotate reaver/receipt @ rev 24923

mutt: addgroup mail only when not already existing
author Hans-G?nter Theisgen
date Tue Apr 12 16:45:14 2022 +0100 (2022-04-12)
parents b630eaf326da
children 0262035dc1e7
rev   line source
pascal@13609 1 # SliTaz package receipt.
pascal@13609 2
pascal@13609 3 PACKAGE="reaver"
Hans-G?nter@23613 4 VERSION="1.6.6"
pascal@13609 5 CATEGORY="network"
pascal@13609 6 SHORT_DESC="Brute force attack against Wifi Protected Setup."
pascal@13609 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15600 8 LICENSE="GPL2"
pascal@20015 9 WEB_SITE="https://github.com/t6x/reaver-wps-fork-t6x"
Hans-G?nter@21837 10
pascal@20015 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@20015 12 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"
pascal@13609 13
Hans-G?nter@21837 14 DEPENDS="aircrack-ng libpcap pixiewps"
pascal@20017 15 BUILD_DEPENDS="libpcap-dev"
pascal@13609 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@13609 23 # Rules to configure and make the package.
pascal@13609 24 compile_rules()
pascal@13609 25 {
pascal@13609 26 cd $src/src
Hans-G?nter@21837 27 ./configure \
Hans-G?nter@21837 28 --prefix=/usr \
Hans-G?nter@21837 29 --localstatedir=/var \
Hans-G?nter@21837 30 $CONFIGURE_ARGS &&
Hans-G?nter@21837 31 make &&
Hans-G?nter@21837 32 make install
Hans-G?nter@21837 33 # make cleanbin
pascal@13609 34 }
pascal@13609 35
pascal@13609 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13609 37 genpkg_rules()
pascal@13609 38 {
Hans-G?nter@21837 39 mkdir -p $fs/var/lib/reaver
Hans-G?nter@21837 40 mkdir -p $fs/usr/bin
Hans-G?nter@21837 41 mkdir -p $install/usr/share/doc
Hans-G?nter@21837 42 mkdir -p $install/usr/share/man
Hans-G?nter@21837 43
Hans-G?nter@21837 44 cp -a $src/src/wash $fs/usr/bin
Hans-G?nter@21837 45 cp -a $src/src/reaver $fs/usr/bin
Hans-G?nter@21837 46 cp -a $src/README.md $install/usr/share/doc
Hans-G?nter@21837 47 cp -a $src/docs/* $install/usr/share/doc
Hans-G?nter@21837 48 mv $install/usr/share/doc/reaver.1 $install/usr/share/man
pascal@13609 49 }