aboutsummaryrefslogtreecommitdiff
path: root/package/librelp
diff options
context:
space:
mode:
Diffstat (limited to 'package/librelp')
-rw-r--r--package/librelp/Config.in10
-rw-r--r--package/librelp/librelp.hash3
-rw-r--r--package/librelp/librelp.mk27
3 files changed, 40 insertions, 0 deletions
diff --git a/package/librelp/Config.in b/package/librelp/Config.in
new file mode 100644
index 0000000000..c0ae5fbe89
--- /dev/null
+++ b/package/librelp/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_LIBRELP
+ bool "librelp"
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ help
+ Reliable Event Logging Protocol library
+
+ https://www.rsyslog.com/librelp/
+
+comment "librelp needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/librelp/librelp.hash b/package/librelp/librelp.hash
new file mode 100644
index 0000000000..88665bcf2a
--- /dev/null
+++ b/package/librelp/librelp.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 24ee9e843960d1400a44ffaedb0b1ec91463df8f8acca869cc027ed25ee6bf33 librelp-1.9.0.tar.gz
+sha256 1ed76f935566e93e3c3c0d9f8fad22eb6d8bbe406e2eb8470a4a2764d9fd9685 COPYING
diff --git a/package/librelp/librelp.mk b/package/librelp/librelp.mk
new file mode 100644
index 0000000000..2b8a53e833
--- /dev/null
+++ b/package/librelp/librelp.mk
@@ -0,0 +1,27 @@
+################################################################################
+#
+# librelp
+#
+################################################################################
+
+LIBRELP_VERSION = 1.9.0
+LIBRELP_SITE = http://download.rsyslog.com/librelp
+LIBRELP_LICENSE = GPL-3.0+
+LIBRELP_LICENSE_FILES = COPYING
+LIBRELP_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_GNUTLS),y)
+LIBRELP_DEPENDENCIES += gnutls host-pkgconf
+LIBRELP_CONF_OPTS += --enable-tls
+else
+LIBRELP_CONF_OPTS += --disable-tls
+endif
+
+ifeq ($(BR2_PACKAGE_HAS_OPENSSL),y)
+LIBRELP_DEPENDENCIES += openssl host-pkgconf
+LIBRELP_CONF_OPTS += --enable-tls-openssl
+else
+LIBRELP_CONF_OPTS += --disable-tls-openssl
+endif
+
+$(eval $(autotools-package))