Project import
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..484dfac
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,102 @@
+#
+# Copyright (c) 2010-2011 Nest, Inc.
+# All rights reserved.
+#
+# This document is the property of Nest. It is considered
+# confidential and proprietary information.
+#
+# This document may not be reproduced or transmitted in any form,
+# in whole or in part, without the express written permission of
+# Nest.
+#
+# Description:
+# This file is the make file for wireless-tools, a library and
+# set of utilities for manipulating Linux Wireless Extensions and
+# wireless network interfaces.
+#
+
+
+include pre.mak
+
+PackageName := wireless_tools
+
+PackageExtension := tar.gz
+PackageSeparator := .
+
+PackagePatchArgs :=
+
+PackageArchive := $(PackageName).$(PackageExtension)
+PackageSourceDir := $(PackageName)$(PackageSeparator)$(PackageVersion)
+
+PackageBuildMakefile = $(call GenerateBuildPaths,Makefile)
+
+CleanPaths += $(PackageLicenseFile)
+
+SOURCEDIRS = $(PackageSourceDir)
+$(PackageSourceDir)_RULE_TARGET = $(BuildDirectory)/configure
+
+all: $(PackageDefaultGoal)
+
+# Generate the package license contents.
+
+$(PackageSourceDir)/COPYING: $(BuildDirectory)/source
+
+$(PackageLicenseFile): $(PackageSourceDir)/COPYING
+ $(copy-result)
+
+# Extract the source from the archive and apply patches, if any.
+
+$(PackageSourceDir): $(PackageArchive) $(PackagePatchPaths)
+ $(expand-and-patch-package)
+
+# Prepare the sources.
+
+$(BuildDirectory)/source: | $(PackageSourceDir) $(BuildDirectory)
+ $(Verbose)touch $@
+
+# Patch the sources, if necessary.
+
+$(BuildDirectory)/patch: $(BuildDirectory)/source
+ $(Verbose)touch $@
+
+# Generate the package build makefile.
+# Configure the source for building.
+
+$(BuildDirectory)/configure: $(BuildDirectory)/source | $(PackageSourceDir) $(BuildDirectory)
+ $(call create-links,$(CURDIR)/$(PackageSourceDir),$(BuildDirectory))
+ $(Verbose)touch $@
+
+# Build the source.
+#
+# We have to unset MAKEFLAGS since they confuse the package build otherwise.
+
+$(BuildDirectory)/build: $(BuildDirectory)/configure | $(BuildDirectory)
+ $(Verbose)unset MAKEFLAGS && \
+ $(MAKE) $(JOBSFLAG) -C $(BuildDirectory) \
+ CC="$(CC) $(CPPOPTFLAGS)" AR=$(AR) RANLIB=$(RANLIB) STRIP=$(STRIP) \
+ INSTALL="$(INSTALL) $(INSTALLFLAGS)" \
+ HEADERS="$(call ToolGenerateIncludeArgument,$(LinuxIncludePath))" \
+ all
+ $(Verbose)touch $@
+
+# Stage the build to a temporary installation area.
+#
+# We have to unset MAKEFLAGS since they confuse the package build otherwise.
+
+$(BuildDirectory)/stage: $(BuildDirectory)/build | $(ResultDirectory)
+ $(Verbose)unset MAKEFLAGS && \
+ $(MAKE) $(JOBSFLAG) -C $(BuildDirectory) \
+ INSTALL="$(INSTALL) $(INSTALLFLAGS)" \
+ PREFIX=$(ResultDirectory) \
+ install
+ $(Verbose)touch $@
+
+.PHONY: stage
+stage: $(BuildDirectory)/stage
+
+clean:
+ $(Verbose)$(RM) $(RMFLAGS) -r $(PackageSourceDir)
+ $(Verbose)$(RM) $(RMFLAGS) -r $(BuildDirectory)
+ $(Verbose)$(RM) $(RMFLAGS) -r $(ResultDirectory)
+
+include post.mak
diff --git a/wireless_tools.patches/wireless_tools-50.description b/wireless_tools.patches/wireless_tools-50.description
new file mode 100644
index 0000000..74fe5f4
--- /dev/null
+++ b/wireless_tools.patches/wireless_tools-50.description
@@ -0,0 +1 @@
+Disable BUILD_STATIC so that dynamic libraries are built by default.
diff --git a/wireless_tools.patches/wireless_tools-50.patch b/wireless_tools.patches/wireless_tools-50.patch
new file mode 100644
index 0000000..d527a38
--- /dev/null
+++ b/wireless_tools.patches/wireless_tools-50.patch
@@ -0,0 +1,12 @@
+diff -aruN a/Makefile b/Makefile
+--- a/Makefile 2009-11-24 10:53:40.000000000 -0800
++++ b/Makefile 2010-09-14 16:23:02.449549736 -0700
+@@ -19,7 +19,7 @@
+ ## a local version (non-root).
+ ## Standard distros should comment that option to save space and to
+ ## build libiw.so used by third parties...
+-BUILD_STATIC = y
++# BUILD_STATIC = y
+
+ ## Uncomment this to build without using libm (less efficient).
+ ## This is mostly useful for embedded platforms without maths.
diff --git a/wireless_tools.tar.gz b/wireless_tools.tar.gz
new file mode 100644
index 0000000..c5162eb
--- /dev/null
+++ b/wireless_tools.tar.gz
Binary files differ
diff --git a/wireless_tools.url b/wireless_tools.url
new file mode 100644
index 0000000..a250187
--- /dev/null
+++ b/wireless_tools.url
@@ -0,0 +1 @@
+http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.30.pre9.tar.gz
diff --git a/wireless_tools.version b/wireless_tools.version
new file mode 100644
index 0000000..64bb6b7
--- /dev/null
+++ b/wireless_tools.version
@@ -0,0 +1 @@
+30