wok-6.x annotate airpwn/receipt @ rev 13392

Updated several packages
author Brenton Scott <admin@trixarian.net>
date Tue Sep 25 02:35:20 2012 +0200 (2012-09-25)
parents 0ba406a24a1e
children 380ffe05937a
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"
slaxemulator@7180 8 DEPENDS="pcre libpcap libcrypto openssl lorcon wireless_tools libnet"
slaxemulator@7180 9 BUILD_DEPENDS="pcre-dev libpcap-dev libcrypto-dev openssl-dev lorcon-dev wireless_tools-dev libnet-dev python python-dev autoconf automake"
slaxemulator@7180 10 TARBALL="$PACKAGE-$VERSION.tgz"
slaxemulator@7180 11 WEB_SITE="http://airpwn.sourceforge.net"
slaxemulator@7180 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
slaxemulator@7180 13
slaxemulator@7180 14 # Rules to configure and make the package.
slaxemulator@7180 15 compile_rules()
slaxemulator@7180 16 {
slaxemulator@7180 17 cd $src
slaxemulator@7180 18 # Patch configure to link libcrypto
pankso@9699 19 patch -Np1 -i $stuff/link-libcrypto.patch
slaxemulator@7180 20
slaxemulator@7180 21 # Fix airpwn files so we can use it with a Python version other than 2.4.
slaxemulator@7180 22 PYTHON_VERSION1=$(python -c 'import sys; print sys.version[:3]')
slaxemulator@7180 23 PYTHON_VERSION2=$(echo $PYTHON_VERSION1 | tr . _)
slaxemulator@7180 24
slaxemulator@7180 25 for FILE in configure.ac conf.h config.h.in; do
slaxemulator@7180 26 sed -i "s|python2.4|python${PYTHON_VERSION1}|g" $FILE
slaxemulator@7180 27 done
slaxemulator@7180 28
slaxemulator@7180 29 autoreconf
slaxemulator@7180 30 ./configure \
slaxemulator@7180 31 --prefix=/usr \
slaxemulator@7180 32 --infodir=/usr/share/info \
slaxemulator@7180 33 --mandir=/usr/share/man \
slaxemulator@7180 34 $CONFIGURE_ARGS &&
slaxemulator@7180 35 make && make DESTDIR=$PWD/_pkg install
slaxemulator@7180 36 }
slaxemulator@7180 37
slaxemulator@7180 38 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7180 39 genpkg_rules()
slaxemulator@7180 40 {
slaxemulator@7180 41 mkdir -p $fs/usr
slaxemulator@7180 42 cp -a $_pkg/usr/sbin $fs/usr
slaxemulator@7180 43 }
slaxemulator@7180 44