wok-next annotate airpwn/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | f5bfda4cdfe9 |
children | 342b30daff76 |
rev | line source |
---|---|
slaxemulator@7180 | 1 # SliTaz package receipt. |
slaxemulator@7180 | 2 |
slaxemulator@7180 | 3 PACKAGE="airpwn" |
slaxemulator@7180 | 4 VERSION="1.4" |
slaxemulator@7180 | 5 CATEGORY="network" |
slaxemulator@7180 | 6 SHORT_DESC="Airpwn is a tool for generic packet injection on an 802.11 network." |
slaxemulator@7180 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15000 | 8 LICENSE="GPL2" |
al@19275 | 9 WEB_SITE="http://airpwn.sourceforge.net" |
slaxemulator@7180 | 10 TARBALL="$PACKAGE-$VERSION.tgz" |
slaxemulator@7180 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@7180 | 12 |
al@20453 | 13 DEPENDS="pcre libpcap openssl lorcon wireless_tools libnet" |
al@20453 | 14 BUILD_DEPENDS="pcre-dev libpcap-dev openssl-dev lorcon-dev \ |
pascal@15020 | 15 wireless_tools-dev libnet-dev libnet python python-dev autoconf automake" |
pascal@15000 | 16 |
slaxemulator@7180 | 17 # Rules to configure and make the package. |
slaxemulator@7180 | 18 compile_rules() |
slaxemulator@7180 | 19 { |
slaxemulator@7180 | 20 # Fix airpwn files so we can use it with a Python version other than 2.4. |
slaxemulator@7180 | 21 PYTHON_VERSION1=$(python -c 'import sys; print sys.version[:3]') |
slaxemulator@7180 | 22 PYTHON_VERSION2=$(echo $PYTHON_VERSION1 | tr . _) |
slaxemulator@7180 | 23 |
slaxemulator@7180 | 24 for FILE in configure.ac conf.h config.h.in; do |
slaxemulator@7180 | 25 sed -i "s|python2.4|python${PYTHON_VERSION1}|g" $FILE |
slaxemulator@7180 | 26 done |
slaxemulator@7180 | 27 |
slaxemulator@7180 | 28 autoreconf |
pascal@17761 | 29 automake --add-missing |
slaxemulator@7180 | 30 ./configure \ |
slaxemulator@7180 | 31 --prefix=/usr \ |
slaxemulator@7180 | 32 --infodir=/usr/share/info \ |
slaxemulator@7180 | 33 --mandir=/usr/share/man \ |
slaxemulator@7180 | 34 $CONFIGURE_ARGS && |
pascal@15000 | 35 make && make DESTDIR=$DESTDIR install |
slaxemulator@7180 | 36 } |
slaxemulator@7180 | 37 |
slaxemulator@7180 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7180 | 39 genpkg_rules() |
slaxemulator@7180 | 40 { |
slaxemulator@7180 | 41 mkdir -p $fs/usr |
pascal@15000 | 42 cp -a $install/usr/sbin $fs/usr |
slaxemulator@7180 | 43 } |