wok-current view airpwn/receipt @ rev 24837
updated libtdb and libtdb-dev (1.4.3 -> 1.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 25 07:38:22 2022 +0100 (2022-03-25) |
parents | 11b5e93cb5f2 |
children | b0069c845544 |
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 WEB_SITE="http://airpwn.sourceforge.net"
10 TARBALL="$PACKAGE-$VERSION.tgz"
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/airpwn/files/airpwn/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/airpwn/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Patch configure to link libcrypto
29 patch -Np1 -i $stuff/link-libcrypto.patch
31 # Fix airpwn files so we can use it with a Python version other than 2.4.
32 PYTHON_VERSION1=$(python -c 'import sys; print sys.version[:3]')
33 PYTHON_VERSION2=$(echo $PYTHON_VERSION1 | tr . _)
35 for FILE in configure.ac conf.h config.h.in; do
36 sed -i "s|python2.4|python${PYTHON_VERSION1}|g" $FILE
37 done
39 autoreconf
40 automake --add-missing
41 ./configure \
42 --prefix=/usr \
43 --infodir=/usr/share/info \
44 --mandir=/usr/share/man \
45 $CONFIGURE_ARGS &&
46 make && make DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr
53 cp -a $install/usr/sbin $fs/usr
54 }