From e3d1163d130e588f91c863b2719018cab7470e38 Mon Sep 17 00:00:00 2001 From: Enrico Carlesso Date: Fri, 15 Feb 2013 15:22:03 +0100 Subject: [PATCH 1/4] Fixed AM_CONFIG_HEADER obsolete macro --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 8e565db4803376e2e5758282f9b28a0f0f14b941 Mon Sep 17 00:00:00 2001 From: Enrico Carlesso Date: Wed, 20 Feb 2013 00:57:17 +0100 Subject: [PATCH 2/4] updated readme --- README => README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) rename README => README.md (66%) diff --git a/README b/README.md similarity index 66% rename from README rename to README.md index 5a7b177..8c88f56 100644 --- a/README +++ b/README.md @@ -1,3 +1,16 @@ +# 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. + This is upslug2. upslug2 is a command line program intended to allow the upgrade of a LinkSys From 2bb8c9a1d8c790da7f8aaeaa952f4e0cb716761f Mon Sep 17 00:00:00 2001 From: Enrico Carlesso Date: Wed, 20 Feb 2013 10:22:37 +0100 Subject: [PATCH 3/4] added formula --- brew_formula/upslug2.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 brew_formula/upslug2.rb 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 From dd86953d635294a34408f69e6f4c767d086eb96a Mon Sep 17 00:00:00 2001 From: Enrico Carlesso Date: Wed, 20 Feb 2013 10:25:32 +0100 Subject: [PATCH 4/4] Added formula usage --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c88f56..dd3d239 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,16 @@ to be able to compile nowdays. Thanks for your work. This Repository is also used as source for the [HomeBrew](http://mxcl.github.com/homebrew/) Formula to build it. -This is upslug2. +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