summaryrefslogtreecommitdiff
path: root/community/lorcon
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-11 23:14:54 +0000
committerroot <root@rshg054.dnsready.net>2012-02-11 23:14:54 +0000
commitcfceb92e73d7f6a32494f0ba258b98748af43f34 (patch)
tree56f71bc4b93aa78486f4e0e0b0c5250ea977f114 /community/lorcon
parent9d1489b877a1fa7c2674cf1f744804db42d93bfc (diff)
Sat Feb 11 23:14:53 UTC 2012
Diffstat (limited to 'community/lorcon')
-rw-r--r--community/lorcon/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/lorcon/PKGBUILD b/community/lorcon/PKGBUILD
new file mode 100644
index 000000000..21645c76e
--- /dev/null
+++ b/community/lorcon/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 64224 2012-02-10 23:08:10Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Brad Fanella <bradfanella@archlinux.us>
+# Contributor: fnord0 [fnord0 <AT> riseup <DOT> net]
+# Contributor: dninja <dninja@gmail.com>
+
+pkgname=lorcon
+pkgver=224
+pkgrel=1
+pkgdesc="Loss Of Radio CONnectivity: A generic library for injecting 802.11 frames"
+url='http://802.11ninja.net/'
+license=('GPL')
+arch=('x86_64' 'i686')
+depends=('libpcap')
+makedepends=('subversion')
+provides=('lorcon-old-svn')
+options=('!libtool')
+_svntrunk="http://802.11ninja.net/svn/lorcon/trunk"
+_svnrev=$pkgver
+
+build() {
+ cd "$srcdir"
+
+ if [ -d "$_svnmod/.svn" ]; then
+ (cd "$_svnmod" && svn up -r "$_svnrev")
+ else
+ svn co "$_svntrunk/$_svnmod" --config-dir ./ -r \
+ "$_svnrev" "$_svnmod"
+ fi
+ msg "SVN checkout done or server timeout"
+ cd "$_svnmod"
+
+ ./configure --prefix=/usr --mandir=/usr/share/man
+ make
+}
+
+package() {
+ cd "$_svnmod"
+
+ make DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et: