CVS: moonbase/utils/wlan-ng-driver BUILD, NONE, 1.1 CONFIGURE, NONE,
1.1 DEPENDS, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL, NONE,
1.1 PRE_BUILD, NONE, 1.1
Auke Kok
sofar at lunar-linux.org
Mon Dec 15 13:52:57 GMT 2003
Update of /var/cvs/lunar/moonbase/utils/wlan-ng-driver
In directory dbguin.lunar-linux.org:/tmp/cvs-serv9614/wlan-ng-driver
Added Files:
BUILD CONFIGURE DEPENDS DETAILS POST_INSTALL PRE_BUILD
Log Message:
Adding alternate wlan-ng modules, split up into a -driver module and a -utils module for the userspace stuff. This will allow for a more strict recompiling scheme. Waiting to remove the old linux-wlan-ng until these modules become accepted.
--- NEW FILE: BUILD ---
(
sedit "s:RC_DIR=/etc/rc.d:RC_DIR=/etc/init.d:" config.in Configure
sedit "s/PRISM2_PLX=n/PRISM2_PLX=$PRISM2_PLX/" config.in
sedit "s/PRISM2_PCI=n/PRISM2_PCI=$PRISM2_PCI/" config.in
sedit "s/PRISM2_USB=n/PRISM2_USB=$PRISM2_USB/" config.in
sedit "s:/usr/local/man/man1:/usr/share/man/man1:" man/Makefile
make auto_config &&
make all &&
prepare_install &&
make -C src/p80211 install &&
make -C src/prism2 install
) > $C_FIFO 2>&1
--- NEW FILE: CONFIGURE ---
if ! grep -q CONFIGURED $MODULE_CONFIG; then
message "If pcmcia-cs is installed then the prism2_cs driver will be built."
if query "Build Prism2 PLX9052 based PCI (_plx) adapter driver? " n; then
echo 'PRISM2_PLX="y"' >> $MODULE_CONFIG
else
echo 'PRISM2_PLX="n"' >> $MODULE_CONFIG
fi
if query "Build Prism2.5 native PCI (_pci) driver? " n; then
echo 'PRISM2_PCI="y"' >> $MODULE_CONFIG
else
echo 'PRISM2_PCI="n"' >> $MODULE_CONFIG
fi
if query "Build Prism2.5 USB (_usb) driver? " n; then
echo 'PRISM2_USB="y"' >> $MODULE_CONFIG
else
echo 'PRISM2_USB="n"' >> $MODULE_CONFIG
fi
echo 'CONFIGURED="y"' >> $MODULE_CONFIG
echo 'OPTS='\"$OPTS\" >> $MODULE_CONFIG
fi
--- NEW FILE: DEPENDS ---
optional_depends "pcmcia-cs" "" "" "To enable support for prisim 2+ pcmcia cards"
--- NEW FILE: DETAILS ---
MODULE=wlan-ng-driver
VERSION=0.2.1-pre14
SOURCE=linux-wlan-ng-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/linux-wlan-ng-$VERSION
SOURCE_URL=ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/$SOURCE
SOURCE_VFY=md5:1835beecbf34f731de75b5e83ffd3e25
WEB_SITE=http://www.linux-wlan.com/linux-wlan/
ENTERED=20031214
UPDATED=20031214
SHORT="Wireless drivers for PRISIM 2 and higher wireless cards."
cat << EOF
The goal of the linux-wlan(tm) Project is to develop a complete, standards based, wireless LAN system using the GNU/Linux operating system. What differentiates this project from the Linux wireless extensions and other Linux wireless projects is that everything is based on the IEEE 802.11 standard.
EOF
--- NEW FILE: POST_INSTALL ---
if [[ $KEEP_SOURCE == "off" ]] && [[ $UNPACKED_PC_SRC == "yes" ]]; then
rm -rf $BUILD_DIRECTORY/pcmcia-cs-$PC_VER
fi
--- NEW FILE: PRE_BUILD ---
default_pre_build &&
UNPACKED_PC_SRC=no
if module_installed pcmcia-cs; then
message "\n${MESSAGE_COLOR}The module pcmcia-cs is installed.\nAs a configured source tree is required for the build it will be replicated for the build.${DEFAULT_COLOR}\n"
PC_DETAILS="$MOONBASE/`lvu where pcmcia-cs`/pcmcia-cs/DETAILS"
debug_msg "PC_DETAILS = $PC_DETAILS"
PC_VER="`grep VERSION= $PC_DETAILS | sed s/^[[:space:]]*// | sed s/VERSION=//`"
debug_msg "PC_VER = $PC_VER"
validate_source_dir $BUILD_DIRECTORY/pcmcia-cs-$PC_VER
if [[ ! -d $BUILD_DIRECTORY/pcmcia-cs-$PC_VER ]] ||
[[ $KEEP_SOURCE == "off" ]]; then
mk_source_dir $BUILD_DIRECTORY/pcmcia-cs-$PC_VER
unpack pcmcia-cs-$PC_VER.tar.gz
UNPACKED_PC_SRC=yes
pushd $BUILD_DIRECTORY/pcmcia-cs-$PC_VER
AIRSNORT="`grep AIRSNORT= $DEPENDS_CONFIG/pcmcia-cs | sed s/AIRSNORT=// | sed 's/"//g'`"
AIRSNORT_PATCH=`grep SOURCE2= $PC_DETAILS | sed s/^[[:space:]]*// | sed s/SOURCE2=// | sed 's/$MODULE/pcmcia-cs/'`
debug_msg "AIRSNORT_PATCH = $AIRSNORT_PATCH"
if [ "$AIRSNORT" == "y" ]; then
patch_it $SOURCE_CACHE/$AIRSNORT_PATCH 1
fi
PC_OPTS="`grep OPTS= $DEPENDS_CONFIG/pcmcia-cs | sed s/OPTS=// | sed 's/"//g'`"
./Configure -n --sysv --rcdir=/etc --srctree $PC_OPTS
popd
else
message "\n${MESSAGE_COLOR}If you do not use KEEP_SOURCE then there may be a problem with pcmcia-cs on your system.${DEFAULT_COLOR}\n"
fi
fi
More information about the Lunar-commits
mailing list