summaryrefslogtreecommitdiff
path: root/homebrew/nload
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/nload')
-rw-r--r--homebrew/nload/.beer51
-rw-r--r--homebrew/nload/.make.sh-auto4
-rw-r--r--homebrew/nload/_metadata/description1
-rw-r--r--homebrew/nload/_metadata/homepage1
-rw-r--r--homebrew/nload/_metadata/name1
-rw-r--r--homebrew/nload/_metadata/version1
-rwxr-xr-xhomebrew/nload/download.sh1
-rwxr-xr-xhomebrew/nload/patches.sh16
8 files changed, 76 insertions, 0 deletions
diff --git a/homebrew/nload/.beer b/homebrew/nload/.beer
new file mode 100644
index 000000000..ac98988b9
--- /dev/null
+++ b/homebrew/nload/.beer
@@ -0,0 +1,51 @@
+{
+ "name": "Nload",
+ "description": "Realtime console network usage monitor",
+ "url": "http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz",
+ "mirror": null,
+ "homepage": "http://www.roland-riegel.de/nload/",
+ "depends": [
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ },
+ {
+ "depend": "automake",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": "https://sourceforge.net/p/nload/bugs/_discuss/thread/c9b68d8e/4a65/attachment/devreader-bsd.cpp.patch",
+ "strip": "0"
+ },
+ {
+ "url": null,
+ "data": [
+ "diff --git a/configure.in b/configure.in\n",
+ "index 87ecc88..4df8dc3 100644\n",
+ "--- a/configure.in\n",
+ "+++ b/configure.in\n",
+ "@@ -38,7 +38,7 @@ case $host_os in\n",
+ " \n",
+ " AC_CHECK_FUNCS([memset])\n",
+ " ;;\n",
+ "- *bsd*)\n",
+ "+ *darwin*)\n",
+ " AC_DEFINE(HAVE_BSD, 1, [Define to 1 if your build target is BSD.])\n",
+ " AM_CONDITIONAL(HAVE_BSD, true)\n"
+ ]
+ }
+ ],
+ "install": [
+ "system \"./run_autotools\"",
+ "system \"./configure\", \"--disable-debug\",",
+ "\"--disable-dependency-tracking\",",
+ "\"--prefix=#{prefix}\"",
+ "system \"make\", \"install\", \"LDFLAGS=\""
+ ],
+ "version": "0.7.4",
+ "file": "nload.rb"
+} \ No newline at end of file
diff --git a/homebrew/nload/.make.sh-auto b/homebrew/nload/.make.sh-auto
new file mode 100644
index 000000000..e5bc92e08
--- /dev/null
+++ b/homebrew/nload/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+./run_autotools
+pkg:configure --disable-dependency-tracking
+make DESTDIR=${PKG_DEST} install LDFLAGS=
diff --git a/homebrew/nload/_metadata/description b/homebrew/nload/_metadata/description
new file mode 100644
index 000000000..47fae57c6
--- /dev/null
+++ b/homebrew/nload/_metadata/description
@@ -0,0 +1 @@
+Realtime console network usage monitor
diff --git a/homebrew/nload/_metadata/homepage b/homebrew/nload/_metadata/homepage
new file mode 100644
index 000000000..6506ae29a
--- /dev/null
+++ b/homebrew/nload/_metadata/homepage
@@ -0,0 +1 @@
+http://www.roland-riegel.de/nload/
diff --git a/homebrew/nload/_metadata/name b/homebrew/nload/_metadata/name
new file mode 100644
index 000000000..a3fd76495
--- /dev/null
+++ b/homebrew/nload/_metadata/name
@@ -0,0 +1 @@
+Nload
diff --git a/homebrew/nload/_metadata/version b/homebrew/nload/_metadata/version
new file mode 100644
index 000000000..0a1ffad4b
--- /dev/null
+++ b/homebrew/nload/_metadata/version
@@ -0,0 +1 @@
+0.7.4
diff --git a/homebrew/nload/download.sh b/homebrew/nload/download.sh
new file mode 100755
index 000000000..6e1bb6a41
--- /dev/null
+++ b/homebrew/nload/download.sh
@@ -0,0 +1 @@
+wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz \ No newline at end of file
diff --git a/homebrew/nload/patches.sh b/homebrew/nload/patches.sh
new file mode 100755
index 000000000..f619922fe
--- /dev/null
+++ b/homebrew/nload/patches.sh
@@ -0,0 +1,16 @@
+wget https://sourceforge.net/p/nload/bugs/_discuss/thread/c9b68d8e/4a65/attachment/devreader-bsd.cpp.patch
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/configure.in b/configure.in
+index 87ecc88..4df8dc3 100644
+--- a/configure.in
++++ b/configure.in
+@@ -38,7 +38,7 @@ case $host_os in
+
+ AC_CHECK_FUNCS([memset])
+ ;;
+- *bsd*)
++ *darwin*)
+ AC_DEFINE(HAVE_BSD, 1, [Define to 1 if your build target is BSD.])
+ AM_CONDITIONAL(HAVE_BSD, true)
+EOF