summaryrefslogtreecommitdiff
path: root/package/wireless-tools
diff options
context:
space:
mode:
Diffstat (limited to 'package/wireless-tools')
-rw-r--r--package/wireless-tools/Config.in6
-rw-r--r--package/wireless-tools/Makefile38
-rw-r--r--package/wireless-tools/ipkg/wireless-tools.control4
-rw-r--r--package/wireless-tools/patches/debian-2.patch35
4 files changed, 83 insertions, 0 deletions
diff --git a/package/wireless-tools/Config.in b/package/wireless-tools/Config.in
new file mode 100644
index 000000000..5350dcbdc
--- /dev/null
+++ b/package/wireless-tools/Config.in
@@ -0,0 +1,6 @@
+config ADK_PACKAGE_WIRELESS_TOOLS
+ prompt "wireless-tools.................... Tools for manipulating Linux Wireless Extensions"
+ tristate
+ default n
+ help
+ Tools for configuring Wireless Adapters implementing the "Wireless Extension"
diff --git a/package/wireless-tools/Makefile b/package/wireless-tools/Makefile
new file mode 100644
index 000000000..ed02573bd
--- /dev/null
+++ b/package/wireless-tools/Makefile
@@ -0,0 +1,38 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= wireless-tools
+PKG_VERSION:= 29
+PKG_RELEASE:= 1
+PKG_MD5SUM:= e06c222e186f7cc013fd272d023710cb
+
+MASTER_SITES:= http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/
+DISTFILES:= wireless_tools.${PKG_VERSION}.tar.gz
+
+WRKDIST= ${WRKDIR}/wireless_tools.29
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,WIRELESS_TOOLS,wireless-tools,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:= auto
+MAKE_FLAGS+= CC="${TARGET_CC}" CFLAGS="${TARGET_CFLAGS} -I."
+ALL_TARGET:= libiw.so.29 iwmulticall
+INSTALL_STYLE:= auto
+FAKE_FLAGS:= INSTALL_DIR="${WRKINST}/usr/sbin" \
+ INSTALL_LIB="${WRKINST}/usr/lib" \
+ INSTALL_INC="${WRKINST}/usr/include"
+INSTALL_TARGET:= install-iwmulticall install-hdr install-dynamic
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_WIRELESS_TOOLS}/usr/sbin
+ ${INSTALL_DIR} ${IDIR_WIRELESS_TOOLS}/usr/lib
+ ${INSTALL_DATA} ${WRKINST}/usr/lib/libiw.so.* \
+ ${IDIR_WIRELESS_TOOLS}/usr/lib/
+ ${CP} ${WRKINST}/usr/sbin/iw* ${IDIR_WIRELESS_TOOLS}/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/wireless-tools/ipkg/wireless-tools.control b/package/wireless-tools/ipkg/wireless-tools.control
new file mode 100644
index 000000000..5f472d958
--- /dev/null
+++ b/package/wireless-tools/ipkg/wireless-tools.control
@@ -0,0 +1,4 @@
+Package: wireless-tools
+Priority: optional
+Section: net
+Description: Tools for setting up WiFi cards using the Wireless Extension
diff --git a/package/wireless-tools/patches/debian-2.patch b/package/wireless-tools/patches/debian-2.patch
new file mode 100644
index 000000000..ba8755b70
--- /dev/null
+++ b/package/wireless-tools/patches/debian-2.patch
@@ -0,0 +1,35 @@
+--- wireless-tools-27.orig/iwlib.c
++++ wireless-tools-27/iwlib.c
+@@ -622,6 +622,7 @@
+ {
+ struct iwreq wrq;
+
++ memset((char *) &wrq, 0, sizeof(struct iwreq));
+ memset((char *) info, 0, sizeof(struct wireless_config));
+
+ /* Get wireless name */
+--- wireless-tools-27.orig/Makefile
++++ wireless-tools-27/Makefile
+@@ -64,8 +64,8 @@
+ # Install directories
+ INSTALL_DIR= $(PREFIX)/sbin/
+ INSTALL_LIB= $(PREFIX)/lib/
+-INSTALL_INC= $(PREFIX)/include/
+-INSTALL_MAN= $(PREFIX)/man/
++INSTALL_INC= $(PREFIX)/usr/include/
++INSTALL_MAN= $(PREFIX)/usr/share/man/
+
+ # Various commands
+ RM = rm -f
+@@ -81,9 +81,9 @@
+ endif
+
+ # Other flags
+-CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
++#CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
+ -Wpointer-arith -Wcast-qual -Winline -I.
+-#CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
++CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
+ DEPFLAGS=-MMD
+ XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG)
+ PICFLAG=-fPIC