Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added formula for fon-flash #14561

Closed
wants to merge 3 commits into from

3 participants

@nolith

This formula compiles fon-flash, an ethernet flashing tool for routers.
This formula will only compile the command line tool.

@nolith nolith Added formula for fon-flash
This formula compiles fon-flash, an ethernet flashing tool for routers.
This formula will only compile the command line tool.
f0bc22c
Library/Formula/fon-flash-cli.rb
@@ -0,0 +1,17 @@
+require 'formula'
+
+class FonFlashCli < Formula
+ homepage 'http://www.gargoyle-router.com/wiki/doku.php?id=fon_flash'
+ url 'http://www.gargoyle-router.com/downloads/fon-flash/fon-flash-src.tar.gz'
@jacknagel Owner

Need a stable (versioned) URL

@nolith
nolith added a note

they didn't provide it.
The source code is part of a bigger repo and the fon-flash folder is 3 years old.
The tool itsel isn't versioned.

@jacknagel Owner

Options are then to (a) ask upstream to provide a versioned download or (b) this can go in an external repo; we can't accept non-versioned downloads into core.

@nolith
nolith added a note

Ok, I'll ask a versioned url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@nolith

I've found a versioned download of the whole gargoyle firmware, wich includes fon-flash tool.
May this be enough? If it's ok I'll provide a squashed commit.

Thank you

Library/Formula/fon-flash-cli.rb
@@ -0,0 +1,17 @@
+require 'formula'
+
+class FonFlashCli < Formula
+ homepage 'http://www.gargoyle-router.com/wiki/doku.php?id=fon_flash'
+ url 'http://www.gargoyle-router.com/downloads/src/gargoyle_1.5.6-src.tar.gz'
+ version '1.5.6'
+ sha1 'e6047eb8edb6c95ff174b8639d7291a10deccd97'
+
+ def install
+ system "cd fon-flash; make fon-flash"
+ bin.install 'fon-flash/fon-flash'
@jacknagel Owner

Can just do

cd 'fon-flash' do
  system "make fon-flash"
  bin.install 'fon-flash'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Library/Formula/fon-flash-cli.rb
@@ -0,0 +1,17 @@
+require 'formula'
+
+class FonFlashCli < Formula
+ homepage 'http://www.gargoyle-router.com/wiki/doku.php?id=fon_flash'
+ url 'http://www.gargoyle-router.com/downloads/src/gargoyle_1.5.6-src.tar.gz'
+ version '1.5.6'
+ sha1 'e6047eb8edb6c95ff174b8639d7291a10deccd97'
+
+ def install
+ system "cd fon-flash; make fon-flash"
+ bin.install 'fon-flash/fon-flash'
+ end
+
+ def test
+ system "fon-flash"
@jacknagel Owner

Use full path in the test: #{bin}/fon-flash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@adamv adamv closed this pull request from a commit
@nolith nolith fon-flash-cli 1.5.6
Closes #14561.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
bafbc50
@adamv adamv closed this in bafbc50
@allenhuang allenhuang referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@theirix theirix referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@snakeyroc3 snakeyroc3 referenced this pull request from a commit in snakeyroc3/homebrew
@nolith nolith fon-flash-cli 1.5.6
Closes #14561.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
e987788
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 30, 2012
  1. @nolith

    Added formula for fon-flash

    nolith authored
    This formula compiles fon-flash, an ethernet flashing tool for routers.
    This formula will only compile the command line tool.
  2. @nolith

    versioned download

    nolith authored
Commits on Sep 3, 2012
  1. @nolith

    fixed as reviewed by jacknagel

    nolith authored
This page is out of date. Refresh to see the latest.
Showing with 19 additions and 0 deletions.
  1. +19 −0 Library/Formula/fon-flash-cli.rb
View
19 Library/Formula/fon-flash-cli.rb
@@ -0,0 +1,19 @@
+require 'formula'
+
+class FonFlashCli < Formula
+ homepage 'http://www.gargoyle-router.com/wiki/doku.php?id=fon_flash'
+ url 'http://www.gargoyle-router.com/downloads/src/gargoyle_1.5.6-src.tar.gz'
+ version '1.5.6'
+ sha1 'e6047eb8edb6c95ff174b8639d7291a10deccd97'
+
+ def install
+ cd 'fon-flash' do
+ system "make fon-flash"
+ bin.install 'fon-flash'
+ end
+ end
+
+ def test
+ system "#{bin}/fon-flash"
+ end
+end
Something went wrong with that request. Please try again.