From aeb1a5ea4b7bed13db1079c753488873105763de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mart=C3=ADnez?= Date: Thu, 9 Feb 2017 09:28:35 +0100 Subject: [PATCH] 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 --- packages/bmon/build.sh | 12 ++++++++++++ packages/bmon/config.h.patch | 14 ++++++++++++++ packages/libconfuse/build.sh | 4 ++++ packages/libnl3/build.sh | 6 ++++++ packages/libnl3/nf-log.c.patch | 10 ++++++++++ packages/libnl3/nf-monitor.c.patch | 10 ++++++++++ packages/libnl3/nf-queue.c.patch | 11 +++++++++++ packages/libnl3/nl-monitor.c.patch | 10 ++++++++++ 8 files changed, 77 insertions(+) create mode 100644 packages/bmon/build.sh create mode 100644 packages/bmon/config.h.patch create mode 100644 packages/libconfuse/build.sh create mode 100644 packages/libnl3/build.sh create mode 100644 packages/libnl3/nf-log.c.patch create mode 100644 packages/libnl3/nf-monitor.c.patch create mode 100644 packages/libnl3/nf-queue.c.patch create mode 100644 packages/libnl3/nl-monitor.c.patch diff --git a/packages/bmon/build.sh b/packages/bmon/build.sh new file mode 100644 index 000000000..ccab27dd6 --- /dev/null +++ b/packages/bmon/build.sh @@ -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 index 000000000..223fc3199 --- /dev/null +++ b/packages/bmon/config.h.patch @@ -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 + #include + #include +-#ifdef SYS_BSD +-# include +-#else +-# include +-#endif + + #if TIME_WITH_SYS_TIME + # include diff --git a/packages/libconfuse/build.sh b/packages/libconfuse/build.sh new file mode 100644 index 000000000..f2540be9f --- /dev/null +++ b/packages/libconfuse/build.sh @@ -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 index 000000000..453942a79 --- /dev/null +++ b/packages/libnl3/build.sh @@ -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 index 000000000..937831144 --- /dev/null +++ b/packages/libnl3/nf-log.c.patch @@ -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 + #include + #include + #include diff --git a/packages/libnl3/nf-monitor.c.patch b/packages/libnl3/nf-monitor.c.patch new file mode 100644 index 000000000..942473ba5 --- /dev/null +++ b/packages/libnl3/nf-monitor.c.patch @@ -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 + #include + #include + diff --git a/packages/libnl3/nf-queue.c.patch b/packages/libnl3/nf-queue.c.patch new file mode 100644 index 000000000..a2a246962 --- /dev/null +++ b/packages/libnl3/nf-queue.c.patch @@ -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 + */ + +- ++#include + #include + #include + #include diff --git a/packages/libnl3/nl-monitor.c.patch b/packages/libnl3/nl-monitor.c.patch new file mode 100644 index 000000000..03524301a --- /dev/null +++ b/packages/libnl3/nl-monitor.c.patch @@ -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 + */ + ++#include + #include + #include +