diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-02 14:24:03 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-02 14:24:03 +0000 |
commit | 50ccfb291320049d541fc5074a1213a66920383c (patch) | |
tree | f30f7c57fa23a4c0e8bf1055271bcda9fffe4bf2 /main/iw | |
parent | 70389a0d59c21210fa41c3968d6f25525a10022d (diff) | |
download | aports-50ccfb291320049d541fc5074a1213a66920383c.tar.bz2 aports-50ccfb291320049d541fc5074a1213a66920383c.tar.xz |
main/iw: moved from testing
Diffstat (limited to 'main/iw')
-rw-r--r-- | main/iw/APKBUILD | 33 | ||||
-rw-r--r-- | main/iw/iw-bb-install.patch | 15 | ||||
-rw-r--r-- | main/iw/iw-git-version.patch | 11 |
3 files changed, 59 insertions, 0 deletions
diff --git a/main/iw/APKBUILD b/main/iw/APKBUILD new file mode 100644 index 000000000..3cce23eff --- /dev/null +++ b/main/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/main/iw/iw-bb-install.patch b/main/iw/iw-bb-install.patch new file mode 100644 index 000000000..b736dbf7c --- /dev/null +++ b/main/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/main/iw/iw-git-version.patch b/main/iw/iw-git-version.patch new file mode 100644 index 000000000..0286eb488 --- /dev/null +++ b/main/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) + |