summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-07-27 09:38:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-07-27 09:38:56 +0000
commit76ec47a71a94d95451e36a71c847c29175044eae (patch)
tree206437ed514a8a1a5b3924dc894064d6741dfcb2
parent2baa221ac5044549d9ad58611b2316243bb126d0 (diff)
downloadaports-76ec47a71a94d95451e36a71c847c29175044eae.tar.bz2
aports-76ec47a71a94d95451e36a71c847c29175044eae.tar.xz
testing/iw: new aport
nl80211 based CLI configuration utility for wireless devices http://wireless.kernel.org/en/users/Documentation/iw
-rw-r--r--testing/iw/APKBUILD33
-rw-r--r--testing/iw/iw-bb-install.patch15
-rw-r--r--testing/iw/iw-git-version.patch11
3 files changed, 59 insertions, 0 deletions
diff --git a/testing/iw/APKBUILD b/testing/iw/APKBUILD
new file mode 100644
index 000000000..3cce23eff
--- /dev/null
+++ b/testing/iw/APKBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=iw
+pkgver=0.9.18
+pkgrel=0
+pkgdesc="nl80211 based CLI configuration utility for wireless devices"
+url="http://wireless.kernel.org/en/users/Documentation/iw"
+license="GPL"
+depends=""
+makedepends="libnl-dev"
+source="http://wireless.kernel.org/download/iw/iw-$pkgver.tar.bz2
+ iw-bb-install.patch
+ iw-git-version.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ patch -p1 -i "$srcdir"/iw-bb-install.patch || return 1
+ patch -p1 -i "$srcdir"/iw-git-version.patch || return 1
+}
+
+build () {
+ cd "$_builddir"
+ make V=1 || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="9734080d8a5c4b768c5e0da665a48950 iw-0.9.18.tar.bz2
+7f8cfc205fdcfd49d04c8923c76f439a iw-bb-install.patch
+779d0e73df6e484c071149c9fb720551 iw-git-version.patch"
diff --git a/testing/iw/iw-bb-install.patch b/testing/iw/iw-bb-install.patch
new file mode 100644
index 000000000..b736dbf7c
--- /dev/null
+++ b/testing/iw/iw-bb-install.patch
@@ -0,0 +1,15 @@
+--- ./Makefile.orig
++++ ./Makefile
+@@ -86,10 +86,10 @@
+ install: iw iw.8.gz
+ @$(NQ) ' INST iw'
+ $(Q)$(MKDIR) $(DESTDIR)$(SBINDIR)
+- $(Q)$(INSTALL) -m 755 -t $(DESTDIR)$(SBINDIR) iw
++ $(Q)$(INSTALL) -m 755 iw $(DESTDIR)$(SBINDIR)/
+ @$(NQ) ' INST iw.8'
+ $(Q)$(MKDIR) $(DESTDIR)$(MANDIR)/man8/
+- $(Q)$(INSTALL) -m 644 -t $(DESTDIR)$(MANDIR)/man8/ iw.8.gz
++ $(Q)$(INSTALL) -m 644 iw.8.gz $(DESTDIR)$(MANDIR)/man8/
+
+ clean:
+ $(Q)rm -f iw *.o *~ *.gz version.c *-stamp
diff --git a/testing/iw/iw-git-version.patch b/testing/iw/iw-git-version.patch
new file mode 100644
index 000000000..0286eb488
--- /dev/null
+++ b/testing/iw/iw-git-version.patch
@@ -0,0 +1,11 @@
+--- ./version.sh.orig
++++ ./version.sh
+@@ -5,7 +5,7 @@
+
+ echo '#include "iw.h"' > "$OUT"
+
+-if head=`git rev-parse --verify HEAD 2>/dev/null`; then
++if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then
+ git update-index --refresh --unmerged > /dev/null
+ descr=$(git describe)
+