From 8d522ed9000d07e8ddf35a4f55a4dab03b27bb44 Mon Sep 17 00:00:00 2001 From: "Andreas V. 'netrunner' Meier" <avmeier@web.de> Date: Thu, 24 Jun 2004 11:19:12 +0000 Subject: [PATCH] Andreas V. Meier: add package hostap. modules will be built for default kernel. [2004061811413205164] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3373 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- .../avm/hostap/hostap-driver_nodepmod.diff | 66 +++++++++++++++++++ package/avm/hostap/hostap.conf | 21 ++++++ package/avm/hostap/hostap.desc | 53 +++++++++++++++ 3 files changed, 140 insertions(+) create mode 100644 package/avm/hostap/hostap-driver_nodepmod.diff create mode 100644 package/avm/hostap/hostap.conf create mode 100644 package/avm/hostap/hostap.desc diff --git a/package/avm/hostap/hostap-driver_nodepmod.diff b/package/avm/hostap/hostap-driver_nodepmod.diff new file mode 100644 index 000000000..2a7b960e5 --- /dev/null +++ b/package/avm/hostap/hostap-driver_nodepmod.diff @@ -0,0 +1,66 @@ +diff -ruN hostap-driver-0.2.1/Makefile hostap-driver-0.2.1-new/Makefile +--- hostap-driver-0.2.1/Makefile 2004-04-29 06:39:27.000000000 +0200 ++++ hostap-driver-0.2.1-new/Makefile 2004-06-02 12:29:02.271802208 +0200 +@@ -62,6 +62,7 @@ + + MSRC=driver/modules + ++ + # if Rules.make exists in the kernel tree, we assume 2.4 style modules + # if it doesn't assume 2.6 style + OLDMAKE = $(wildcard $(KERNEL_PATH)/Rules.make) +@@ -90,6 +91,7 @@ + endif + + 2.4: ++ echo "Kernelver: $(KERNELVER) Kernelrelease: $(KERNELRELEASE) Modpath: $(MODPATH)" + @if ! echo "$(KERNELRELEASE)" | grep -q "^2\.4"; then \ + echo "*** Can't build for 2.4 with a non-2.4 source!"; \ + exit 1; \ +@@ -98,6 +100,7 @@ + $(MAKE) install_all_info + + 2.6: ++ echo "Kernelver: $(KERNELVER) Kernelrelease: $(KERNELRELEASE) Modpath: $(MODPATH)" + @if ! echo "$(KERNELRELEASE)" | grep -q "^2\.6" && \ + ! echo "$(KERNELRELEASE)" | grep -q "^2\.5"; then \ + echo "*** Can't build for 2.6 with a non-2.6 source!"; \ +@@ -142,12 +145,7 @@ + @if [ -r $(MODPATH)/kernel/drivers/net/wireless/hostap_crypt.ko ]; then \ + echo "You may need to remove old $(MODPATH)/kernel/drivers/net/wireless/hostap_crypt.ko"; \ + fi +- @if [ -f "/boot/System.map-$(KERNELRELEASE)" ] || [ "$(CURRENTKV)" = "$(KERNELRELEASE)" ]; then \ +- echo "*** Running depmod..."; \ +- /sbin/depmod -ae; \ +- else \ +- echo "*** I won't run depmod because I can't find an appropriate System.map file or you are not running the same kernel as the one you are building against. Please run it manually when the conditions are correct..."; \ +- fi ++ echo "ROCKLinux: not running depmod in build." + + install_hostap: $(MSRC)/hostap.o + @echo "Installing hostap.o to $(MODPATH_PCI)" +@@ -167,7 +165,7 @@ + mkdir -p $(MODPATH_CS) + cp -f $(MSRC)/$(MODULE_CS) $(MODPATH_CS) + ifndef DESTDIR +- /sbin/depmod -ae ++ echo "ROCKLinux: not running depmod in build." + endif + + install_conf: +@@ -183,13 +181,13 @@ + @echo "Installing $(MODULE_PLX) to $(MODPATH_PLX)" + mkdir -p $(MODPATH_PLX) + cp -f $(MSRC)/$(MODULE_PLX) $(MODPATH_PLX) +- /sbin/depmod -ae ++ echo "ROCKLinux: not running depmod in build." + + install_pci: install_check install_crypt install_hostap + @echo "Installing $(MODULE_PCI) to $(MODPATH_PCI)" + mkdir -p $(MODPATH_PCI) + cp -f $(MSRC)/$(MODULE_PCI) $(MODPATH_PCI) +- /sbin/depmod -ae ++ echo "ROCKLinux: not running depmod in build." + + uninstall: + find $(MODPATH) -name "hostap*" | xargs rm -f diff --git a/package/avm/hostap/hostap.conf b/package/avm/hostap/hostap.conf new file mode 100644 index 000000000..ff5e13e64 --- /dev/null +++ b/package/avm/hostap/hostap.conf @@ -0,0 +1,21 @@ +hostap_postmake() { + if [ $( echo $PWD | grep "[wpa_supplicant|hostapd|hostap-util]" ) ]; then + find $PWD -perm 755 -type f -exec cp -vp '{}' /usr/sbin/ \; + fi + if [ $( echo $PWD | grep hostap-driver ) ]; then + make install + fi +} + +hostap_premake() { + if [ $( echo $PWD | grep wpa_supplicant ) ]; then + make mkconfig + fi + if [ $( echo $PWD | grep hostap-driver ) ]; then + patch -p1 <$confdir/hostap-driver_nodepmod.diff + fi +} +realmakeinstopt=$makeinstopt +makeinstopt="" +hook_add postmake 3 "hostap_postmake" +hook_add premake 3 "hostap_premake" diff --git a/package/avm/hostap/hostap.desc b/package/avm/hostap/hostap.desc new file mode 100644 index 000000000..3305e3b1a --- /dev/null +++ b/package/avm/hostap/hostap.desc @@ -0,0 +1,53 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/avm/hostap/hostap.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] Host AP driver for Intersil Prism2/2.5/3 and WPA Supplicant + +[T] This is a Linux driver for wireless LAN cards based on Intersil's +[T] Prism2/2.5/3 chipset. The driver supports a so called Host AP mode, i.e., +[T] it takes care of IEEE 802.11 management functions in the host computer and +[T] acts as an access point. This does not require any special firmware for the +[T] wireless LAN card. In addition to this, it has support for normal station +[T] operations in BSS and possible also in IBSS. WPA and RSN (WPA2) is +[T] supported when used with accompanied tools, wpa_supplicant (WPA/RSN +[T] Supplicant) and hostapd (WPA/RSN Authenticator). + +[U] http://hostap.epitest.fi/ + +[A] Jouni Malinen <jkmaline@cc.hut.fi> +[M] Andreas V. 'netrunner' Meier <avmeier@web.de> + +[C] base/kernel + +[L] GPL +[S] Beta +[V] 0.2.2 +[P] X -----5---9 800.000 + +[SRC] hostap-utils hostap-driver hostapd wpa_supplicant + +[D] 2953442467 hostap-utils-0.2.1.tar.gz http://hostap.epitest.fi/releases/ +[D] 1062880150 hostap-driver-0.2.1.tar.gz http://hostap.epitest.fi/releases/ +[D] 4233889220 hostapd-0.2.2.tar.gz http://hostap.epitest.fi/releases/ +[D] 2445986837 wpa_supplicant-0.2.2.tar.gz http://hostap.epitest.fi/releases/ +