mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] libcoap2: new package
@ 2021-03-08 13:18 Alexander Dahl
  2021-03-14 13:35 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dahl @ 2021-03-08 13:18 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl, Alexander Aring

From: Alexander Dahl <ada@thorsis.com>

This package comes with a new API for libcoap, with different .so
version and separate header files, and can coexist with the old libcoap
package.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
Cc: Alexander Aring <alex.aring@gmail.com>

Notes:
    
    There are no packages depending on the old libcoap package in mainline
    ptxdist, so we might as well update that.  Debian has two different
    packages, too.  That's why I was somewhat unsure what would be best
    here, updating or putting a new package side by side?  I need the
    package with the new API, so I could also just update the old package
    with this newer stuff, if that's what folks want.  Please let me know!

 patches/libcoap2-4.2.1/autogen.sh |  1 +
 rules/libcoap2.in                 | 16 +++++++++
 rules/libcoap2.make               | 74 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 91 insertions(+)
 create mode 120000 patches/libcoap2-4.2.1/autogen.sh
 create mode 100644 rules/libcoap2.in
 create mode 100644 rules/libcoap2.make

diff --git a/patches/libcoap2-4.2.1/autogen.sh b/patches/libcoap2-4.2.1/autogen.sh
new file mode 120000
index 000000000..9f8a4cb7d
--- /dev/null
+++ b/patches/libcoap2-4.2.1/autogen.sh
@@ -0,0 +1 @@
+../autogen.sh
\ No newline at end of file
diff --git a/rules/libcoap2.in b/rules/libcoap2.in
new file mode 100644
index 000000000..d47928a06
--- /dev/null
+++ b/rules/libcoap2.in
@@ -0,0 +1,16 @@
+## SECTION=networking
+
+config LIBCOAP2
+	tristate
+	prompt "libcoap2"
+	help
+	  libcoap implements a lightweight application-protocol for
+	  devices that are constrained their resources such as computing
+	  power, RF range, memory, bandwith, or network packet sizes.
+
+	  The Constrained Application Protocol (CoAP) was standardized
+	  in the Internet Engineering Task Force (IETF) as RFC 7252.
+
+	  https://libcoap.net/
+
+# vim: ft=kconfig noet tw=72 ts=8 sw=8
diff --git a/rules/libcoap2.make b/rules/libcoap2.make
new file mode 100644
index 000000000..4fac12205
--- /dev/null
+++ b/rules/libcoap2.make
@@ -0,0 +1,74 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Alexander Dahl <ada@thorsis.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBCOAP2) += libcoap2
+
+#
+# Paths and names
+#
+LIBCOAP2_VERSION	:= 4.2.1
+LIBCOAP2_MD5		:= ddd35fed3b44e20d6d456c9901334dae
+LIBCOAP2		:= libcoap2-$(LIBCOAP2_VERSION)
+LIBCOAP2_SUFFIX		:= tar.gz
+LIBCOAP2_URL		:= https://github.com/obgm/libcoap/archive/v$(LIBCOAP2_VERSION).$(LIBCOAP2_SUFFIX)
+LIBCOAP2_SOURCE		:= $(SRCDIR)/$(LIBCOAP2).$(LIBCOAP2_SUFFIX)
+LIBCOAP2_DIR		:= $(BUILDDIR)/$(LIBCOAP2)
+LIBCOAP2_LICENSE	:= BSD-2-Clause AND BSD-1-Clause
+LIBCOAP2_LICENSE_FILES	:= \
+	file://COPYING;md5=faed8f005d476edd3f250599a4bb9a75 \
+	file://LICENSE;md5=4cba1bd050d08b2154b5c29de3a0e9c2 \
+	file://include/coap2/uthash.h;startline=2;endline=21;md5=cd2b3441e2540a602f09fa4f0438d82b \
+	file://include/coap2/utlist.h;startline=2;endline=21;md5=b9b2b4f775f0f5b7901f008940efe5cf
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+LIBCOAP2_CONF_TOOL	:= autoconf
+LIBCOAP2_CONF_OPT	:=  \
+	$(CROSS_AUTOCONF_USR) \
+	--disable-assert \
+	--disable-documentation \
+	--disable-doxygen \
+	--disable-manpages \
+	--disable-dtls \
+	--disable-tests \
+	--disable-examples \
+	--disable-gcov \
+	--disable-small-stack \
+	--without-gnutls \
+	--without-openssl \
+	--without-tinydtls \
+	--with-epoll
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libcoap2.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, libcoap2)
+	@$(call install_fixup, libcoap2,PRIORITY,optional)
+	@$(call install_fixup, libcoap2,SECTION,base)
+	@$(call install_fixup, libcoap2,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
+	@$(call install_fixup, libcoap2,DESCRIPTION,missing)
+
+	@$(call install_lib, libcoap2, 0, 0, 0644, libcoap-2)
+
+	@$(call install_finish, libcoap2)
+
+	@$(call touch)
+
+# vim: ft=make noet tw=72 ts=8 sw=8
-- 
2.11.0


_______________________________________________
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] [APPLIED] libcoap2: new package
  2021-03-08 13:18 [ptxdist] [PATCH] libcoap2: new package Alexander Dahl
@ 2021-03-14 13:35 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-03-14 13:35 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

Thanks, applied as 8eaf58901d1329b8939910f18db0bed29a06ef42.

Michael

[sent from post-receive hook]

On Sun, 14 Mar 2021 14:35:39 +0100, Alexander Dahl <post@lespocky.de> wrote:
> This package comes with a new API for libcoap, with different .so
> version and separate header files, and can coexist with the old libcoap
> package.
> 
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20210308131845.12024-1-post@lespocky.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/patches/libcoap2-4.2.1/autogen.sh b/patches/libcoap2-4.2.1/autogen.sh
> new file mode 120000
> index 000000000000..9f8a4cb7ddcb
> --- /dev/null
> +++ b/patches/libcoap2-4.2.1/autogen.sh
> @@ -0,0 +1 @@
> +../autogen.sh
> \ No newline at end of file
> diff --git a/rules/libcoap2.in b/rules/libcoap2.in
> new file mode 100644
> index 000000000000..d47928a06034
> --- /dev/null
> +++ b/rules/libcoap2.in
> @@ -0,0 +1,16 @@
> +## SECTION=networking
> +
> +config LIBCOAP2
> +	tristate
> +	prompt "libcoap2"
> +	help
> +	  libcoap implements a lightweight application-protocol for
> +	  devices that are constrained their resources such as computing
> +	  power, RF range, memory, bandwith, or network packet sizes.
> +
> +	  The Constrained Application Protocol (CoAP) was standardized
> +	  in the Internet Engineering Task Force (IETF) as RFC 7252.
> +
> +	  https://libcoap.net/
> +
> +# vim: ft=kconfig noet tw=72 ts=8 sw=8
> diff --git a/rules/libcoap2.make b/rules/libcoap2.make
> new file mode 100644
> index 000000000000..4fac1220588e
> --- /dev/null
> +++ b/rules/libcoap2.make
> @@ -0,0 +1,74 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Alexander Dahl <ada@thorsis.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_LIBCOAP2) += libcoap2
> +
> +#
> +# Paths and names
> +#
> +LIBCOAP2_VERSION	:= 4.2.1
> +LIBCOAP2_MD5		:= ddd35fed3b44e20d6d456c9901334dae
> +LIBCOAP2		:= libcoap2-$(LIBCOAP2_VERSION)
> +LIBCOAP2_SUFFIX		:= tar.gz
> +LIBCOAP2_URL		:= https://github.com/obgm/libcoap/archive/v$(LIBCOAP2_VERSION).$(LIBCOAP2_SUFFIX)
> +LIBCOAP2_SOURCE		:= $(SRCDIR)/$(LIBCOAP2).$(LIBCOAP2_SUFFIX)
> +LIBCOAP2_DIR		:= $(BUILDDIR)/$(LIBCOAP2)
> +LIBCOAP2_LICENSE	:= BSD-2-Clause AND BSD-1-Clause
> +LIBCOAP2_LICENSE_FILES	:= \
> +	file://COPYING;md5=faed8f005d476edd3f250599a4bb9a75 \
> +	file://LICENSE;md5=4cba1bd050d08b2154b5c29de3a0e9c2 \
> +	file://include/coap2/uthash.h;startline=2;endline=21;md5=cd2b3441e2540a602f09fa4f0438d82b \
> +	file://include/coap2/utlist.h;startline=2;endline=21;md5=b9b2b4f775f0f5b7901f008940efe5cf
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +LIBCOAP2_CONF_TOOL	:= autoconf
> +LIBCOAP2_CONF_OPT	:=  \
> +	$(CROSS_AUTOCONF_USR) \
> +	--disable-assert \
> +	--disable-documentation \
> +	--disable-doxygen \
> +	--disable-manpages \
> +	--disable-dtls \
> +	--disable-tests \
> +	--disable-examples \
> +	--disable-gcov \
> +	--disable-small-stack \
> +	--without-gnutls \
> +	--without-openssl \
> +	--without-tinydtls \
> +	--with-epoll
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/libcoap2.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, libcoap2)
> +	@$(call install_fixup, libcoap2,PRIORITY,optional)
> +	@$(call install_fixup, libcoap2,SECTION,base)
> +	@$(call install_fixup, libcoap2,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
> +	@$(call install_fixup, libcoap2,DESCRIPTION,missing)
> +
> +	@$(call install_lib, libcoap2, 0, 0, 0644, libcoap-2)
> +
> +	@$(call install_finish, libcoap2)
> +
> +	@$(call touch)
> +
> +# vim: ft=make noet tw=72 ts=8 sw=8

_______________________________________________
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:[~2021-03-14 13:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-08 13:18 [ptxdist] [PATCH] libcoap2: new package Alexander Dahl
2021-03-14 13:35 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox