New Formula: olsrd #14867

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
Contributor

nolith commented Sep 11, 2012

The olsr.org OLSR daemon is an implementation of the Optimized Link State Routing protocol. As such it allows mesh routing for any network equipment.
It runs on any wifi card that supports ad-hoc mode and of course on any ethernet device.
OLSR is next to AODV one of the main two internet standards for mesh networks. It is widely used and well tested.

@nolith nolith New Formula: olsrd
The olsr.org OLSR daemon is an implementation of the Optimized Link State Routing protocol. As such it allows mesh routing for any network equipment.
It runs on any wifi card that supports ad-hoc mode and of course on any ethernet device.
OLSR is next to AODV one of the main two internet standards for mesh networks. It is widely used and well tested.
7cd0195

@jacknagel jacknagel commented on the diff Sep 11, 2012

Library/Formula/olsrd.rb
+
+class Olsrd < Formula
+ homepage 'http://www.olsr.org'
+ url 'http://www.olsr.org/releases/0.6/olsrd-0.6.3.tar.bz2'
+ version '0.6.3'
+ sha1 'd949a46904e2c2ff694e8350cc5bbffb26d5011b'
+
+ def install
+ custom_vars = "DESTDIR=#{prefix} USRDIR=#{prefix}"
+ system "make #{custom_vars} build_all"
+ system "make #{custom_vars} install_olsrd"
+ lib.install Dir['lib/*/*.so.*']
+ end
+
+ #this patch is required only for Mountain Lion
+ if `sw_vers -productVersion` =~ /^10\.8\./
@jacknagel

jacknagel Sep 11, 2012

Contributor

if MacOS.version == :mountain_lion (would also prefer the conditional to be inside the method definition, e.g. DATA if MacOS.version == :mountain_lion

@jacknagel

jacknagel Sep 11, 2012

Contributor

Also patches goes above install (by convention)

@jacknagel jacknagel commented on the diff Sep 11, 2012

Library/Formula/olsrd.rb
@@ -0,0 +1,61 @@
+require 'formula'
+
+class Olsrd < Formula
+ homepage 'http://www.olsr.org'
+ url 'http://www.olsr.org/releases/0.6/olsrd-0.6.3.tar.bz2'
+ version '0.6.3'
+ sha1 'd949a46904e2c2ff694e8350cc5bbffb26d5011b'
+
+ def install
+ custom_vars = "DESTDIR=#{prefix} USRDIR=#{prefix}"
+ system "make #{custom_vars} build_all"
+ system "make #{custom_vars} install_olsrd"
@jacknagel

jacknagel Sep 11, 2012

Contributor

This is liable to break if the prefix contains spaces. Doing it like this avoids any shell quoting issues:

args = %W[DESTDIR=#{prefix} USRDIR=#{prefix}]
system "make", "build_all", *args
system "make", "install_olsrd", *args

@jacknagel jacknagel commented on the diff Sep 11, 2012

Library/Formula/olsrd.rb
+
+ def caveats; <<-EOS.undent
+ ========= C O N F I G U R A T I O N - F I L E ============
+ olsrd uses the configfile /etc/olsrd.conf
+ a default configfile. A sample RFC-compliance aimed
+ configfile can be found in olsrd.conf.default.rfc.
+ However none of the larger OLSRD using networks use that
+ so install a configfile with activated link quality exstensions
+ per default.
+ can be found at files/olsrd.conf.default.lq
+ ==========================================================
+
+ -------------------------------------------
+ Copy and edit #{prefix}/etc/olsrd.conf to /etc/olsrd.conf before running olsrd!!
+ -------------------------------------------
+ EOS
@jacknagel

jacknagel Sep 11, 2012

Contributor

No banner-like text, please; the goal should be to make caveats as concise as possible.

Contributor

adamv commented Nov 1, 2012

Ping.

@ghost

ghost commented Nov 3, 2012

Hi all,

In the meanwhile there is a new olsrd release. I have a formula in https://github.com/hitzeman/homebrew/commit/9de8c89fbcc8d32842d4fd8e61f3c598aa1d8d20
Can we somehow merge it with this request or shall I open a new pull request?

Contributor

adamv commented Nov 3, 2012

@hitzeman open a new pull request

Contributor

nolith commented Nov 3, 2012

I'm sorry. I've made a taps with all the embedded/mesh application I need. It's available https://github.com/nolith/homebrew-embedded

@hitzeman your recipe didn't install the olsrd plugins

Contributor

adamv commented Nov 3, 2012

We'll at least add this tap to the wiki list.

Contributor

nolith commented Nov 3, 2012

Done.

I've never noticed that page :(

Alessio "nolith" Caiazza
Il sapere umano appartiene al mondo.

Il giorno sabato 3 novembre 2012, alle ore 19:36, Adam Vandenberg ha scritto:

We'll at least add this tap to the wiki list.


Reply to this email directly or view it on GitHub (mxcl#14867 (comment)).

@ghost

ghost commented Nov 3, 2012

@nolith Thanks for that heads up, I sohuld use install_all instead of install.

Contributor

adamv commented Nov 11, 2012

Closing in favor of newer request #15838.

adamv closed this Nov 11, 2012

xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.