diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2010-07-25 14:18:17 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2010-07-25 14:18:17 +0000 |
commit | 3ceec380d539a393460aba67fef0d4b42cbf423d (patch) | |
tree | 09c33b255a9de726e8301cc52c675c51c7c30224 /net-wireless/wimax | |
parent | Stable on alpha, bug #322193 (diff) | |
download | gentoo-2-3ceec380d539a393460aba67fef0d4b42cbf423d.tar.gz gentoo-2-3ceec380d539a393460aba67fef0d4b42cbf423d.tar.bz2 gentoo-2-3ceec380d539a393460aba67fef0d4b42cbf423d.zip |
[net-wireless/wimax] Initial import of wimax network service. Currently it isnt working on 64bit systems.
(Portage version: 2.2_rc67_p258/cvs/Linux x86_64)
Diffstat (limited to 'net-wireless/wimax')
-rw-r--r-- | net-wireless/wimax/ChangeLog | 11 | ||||
-rw-r--r-- | net-wireless/wimax/files/wimax | 24 | ||||
-rw-r--r-- | net-wireless/wimax/metadata.xml | 9 | ||||
-rw-r--r-- | net-wireless/wimax/wimax-1.5.ebuild | 39 |
4 files changed, 83 insertions, 0 deletions
diff --git a/net-wireless/wimax/ChangeLog b/net-wireless/wimax/ChangeLog new file mode 100644 index 000000000000..05739b37b35a --- /dev/null +++ b/net-wireless/wimax/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-wireless/wimax +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wimax/ChangeLog,v 1.1 2010/07/25 14:18:17 alexxy Exp $ + +*wimax-1.5 (25 Jul 2010) + + 25 Jul 2010; Alexey Shvetsov <alexxy@gentoo.org> +wimax-1.5.ebuild, + +files/wimax, +metadata.xml: + Initial import of wimax network service. Currently it isnt working on + 64bit systems. + diff --git a/net-wireless/wimax/files/wimax b/net-wireless/wimax/files/wimax new file mode 100644 index 000000000000..6d240e12e717 --- /dev/null +++ b/net-wireless/wimax/files/wimax @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wimax/files/wimax,v 1.1 2010/07/25 14:18:17 alexxy Exp $ + +description="WiMAX Network Service" + +depend() { + need localmount + after bootmisc +} + +start() { + ebegin "Starting WiMAX Network Service" + [ -e /var/run/wimaxd.pid ] && rm -f /var/run/wimaxd.pid + start-stop-daemon --start --quiet --pidfile /var/run/wimax.pid --exec /usr/bin/wimaxd + eend $? +} + +stop() { + ebegin "Stoping WiMAX Network Service" + start-stop-daemon --stop --quiet --pidfile /var/run/wimax.pid + eend $? +} diff --git a/net-wireless/wimax/metadata.xml b/net-wireless/wimax/metadata.xml new file mode 100644 index 000000000000..02833989d95d --- /dev/null +++ b/net-wireless/wimax/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>alexxy@gentoo.org</email> + <name>Alexey Shvetsov</name> +</maintainer> +</pkgmetadata> diff --git a/net-wireless/wimax/wimax-1.5.ebuild b/net-wireless/wimax/wimax-1.5.ebuild new file mode 100644 index 000000000000..b017711578c0 --- /dev/null +++ b/net-wireless/wimax/wimax-1.5.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/wimax/wimax-1.5.ebuild,v 1.1 2010/07/25 14:18:17 alexxy Exp $ + +EAPI="3" + +inherit linux-info multilib + +DESCRIPTION="Intel WiMAX daemon used to interface to the hardware" +HOMEPAGE="http://www.linuxwimax.org/" +SRC_URI="http://www.linuxwimax.org/Download?action=AttachFile&do=get&target=${P}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="-amd64 ~x86" +IUSE="" + +DEPEND=">=dev-libs/libnl-1.1 + >=sys-kernel/linux-headers-2.6.34" +RDEPEND="${DEPEND} + net-wireless/wimax-tools + net-wireless/wpa_supplicant[wimax]" + +src_prepare() { + use amd64 && sed -i 's:REG_EIP:REG_RIP:g' \ + InfraStack/OSDependent/Linux/InfraStackModules/Skeletons/AppSrv/GenericConsole.c \ + || die "Sed failed" +} + +src_configure() { + econf \ + --with-libwimaxll=/usr/$(get_libdir) \ + --with-i2400m=/usr || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed" + doinitd "${FILESDIR}"/wimax || die "failed to place the init daemon" +} |