* [ptxdist] [PATCH v2] hiredis: new package
@ 2022-02-04 16:50 Clemens Gruber
2022-02-07 7:40 ` Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Clemens Gruber @ 2022-02-04 16:50 UTC (permalink / raw)
To: ptxdist; +Cc: Clemens Gruber
Adds a new package for hiredis, a minimalistic C client library for
Redis.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
---
Changes since v1:
- Forgot to add the license file hash
rules/hiredis.in | 8 ++++++
rules/hiredis.make | 62 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 70 insertions(+)
create mode 100644 rules/hiredis.in
create mode 100644 rules/hiredis.make
diff --git a/rules/hiredis.in b/rules/hiredis.in
new file mode 100644
index 000000000..d416d69c4
--- /dev/null
+++ b/rules/hiredis.in
@@ -0,0 +1,8 @@
+## SECTION=system_libraries
+
+config HIREDIS
+ tristate
+ select HOST_CMAKE
+ prompt "hiredis "
+ help
+ Hiredis is a minimalistic C client library for the Redis database.
diff --git a/rules/hiredis.make b/rules/hiredis.make
new file mode 100644
index 000000000..c92fb9c8d
--- /dev/null
+++ b/rules/hiredis.make
@@ -0,0 +1,62 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2022 by Clemens Gruber <clemens.gruber@pqgruber.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_HIREDIS) += hiredis
+
+#
+# Paths and names
+#
+HIREDIS_VERSION := 1.0.2
+HIREDIS_MD5 := 58e8313188f66ed1be1c220d14a7752e
+HIREDIS := hiredis-$(HIREDIS_VERSION)
+HIREDIS_SUFFIX := tar.gz
+HIREDIS_URL := https://github.com/redis/hiredis/archive/v$(HIREDIS_VERSION).$(HIREDIS_SUFFIX)
+HIREDIS_SOURCE := $(SRCDIR)/$(HIREDIS).$(HIREDIS_SUFFIX)
+HIREDIS_DIR := $(BUILDDIR)/$(HIREDIS)
+HIREDIS_LICENSE := BSD-3-Clause
+HIREDIS_LICENSE_FILES := file://COPYING;md5=d84d659a35c666d23233e54503aaea51
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# cmake
+#
+HIREDIS_CONF_TOOL := cmake
+
+HIREDIS_CONF_OPT := \
+ $(CROSS_CMAKE_USR) \
+ -DDISABLE_TESTS=ON \
+ -DENABLE_SSL=OFF
+
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/hiredis.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, hiredis)
+ @$(call install_fixup, hiredis,PRIORITY,optional)
+ @$(call install_fixup, hiredis,SECTION,base)
+ @$(call install_fixup, hiredis,AUTHOR,"Clemens Gruber <clemens.gruber@pqgruber.com>")
+ @$(call install_fixup, hiredis,DESCRIPTION,"Minimalistic C client for Redis")
+
+ @$(call install_lib, hiredis, 0, 0, 0644, libhiredis)
+ @$(call install_link, hiredis, libhiredis.so.1.0.0, /usr/lib/libhiredis.so)
+
+ @$(call install_finish, hiredis)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.35.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [PATCH v2] hiredis: new package
2022-02-04 16:50 [ptxdist] [PATCH v2] hiredis: new package Clemens Gruber
@ 2022-02-07 7:40 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2022-02-07 7:40 UTC (permalink / raw)
To: Clemens Gruber; +Cc: ptxdist
On Fri, Feb 04, 2022 at 05:50:57PM +0100, Clemens Gruber wrote:
> Adds a new package for hiredis, a minimalistic C client library for
> Redis.
>
> Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
> ---
> Changes since v1:
> - Forgot to add the license file hash
Ah, I missed this version. Thanks for adding this without prompting.
I had one more comment about v1. That applies here too.
Michael
>
> rules/hiredis.in | 8 ++++++
> rules/hiredis.make | 62 ++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 70 insertions(+)
> create mode 100644 rules/hiredis.in
> create mode 100644 rules/hiredis.make
>
> diff --git a/rules/hiredis.in b/rules/hiredis.in
> new file mode 100644
> index 000000000..d416d69c4
> --- /dev/null
> +++ b/rules/hiredis.in
> @@ -0,0 +1,8 @@
> +## SECTION=system_libraries
> +
> +config HIREDIS
> + tristate
> + select HOST_CMAKE
> + prompt "hiredis "
> + help
> + Hiredis is a minimalistic C client library for the Redis database.
> diff --git a/rules/hiredis.make b/rules/hiredis.make
> new file mode 100644
> index 000000000..c92fb9c8d
> --- /dev/null
> +++ b/rules/hiredis.make
> @@ -0,0 +1,62 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2022 by Clemens Gruber <clemens.gruber@pqgruber.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_HIREDIS) += hiredis
> +
> +#
> +# Paths and names
> +#
> +HIREDIS_VERSION := 1.0.2
> +HIREDIS_MD5 := 58e8313188f66ed1be1c220d14a7752e
> +HIREDIS := hiredis-$(HIREDIS_VERSION)
> +HIREDIS_SUFFIX := tar.gz
> +HIREDIS_URL := https://github.com/redis/hiredis/archive/v$(HIREDIS_VERSION).$(HIREDIS_SUFFIX)
> +HIREDIS_SOURCE := $(SRCDIR)/$(HIREDIS).$(HIREDIS_SUFFIX)
> +HIREDIS_DIR := $(BUILDDIR)/$(HIREDIS)
> +HIREDIS_LICENSE := BSD-3-Clause
> +HIREDIS_LICENSE_FILES := file://COPYING;md5=d84d659a35c666d23233e54503aaea51
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# cmake
> +#
> +HIREDIS_CONF_TOOL := cmake
> +
> +HIREDIS_CONF_OPT := \
> + $(CROSS_CMAKE_USR) \
> + -DDISABLE_TESTS=ON \
> + -DENABLE_SSL=OFF
> +
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/hiredis.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, hiredis)
> + @$(call install_fixup, hiredis,PRIORITY,optional)
> + @$(call install_fixup, hiredis,SECTION,base)
> + @$(call install_fixup, hiredis,AUTHOR,"Clemens Gruber <clemens.gruber@pqgruber.com>")
> + @$(call install_fixup, hiredis,DESCRIPTION,"Minimalistic C client for Redis")
> +
> + @$(call install_lib, hiredis, 0, 0, 0644, libhiredis)
> + @$(call install_link, hiredis, libhiredis.so.1.0.0, /usr/lib/libhiredis.so)
> +
> + @$(call install_finish, hiredis)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 2.35.1
>
>
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-07 7:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-04 16:50 [ptxdist] [PATCH v2] hiredis: new package Clemens Gruber
2022-02-07 7:40 ` Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox