wok-6.x rev 7180

Added airpwn. Airpwn is a tool for generic packet injection on an 802.11 network.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Nov 08 00:03:57 2010 +0000 (2010-11-08)
parents 0cca1e2a1203
children 122cfd6de942
files airpwn/receipt airpwn/stuff/link-libcrypto.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/airpwn/receipt	Mon Nov 08 00:03:57 2010 +0000
     1.3 @@ -0,0 +1,44 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="airpwn"
     1.7 +VERSION="1.4"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Airpwn is a tool for generic packet injection on an 802.11 network."
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS="pcre libpcap libcrypto openssl lorcon wireless_tools libnet"
    1.12 +BUILD_DEPENDS="pcre-dev libpcap-dev libcrypto-dev openssl-dev lorcon-dev wireless_tools-dev libnet-dev python python-dev autoconf automake"
    1.13 +TARBALL="$PACKAGE-$VERSION.tgz"
    1.14 +WEB_SITE="http://airpwn.sourceforge.net"
    1.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	# Patch configure to link libcrypto
    1.22 +	patch -Np1 -i ../stuff/link-libcrypto.patch
    1.23 +
    1.24 +	# Fix airpwn files so we can use it with a Python version other than 2.4.
    1.25 +	PYTHON_VERSION1=$(python -c 'import sys; print sys.version[:3]')
    1.26 +	PYTHON_VERSION2=$(echo $PYTHON_VERSION1 | tr . _)
    1.27 +
    1.28 +	for FILE in configure.ac conf.h config.h.in; do
    1.29 +		sed -i "s|python2.4|python${PYTHON_VERSION1}|g" $FILE
    1.30 +	done
    1.31 +
    1.32 +	autoreconf
    1.33 +	./configure \
    1.34 +		--prefix=/usr \
    1.35 +		--infodir=/usr/share/info \
    1.36 +		--mandir=/usr/share/man \
    1.37 +		$CONFIGURE_ARGS &&
    1.38 +	make && make DESTDIR=$PWD/_pkg install
    1.39 +}
    1.40 +
    1.41 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 +genpkg_rules()
    1.43 +{
    1.44 +	mkdir -p $fs/usr
    1.45 +	cp -a $_pkg/usr/sbin $fs/usr
    1.46 +}
    1.47 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/airpwn/stuff/link-libcrypto.patch	Mon Nov 08 00:03:57 2010 +0000
     2.3 @@ -0,0 +1,11 @@
     2.4 +diff -u airpwn-1.4.orig/configure.ac airpwn-1.4/configure.ac
     2.5 +--- airpwn-1.4.orig/configure.ac	2009-05-27 09:15:23.000000000 -0700
     2.6 ++++ airpwn-1.4/configure.ac	2010-05-06 21:13:36.576175190 -0700
     2.7 +@@ -14,6 +14,7 @@
     2.8 + AC_CHECK_LIB(pthread, pthread_create, [], AC_MSG_ERROR(libpthread required))
     2.9 + AC_CHECK_LIB(orcon, tx80211_txpacket, [], AC_MSG_ERROR(LORCON required. Install LORCON before building airpwn.))
    2.10 + AC_CHECK_LIB(ssl, MD5_Init, [], AC_MSG_NOTICE(openssl required for full WEP key generation))
    2.11 ++AC_CHECK_LIB(crypto, MD5_Init, [], AC_MSG_NOTICE(libcrypto required for full WEP key generation))
    2.12 + AC_CHECK_LIB(python2.4, PyString_FromString, [], AC_MSG_NOTICE(Python2.4 required))
    2.13 + 
    2.14 + # Checks for header files.