bmon: added package and its dependencies (libconfuse and libnl3) (#758)
* bmon: added package and its dependencies (libconfuse and libnl3) * libnl3: fixed homepage, source url and bumped revision
This commit is contained in:
parent
2acb795a95
commit
aeb1a5ea4b
12
packages/bmon/build.sh
Normal file
12
packages/bmon/build.sh
Normal file
@ -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
|
||||||
|
}
|
14
packages/bmon/config.h.patch
Normal file
14
packages/bmon/config.h.patch
Normal file
@ -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>
|
4
packages/libconfuse/build.sh
Normal file
4
packages/libconfuse/build.sh
Normal file
@ -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
|
6
packages/libnl3/build.sh
Normal file
6
packages/libnl3/build.sh
Normal file
@ -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"
|
10
packages/libnl3/nf-log.c.patch
Normal file
10
packages/libnl3/nf-log.c.patch
Normal file
@ -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>
|
10
packages/libnl3/nf-monitor.c.patch
Normal file
10
packages/libnl3/nf-monitor.c.patch
Normal file
@ -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>
|
||||||
|
|
11
packages/libnl3/nf-queue.c.patch
Normal file
11
packages/libnl3/nf-queue.c.patch
Normal file
@ -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>
|
10
packages/libnl3/nl-monitor.c.patch
Normal file
10
packages/libnl3/nl-monitor.c.patch
Normal file
@ -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>
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user