summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2005-12-19 11:01:40 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2005-12-19 11:01:40 +0000
commit9e542a0b8b56180a16fa7c079f08b5ce6d0d770f (patch)
treed2953e476fc8d7ae3554567cff48e6976de87326 /net-wireless
parentAdded ~ppc64; bug #112129 (diff)
downloadhistorical-9e542a0b8b56180a16fa7c079f08b5ce6d0d770f.tar.gz
historical-9e542a0b8b56180a16fa7c079f08b5ce6d0d770f.tar.bz2
historical-9e542a0b8b56180a16fa7c079f08b5ce6d0d770f.zip
Version bump. Added a note about other alternatives to linux-wlan-ng when not using the usb driver. Also corrected the LICENSE of all versions and removed the oldest 0.2.1_pre version.
Package-Manager: portage-2.0.53
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/linux-wlan-ng/ChangeLog12
-rw-r--r--net-wireless/linux-wlan-ng/Manifest18
-rw-r--r--net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.1_pre207
-rw-r--r--net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.31
-rw-r--r--net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.0-r3.ebuild21
-rw-r--r--net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre20.ebuild155
-rw-r--r--net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre23.ebuild5
-rw-r--r--net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.2.ebuild5
-rw-r--r--net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.3.ebuild172
9 files changed, 211 insertions, 185 deletions
diff --git a/net-wireless/linux-wlan-ng/ChangeLog b/net-wireless/linux-wlan-ng/ChangeLog
index 3de041c13ad8..bb260895de6c 100644
--- a/net-wireless/linux-wlan-ng/ChangeLog
+++ b/net-wireless/linux-wlan-ng/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for net-wireless/linux-wlan-ng
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/ChangeLog,v 1.51 2005/11/20 00:13:13 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/ChangeLog,v 1.52 2005/12/19 11:01:40 betelgeuse Exp $
+
+*linux-wlan-ng-0.2.3 (19 Dec 2005)
+
+ 19 Dec 2005; Petteri Räty <betelgeuse@gentoo.org>
+ linux-wlan-ng-0.2.0-r3.ebuild, -linux-wlan-ng-0.2.1_pre20.ebuild,
+ linux-wlan-ng-0.2.1_pre23.ebuild, linux-wlan-ng-0.2.2.ebuild,
+ +linux-wlan-ng-0.2.3.ebuild:
+ Version bump. Added a note about other alternatives to linux-wlan-ng when
+ not using the usb driver. Also corrected the LICENSE of all versions and
+ removed the oldest 0.2.1_pre version.
20 Nov 2005; Joseph Jezak <josejx@gentoo.org> linux-wlan-ng-0.2.2.ebuild:
Marked ~ppc for bug #107794.
diff --git a/net-wireless/linux-wlan-ng/Manifest b/net-wireless/linux-wlan-ng/Manifest
index 1db27161892e..33ad8125b7ac 100644
--- a/net-wireless/linux-wlan-ng/Manifest
+++ b/net-wireless/linux-wlan-ng/Manifest
@@ -1,22 +1,22 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 c220689fcdcf9465f10e705e1f690e72 ChangeLog 10581
+MD5 b70d92fafbc3d31c72b176b2b3518515 ChangeLog 11029
MD5 05ffa72f701a1b7212cdcafe42cfd33b files/digest-linux-wlan-ng-0.2.0-r3 511
-MD5 189201e0202bdfc2b4846eedbf221fcf files/digest-linux-wlan-ng-0.2.1_pre20 517
MD5 b11e06135cc8790abe78af54fa4fe95d files/digest-linux-wlan-ng-0.2.1_pre23 147
MD5 f24842a9d1aeeaa901a2423011ef3b38 files/digest-linux-wlan-ng-0.2.2 72
+MD5 3414fdda8cf331136d23c69378f70a97 files/digest-linux-wlan-ng-0.2.3 72
MD5 e2ca4c6c0bc3d8daef9ea0f822b88dca files/linux-wlan-2.6.10-fix.diff 3670
MD5 7fd052d0b20448622b9d05bd474f509b files/linux-wlan-ng-gentoo-init 1934
-MD5 2fdc28c3645c81545506cee66da73d12 linux-wlan-ng-0.2.0-r3.ebuild 4756
-MD5 1d27e6e859600c0c1a310b3dbd11c274 linux-wlan-ng-0.2.1_pre20.ebuild 4254
-MD5 d18b5a83fee6b963bc534d52f0d1dbf2 linux-wlan-ng-0.2.1_pre23.ebuild 3722
-MD5 a155da396218bf35209688694cc0df8b linux-wlan-ng-0.2.2.ebuild 3866
+MD5 1813595ce112ddf92ec489d28ea74e52 linux-wlan-ng-0.2.0-r3.ebuild 4858
+MD5 fb8021f1e563a5f4dec736741e8449e0 linux-wlan-ng-0.2.1_pre23.ebuild 3831
+MD5 02e74a0ab360644e3e762601dfe57e94 linux-wlan-ng-0.2.2.ebuild 3956
+MD5 df0abb08292a24416e5ad49bb09f32fe linux-wlan-ng-0.2.3.ebuild 4481
MD5 6ad1de0749fc3b426ff7f4f422d2484c metadata.xml 254
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
-iD8DBQFDf7+ucsIHjyDViGQRAk6yAJ9V2T52JaPyPxorYMLv0QP3OCuemgCghV+i
-u2tTW8AVDppQxuDeTz7apqo=
-=2Xqn
+iD8DBQFDppMiQiJ/wx066S4RAiVoAJ9h86+T76KW4uJnHIYwkWWLJoNM+gCfeMyc
+yEJJui0Spa6ZVAJlxXVRf8c=
+=YrKv
-----END PGP SIGNATURE-----
diff --git a/net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.1_pre20 b/net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.1_pre20
deleted file mode 100644
index 16f79971cc43..000000000000
--- a/net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.1_pre20
+++ /dev/null
@@ -1,7 +0,0 @@
-MD5 f331ef5a8f6fd07f6908d592c46b5cf1 linux-wlan-ng-0.2.1-pre20.tar.gz 353544
-MD5 686631f6942aa47fc0503203c26bfe16 linux-wlan-ng-gentoo-init.gz 859
-MD5 2b2cba3fdd498b001ea3c27d8b2da31b pcmcia-cs-3.2.5-3.2.6.diff.gz 23034
-MD5 f2feda5eb46c1a2b99ae9db274879afc pcmcia-cs-3.2.5-3.2.7.diff.gz 28244
-MD5 ee4f8227cc28f9a29a609f6e9561ef54 pcmcia-cs-3.2.5-SMP-fix.diff.gz 320
-MD5 33325ed642b5277a9695d10bd19b3d7a pcmcia-cs-3.2.5-module-init-tools.diff.gz 460
-MD5 44dbc0a8978fe618eee242b0bd25392c pcmcia-cs-3.2.5.tar.gz 1266494
diff --git a/net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.3 b/net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.3
new file mode 100644
index 000000000000..46d1364abf27
--- /dev/null
+++ b/net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.3
@@ -0,0 +1 @@
+MD5 f26e41336a2838d69a366ab3a2d93ea0 linux-wlan-ng-0.2.3.tar.bz2 454053
diff --git a/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.0-r3.ebuild b/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.0-r3.ebuild
index 280d9ff7e855..5c6466eae621 100644
--- a/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.0-r3.ebuild
+++ b/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.0-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.0-r3.ebuild,v 1.11 2005/10/31 17:08:38 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.0-r3.ebuild,v 1.12 2005/12/19 11:01:40 betelgeuse Exp $
inherit pcmcia
@@ -18,16 +18,11 @@ RDEPEND="dev-libs/openssl
>=sys-apps/sed-4.0"
SLOT="0"
-LICENSE="MPL-1.1"
+# includes dual licensed files but also stuff only under MPL-1.1
+LICENSE="|| ( GPL-2 MPL-1.1 ) MPL-1.1"
KEYWORDS="x86"
-# Note: To use this ebuild, you should have the usr/src/linux symlink to
-# the kernel directory that linux-wlan-ng should use for configuration.
-#
-# linux-wlan-ng requires a configured pcmcia-cs source tree.
-# unpack/configure it in WORKDIR. No need to compile it though.
-
-src_unpack() {
+pkg_setup() {
check_KV
okvminor="${KV#*.}" ; okvminor="${okvminor%%.*}"
@@ -38,7 +33,15 @@ src_unpack() {
eerror "See bug #32737 for info on work being done to fix this."
die "This version of linux-wlan-ng does not support 2.6 kernels"
fi
+}
+# Note: To use this ebuild, you should have the usr/src/linux symlink to
+# the kernel directory that linux-wlan-ng should use for configuration.
+#
+# linux-wlan-ng requires a configured pcmcia-cs source tree.
+# unpack/configure it in WORKDIR. No need to compile it though.
+
+src_unpack() {
unpack ${P}.tar.gz
unpack ${PN}-gentoo-init.gz
diff --git a/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre20.ebuild b/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre20.ebuild
deleted file mode 100644
index 33448715675e..000000000000
--- a/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre20.ebuild
+++ /dev/null
@@ -1,155 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre20.ebuild,v 1.9 2005/07/14 23:23:59 agriffis Exp $
-
-inherit pcmcia
-
-IUSE="build pcmcia usb"
-
-MY_P=${PN}-${PV/_/-}
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="The linux-wlan Project"
-SRC_URI="${SRC_URI}
- ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${MY_P}.tar.gz
- mirror://gentoo/${PN}-gentoo-init.gz"
-
-HOMEPAGE="http://linux-wlan.org"
-DEPEND="virtual/os-headers"
-RDEPEND="dev-libs/openssl
- >=sys-apps/sed-4.0"
-
-SLOT="0"
-LICENSE="MPL-1.1"
-KEYWORDS="~x86 ~ppc ~amd64"
-
-src_unpack() {
- check_KV
-
- unpack ${MY_P}.tar.gz
- unpack ${PN}-gentoo-init.gz
-
- # Use pcmcia.eclass to setup pcmcia-cs sources as needed
- pcmcia_src_unpack
-
- cp ${WORKDIR}/${PN}-gentoo-init ${S}/etc/rc.wlan
-
- # Lots of sedding to do to get the man pages and a few other
- # things to end up in the right place.
-
- sed -i -e "s:mkdir:#mkdir:" \
- -e "s:cp nwepgen.man:#cp nwepgen.man:" \
- -e "s:\t\$(TARGET_:\t#\$(TARGET_:" \
- man/Makefile
-
- sed -i -e "s:/etc/wlan:/etc/conf.d:g" \
- etc/wlan/Makefile
-
- sed -i -e "s:/sbin/nwepgen:/sbin/keygen:" \
- etc/wlan/wlancfg-DEFAULT
-
- sed -i -e "s:/etc/wlan/wlan.conf:/etc/conf.d/wlan.conf:g" \
- -e "s:/etc/wlan/wlancfg:/etc/conf.d/wlancfg:g" \
- etc/wlan/shared
-
-}
-
-src_compile() {
- # Configure the pcmcia-cs tree if it exists
- pcmcia_configure
-
- # now lets build wlan-ng
- cd ${S}
-
- sed -i -e 's:TARGET_ROOT_ON_HOST=:TARGET_ROOT_ON_HOST=${D}:' \
- -e 's:PRISM2_PCI=n:PRISM2_PCI=y:' \
- config.in
-
- if use pcmcia; then
- if [ -n "${PCMCIA_SOURCE_DIR}" ];
- then
- export PCMCIA_SOURCE_DIR=${PCMCIA_SOURCE_DIR}
- sed -i -e 's:PCMCIA_SRC=:PCMCIA_SRC=${PCMCIA_SOURCE_DIR}:' \
- config.in
- fi
- sed -i -e 's:PRISM2_PLX=n:PRISM2_PLX=y:' \
- config.in
- else
- sed -i -e 's:PRISM2_PCMCIA=y:PRISM2_PCMCIA=n:' \
- config.in
- fi
-
- if use usb; then
- sed -i -e 's:PRISM2_USB=n:PRISM2_USB=y:' \
- config.in
- fi
-
- cp config.in default.config
-
- # 2.6 needs ARCH unset since it uses it
- unset ARCH
- emake default_config || die "failed configuring WLAN"
- emake all || die "failed compiling"
-
- # compile add-on keygen program. It seems to actually provide usable keys.
- cd ${S}/add-ons/keygen
- emake || die "Failed to compile add-on keygen program"
- cd ${S}/add-ons/lwepgen
- emake || die "Failed to compile add-on lwepgen program"
-}
-
-src_install () {
-
- make install || die "failed installing"
-
- dodir etc/wlan
- mv ${D}/etc/conf.d/shared ${D}/etc/wlan/
-
- if ! use build; then
-
- dodir /usr/share/man/man1
- newman ${S}/man/nwepgen.man nwepgen.1
- newman ${S}/man/wlancfg.man wlancfg.1
- newman ${S}/man/wlanctl-ng.man wlanctl-ng.1
- newman ${S}/man/wland.man wland.1
-
- dodoc CHANGES COPYING LICENSE FAQ README THANKS TODO \
- doc/config* doc/capturefrm.txt
- fi
-
- exeinto /sbin
- doexe add-ons/keygen/keygen
- doexe add-ons/lwepgen/lwepgen
-
-}
-
-pkg_postinst() {
- depmod -a
-
- einfo "/etc/init.d/wlan is used to control startup and shutdown of non-PCMCIA devices."
- einfo "/etc/init.d/pcmcia from pcmcia-cs is used to control startup and shutdown of"
- einfo "PCMCIA devices."
- einfo ""
- einfo "Modify /etc/conf.d/wlan.conf to set global parameters."
- einfo "Modify /etc/conf.d/wlancfg-* to set individual card parameters."
- einfo "There are detailed instructions in these config files."
- einfo ""
- einfo "Three keygen programs are included: nwepgen, keygen, and lwepgen."
- einfo "keygen seems provide more usable keys at the moment."
- einfo ""
- einfo "Be sure to add iface_wlan0 parameters to /etc/conf.d/net."
- einfo ""
- ewarn "Wireless cards which you want to use drivers other than wlan-ng for"
- ewarn "need to have the appropriate line removed from /etc/pcmcia/wlan-ng.conf"
- ewarn "Do 'cardctl info' to see the manufacturer ID and remove the corresponding"
- ewarn "line from that file."
-
- ewarn "Previous versions of linux-wlan-ng recommended creating symlinks in"
- ewarn "/usr/src/linux for 2.6 kernel merges. This is NOT needed and will"
- ewarn "merely clutter things. This has been fixed in the ebuild where it"
- ewarn "should be handled."
- ewarn "Users emerging this with a 2.6 kernel still need to disable"
- ewarn "sandbox and userpriv from FEATURES."
-}
-
-
diff --git a/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre23.ebuild b/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre23.ebuild
index 05424a856130..6b5422844bc1 100644
--- a/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre23.ebuild
+++ b/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre23.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre23.ebuild,v 1.6 2005/09/24 09:10:59 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.1_pre23.ebuild,v 1.7 2005/12/19 11:01:40 betelgeuse Exp $
inherit linux-info pcmcia
@@ -20,7 +20,8 @@ RDEPEND="dev-libs/openssl
>=sys-apps/sed-4.0"
SLOT="0"
-LICENSE="MPL-1.1"
+# includes dual licensed files but also stuff only under MPL-1.1
+LICENSE="|| ( GPL-2 MPL-1.1 ) MPL-1.1 Conexant-firmware"
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
src_unpack() {
diff --git a/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.2.ebuild b/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.2.ebuild
index 9f8d2336bfac..4c31abe9d6c0 100644
--- a/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.2.ebuild
+++ b/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.2.ebuild,v 1.2 2005/11/20 00:13:13 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.2.ebuild,v 1.3 2005/12/19 11:01:40 betelgeuse Exp $
#The configure script needs prepared sources.
inherit linux-mod
@@ -9,7 +9,8 @@ DESCRIPTION="Programs/files needed for Prism2/2.5/3 based wireless LAN products"
HOMEPAGE="http://linux-wlan.org"
SRC_URI="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${P}.tar.bz2"
-LICENSE="MPL-1.1"
+# includes dual licensed files but also stuff only under MPL-1.1
+LICENSE="|| ( GPL-2 MPL-1.1 ) MPL-1.1"
SLOT="0"
KEYWORDS="~ppc ~x86"
diff --git a/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.3.ebuild b/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.3.ebuild
new file mode 100644
index 000000000000..f79a3b0d3ab9
--- /dev/null
+++ b/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.3.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.3.ebuild,v 1.1 2005/12/19 11:01:40 betelgeuse Exp $
+
+#The configure script needs prepared sources.
+inherit linux-mod
+
+DESCRIPTION="Programs/files needed for Prism2/2.5/3 based wireless LAN products"
+HOMEPAGE="http://linux-wlan.org"
+SRC_URI="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${P}.tar.bz2"
+
+# includes dual licensed files but also stuff only under MPL-1.1
+LICENSE="|| ( GPL-2 MPL-1.1 ) MPL-1.1"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+
+IUSE="debug doc pcmcia"
+
+DEPEND="~net-wireless/linux-wlan-ng-modules-${PV}
+ ~net-wireless/linux-wlan-ng-utils-0.2.2
+ ~net-wireless/linux-wlan-ng-firmware-0.2.2"
+
+RDEPEND=${DEPEND}
+
+#relative to src/
+COMPILE_DIRS="mkmeta wlanctl wland nwepgen wlancfg prism2/download"
+INSTALL_DIRS="${COMPILE_DIRS} ../etc"
+
+CONFIG_FILE="${S}/default.config"
+CONFIG_DIR="/etc/conf.d"
+
+show_deprecated_message() {
+ if use pci || use plx || use pcmcia; then
+ einfo ""
+ einfo "You really should try other alternatives for prism support."
+ einfo "For example the hostap-driver or orinoco drivers should work"
+ einfo "with your wireless card. Support for pci, plx and pcmcia drivers"
+ einfo "will most likely be removed in the near future. If the alternatives"
+ einfo "don't work for you, please report this to betelgeuse@gentoo.org."
+ einfo ""
+ fi
+}
+
+pkg_setup() {
+ show_deprecated_message
+}
+
+config_by_usevar() {
+ local config=${3}
+ [[ -z ${config} ]] && config=${CONFIG_FILE}
+
+ if use ${2}; then
+ echo "${1}=y" >> ${config}
+ else
+ echo "${1}=n" >> ${config}
+ fi
+}
+
+set_option() {
+ local config=${3}
+ [[ -z ${config} ]] && config=${CONFIG_FILE}
+
+ echo "${1}=${2}" >> ${config}
+}
+
+src_unpack() {
+ local config=${CONFIG_FILE}
+
+ unpack ${A}
+
+ rm ${S}/doc/rh71notes
+
+ cd ${S}/etc
+ mv rc.wlan rc.wlan.orig
+ cp ${FILESDIR}/${PN}-gentoo-init rc.wlan
+
+ #IMHO this should not be done but better to not upset users at this point
+ sed -i -e "s:/etc/wlan:/etc/conf.d:g" ${S}/etc/wlan/Makefile
+ sed -i -e "s:/etc/wlan/wlan.conf:/etc/conf.d/wlan.conf:g" \
+ -e "s:/etc/wlan/wlancfg:/etc/conf.d/wlancfg:g" \
+ ${S}/etc/wlan/shared
+
+ cp ${S}/config.in ${config}
+
+ set_option TARGET_ROOT_ON_HOST ${D}
+ set_option LINUX_SRC ${KERNEL_DIR}
+ set_option PRISM2_USB n
+ set_option PRISM2_PCI n
+ set_option PRISM2_PLX n
+ set_option PRISM2_PCMCIA n
+
+ if kernel_is gt 2 4; then
+ set_option KERN_25 y
+ fi
+
+ config_by_usevar WLAN_DEBUG debug
+}
+
+src_compile() {
+ set_arch_to_kernel
+ emake default_config || die "emake default_config failed"
+ set_arch_to_portage
+
+ CONFIG_FILE="config.mk"
+
+ set_option FIRMWARE_DIR "/lib/firmware"
+ config_by_usevar PRISM2_PCMCIA pcmcia
+
+ #For the scripts that go to /etc
+ set_option TARGET_PCMCIA_DIR ${D}/etc/pcmcia
+
+ cd ${S}/src/
+ for dir in ${COMPILE_DIRS}; do
+ pushd ${dir}
+ make || die "make in ${dir} failed"
+ popd
+ done
+}
+
+src_install() {
+ cd ${S}/man
+ doman *.1
+
+ for dir in ${INSTALL_DIRS}; do
+ pushd ${S}/src/${dir}
+ make install || die "make install in ${dir} failed"
+ popd
+ done
+
+ cd ${S}
+
+ dodir etc/wlan
+ mv ${D}/etc/conf.d/shared ${D}/etc/wlan/
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}/
+ pushd ${S}/doc
+ for file in $(ls); do
+ [[ "${file}" != "Makefile" ]] && doins -r ${file}
+ done
+ popd
+ fi
+
+ dodoc CHANGES FAQ README THANKS TODO
+}
+
+pkg_postinst() {
+ einfo "/etc/init.d/wlan is used to control startup and shutdown of non-PCMCIA devices."
+ if use pcmcia; then
+ einfo "/etc/init.d/pcmcia from pcmcia-cs is used to control startup and shutdown of"
+ einfo "PCMCIA devices."
+ fi
+ einfo ""
+ einfo "Modify ${CONFIG_DIR}/wlan.conf to set global parameters."
+ einfo "Modify ${CONFIG_DIR}/wlancfg-* to set individual card parameters."
+ einfo "There are detailed instructions in these config files."
+ einfo ""
+ einfo "Three keygen programs are included: nwepgen, keygen, and lwepgen."
+ einfo "keygen seems provide more usable keys at the moment."
+ einfo "You can change the keygen in your wlancfg-* files."
+ einfo ""
+ einfo "Be sure to add iface_wlan0 parameters to /etc/conf.d/net."
+ einfo ""
+ if use pcmcia; then
+ ewarn "Wireless cards which you want to use drivers other than wlan-ng for"
+ ewarn "need to have the appropriate line removed from /etc/pcmcia/wlan-ng.conf"
+ ewarn "Do 'cardctl info' to see the manufacturer ID and remove the corresponding"
+ ewarn "line from that file."
+ fi
+ show_deprecated_message
+}
+