wok-next view airpwn/receipt @ rev 18998
gst-ffmpeg: --disable-encoders
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sat Mar 19 19:13:16 2016 +0100 (2016-03-19) |
parents | 19ec6729cbe8 |
children | 45507bfb2b0d |
line source
1 # SliTaz package receipt.
3 PACKAGE="airpwn"
4 VERSION="1.4"
5 CATEGORY="network"
6 SHORT_DESC="Airpwn is a tool for generic packet injection on an 802.11 network."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://airpwn.sourceforge.net"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="pcre libpcap libcrypto openssl lorcon wireless_tools libnet"
14 BUILD_DEPENDS="pcre-dev libpcap-dev libcrypto-dev openssl-dev lorcon-dev \
15 wireless_tools-dev libnet-dev libnet python python-dev autoconf automake"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 # Patch configure to link libcrypto
22 patch -Np1 -i $stuff/link-libcrypto.patch
24 # Fix airpwn files so we can use it with a Python version other than 2.4.
25 PYTHON_VERSION1=$(python -c 'import sys; print sys.version[:3]')
26 PYTHON_VERSION2=$(echo $PYTHON_VERSION1 | tr . _)
28 for FILE in configure.ac conf.h config.h.in; do
29 sed -i "s|python2.4|python${PYTHON_VERSION1}|g" $FILE
30 done
32 autoreconf
33 automake --add-missing
34 ./configure \
35 --prefix=/usr \
36 --infodir=/usr/share/info \
37 --mandir=/usr/share/man \
38 $CONFIGURE_ARGS &&
39 make && make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 cp -a $install/usr/sbin $fs/usr
47 }