wok-6.x annotate aircrack-ng/receipt @ rev 24972
Up lzsa (1.3.11)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 01 08:42:44 2022 +0000 (2022-05-01) |
parents | 9af0e03b8ad0 |
children |
rev | line source |
---|---|
pascal@1033 | 1 # SliTaz package receipt. |
pascal@1033 | 2 |
pascal@1033 | 3 PACKAGE="aircrack-ng" |
slaxemulator@5388 | 4 VERSION="1.1" |
pascal@1033 | 5 CATEGORY="network" |
pascal@1033 | 6 SHORT_DESC="802.11 WEP and WPA-PSK keys cracking program." |
pascal@1033 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15201 | 8 LICENSE="GPL2" |
pascal@1033 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20671 | 10 WEB_SITE="https://www.aircrack-ng.org/" |
pascal@24972 | 11 WGET_URL="https://download.aircrack-ng.org/$TARBALL" |
pascal@15201 | 12 |
slaxemulator@13169 | 13 DEPENDS="aircrack-ng-oui iw openssl sqlite zlib pylorcon" |
slaxemulator@13169 | 14 BUILD_DEPENDS="sqlite-dev pylorcon openssl-dev" |
pascal@1033 | 15 |
pascal@24373 | 16 # What is the latest version available today? |
pascal@24373 | 17 current_version() |
pascal@24373 | 18 { |
pascal@24373 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | sed 's|.*: ||' |
pascal@24373 | 20 } |
pascal@24373 | 21 |
pascal@1033 | 22 # Rules to configure and make the package. |
pascal@1033 | 23 compile_rules() |
pascal@1033 | 24 { |
gokhlayeh@8615 | 25 sed -i s#/usr/local#/usr#g common.mak || return 1 |
gokhlayeh@8615 | 26 sed -i s#/man/man1#/share/man/man1# common.mak || return 1 |
al@19264 | 27 |
erjo@5896 | 28 # fix build with gcc45 |
gokhlayeh@8615 | 29 sed -i s/-Werror// common.mak || return 1 |
al@19264 | 30 |
pascal@23892 | 31 make -j 1 SQLITE=true unstable=true && |
pascal@23892 | 32 make -j 1 SQLITE=true unstable=true DESTDIR=$DESTDIR install |
slaxemulator@13169 | 33 sed -i 's|/usr/local||g' $DESTDIR/usr/sbin/airodump-ng-oui-update |
pascal@1033 | 34 } |
pascal@1033 | 35 |
pascal@1033 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1033 | 37 genpkg_rules() |
pascal@1033 | 38 { |
pascal@1033 | 39 mkdir -p $fs/usr |
pascal@15201 | 40 cp -a $install/usr/bin $fs/usr |
pascal@15201 | 41 cp -a $install/usr/sbin $fs/usr |
pascal@1033 | 42 } |