wok diff airpwn/receipt @ rev 8353

up: glpi (0.78.2) + improve install
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Feb 03 17:09:38 2011 +0100 (2011-02-03)
parents
children cbfb348cb173
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/airpwn/receipt	Thu Feb 03 17:09:38 2011 +0100
     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 +