Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103649 - new package: Getwifi
Summary: new package: Getwifi
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.ccs.neu.edu/home/jabra/bui...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-08-24 19:20 UTC by Josh Abraham
Modified: 2009-07-24 06:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild (getwifi-0.1.4.ebuild,839 bytes, text/plain)
2005-08-24 19:26 UTC, Josh Abraham
Details
getwifi-0.1.4.ebuild (getwifi-0.1.4.ebuild,478 bytes, text/plain)
2005-08-24 19:43 UTC, Josh Abraham
Details
getwifi-0.1.4.ebuild (getwifi-0.1.4.ebuild,587 bytes, text/plain)
2005-08-24 19:53 UTC, Josh Abraham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Abraham 2005-08-24 19:20:40 UTC
Getwifi is script written to allow Linux users to join wireless networks based
on precedence. The way it works is by using a configuration file check if there
is a wireless signal from a given network. If a signal exists then it joins
otherwise it checks the next network in the list.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




1) Extract this to /usr/local/portage/ as is...
2) Add "PORTDIR_OVERLAY=/usr/local/portage/" to /etc/make.conf
3) emerge getwifi
Comment 1 Jonathan Smith (RETIRED) gentoo-dev 2005-08-24 19:23:04 UTC
please attach the ebuild as a plain-text file
Comment 2 Josh Abraham 2005-08-24 19:24:04 UTC
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils
DESCRIPTION="A shell script to join wireless networks based on precedence"
HOMEPAGE="http://getwifi.sf.net/"
SRC_URI="mirror://sourceforge/getwifi/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=""
RDEPEND="app-shells/bash"
RESTRICT="nomirror"

# Source directory; the dir where the sources can be found (automatically
# unpacked) inside ${WORKDIR}.  The default value for S is ${WORKDIR}/${P}
# If you don't need to change it, leave the S= line out of the ebuild
# to keep it tidy.
#S=${WORKDIR}/${P}

src_compile() {
    true
}

src_install() {
    mkdir ${D}/etc
    dodoc AUTHORS CHANGELOG COPYING INSTALL README
    cp ${S}/config  ${D}/etc/getwifi.conf
    dosbin getwifi
    doman getwifi.1
}
Comment 3 Josh Abraham 2005-08-24 19:26:11 UTC
Created attachment 66832 [details]
ebuild

ebuild
Comment 4 Jonathan Smith (RETIRED) gentoo-dev 2005-08-24 19:34:38 UTC
what advantage does this package have over gentoo's wireless baselayout stuff?
Comment 5 Josh Abraham 2005-08-24 19:43:36 UTC
Created attachment 66833 [details]
getwifi-0.1.4.ebuild
Comment 6 Josh Abraham 2005-08-24 19:46:44 UTC
as i am new to the ebuild process i set RESTRICT="" because GPL-2 does allow
redistribution.
Comment 7 Josh Abraham 2005-08-24 19:53:53 UTC
Created attachment 66834 [details]
getwifi-0.1.4.ebuild
Comment 8 Josh Abraham 2005-08-24 19:59:33 UTC
The advantage of getwifi over other wireless tools is that:

1) It is command line based. Thus, doesn't require a gui interface and the
requirements are nearly nothing.
2) Supports WEP encryption.
3) Allows for easy manipulation based on simple config file
4) Allows users to join wireless networks based on precedence similar to windows.
5) Scans for wireless networks if you are away for networks you are familar with. 
Comment 9 Jonathan Smith (RETIRED) gentoo-dev 2005-08-25 11:00:51 UTC
gentoo's baselayout has all of those things... how is this better than *that*?
Comment 10 Josh Abraham 2005-08-25 11:23:18 UTC
(In reply to comment #9)
> gentoo's baselayout has all of those things... how is this better than *that*?

However, with getwifi those things can be set to run as a daemon at boot time or
cron job.
Comment 11 Jonathan Smith (RETIRED) gentoo-dev 2005-08-25 11:26:07 UTC
(In reply to comment #10)
> However, with getwifi those things can be set to run as a daemon at boot time or
> cron job.

rc-update add net.wlan0 default ?
Comment 12 Josh Abraham 2005-08-25 11:29:08 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > However, with getwifi those things can be set to run as a daemon at boot time or
> > cron job.
> 
> rc-update add net.wlan0 default ?

this would join the default network. If you had multiple networks and you were
at school instead of at home (default) getwifi would stil get you online.
Comment 13 Roy Marples (RETIRED) gentoo-dev 2005-08-30 10:00:54 UTC
(In reply to comment #12)
> this would join the default network. If you had multiple networks and you were
> at school instead of at home (default) getwifi would stil get you online.

Would it?

preferred_aps=( "HomeAP" "SchoolAP" "WorkAP" )

key_HomeAP="s:homeWEPKey"
config_HomeAP=( "192.168.0.2/24" )
routes_HomeAP=( "default via 192.168.0.1" )
dns_servers_HomeAP=( "192.168.0.1" )

config_SchoolAP=( "dhcp" )

key_WorkAP="s:workWEPKey"
config_WorkAP=( "dhcp" )

So there we have a clear preference list for AP's, wep, static and dhcp
configurations based on the network selected through a scan.

You can read all about this in our handbook
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4#doc_chap3
Comment 14 James Earl Spahlinger 2009-07-24 06:42:42 UTC
with apologies this bug is being closed as last update from upstream was in 2005. When upstream becomes active again, feel free to reopen.