From fbcbba29034c7f17e3e47fefb2a9bd46c644cd1c Mon Sep 17 00:00:00 2001 From: Petteri Räty Date: Sun, 2 Apr 2006 10:19:59 +0000 Subject: Removed pcmcia support in favor of better alternatives like hostap and orinoco drivers. (Portage version: 2.1_pre7-r3) --- net-wireless/linux-wlan-ng/ChangeLog | 9 +- net-wireless/linux-wlan-ng/Manifest | 6 + .../files/digest-linux-wlan-ng-0.2.3-r1 | 3 + .../linux-wlan-ng/linux-wlan-ng-0.2.3-r1.ebuild | 158 +++++++++++++++++++++ 4 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.3-r1 create mode 100644 net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.3-r1.ebuild (limited to 'net-wireless/linux-wlan-ng') diff --git a/net-wireless/linux-wlan-ng/ChangeLog b/net-wireless/linux-wlan-ng/ChangeLog index 90da77d7c07b..41f6b088da24 100644 --- a/net-wireless/linux-wlan-ng/ChangeLog +++ b/net-wireless/linux-wlan-ng/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-wireless/linux-wlan-ng # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/ChangeLog,v 1.54 2006/02/12 19:53:42 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng/ChangeLog,v 1.55 2006/04/02 10:19:59 betelgeuse Exp $ + +*linux-wlan-ng-0.2.3-r1 (02 Apr 2006) + + 02 Apr 2006; Petteri Räty + +linux-wlan-ng-0.2.3-r1.ebuild: + Removed pcmcia support in favor of better alternatives like hostap and + orinoco drivers. 12 Feb 2006; Petteri Räty -linux-wlan-ng-0.2.2.ebuild: diff --git a/net-wireless/linux-wlan-ng/Manifest b/net-wireless/linux-wlan-ng/Manifest index 649edaae88fe..18e67d4c989f 100644 --- a/net-wireless/linux-wlan-ng/Manifest +++ b/net-wireless/linux-wlan-ng/Manifest @@ -10,6 +10,9 @@ SHA256 90fc23911923fdd5f4a1371f086058b9fc23707708a3aebeb306aa6f3c22234f files/di MD5 3414fdda8cf331136d23c69378f70a97 files/digest-linux-wlan-ng-0.2.3 72 RMD160 adffdad2052e56609c23427d899ec1e4fca57e7d files/digest-linux-wlan-ng-0.2.3 72 SHA256 8ddd342c5146c6a1e38db8c36707a7562dd114a6d246b935278cfeb97a405789 files/digest-linux-wlan-ng-0.2.3 72 +MD5 b0151277be475255f82139fc101eae7f files/digest-linux-wlan-ng-0.2.3-r1 262 +RMD160 6e6a482a8ebdaf4bd7f77040cd3f717c25180b53 files/digest-linux-wlan-ng-0.2.3-r1 262 +SHA256 1755efc1d6124109999f9dda7aa3b4240e849ceaf3116244ff149783f635df09 files/digest-linux-wlan-ng-0.2.3-r1 262 MD5 e2ca4c6c0bc3d8daef9ea0f822b88dca files/linux-wlan-2.6.10-fix.diff 3670 RMD160 a4b9147fd817c9e346f98db02ad583e8e05be139 files/linux-wlan-2.6.10-fix.diff 3670 SHA256 a105eebe4085979a36707e25f12c8806282bd60aba4f75cd447db03e6bb27479 files/linux-wlan-2.6.10-fix.diff 3670 @@ -22,6 +25,9 @@ SHA256 e302ef236226f33ce34c6365f4d6672665b4f6c171f11624579a6cd4c4a65fec linux-wl MD5 fb8021f1e563a5f4dec736741e8449e0 linux-wlan-ng-0.2.1_pre23.ebuild 3831 RMD160 554960985761e1743bbf7ae4f5836bf75b5bd1e6 linux-wlan-ng-0.2.1_pre23.ebuild 3831 SHA256 e7cb6c6f9155b2e79f1a211e3ea2780cef8bb1b9f23eedbe62bdf2da31277d8e linux-wlan-ng-0.2.1_pre23.ebuild 3831 +MD5 533b519b82dfb7b871bedbfd49b3d7ba linux-wlan-ng-0.2.3-r1.ebuild 3995 +RMD160 9ce62460106f6fc6f6f90b46faa3221b6ab623d0 linux-wlan-ng-0.2.3-r1.ebuild 3995 +SHA256 59f75b488e33402c2a4b432055b691f8fbfa6742c48ca67c04b11d53ea9aea23 linux-wlan-ng-0.2.3-r1.ebuild 3995 MD5 66c18a4ea3ece9f3121e444a516fd6ec linux-wlan-ng-0.2.3.ebuild 4483 RMD160 80489543e0898f2424e936fa7a438dbedd2d012d linux-wlan-ng-0.2.3.ebuild 4483 SHA256 8f231c655d8a81225e7d037e2bf4a68e45f7bc81ef1b51254805e6e63236db06 linux-wlan-ng-0.2.3.ebuild 4483 diff --git a/net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.3-r1 b/net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.3-r1 new file mode 100644 index 000000000000..0680fd82180a --- /dev/null +++ b/net-wireless/linux-wlan-ng/files/digest-linux-wlan-ng-0.2.3-r1 @@ -0,0 +1,3 @@ +MD5 f26e41336a2838d69a366ab3a2d93ea0 linux-wlan-ng-0.2.3.tar.bz2 454053 +RMD160 a39a6f17dd8a745992a557605d3f5734d8b7de95 linux-wlan-ng-0.2.3.tar.bz2 454053 +SHA256 97004d6cefd1b5c5f37efc1603e4103f9a809d79f8cc0faf2397fa882cdd6ee6 linux-wlan-ng-0.2.3.tar.bz2 454053 diff --git a/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.3-r1.ebuild b/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.3-r1.ebuild new file mode 100644 index 000000000000..12457f669747 --- /dev/null +++ b/net-wireless/linux-wlan-ng/linux-wlan-ng-0.2.3-r1.ebuild @@ -0,0 +1,158 @@ +# Copyright 1999-2006 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-r1.ebuild,v 1.1 2006/04/02 10:19:59 betelgeuse Exp $ + +#The configure script needs prepared sources. +inherit linux-mod + +DESCRIPTION="Programs/files needed for Prism2/2.5/3 based USB 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="~amd64 ~ppc ~x86" + +IUSE="debug doc" + +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" + +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" + set_option PRISM2_PCMCIA n + + #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 + + # Does not install hotplug rules if /etc/hotplug + # does not exist in ${D} + # Needs to be patch because expects stuff to be in /etc/wlan + # dodir /etc/hotplug + + 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 the" + einfo "driver." + 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 "" + einfo "" + einfo "Support for pci, plx and pcmcia drivers has been removed in" + einfo "revision. For pci, plx and pcmcia drivers try for example" + einfo "the hostap-driver or orinoco drivers. They both work with the" + einfo "standard wireless tools." + einfo "" + einfo "If they do not work, please report this to betelgeuse@gentoo.org." +} + -- cgit v1.2.3-65-gdbad