wok-6.x annotate airpwn/receipt @ rev 25541
w3m: fix version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 10 17:54:21 2023 +0000 (18 months ago) |
parents | 5f6c5106b1f5 |
children |
rev | line source |
---|---|
slaxemulator@7180 | 1 # SliTaz package receipt. |
slaxemulator@7180 | 2 |
slaxemulator@7180 | 3 PACKAGE="airpwn" |
slaxemulator@7180 | 4 VERSION="1.4" |
slaxemulator@7180 | 5 CATEGORY="network" |
slaxemulator@7180 | 6 SHORT_DESC="Airpwn is a tool for generic packet injection on an 802.11 network." |
slaxemulator@7180 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@25469 | 9 WEB_SITE="https://airpwn.sourceforge.net" |
slaxemulator@7180 | 10 TARBALL="$PACKAGE-$VERSION.tgz" |
slaxemulator@7180 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@7180 | 12 |
pascal@15000 | 13 DEPENDS="pcre libpcap libcrypto openssl lorcon wireless_tools libnet" |
pascal@15020 | 14 BUILD_DEPENDS="pcre-dev libpcap-dev libcrypto-dev openssl-dev lorcon-dev \ |
pascal@15020 | 15 wireless_tools-dev libnet-dev libnet python python-dev autoconf automake" |
pascal@15000 | 16 |
pascal@24340 | 17 # What is the latest version available today? |
pascal@24340 | 18 current_version() |
pascal@24340 | 19 { |
pascal@24340 | 20 wget -O - https://sourceforge.net/projects/airpwn/files/airpwn/ 2>/dev/null | \ |
pascal@24340 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24340 | 22 sed '/scope="row/!d;s|.*/airpwn/||;s|/.*||;q' |
pascal@24340 | 23 } |
pascal@24340 | 24 |
slaxemulator@7180 | 25 # Rules to configure and make the package. |
slaxemulator@7180 | 26 compile_rules() |
slaxemulator@7180 | 27 { |
slaxemulator@7180 | 28 # Patch configure to link libcrypto |
pankso@9699 | 29 patch -Np1 -i $stuff/link-libcrypto.patch |
slaxemulator@7180 | 30 |
slaxemulator@7180 | 31 # Fix airpwn files so we can use it with a Python version other than 2.4. |
slaxemulator@7180 | 32 PYTHON_VERSION1=$(python -c 'import sys; print sys.version[:3]') |
slaxemulator@7180 | 33 PYTHON_VERSION2=$(echo $PYTHON_VERSION1 | tr . _) |
slaxemulator@7180 | 34 |
slaxemulator@7180 | 35 for FILE in configure.ac conf.h config.h.in; do |
slaxemulator@7180 | 36 sed -i "s|python2.4|python${PYTHON_VERSION1}|g" $FILE |
slaxemulator@7180 | 37 done |
slaxemulator@7180 | 38 |
slaxemulator@7180 | 39 autoreconf |
pascal@17761 | 40 automake --add-missing |
slaxemulator@7180 | 41 ./configure \ |
slaxemulator@7180 | 42 --prefix=/usr \ |
slaxemulator@7180 | 43 --infodir=/usr/share/info \ |
slaxemulator@7180 | 44 --mandir=/usr/share/man \ |
slaxemulator@7180 | 45 $CONFIGURE_ARGS && |
pascal@15000 | 46 make && make DESTDIR=$DESTDIR install |
slaxemulator@7180 | 47 } |
slaxemulator@7180 | 48 |
slaxemulator@7180 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7180 | 50 genpkg_rules() |
slaxemulator@7180 | 51 { |
slaxemulator@7180 | 52 mkdir -p $fs/usr |
pascal@15000 | 53 cp -a $install/usr/sbin $fs/usr |
slaxemulator@7180 | 54 } |