Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105216 - submitting ebuild for the ural-linux wireless drivers
Summary: submitting ebuild for the ural-linux wireless drivers
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Default Assignee for New Packages
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-09-07 22:32 UTC by Mike Gualtieri
Modified: 2013-02-15 09:54 UTC (History)
1 user (show)

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


Attachments
ural-linux-0.8.2.ebuild (ural-linux-0.8.2.ebuild,827 bytes, text/plain)
2005-09-07 22:34 UTC, Mike Gualtieri
Details
revised ural-linux ebuild (ural-linux-0.8.2.ebuild,812 bytes, text/plain)
2005-09-08 08:52 UTC, Mike Gualtieri
Details
newer revised ebuild (ural-linux-0.8.2.ebuild,718 bytes, text/plain)
2005-09-08 10:02 UTC, Mike Gualtieri
Details
ebuild with license corrected (ural-linux-0.8.2.ebuild,720 bytes, text/plain)
2005-09-08 16:33 UTC, Mike Gualtieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gualtieri 2005-09-07 22:32:16 UTC
I created an ebuild for the ural-linux-0.8.2 wireless drivers.  These drivers
don't appear to be in portage as of now.  I made these to go under
net-wireless/ural-linux.

Here is the ebuild snip - ural-linux-0.8.2.ebuild:

--- start cut ---
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="ural-linux wireless drivers based on the RT2500USB chipset"
HOMEPAGE="http://etudiants.insia.org/~jbobbio/ural-linux/"
SRC_URI="http://etudiants.insia.org/~jbobbio/ural-linux/files/${P}.tar.bz2"

SLOT="0"
LICENSE="BSD/GPL"
KEYWORDS="~x86 ~ppc"
IUSE=""
DEPEND="sys-apps/sed"


src_compile() {
    # fix type-o in Makefile
    sed -e 's/sbif/sbin/'
/var/tmp/portage/ural-linux-0.8.2/work/ural-linux-0.8.2/Makefile >
/tmp/ural-Makefile && mv /tmp/ural-Makefile
/var/tmp/portage/ural-linux-0.8.2/work/ural-linux-0.8.2/Makefile

    emake || die "emake failed"
}


src_install() {
    make DESTDIR="${D}" install || die "install failed"

    dodoc FAQ NEWS README
    dohtml EXTENDING.html ctags.html
}

--- end cut ---



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Mike Gualtieri 2005-09-07 22:34:01 UTC
Created attachment 67896 [details]
ural-linux-0.8.2.ebuild

I attached the ebuild...
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 03:09:41 UTC
1/ License is invalid.
2/ The sed statement needs || die, has hardcoded paths and will break sandbox,
it is not acceptable to do it this way.

BTW, would be a good idea to report the typo upstream so that the patching may
be dropped entirely. ;)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 03:10:02 UTC
Please, fix the above problems and reopen then.
Comment 4 Mike Gualtieri 2005-09-08 08:52:58 UTC
Created attachment 67941 [details]
revised ural-linux ebuild
Comment 5 Mike Gualtieri 2005-09-08 08:55:09 UTC
(In reply to comment #4)
> Created an attachment (id=67941) [edit]
> revised ural-linux ebuild
> 

I have attached a revised ural-linux ebuild.  This is the first ebuild I have
written, so sorry for the errors :-)

Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 09:44:12 UTC
The sed command is simply crazy. :=)

src_compile() {
	# fix typo in Makefile
	cp Makefile Makefile.orig
	sed -e 's:sbif:sbin:g' Makefile.orig > Makefile || die "sed failed"
	emake || die "emake failed"
}

Does the above work for you? I cannot test this b/c the server does not respond,
so I cannot download the tarball at all.
Comment 7 Mike Gualtieri 2005-09-08 10:02:15 UTC
Created attachment 67945 [details]
newer revised ebuild
Comment 8 Mike Gualtieri 2005-09-08 10:05:15 UTC
(In reply to comment #6)
> The sed command is simply crazy. :=)
> 
> src_compile() {
> 	# fix typo in Makefile
> 	cp Makefile Makefile.orig
> 	sed -e 's:sbif:sbin:g' Makefile.orig > Makefile || die "sed failed"
> 	emake || die "emake failed"
> }
> 
> Does the above work for you? I cannot test this b/c the server does not respond,
> so I cannot download the tarball at all.
> 

Yes the above worked for me.  I have created a new attachment with the changes.
 In addition to this being my first ebuild, I also only needed to use sed once
before, so thanks for the simplification!

I also noticed that the server is down today.  Bad timing on my ebuild writing.
   Hopefully it comes back up soon.

Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 10:37:07 UTC
Thanks. Just noticed that the license is still invalid. GPL is not a valid
license, GPL-1 or GPL-2.

http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3#doc_chap1
Comment 10 Mike Gualtieri 2005-09-08 16:33:21 UTC
Created attachment 67977 [details]
ebuild with license corrected

The website says part is baed on the madwifi drivers, so I'm assuming it is
GPL-2, since that is what the madwifi ebuild says.
Comment 11 Mike Gualtieri 2005-09-10 09:04:08 UTC
BTW _ I checked this morning, and the site hosting hte drivers appears to be
back up.
Comment 12 phaidros 2005-11-16 05:24:06 UTC
I tested now driver and tools 0.1_pre20051111.
all compiles fine so far.
putting the snippet in /etc/conf.d/net brings up ath0 ok.

but: 
tiber ~ # iwconfig ath0 mode ad-hoc
Error for wireless request "Set Mode" (8B06) :
    SET failed on device ath0 ; Invalid argument.

its not capable of ad-hoc mode???
Comment 13 phaidros 2005-11-16 05:31:04 UTC
... this was not meant for this bug, sorry, firefox warped to next bug in my
list, while i wanted to answer another one.

apologizing!

Comment 14 Tomáš Chvátal (RETIRED) gentoo-dev 2013-02-15 09:54:41 UTC
During review of old requests I found out this bug is no longer relevant as the upstream was ceased in favor of in-kernel drivers. Closing as CANTFIX.