bmon: added package and its dependencies (libconfuse and libnl3) (#758)
authorDavid Martínez <vaites@users.noreply.github.com>
Thu, 9 Feb 2017 08:28:35 +0000 (09:28 +0100)
committerFredrik Fornwall <fredrik@fornwall.net>
Thu, 9 Feb 2017 08:28:35 +0000 (09:28 +0100)
* bmon: added package and its dependencies (libconfuse and libnl3)

* libnl3: fixed homepage, source url and bumped revision

packages/bmon/build.sh [new file with mode: 0644]
packages/bmon/config.h.patch [new file with mode: 0644]
packages/libconfuse/build.sh [new file with mode: 0644]
packages/libnl3/build.sh [new file with mode: 0644]
packages/libnl3/nf-log.c.patch [new file with mode: 0644]
packages/libnl3/nf-monitor.c.patch [new file with mode: 0644]
packages/libnl3/nf-queue.c.patch [new file with mode: 0644]
packages/libnl3/nl-monitor.c.patch [new file with mode: 0644]

diff --git a/packages/bmon/build.sh b/packages/bmon/build.sh
new file mode 100644 (file)
index 0000000..ccab27d
--- /dev/null
@@ -0,0 +1,12 @@
+TERMUX_PKG_HOMEPAGE=https://github.com/tgraf/bmon
+TERMUX_PKG_DESCRIPTION="Bandwidth monitor and rate estimator"
+TERMUX_PKG_VERSION=4.0
+TERMUX_PKG_SRCURL=https://github.com/tgraf/bmon/archive/v$TERMUX_PKG_VERSION.tar.gz
+TERMUX_PKG_FOLDERNAME=bmon-$TERMUX_PKG_VERSION
+TERMUX_PKG_DEPENDS="libconfuse, libnl3, ncurses"
+TERMUX_PKG_BUILD_IN_SRC=yes
+
+termux_step_pre_configure() {
+    cd $TERMUX_PKG_SRCDIR
+    ./autogen.sh
+}
\ No newline at end of file
diff --git a/packages/bmon/config.h.patch b/packages/bmon/config.h.patch
new file mode 100644 (file)
index 0000000..223fc31
--- /dev/null
@@ -0,0 +1,14 @@
+--- ../../build/bmon/cache/bmon-4.0/include/bmon/config.h      2016-12-13 11:56:40.000000000 +0100
++++ ./include/bmon/config.h    2017-02-09 00:29:18.177571494 +0100
+@@ -46,11 +46,6 @@
+ #include <syslog.h>
+ #include <sys/wait.h>
+ #include <dirent.h>
+-#ifdef SYS_BSD
+-# include <float.h>
+-#else
+-# include <values.h>
+-#endif
+ #if TIME_WITH_SYS_TIME
+ # include <sys/time.h>
diff --git a/packages/libconfuse/build.sh b/packages/libconfuse/build.sh
new file mode 100644 (file)
index 0000000..f2540be
--- /dev/null
@@ -0,0 +1,4 @@
+TERMUX_PKG_HOMEPAGE=https://github.com/martinh/libconfuse
+TERMUX_PKG_DESCRIPTION="Small configuration file parser library for C"
+TERMUX_PKG_VERSION=3.0
+TERMUX_PKG_SRCURL=https://github.com/martinh/libconfuse/releases/download/v$TERMUX_PKG_VERSION/confuse-$TERMUX_PKG_VERSION.tar.gz
diff --git a/packages/libnl3/build.sh b/packages/libnl3/build.sh
new file mode 100644 (file)
index 0000000..453942a
--- /dev/null
@@ -0,0 +1,6 @@
+TERMUX_PKG_HOMEPAGE=https://github.com/thom311/libnl
+TERMUX_PKG_DESCRIPTION="Collection of libraries providing APIs to netlink protocol based Linux kernel interfaces"
+TERMUX_PKG_VERSION=3.2.29
+TERMUX_PKG_VERSION_DASH=`echo $TERMUX_PKG_VERSION | sed -e 's/\./_/g'`
+TERMUX_PKG_SRCURL=https://github.com/thom311/libnl/releases/download/libnl$TERMUX_PKG_VERSION_DASH/libnl-$TERMUX_PKG_VERSION.tar.gz
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-pthreads --disable-cli"
diff --git a/packages/libnl3/nf-log.c.patch b/packages/libnl3/nf-log.c.patch
new file mode 100644 (file)
index 0000000..9378311
--- /dev/null
@@ -0,0 +1,10 @@
+--- ../../build/libnl3/cache/libnl-3.2.25/src/nf-log.c 2014-06-16 16:45:51.000000000 +0200
++++ ./src/nf-log.c     2017-02-09 00:08:20.671339521 +0100
+@@ -11,6 +11,7 @@
+  * Copyright (c) 2007 Secure Computing Corporation
+  */
++#include <sys/select.h>
+ #include <netlink/cli/utils.h>
+ #include <netlink/cli/link.h>
+ #include <linux/netfilter/nfnetlink_log.h>
diff --git a/packages/libnl3/nf-monitor.c.patch b/packages/libnl3/nf-monitor.c.patch
new file mode 100644 (file)
index 0000000..942473b
--- /dev/null
@@ -0,0 +1,10 @@
+--- ../../build/libnl3/cache/libnl-3.2.25/src/nf-monitor.c     2014-06-16 16:45:51.000000000 +0200
++++ ./src/nf-monitor.c 2017-02-09 00:09:08.904697365 +0100
+@@ -11,6 +11,7 @@
+  * Copyright (c) 2007 Secure Computing Corporation
+  */
++#include <sys/select.h>
+ #include <netlink/cli/utils.h>
+ #include <netlink/netfilter/nfnl.h>
diff --git a/packages/libnl3/nf-queue.c.patch b/packages/libnl3/nf-queue.c.patch
new file mode 100644 (file)
index 0000000..a2a2469
--- /dev/null
@@ -0,0 +1,11 @@
+--- ../../build/libnl3/cache/libnl-3.2.25/src/nf-queue.c       2014-06-16 16:45:51.000000000 +0200
++++ ./src/nf-queue.c   2017-02-09 00:08:34.248440250 +0100
+@@ -10,7 +10,7 @@
+  * Copyright (c) 2010  Karl Hiramoto <karl@hiramoto.org>
+  */
+-
++#include <sys/select.h>
+ #include <netlink/cli/utils.h>
+ #include <netlink/cli/link.h>
+ #include <netinet/in.h>
diff --git a/packages/libnl3/nl-monitor.c.patch b/packages/libnl3/nl-monitor.c.patch
new file mode 100644 (file)
index 0000000..0352430
--- /dev/null
@@ -0,0 +1,10 @@
+--- ../../build/libnl3/cache/libnl-3.2.25/src/nl-monitor.c     2014-06-16 16:45:51.000000000 +0200
++++ ./src/nl-monitor.c 2017-02-09 00:08:20.660339439 +0100
+@@ -9,6 +9,7 @@
+  * Copyright (c) 2003-2009 Thomas Graf <tgraf@suug.ch>
+  */
++#include <sys/select.h>
+ #include <netlink/cli/utils.h>
+ #include <netlink/cli/link.h>