summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Gurr Timo <tgurr@exherbo.org> 2017-09-13 17:02:04 +0200
committerAvatar Timo Gurr <tgurr@exherbo.org> 2017-09-13 17:16:06 +0200
commit691fa1f3fbbf9ea3e07ea7096f331f4b30cbb6d4 (patch)
tree01402d6c7ee415526f0dd562e99fd786458ca643
parenta847c4aa061d2d50ba7f0a28b450b7dad8cec8fa (diff)
downloadnet-691fa1f3fbbf9ea3e07ea7096f331f4b30cbb6d4.tar.gz
net-691fa1f3fbbf9ea3e07ea7096f331f4b30cbb6d4.tar.xz
libcoap: initial exheres
Change-Id: I1ef8952d020d5878e7f61c4d1c27a3c2d8ba8e93 Reviewed-on: https://galileo.mailstation.de/gerrit/10050 Reviewed-by: Jenkins <wk@mailstation.de> Reviewed-by: Timo Gurr <tgurr@exherbo.org>
-rw-r--r--packages/net-libs/libcoap/files/libcoap-make-install.patch26
-rw-r--r--packages/net-libs/libcoap/libcoap-4.1.2_p20170418.exheres-042
2 files changed, 68 insertions, 0 deletions
diff --git a/packages/net-libs/libcoap/files/libcoap-make-install.patch b/packages/net-libs/libcoap/files/libcoap-make-install.patch
new file mode 100644
index 0000000..a136169
--- /dev/null
+++ b/packages/net-libs/libcoap/files/libcoap-make-install.patch
@@ -0,0 +1,26 @@
+Source: Arch Linux, https://aur.archlinux.org/cgit/aur.git/tree/automakehack.patch?h=libcoap-dtls-git
+Upstream: No
+Reason: Fix make install
+
+diff --git a/ext/tinydtls/Makefile.in b/ext/tinydtls/Makefile.in
+index 932919c..1cf7b82 100644
+--- a/ext/tinydtls/Makefile.in
++++ b/ext/tinydtls/Makefile.in
+@@ -104,12 +104,12 @@ dist: $(FILES) $(DISTSUBDIRS)
+ tar czf $(package).tar.gz $(DISTDIR)
+
+ install: $(LIB) $(HEADERS) $(SUBDIRS)
+- test -d $(libdir) || mkdir -p $(libdir)
+- test -d $(includedir) || mkdir -p $(includedir)
+- $(install) $(LIB) $(libdir)/
+- $(install) $(HEADERS) $(includedir)/
++ test -d $(DESTDIR)/$(libdir) || mkdir -p $(DESTDIR)/$(libdir)
++ test -d $(DESTDIR)/$(includedir) || mkdir -p $(DESTDIR)/$(includedir)
++ $(install) $(LIB) $(DESTDIR)/$(libdir)/
++ $(install) $(HEADERS) $(DESTDIR)/$(includedir)/
+ for dir in $(SUBDIRS); do \
+- $(MAKE) -C $$dir install="$(install)" includedir=$(includedir) install; \
++ $(MAKE) -C $$dir install="$(install)" includedir=$(DESTDIR)/$(includedir) install; \
+ done
+
+ TAGS:
diff --git a/packages/net-libs/libcoap/libcoap-4.1.2_p20170418.exheres-0 b/packages/net-libs/libcoap/libcoap-4.1.2_p20170418.exheres-0
new file mode 100644
index 0000000..cc95ebb
--- /dev/null
+++ b/packages/net-libs/libcoap/libcoap-4.1.2_p20170418.exheres-0
@@ -0,0 +1,42 @@
+# Copyright 2017 Timo Gurr <tgurr@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+SCM_REPOSITORY="https://github.com/obgm/libcoap.git"
+SCM_BRANCH="dtls"
+SCM_REVISION="25863042ae1e95138776f65c772f9fa6ce60495c"
+SCM_SECONDARY_REPOSITORIES="tinydtls"
+SCM_EXTERNAL_REFS="ext/tinydtls:tinydtls"
+SCM_tinydtls_REPOSITORY="http://git.eclipse.org/gitroot/tinydtls/org.eclipse.tinydtls.git"
+SCM_tinydtls_REVISION="cc5863fa0e438ba1fa46c05f2a27cd8dd3d85b96"
+
+require scm-git autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
+
+SUMMARY="C implementation of IETF Constrained Application Protocol (RFC 7252)"
+HOMEPAGE="https://github.com/obgm/libcoap https://git.eclipse.org/c/tinydtls/org.eclipse.tinydtls.git"
+DOWNLOADS=""
+
+LICENCES="
+ BSD-2
+ EDL-1.0 [[ note = [ tinydtls ] ]]
+ EPL-1.0 [[ note = [ tinydtls ] ]]
+ GPL-2
+"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS=""
+
+DEPENDENCIES=""
+
+DEFAULT_SRC_PREPARE_PATCHES=(
+ "${FILES}"/${PN}-make-install.patch
+)
+
+DEFAULT_SRC_CONFIGURE_PARAMS=(
+ --enable-dtls
+ --enable-examples
+ --disable-documentation
+ --disable-shared # fails to link otherwise
+ --disable-tests
+ --without-debug
+)
+