package/mbuffer: new package
authorMircea Gliga <gliga.mircea@gmail.com>
Tue, 11 Feb 2020 13:46:52 +0000 (15:46 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 12 Apr 2020 20:31:54 +0000 (22:31 +0200)
Signed-off-by: Mircea Gliga <gliga.mircea@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/mbuffer/Config.in [new file with mode: 0644]
package/mbuffer/mbuffer.hash [new file with mode: 0644]
package/mbuffer/mbuffer.mk [new file with mode: 0644]

index ed6b3b699fe48183f3120e27cf020bd7d28480b9..f974f4c3e0566084af9ef92b6f22651f78189bb5 100644 (file)
@@ -1846,6 +1846,9 @@ F:        package/libfribidi/
 N:     Min Xu <xuminready@gmail.com>
 F:     package/shadowsocks-libev/
 
+N:     Mircea Gliga <gliga.mircea@gmail.com>
+F:     package/mbuffer/
+
 N:     Mirza Krak <mirza.krak@northern.tech>
 F:     package/mender/
 F:     package/mender-artifact/
index ace7dde860adeb6d5dc08326ca0f30fb0cf1cc5b..d2b0a9c357fb24ad58d7e8fe44580d42a7978aca 100644 (file)
@@ -1729,6 +1729,7 @@ menu "Networking"
        source "package/libwebsockets/Config.in"
        source "package/libyang/Config.in"
        source "package/lksctp-tools/Config.in"
+       source "package/mbuffer/Config.in"
        source "package/mongoose/Config.in"
        source "package/nanomsg/Config.in"
        source "package/neon/Config.in"
diff --git a/package/mbuffer/Config.in b/package/mbuffer/Config.in
new file mode 100644 (file)
index 0000000..81e6187
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_MBUFFER
+       bool "mbuffer"
+       depends on !BR2_STATIC_LIBS # dlopen()
+       help
+         mbuffer is a tool for buffering data streams with a large set
+         of unique features.
+
+         http://www.maier-komor.de/mbuffer.html
+
+comment "mbuffer needs a toolchain w/ dynamic library"
+       depends on BR2_STATIC_LIBS
diff --git a/package/mbuffer/mbuffer.hash b/package/mbuffer/mbuffer.hash
new file mode 100644 (file)
index 0000000..80b7b1f
--- /dev/null
@@ -0,0 +1,5 @@
+# From http://www.maier-komor.de/mbuffer.html
+md5 e4acaa1e6a9a879e7394f04e02e1ae83  mbuffer-20191016.tgz
+
+# Locally computed after checking signature upstream
+sha256 8dc210454765c18901074bc16e126c655135a486e73d69855caf74a157ddbe17  mbuffer-20191016.tgz
diff --git a/package/mbuffer/mbuffer.mk b/package/mbuffer/mbuffer.mk
new file mode 100644 (file)
index 0000000..6ff6e27
--- /dev/null
@@ -0,0 +1,19 @@
+################################################################################
+#
+# mbuffer
+#
+################################################################################
+
+MBUFFER_VERSION = 20191016
+MBUFFER_SOURCE = mbuffer-$(MBUFFER_VERSION).tgz
+MBUFFER_SITE = http://www.maier-komor.de/software/mbuffer
+MBUFFER_LICENSE = GPL-3.0+
+MBUFFER_LICENSE_FILES = LICENSE
+MBUFFER_CONF_OPTS = --disable-debug
+MBUFFER_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=c99"
+
+# we don't need tests & co. so we specify a target
+# so that the others don't get built, e.g idev.so
+MBUFFER_MAKE_OPTS += mbuffer
+
+$(eval $(autotools-package))