Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76646 - net-misc/olsrd-0.4.10 (New Package)
Summary: net-misc/olsrd-0.4.10 (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.olsr.org/
Whiteboard: [sunrise-overlay]
Keywords: EBUILD, InOverlay
: 132276 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-04 08:23 UTC by Daniel Webert
Modified: 2006-11-16 13:28 UTC (History)
8 users (show)

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


Attachments
basic olsrd ebuild (olsrd-0.4.8.ebuild,1.01 KB, text/plain)
2005-03-25 02:56 UTC, Maximilian Bauer
Details
net-wireless/olsrd-0.4.9 (olsrd-0.4.9.ebuild,1.96 KB, text/plain)
2005-05-30 07:54 UTC, Andre Kloth
Details
files/olsrd-init.d (olsrd-init.d,440 bytes, text/plain)
2005-05-30 07:55 UTC, Andre Kloth
Details
new ebuild (olsrd-0.4.10.ebuild,1.75 KB, text/plain)
2006-02-06 00:46 UTC, Cédric Krier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Webert 2005-01-04 08:23:30 UTC
net-wireless/olsrd-0.4.8 ebuild request

http://www.olsr.org/

The olsr.org OLSR daemon is an implementation of the Optimized Link State Routing protocol. OLSR is a routing protocol for mobile ad-hoc networks. The protocol is pro-active, table driven and utilizes a technique called multipoint relaying for message flooding. Currently the implementation compiles on GNU/Linux, Windows, OS X, FreeBSD and NetBSD systems.
Olsrd is ment to be a well structured and well coded implementation that should be easy to maintain, expand and port to other platforms. The implementation is RFC3626 compliant with respect to both core and auxiliary functioning.
Olsrd supports use of loadable plugins. These can be used to to handle and generate custom packettypes to be carried by OLSRs MPR flooding scheme or for any other desired functioning.
Comment 1 Maximilian Bauer 2005-03-25 02:56:11 UTC
Created attachment 54421 [details]
basic olsrd ebuild

A basic olsrd ebuild. plugin dyn_gw will also be compiled and installed. init.d
script still missing.
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2005-04-28 22:26:19 UTC
0.4.9 is out
Comment 3 Andre Kloth 2005-05-30 07:54:44 UTC
Created attachment 60192 [details]
net-wireless/olsrd-0.4.9

Updated ebuild:
  * installs all available plugins
  * provides /etc/init.d/olsrd script
  * builds gtk GUI if you have gtk in you use flags
Comment 4 Andre Kloth 2005-05-30 07:55:51 UTC
Created attachment 60193 [details]
files/olsrd-init.d

init.d script for olsrd.
Comment 5 Cédric Krier gentoo-dev 2006-01-05 11:42:58 UTC
0.4.10 is out
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2006-01-05 11:57:39 UTC
Ok. Some feedback to improve your ebuild writing skills:

SRC_URI="http://www.olsr.org/releases/0.4/${P}.tar.bz2"

0.4 should be automatically generated from ${PV} by using for example versionator.eclass

KEYWORDS="x86 ~amd64"

All ebuilds go in as ~arch. 

DEPEND="virtual/libc

You do not need to depend on virtual/libc. 
http://dev.gentoo.org/~plasmaroo/devmanual//general-concepts/dependencies/

src_unpack() {
	unpack ${A}
}

This is redundant as the default src_unpack does this already


	emake OS=linux || die
	cd lib/dyn_gw
	emake OS=linux || die
	cd ../dot_draw
	emake OS=linux || die
	cd ../httpinfo

This should be done using a for loop for example.

	if use gtk; then
		cd ../../gui/linux-gtk
		einfo "Building GUI ..."
		emake || die
	fi

change the echo to einfo at most because noaways portage has the ability to log einfo messages.

	if use gtk; then
		dobin gui/linux-gtk/olsrd-gui
	fi

this can be done as use gtk && dobin gui/linux-gtk/olsrd-gui

src_install() {

is there something wrong with upstream make install? I did not check myself but usually they do the job well enough.
http://dev.gentoo.org/~plasmaroo/devmanual//ebuild-writing/functions/src_install/


	insinto /etc/init.d
	newins "${FILESDIR}"/olsrd-init.d olsrd

there is a a doinitd function for this

Comment 7 phaidros 2006-02-05 17:56:18 UTC
any chance for a woeking ebuild?

and, btw. I think that olsr should go to portage tree .. its at least for mobile clients in modern meshed networks _the_ standard right now :)
Comment 8 Cédric Krier gentoo-dev 2006-02-06 00:46:15 UTC
Created attachment 79010 [details]
new ebuild
Comment 9 Cédric Krier gentoo-dev 2006-02-06 00:48:10 UTC
Comment on attachment 79010 [details]
new ebuild

Here is a new ebuild with some changes suggested by Petteri R
Comment 10 Cédric Krier gentoo-dev 2006-02-06 00:48:10 UTC
Comment on attachment 79010 [details]
new ebuild

Here is a new ebuild with some changes suggested by Petteri Räty
Comment 11 Dirk-Lüder Kreie 2006-05-04 11:01:03 UTC
*** Bug 132276 has been marked as a duplicate of this bug. ***
Comment 12 Christian Ludwig 2006-06-15 06:12:51 UTC
I would not suggest to put this ebuild into the category net-wireless. OLSR is a routing protocol and, as such, should be placed in the same category as all other network routing protocols. At the moment they all are in net-misc, like the quagga ebuild.
Comment 13 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-22 12:50:28 UTC
Thanks to tozzy this is now in the sunrise overlay. 

http://gentoo-sunrise.org/cgi-bin/trac.cgi/browser/sunrise/net-misc/olsrd/olsrd-0.4.10.ebuild
Comment 14 Cédric Krier gentoo-dev 2006-11-16 13:28:10 UTC
In portage now