diff --git a/README b/README.md similarity index 58% rename from README rename to README.md index 5a7b177..dd3d239 100644 --- a/README +++ b/README.md @@ -1,4 +1,26 @@ -This is upslug2. +# Upslug2 + +**Note:** this repository is a fork from [wspringer](https://github.com/wspringer/upslug2) + +I made only a _very_ [little fix](https://github.com/carlesso/upslug2/commit/e3d1163d130e588f91c863b2719018cab7470e38) +to be able to compile nowdays. + +**ALL** credit goes to +* John Bowler +* Roger Nilsson [macosx support] + +Thanks for your work. This Repository is also used as source for the [HomeBrew](http://mxcl.github.com/homebrew/) Formula to build it. + +To install upslug2 with homebrew simply write: + +``` + $ brew install https://raw.github.com/carlesso/upslug2/master/brew_formula/upslug2.rb +``` + + +----------------------------------- + +##This is upslug2. upslug2 is a command line program intended to allow the upgrade of a LinkSys NSLU2 firmware to new or different versions. Unlike upslug and the LinkSys diff --git a/brew_formula/upslug2.rb b/brew_formula/upslug2.rb new file mode 100644 index 0000000..dee569b --- /dev/null +++ b/brew_formula/upslug2.rb @@ -0,0 +1,28 @@ +require 'formula' + +class Upslug2 < Formula + homepage 'https://github.com/carlesso/upslug2' + + url 'https://github.com/carlesso/upslug2.git', :revision => 'e3d1163d130e588f91c863b2719018cab7470e38' + + head 'https://github.com/wspringer/upslug2.git' + version '2.11' + + depends_on :autoconf + depends_on :automake + depends_on :libtool + + def install + system "autoreconf", "-iv" + ENV['CPPFLAGS'] = "-I/opt/local/include" + ENV['LDFLAGS'] = "-L/opt/local/lib" + system "./configure", "--with-libpcap", "--prefix=#{prefix}" + + system "make" + system "make install" + end + + def test + system "#{sbin}/upslug2" + end +end diff --git a/configure.ac b/configure.ac index dfaee7e..5e354fd 100644 --- a/configure.ac +++ b/configure.ac @@ -5,7 +5,7 @@ AC_PREREQ(2.59) AC_INIT(upslug2, 12, http://sourceforge.net/projects/nslu/) AM_INIT_AUTOMAKE(1.9) AC_CONFIG_SRCDIR([config.h.in]) -AM_CONFIG_HEADER([config.h]) +AC_CONFIG_HEADERS([config.h]) # Checks system specific stuff AC_CANONICAL_HOST