wok view airpwn/receipt @ rev 15000

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 17:00:38 2013 +0000 (2013-08-10)
parents cbfb348cb173
children 19ec6729cbe8
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 wireless_tools-dev libnet-dev python python-dev autoconf automake"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 # Patch configure to link libcrypto
21 patch -Np1 -i $stuff/link-libcrypto.patch
23 # Fix airpwn files so we can use it with a Python version other than 2.4.
24 PYTHON_VERSION1=$(python -c 'import sys; print sys.version[:3]')
25 PYTHON_VERSION2=$(echo $PYTHON_VERSION1 | tr . _)
27 for FILE in configure.ac conf.h config.h.in; do
28 sed -i "s|python2.4|python${PYTHON_VERSION1}|g" $FILE
29 done
31 autoreconf
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make && make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 }