You are not logged in.
Got a PKGBUILD for airpwn working fine here. Its a nice wireless tool.
But face two problems:
1. dependency lorcon, is on aur, but its build on /usr/local .. so airpwn cant find it, I change to /usr and it works.
2. it need that the line:
#include <linux/if.h>
to be included in:
/usr/include/linux/wireless.h
Dunno how to proceed in both situations.
Guidelines says you dont should build in /usr/local ... should I ask for the bro to change his pkg ?
And about changing system files ?
Offline
btw...
here is the PKGBUILD for airpwn (need to add that line to wireless.h)
# Contributor: Your Name <youremail@domain.com>
pkgname=airpwn
pkgver=1.3
pkgrel=1
pkgdesc="Airpwn is a tool for generic packet injection on an 802.11 network."
arch=('i686' 'x86_64')
url="http://airpwn.sourceforge.net"
license=('GPL')
depends=('lorcon' 'wireless_tools')
provides=(airpwn)
conflicts=(airpwn)
install=
source=(http://downloads.sourceforge.net/airpwn/$pkgname-$pkgver.tgz)
noextract=()
md5sums=()
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install || return 1
}
and here is the lorcon for /usr
# Contributor: dninja <dninja@gmail.com>
pkgname=lorcon
pkgrel=1
makedepends=('subversion')
pkgver=159
pkgdesc="Create what libradiate could have been: A generic library for injecting 802.11 frames, capable of injection via multiple driver frameworks, without forcing modification of the application code."
url="http://802.11ninja.net/lorcon/"
license="GPL"
source=()
md5sums=()
arch=('i686' 'x86_64')
_svntrunk=http://802.11ninja.net/svn/lorcon/trunk
_svnmod=lorcon
build() {
cd $startdir/src
msg "Updating lorcon SVN..."
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cd $startdir/src/$_svnmod
./configure --prefix=/usr
make || return 1
make DESTDIR="$startdir/pkg/" install
}
Last edited by nofxx (2008-02-02 08:25:34)
Offline
damn ... aur/pacman/makepkg/PKGBUILD/diff/patch is O MIOH DE GOIAS! (the best around...huaha )
problems solved... !
# Contributor: Your Name <youremail@domain.com>
pkgname=airpwn
pkgver=1.3
pkgrel=1
pkgdesc="Airpwn is a tool for generic packet injection on an 802.11 network."
arch=('i686' 'x86_64')
url="http://airpwn.sourceforge.net"
license=('GPL')
depends=('lorcon' 'wireless_tools')
provides=(airpwn)
conflicts=(airpwn)
install=
source=(http://downloads.sourceforge.net/airpwn/$pkgname-$pkgver.tgz 'airpwn_c.diff')
noextract=()
md5sums=('15b6f1cd287b4bb20dd586bb6c83628d'
'00b3dc14a58594a5a6746859c28b14df')
build() {
cd $startdir/src/$pkgname-$pkgver
patch -Np0 < ../airpwn_c.diff || return 1
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install || return 1
}
patch:
--- airpwn.c 2006-07-28 20:09:12.000000000 -0300
+++ ../../airpwn.x 2008-02-02 06:04:24.000000000 -0200
@@ -32,6 +32,7 @@
#include <linux/if_packet.h>
#include <linux/if_ether.h>
+#include <linux/if.h>
#include <linux/wireless.h>
#include <getopt.h>
Last edited by nofxx (2008-02-02 08:29:16)
Offline