wok view airpwn/receipt @ rev 14834

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