From: Michael Tremer Date: Thu, 18 Feb 2010 13:16:37 +0000 (+0100) Subject: iw: New package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3799bb38e6aace72b689cb0c68afa10b4d43290;p=ipfire-3.x.git iw: New package. --- diff --git a/pkgs/core/iw/iw.nm b/pkgs/core/iw/iw.nm new file mode 100644 index 000000000..b7ed0fc0d --- /dev/null +++ b/pkgs/core/iw/iw.nm @@ -0,0 +1,56 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = iw +PKG_VER = 0.9.17 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = System/Base +PKG_URL = http://www.linuxwireless.org/en/users/Documentation/iw +PKG_LICENSE = BSD +PKG_SUMMARY = A nl80211 based wireless configuration tool. + +PKG_BUILD_DEPS+= pkg-config +PKG_DEPS += libnl + +define PKG_DESCRIPTION + iw is a new nl80211 based CLI configuration utility for wireless \ + devices. Currently you can only use this utility to configure devices \ + which use a mac80211 driver as these are the new drivers being written \ + - only because most new wireless devices being sold are now SoftMAC. +endef + +PKG_TARBALL = $(THISAPP).tar.bz2 + +define STAGE_BUILD + cd $(DIR_APP) && make $(PARALLELISMFLAGS) +endef + +define STAGE_INSTALL_CMDS + -mkdir -pv $(BUILDROOT)/sbin + mv -v $(BUILDROOT)/usr/sbin/iw $(BUILDROOT)/sbin/iw +endef diff --git a/pkgs/core/iw/patches/iw-0.9.17-default-install-to-PREFIX-sbin.patch b/pkgs/core/iw/patches/iw-0.9.17-default-install-to-PREFIX-sbin.patch new file mode 100644 index 000000000..74c8e333d --- /dev/null +++ b/pkgs/core/iw/patches/iw-0.9.17-default-install-to-PREFIX-sbin.patch @@ -0,0 +1,42 @@ +From f8a9dbbbde041fca098b579c3669819e8282577a Mon Sep 17 00:00:00 2001 +From: John W. Linville +Date: Wed, 30 Sep 2009 09:17:39 -0400 +Subject: [iw PATCH] default install to $(PREFIX)/sbin + +The iw utility isn't generally useful to normal users, so move it to +$(PREFIX)/sbin with other system management executables. + +Signed-off-by: John W. Linville +--- +As "suggested" by Johannes... :-) + + Makefile | 6 +++--- + 1 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index cb5fcc1..68bef4d 100644 +--- a/Makefile ++++ b/Makefile +@@ -3,7 +3,7 @@ + MAKEFLAGS += --no-print-directory + + PREFIX ?= /usr +-BINDIR ?= $(PREFIX)/bin ++SBINDIR ?= $(PREFIX)/sbin + MANDIR ?= $(PREFIX)/share/man + PKG_CONFIG ?= pkg-config + +@@ -85,8 +85,8 @@ check: + + install: iw iw.8.gz + @$(NQ) ' INST iw' +- $(Q)$(MKDIR) $(DESTDIR)$(BINDIR) +- $(Q)$(INSTALL) -m 755 -t $(DESTDIR)$(BINDIR) iw ++ $(Q)$(MKDIR) $(DESTDIR)$(SBINDIR) ++ $(Q)$(INSTALL) -m 755 -t $(DESTDIR)$(SBINDIR) iw + @$(NQ) ' INST iw.8' + $(Q)$(MKDIR) $(DESTDIR)$(MANDIR)/man8/ + $(Q)$(INSTALL) -m 644 -t $(DESTDIR)$(MANDIR)/man8/ iw.8.gz +-- +1.6.2.5 +