summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Johanson <latexer@gentoo.org>2003-07-28 16:29:59 +0000
committerPeter Johanson <latexer@gentoo.org>2003-07-28 16:29:59 +0000
commit57e7a8f5f0d4c54d39f162261a2f91dfc296de2e (patch)
tree3fd875f26b7225ee08fcb32a4ba3a799e2915d86 /net-wireless
parentBump and new local use vars. (diff)
downloadhistorical-57e7a8f5f0d4c54d39f162261a2f91dfc296de2e.tar.gz
historical-57e7a8f5f0d4c54d39f162261a2f91dfc296de2e.tar.bz2
historical-57e7a8f5f0d4c54d39f162261a2f91dfc296de2e.zip
Bump and new local use vars.
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/hostap/Manifest4
-rw-r--r--net-wireless/hostap/files/digest-hostap-0.0.45
-rw-r--r--net-wireless/hostap/hostap-0.0.4.ebuild125
3 files changed, 132 insertions, 2 deletions
diff --git a/net-wireless/hostap/Manifest b/net-wireless/hostap/Manifest
index a136a1b1473e..7267ca48f259 100644
--- a/net-wireless/hostap/Manifest
+++ b/net-wireless/hostap/Manifest
@@ -1,9 +1,9 @@
-MD5 091a24a0011df22fc137c55c5970d9a9 hostap-0.0.4.ebuild 3189
+MD5 89df1aadc457bed2531025e923514a01 hostap-0.0.4.ebuild 3185
MD5 0cccc8dc56ab904fd60590fd9a5066ac hostap-0.0.2-r1.ebuild 4289
MD5 1792c1d78c928fa0e303eb5c36860bf3 hostap-0.0.1.ebuild 4295
MD5 e39e12c78112afb3d4dd0dfa135ae609 hostap-0.0.3.ebuild 4285
MD5 9a707000b69439cec58c9bee73c84583 hostap-0.0.2.ebuild 4295
-MD5 63e28c5e55520c10879d335484799f49 ChangeLog 2838
+MD5 65011b1c34b57ececce1a824017417b5 ChangeLog 3140
MD5 68a07cde123ae0e27be35f6b52617b29 hostap-0.0.3-r1.ebuild 4279
MD5 6033278b29022d54d25048af3af5e4d8 files/digest-hostap-0.0.2-r1 354
MD5 cc10a98c98d5848f509dd21eb0828004 files/digest-hostap-0.0.3-r1 354
diff --git a/net-wireless/hostap/files/digest-hostap-0.0.4 b/net-wireless/hostap/files/digest-hostap-0.0.4
new file mode 100644
index 000000000000..0337463c09bf
--- /dev/null
+++ b/net-wireless/hostap/files/digest-hostap-0.0.4
@@ -0,0 +1,5 @@
+MD5 2100cf40e86e2ebddbd40b933952b9e3 hostap-0.0.4.tar.gz 270995
+MD5 7e9f01a697d2e3e5164340d79474ea30 pcmcia-cs-3.2.1.tar.gz 1250413
+MD5 24e8c68d0eac2a9b3446acdd259c22a0 pcmcia-cs-3.2.1-3.2.2.diff.gz 246919
+MD5 9ed9491a743b7400b382b199377c7279 pcmcia-cs-3.2.1-3.2.3.diff.gz 247541
+MD5 c94ce648d1e420be0cf02246236dc387 pcmcia-cs-3.2.1-3.2.4.diff.gz 305171
diff --git a/net-wireless/hostap/hostap-0.0.4.ebuild b/net-wireless/hostap/hostap-0.0.4.ebuild
new file mode 100644
index 000000000000..1f23211a9698
--- /dev/null
+++ b/net-wireless/hostap/hostap-0.0.4.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostap/hostap-0.0.4.ebuild,v 1.1 2003/07/28 16:29:54 latexer Exp $
+
+inherit eutils
+
+DESCRIPTION="HostAP wireless drivers"
+HOMEPAGE="http://hostap.epitest.fi/"
+
+MY_PCMCIA="pcmcia-cs-3.2.1"
+PATCH_3_2_2="${MY_PCMCIA}-3.2.2.diff.gz"
+PATCH_3_2_3="${MY_PCMCIA}-3.2.3.diff.gz"
+PATCH_3_2_4="${MY_PCMCIA}-3.2.4.diff.gz"
+
+SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz
+ pcmcia? ( mirror://sourceforge/pcmcia-cs/${MY_PCMCIA}.tar.gz )
+ pcmcia? ( mirror://gentoo/${PATCH_3_2_2} )
+ pcmcia? ( mirror://gentoo/${PATCH_3_2_3} )
+ pcmcia? ( mirror://gentoo/${PATCH_3_2_4} )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="pcmcia hostap-nopci hostap-noplx"
+
+DEPEND=">=net-wireless/wireless-tools-25
+ pcmcia? ( >=sys-apps/pcmcia-cs-3.2.1* )"
+
+LIB_PATH="/lib/modules/${KV}"
+
+src_unpack() {
+ check_KV
+ unpack ${P}.tar.gz
+
+ if [ -n "`use pcmcia`" ]; then
+ unpack ${MY_PCMCIA}.tar.gz
+ cd ${WORKDIR}/${MY_PCMCIA}
+ if [ -z "`has_version =sys-apps/pcmcia-cs-3.2.4*`" ]; then
+ epatch ${DISTDIR}/${PATCH_3_2_4}
+ elif [ -z "`has_version =sys-apps/pcmcia-cs-3.2.3*`" ]; then
+ epatch ${DISTDIR}/${PATCH_3_2_3}
+ elif [ -z "`has_version =sys-apps/pcmcia-cs-3.2.2*`" ]; then
+ epatch ${DISTDIR}/${PATCH_3_2_2}
+ fi
+ fi
+
+
+ cd ${S}
+ mv Makefile ${T}
+ sed -e "s:gcc:${CC}:" \
+ -e "s:-O2:${CFLAGS}:" \
+ -e "s:\$(EXTRA_CFLAGS):\$(EXTRA_CFLAGS) -DPRISM2_HOSTAPD:" \
+ ${T}/Makefile > Makefile
+
+ if [ -n "`use pcmcia`" ] || [[ "${HOSTAP_DRIVERS}" == *pccard* ]]; then
+ mv Makefile ${T}
+ sed -e "s:^PCMCIA_PATH=:PCMCIA_PATH=${WORKDIR}/${MY_PCMCIA}:" \
+ ${T}/Makefile > Makefile
+ fi
+
+ cd ${S}/hostapd
+ mv Makefile ${T}
+ sed -e "s:gcc:${CC}:" \
+ -e "s:-O2:${CFLAGS}:" \
+ ${T}/Makefile > Makefile
+}
+
+src_compile() {
+
+ local mydrivers
+
+ use pcmcia && mydrivers="${mydrivers} pccard"
+ use hostap-nopci || mydrivers="${mydrivers} pci"
+ use hostap-noplx || mydrivers="${mydrivers} plx"
+
+ # Build the drivers
+ einfo "Building the folowing drivers: ${mydrivers}"
+ emake ${mydrivers} || die
+
+ # Make the hostapd daemon
+ cd ${S}/hostapd
+ emake || die
+
+ # Make the little wlansniff utility
+ cd ${S}/sniff
+ emake || die
+}
+
+src_install() {
+ dodir ${LIB_PATH}/net
+ cp ${S}/driver/modules/{hostap.o,hostap_crypt.o,hostap_crypt_wep.o}\
+ ${D}${LIB_PATH}/net/
+
+ if [ -n "`use pcmcia`" ]; then
+ dodir ${LIB_PATH}/pcmcia
+ dodir /etc/pcmcia
+ cp ${S}/driver/modules/hostap_cs.o ${D}/${LIB_PATH}/pcmcia/
+ cp ${S}/driver/etc/hostap_cs.conf ${D}/etc/pcmcia/
+ if [ -r /etc/pcmcia/prism2.conf ]; then
+ einfo "You may need to edit or remove /etc/pcmcia/prism2.conf"
+ einfo "This is usually a result of conflicts with the"
+ einfo "linux-wlan-ng drivers."
+ fi
+ fi
+
+ if [ -z "`use hostap-nopci`" ]; then
+ cp ${S}/driver/modules/hostap_pci.o\
+ ${D}${LIB_PATH}/net/
+ fi
+
+ if [ -z "`use hostap-noplx`" ]; then
+ cp ${S}/driver/modules/hostap_plx.o\
+ ${D}${LIB_PATH}/net/
+ fi
+
+ dodoc FAQ README driver_source.txt ChangeLog
+
+ dosbin hostapd/hostapd
+ dosbin sniff/wlansniff
+ newdoc sniff/README README.wlansniff
+}
+pkg_postinst(){
+ /sbin/depmod -a
+}