Update of /cvsroot/leaf/src/The_UnNamed_One/apps/madwifi
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv15949/apps/madwifi

Added Files:
        buildtool.cfg buildtool.mk madwifi-0.9.4.tar.gz 
        madwifi-if-post-down madwifi-if-pre-up madwifi_tools.patch 
Log Message:
initial import


--- NEW FILE: madwifi_tools.patch ---
diff -urN madwifi-0.9.2.orig/tools/Makefile madwifi-0.9.2/tools/Makefile
--- madwifi-0.9.2.orig/tools/Makefile   2006-07-14 07:15:56.000000000 +0200
+++ madwifi-0.9.2/tools/Makefile        2006-07-27 20:52:56.000000000 +0200
@@ -34,8 +34,8 @@
 STRIP ?= $(USER_CROSS_COMPILE)strip
 CC = $(USER_CROSS_COMPILE)gcc
 
-BINDIR ?= /usr/local/bin
-MANDIR ?= /usr/local/man
+BINDIR ?= /usr/sbin
+MANDIR ?= /usr/man
 
 #
 # Path to the HAL source code.

--- NEW FILE: madwifi-if-post-down ---
#!/bin/sh
#
# Debian ifupdown hook script for madwifi-ng
#
# Author:   Matt Brown <[EMAIL PROTECTED]>
# Version:  1.0
#
# Copyright (C) 2005    Matt Brown
#
# This 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 2 of the License, or (at your option) any later
# version.
#
# This 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
# crcnetd; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA
#

WLANCONFIG=/usr/sbin/wlanconfig

if [ ! -x $WLANCONFIG ]; then
  exit 0
fi

if [ -z "$IF_MADWIFI_BASE" ]; then
        exit 0
fi

# Destroy 
$WLANCONFIG $IFACE destroy

exit 0

--- NEW FILE: madwifi-0.9.4.tar.gz ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: buildtool.mk ---
#############################################################
#
# MADWifi driver
#
#############################################################

include $(MASTERMAKEFILE)

MADWIFI_DIR:=madwifi-0.9.4

# set ATH_RATE, rate module to link the module with
# possible values for ATH_RATE are:
# ath_rate/sample (default), ath_rate/onoe, ath_rate/amrr
ATH_RATE := ath_rate/sample

$(MADWIFI_DIR)/.source:
        zcat $(MADWIFI_SOURCE) | tar -xvf -
        cat $(MADWIFI_TOOLS_PATCH) | (cd $(MADWIFI_DIR) ;  patch -p1)
        touch $(MADWIFI_DIR)/.source

$(MADWIFI_DIR)/.build: $(MADWIFI_DIR)/.source
        mkdir -p $(BT_STAGING_DIR)/usr/sbin/
        mkdir -p $(BT_STAGING_DIR)/etc/network/if-pre-up.d/
        mkdir -p $(BT_STAGING_DIR)/etc/network/if-post-down.d/
        mkdir -p $(BT_STAGING_DIR)/include/net80211/
        mkdir -p $(BT_STAGING_DIR)/include/include/
        
        $(MAKE) -C $(MADWIFI_DIR) CC=$(TARGET_CC) KERNELPATH=$(BT_LINUX_DIR) 
ATH_RATE=$(ATH_RATE) KERNELRELEASE=$(BT_KERNEL_RELEASE) 
KERNELCONF=$(BT_LINUX_DIR)/.config
        $(MAKE) -C $(MADWIFI_DIR) CC=$(TARGET_CC) KERNELPATH=$(BT_LINUX_DIR) 
ATH_RATE=$(ATH_RATE) KERNELRELEASE=$(BT_KERNEL_RELEASE) 
KERNELCONF=$(BT_LINUX_DIR)/.config DESTDIR="$(BT_STAGING_DIR)" install
        cp madwifi-if-pre-up $(BT_STAGING_DIR)/etc/network/if-pre-up.d/
        cp madwifi-if-post-down $(BT_STAGING_DIR)/etc/network/if-post-down.d/
        cp $(MADWIFI_DIR)/include/compat.h $(BT_STAGING_DIR)/include/include/
        cp $(MADWIFI_DIR)/net80211/ieee80211.h 
$(BT_STAGING_DIR)/include/net80211/ 
        cp $(MADWIFI_DIR)/net80211/ieee80211_crypto.h 
$(BT_STAGING_DIR)/include/net80211/ 
        cp $(MADWIFI_DIR)/net80211/ieee80211_ioctl.h 
$(BT_STAGING_DIR)/include/net80211/ 
        cp $(MADWIFI_DIR)/net80211/_ieee80211.h 
$(BT_STAGING_DIR)/include/net80211/ 
        
        $(BT_DEPMOD) -ae -b $(BT_STAGING_DIR) -r -F 
$(BT_STAGING_DIR)/lib/modules/$(BT_KERNEL_RELEASE)/build/System.map 
$(BT_KERNEL_RELEASE)

        touch $(MADWIFI_DIR)/.build
 
source: $(MADWIFI_DIR)/.source

build: $(MADWIFI_DIR)/.build 
        
clean:
        $(MAKE) -C $(MADWIFI_DIR) KERNELPATH=$(BT_LINUX_DIR) clean
        rm $(BT_STAGING_DIR)/lib/modules/$(BT_KERNEL_RELEASE)/net/wlan*
        rm $(BT_STAGING_DIR)/lib/modules/$(BT_KERNEL_RELEASE)/net/ath*
        rm $(MADWIFI_DIR)/.build

srcclean:
        rm -rf $(MADWIFI_DIR)

--- NEW FILE: buildtool.cfg ---
<File buildtool.mk>
        Server = cvs-sourceforge
        Directory = madwifi
        revision = HEAD 
</File>

<File madwifi-0.9.4.tar.gz>
        Server = cvs-sourceforge
        Directory = madwifi
        revision = HEAD
        EnvName = MADWIFI_SOURCE
</File>

<File madwifi_tools.patch>
        Server = cvs-sourceforge
        Directory = madwifi
        revision = HEAD
        EnvName = MADWIFI_TOOLS_PATCH
</File>

<File madwifi-if-pre-up>
        Server = cvs-sourceforge
        Directory = madwifi
        revision = HEAD
</File>

<File madwifi-if-post-down>
        Server = cvs-sourceforge
        Directory = madwifi
        revision = HEAD
</File>

<Package>
        <madwifi>
                Version 0.9.4
                Revision = 1

                Help <<EOF
                Tools for MADWIFI drivers
                Homepage: http://madwifi.org
                Requires: wireless.lrp
                LEAF package by __PACKAGER__, __BUILDDATE__
                
                You can create a madwifi interface by create a stanza in
                /etc/network/interfaces like this:
                iface ath0 inet static
                    madwifi-base wifi0
                    ...
                    wireless-mode Managed
                
                In /etc/modules the ath_pci module should be listed as follows:
                ath_pci autocreate=none
                EOF

                <Permissions>
                        Files = 755
                        Directories = 755
                </Permissions>

                <Owner>
                        Files = root:root
                        Directories = root:root
                </Owner>

                <Contents>
                        <File>
                                Filename    = usr/sbin/wlanconfig
                                Source      = usr/sbin/wlanconfig
                                Type        = binary
                        </File>
                        <File>
                                Filename    = usr/sbin/athctrl
                                Source      = usr/sbin/athctrl
                                Type        = binary
                        </File>
                        <File>
                                Filename    = usr/sbin/athkey
                                Source      = usr/sbin/athkey
                                Type        = binary
                        </File>
                        <File>
                                Filename    = usr/sbin/athchans
                                Source      = usr/sbin/athchans
                                Type        = binary
                        </File>
                        <File>
                                Filename    = usr/sbin/athstats
                                Source      = usr/sbin/athstats
                                Type        = binary
                        </File>
                        <File>
                                Filename    = usr/sbin/80211stats
                                Source      = usr/sbin/80211stats
                                Type        = binary
                        </File>
                        <File>
                                Filename    = usr/sbin/athdebug
                                Source      = usr/sbin/athdebug
                                Type        = binary
                        </File>
                        <File>
                                Filename    = usr/sbin/80211debug
                                Source      = usr/sbin/80211debug
                                Type        = binary
                        </File>
                        <File>
                                Filename    = etc/network/if-pre-up.d/madwifi
                                Source      = 
etc/network/if-pre-up.d/madwifi-if-pre-up
                                Type        = binary
                        </File>
                        <File>
                                Filename    = etc/network/if-post-down.d/madwifi
                                Source      = 
etc/network/if-post-down.d/madwifi-if-post-down
                                Type        = binary
                        </File>
                </Contents>
        </madwifi>
</Package>

--- NEW FILE: madwifi-if-pre-up ---
#!/bin/sh
#
# Debian ifupdown hook script for madwifi-ng
#
# Author:   Matt Brown <[EMAIL PROTECTED]>
# Version:  1.0
#
# Copyright (C) 2005    Matt Brown
#
# This 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 2 of the License, or (at your option) any later
# version.
#
# This 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
# crcnetd; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA
#
WLANCONFIG=/usr/sbin/wlanconfig

if [ ! -x $WLANCONFIG ]; then
  exit 0
fi

if [ -z "$IF_MADWIFI_BASE" ]; then
        exit 0
fi

# Check for interface
if ip link list $IFACE >/dev/null 2>&1; then
        # Destroy 
        $WLANCONFIG $IFACE destroy
fi

case "$IF_WIRELESS_MODE" in
Managed|managed|MANAGED)
        MODE="sta"
        ;;
Ad-Hoc|ad-hoc|AD-HOC)
        MODE="adhoc"
        ;;
Master|master|MASTER)
        MODE="ap"
        ;;
Monitor|monitor|MONITOR)
        MODE="monitor"
        ;;
*)
        MODE="sta"
        ;;
esac

# Create or recreate interface
$WLANCONFIG $IFACE create wlandev $IF_MADWIFI_BASE wlanmode $MODE >/dev/null
exit $?


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to