Update of /cvsroot/leaf/src/bering-uclibc4/source/wpasupplicant
In directory
sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv23840/source/wpasupplicant
Added Files:
buildtool.cfg buildtool.mk wpa_supplicant-0.5.11.tar.gz
wpa_supplicant.conf wpasupplicant.default wpasupplicant.init
Log Message:
Fixed/updated wpa_supplicant
--- NEW FILE: wpasupplicant.default ---
# To activate the wpasupplicant daemon, set ENABLED to 1
ENABLED=0
# Specify the network interface that the daemon will attach to.
#
# Examples: INTERFACE="eth1"
# INTERFACE="ath0"
#
# Failure to set INTERFACE to a valid network interface name will
# cause the daemon to fail or exit immediately.
INTERFACE=""
# DRIVER specifies the driver type of the interface defined above.
#
# If DRIVER is not set, the daemon will default to the "wext" driver
#
# Currently, the following drivers are supported:
# hostap = Host AP driver (Intersil Prism2/2.5/3)
# madwifi = MADWIFI 802.11 support (Atheros, etc.)
# atmel = ATMEL AT76C5XXx (USB, PCMCIA)
# wext = Linux wireless extensions (generic, ipw2100/2200/3495, linux >=
2.6.14)
# ndiswrapper = Linux ndiswrapper
# ipw = Intel ipw2100/2200 driver (linux kernels 2.6.13 or older only)
# wired = wpa_supplicant wired Ethernet driver
DRIVER=""
--- NEW FILE: wpasupplicant.init ---
#!/bin/sh
# Buyer beware! This is really only useful if you want to use
# wpasupplicant in roaming mode.
#
RCDLINKS="2,S15 3,S15 4,S15 5,S15 0,K90 1,K90 6,K90"
PATH=/sbin:/bin:/usr/sbin:/usr/bin
ENABLED=0
INTERFACE=""
CONFIG="/etc/wpa_supplicant.conf"
DAEMON="/usr/sbin/wpa_supplicant"
PNAME="wpa_supplicant"
# exit silently if daemon is not installed/executable
[ -x $DAEMON ] || exit 0
[ -f /etc/default/wpasupplicant ] && . /etc/default/wpasupplicant
if [ "$ENABLED" = "0" ]; then
echo "wpasupplicant: disabled, see /etc/default/wpasupplicant"
exit 0;
fi
if [ -z "$INTERFACE" ]; then
echo "No INTERFACE was defined, not starting.";
exit 1;
fi
if [ ! -r "$CONFIG" ]; then
echo "No configuration file found, not starting.";
exit 1;
fi
if [ -z "$DRIVER" ]; then
DRIVER="wext"
fi
PIDFILE="/var/run/wpa_supplicant.$INTERFACE.pid"
OPTIONS="-B -w -i $INTERFACE -D $DRIVER -c $CONFIG -P $PIDFILE"
set -e
case "$1" in
start)
if [ -f "$PIDFILE" ]; then
echo "$PNAME not starting, $PIDFILE already exists."
exit 1
fi
echo "Starting $PNAME."
start-stop-daemon --start --name $PNAME \
--oknodo --startas $DAEMON -- $OPTIONS
;;
stop)
echo "Stopping $PNAME."
start-stop-daemon --stop --name $PNAME \
--oknodo
if [ -f "$PIDFILE" ]; then
rm -f $PIDFILE;
fi
;;
reload|force-reload)
echo "Reloading $PNAME."
start-stop-daemon --stop --signal 1 \
--name $PNAME
;;
restart)
echo "Stopping $PNAME."
start-stop-daemon --stop --name $PNAME \
--oknodo
if [ -f "$PIDFILE" ]; then
rm -f $PIDFILE;
fi
echo "Starting $PNAME."
start-stop-daemon --start --name $PNAME \
--oknodo --startas $DAEMON -- $OPTIONS
;;
*)
echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
exit 1
;;
esac
exit 0
--- NEW FILE: buildtool.mk ---
# makefile for wpasupplicant
include $(MASTERMAKEFILE)
WPA_DIR:=wpa_supplicant-0.5.11
WPA_TARGET_DIR:=$(BT_BUILD_DIR)/wpasupplicant
$(WPA_DIR)/.source:
zcat $(WPA_SOURCE) | tar -xvf -
# cat $(WPA_PATCH) | patch -d $(WPA_DIR) -p1
touch $(WPA_DIR)/.source
source: $(WPA_DIR)/.source
$(WPA_DIR)/.build:
mkdir -p $(WPA_TARGET_DIR)
mkdir -p $(WPA_TARGET_DIR)/usr/sbin
mkdir -p $(WPA_TARGET_DIR)/etc
mkdir -p $(WPA_TARGET_DIR)/etc/default
mkdir -p $(WPA_TARGET_DIR)/etc/init.d
cp -a .config $(WPA_DIR)/
( cd $(WPA_DIR) ; export CFLAGS="$(BT_COPT_FLAGS) -MMD -Wall -g
-I$(BT_STAGING_DIR)/usr/include" ; \
export LIBS=-L$(BT_STAGING_DIR)/usr/lib ; make CC=$(TARGET_CC) ) ;
-$(BT_STRIP) $(BT_STRIP_BINOPTS) $(WPA_DIR)/wpa_cli
-$(BT_STRIP) $(BT_STRIP_BINOPTS) $(WPA_DIR)/wpa_passphrase
-$(BT_STRIP) $(BT_STRIP_BINOPTS) $(WPA_DIR)/wpa_supplicant
cp -a $(WPA_DIR)/wpa_cli $(WPA_TARGET_DIR)/usr/sbin
cp -a $(WPA_DIR)/wpa_passphrase $(WPA_TARGET_DIR)/usr/sbin
cp -a $(WPA_DIR)/wpa_supplicant $(WPA_TARGET_DIR)/usr/sbin
cp -a wpa_supplicant.conf $(WPA_TARGET_DIR)/etc
cp -a wpasupplicant.default $(WPA_TARGET_DIR)/etc/default/wpasupplicant
cp -a wpasupplicant.init $(WPA_TARGET_DIR)/etc/init.d/wpasupplicant
cp -a $(WPA_TARGET_DIR)/* $(BT_STAGING_DIR)
touch $(WPA_DIR)/.build
build: $(WPA_DIR)/.build
clean:
make -C $(WPA_DIR) clean
rm -rf $(WPA_TARGET_DIR)
rm -f $(WPA_DIR)/.build
rm -f $(WPA_DIR)/.configured
srcclean: clean
rm -rf $(WPA_DIR)
rm -f $(WPA_DIR)/.source
--- NEW FILE: wpa_supplicant.conf ---
# Minimal /etc/wpa_supplicant.conf to associate with open
# access points.
# path to UNIX socket control interface
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
### Example of basic WPA-PSK secured AP
#network={
# ssid="ournet"
# psk="w243sd5f324asdf5123sadf54324"
#}
### Associate with any open access point
### Scans/ESSID changes can be done with wpa_cli
network={
key_mgmt=NONE
}
--- NEW FILE: wpa_supplicant-0.5.11.tar.gz ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: buildtool.cfg ---
<File buildtool.mk>
Server = cvs4-sourceforge
Revision = HEAD
Directory = wpasupplicant
</File>
<File wpa_supplicant-0.5.11.tar.gz>
Server = cvs4-sourceforge
Revision = HEAD
envname = WPA_SOURCE
Directory = wpasupplicant
</File>
<File .config>
Server = cvs4-sourceforge
Revision = HEAD
Directory = wpasupplicant
</File>
<File wpa_supplicant.conf>
Server = cvs4-sourceforge
Revision = HEAD
Directory = wpasupplicant
</File>
<File wpasupplicant.default>
Server = cvs4-sourceforge
Revision = HEAD
Directory = wpasupplicant
</File>
<File wpasupplicant.init>
Server = cvs4-sourceforge
Revision = HEAD
Directory = wpasupplicant
</File>
<Package>
<wpasupp>
Version = 0.5.11
Revision = 1
Help <<EOF
wpa_supplicant is a WPA Supplicant for WPA and WPA2 (IEEE
802.11i/RSN).
Homepage: http://hostap.epitest.fi/wpa_supplicant/
Requires: libssl.lrp, libcrpto.lrp
LEAF package by __PACKAGER__, __BUILDDATE__
EOF
<Permissions>
Files = 644
Directories = 755
</Permissions>
<Owner>
Files = root:root
Directories = root:root
</Owner>
<Contents>
<File>
Source = etc/default/wpasupplicant
Filename = etc/default/wpasupplicant
Description = wpa_supplicant default file
Type = conf
Type = local
Type = binary
</File>
<File>
Source = etc/wpa_supplicant.conf
Filename = etc/wpa_supplicant.conf
Description = wpa_supplicant configuration
Type = conf
Type = local
Type = binary
Permissions = 600
</File>
<File>
Source = etc/init.d/wpasupplicant
Filename = etc/init.d/wpasupplicant
Type = binary
Permissions = 755
</File>
<File>
Source = usr/sbin/wpa_cli
Filename = usr/sbin/wpa_cli
Type = binary
Permissions = 755
</File>
<File>
Source = usr/sbin/wpa_passphrase
Filename = usr/sbin/wpa_passphrase
Type = binary
Permissions = 755
</File>
<File>
Source = usr/sbin/wpa_supplicant
Filename = usr/sbin/wpa_supplicant
Type = binary
Permissions = 755
</File>
<File>
Filename = /var/run/wpa_supplicant
Type = directory
</File>
</Contents>
</wpasupp>
</Package>
------------------------------------------------------------------------------
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits