Date: Sat, 23 Feb 2019 17:36:08 +0000 (UTC) From: "Tobias C. Berner" <tcberner@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r493721 - in head/net: . libcoap libcoap/files Message-ID: <201902231736.x1NHa8TI071168@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tcberner Date: Sat Feb 23 17:36:07 2019 New Revision: 493721 URL: https://svnweb.freebsd.org/changeset/ports/493721 Log: New port: net/libcoap -- A CoAP (RFC 7252) implementation in C libcoap is a C implementation of a lightweight application-protocol for devices that are constrained their resources such as computing power, RF range, memory, bandwidth, or network packet sizes. This protocol, CoAP, is standardized by the IETF as RFC 7252. For further information related to CoAP, see http://coap.technology. WWW: https://github.com/obgm/libcoap Added: head/net/libcoap/ head/net/libcoap/Makefile (contents, props changed) head/net/libcoap/distinfo (contents, props changed) head/net/libcoap/files/ head/net/libcoap/files/patch-configure.ac (contents, props changed) head/net/libcoap/files/patch-doc_Makefile.am (contents, props changed) head/net/libcoap/pkg-descr (contents, props changed) head/net/libcoap/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Sat Feb 23 17:35:07 2019 (r493720) +++ head/net/Makefile Sat Feb 23 17:36:07 2019 (r493721) @@ -361,6 +361,7 @@ SUBDIR += libbgpdump SUBDIR += libcapn SUBDIR += libcmis + SUBDIR += libcoap SUBDIR += libdmapsharing SUBDIR += libdnet SUBDIR += libexosip2 Added: head/net/libcoap/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcoap/Makefile Sat Feb 23 17:36:07 2019 (r493721) @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= libcoap +DISTVERSIONPREFIX= v +DISTVERSION= 4.2.0-rc4 +CATEGORIES= net + +MAINTAINER= tcberner@FreeBSD.org +COMMENT= C implementation of the Constrained Application Protocol + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= a2x:textproc/asciidoc +LIB_DEPENDS= libgnutls.so:security/gnutls + +USES= autoreconf gmake libtool pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= obgm + +GNU_CONFIGURE= yes + +OPTIONS_DEFINE= DOCS DOXYGEN +OPTIONS_DEFAULT= DOXYGEN +PORTDOCS= * + +DOXYGEN_IMPLIES= DOCS +DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ + dot:graphics/graphviz +DOXYGEN_CONFIGURE_ENABLE= doxygen + +INSTALL_TARGET= install-strip + +.include <bsd.port.mk> Added: head/net/libcoap/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcoap/distinfo Sat Feb 23 17:36:07 2019 (r493721) @@ -0,0 +1,3 @@ +TIMESTAMP = 1550938917 +SHA256 (obgm-libcoap-v4.2.0-rc4_GH0.tar.gz) = 8aa70c11fb1f1f443a9565c855f98027a50e8e0040310da86933770193e73b24 +SIZE (obgm-libcoap-v4.2.0-rc4_GH0.tar.gz) = 320596 Added: head/net/libcoap/files/patch-configure.ac ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcoap/files/patch-configure.ac Sat Feb 23 17:36:07 2019 (r493721) @@ -0,0 +1,11 @@ +--- configure.ac.orig 2019-02-23 16:30:54 UTC ++++ configure.ac +@@ -616,7 +616,7 @@ case $host in + #AC_SUBST(OS_MACOS) + ;; + +- *-freebsd1*) ++ *freebsd*) + AC_MSG_RESULT([FreeBSD-1x]) + ADDITIONAL_CFLAGS="-D_GNU_SOURCE" + ;; Added: head/net/libcoap/files/patch-doc_Makefile.am ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcoap/files/patch-doc_Makefile.am Sat Feb 23 17:36:07 2019 (r493721) @@ -0,0 +1,33 @@ +--- doc/Makefile.am.orig 2019-02-23 16:40:11 UTC ++++ doc/Makefile.am +@@ -68,8 +68,8 @@ man-page-build: man-page-start + echo ' <tab type="user" visible="yes" url="@ref deprecated" title="Deprecated Items" intro=""/>' >> $(top_builddir)/doc/insert_file ;\ + ## Create and Update the DoxygenLayout.xml file + $(DOXYGEN) -l ;\ +- $(SED) -i 's/<tab type="pages" visible="yes" /<tab type="pages" visible="no" /g' $(top_builddir)/doc/DoxygenLayout.xml ;\ +- $(SED) -i '/<tab type="examples" visible=.*/r insert_file' $(top_builddir)/doc/DoxygenLayout.xml ;\ ++ $(SED) -i '' 's/<tab type="pages" visible="yes" /<tab type="pages" visible="no" /g' $(top_builddir)/doc/DoxygenLayout.xml ;\ ++ $(SED) -i '' '/<tab type="examples" visible=.*/r insert_file' $(top_builddir)/doc/DoxygenLayout.xml ;\ + $(RM) $(top_builddir)/doc/insert_file ;\ + ## Fix up man html files, fixing links, UC Name and Synopsis + for FILE in $${MAN_FILES} ; do \ +@@ -77,8 +77,8 @@ man-page-build: man-page-start + if [ -f $(top_builddir)/man/$${BASE}.html ]; then \ + cp -f $(top_builddir)/man/$${BASE}.html $(top_builddir)/doc/man_html/$${BASE}.html ;\ + ## Correct case sensitive Name and Synopsis +- $(SED) -i 's^<h2>Name</h2>^<h2>NAME</h2>^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\ +- $(SED) -i 's^<h2>Synopsis</h2>^<h2>SYNOPSIS</h2>^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\ ++ $(SED) -i '' 's^<h2>Name</h2>^<h2>NAME</h2>^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\ ++ $(SED) -i '' 's^<h2>Synopsis</h2>^<h2>SYNOPSIS</h2>^g' $(top_builddir)/doc/man_html/$${BASE}.html ;\ + else \ + echo "ERROR: $(top_builddir)/man/$${BASE}.html not found!";\ + exit 1 ;\ +@@ -87,7 +87,7 @@ man-page-build: man-page-start + EBASE=`basename $${ENTRY} | cut -d . -f1` ;\ + MANUAL=`egrep -B 1 "^====" $${ENTRY} | head -1` ;\ + SECTION=`echo $${MANUAL} | cut -d\( -f2 | cut -d\) -f1` ;\ +- $(SED) -i "s^<span class=\"strong\"><strong>$${EBASE}</strong></span>($${SECTION})^<a href=\"man_$${EBASE}.html\" target=\"_self\"><span class=\"strong\"><strong>$${EBASE}</strong></span>($${SECTION})</a>^g" $(top_builddir)/doc/man_html/$${BASE}.html ;\ ++ $(SED) -i '' "s^<span class=\"strong\"><strong>$${EBASE}</strong></span>($${SECTION})^<a href=\"man_$${EBASE}.html\" target=\"_self\"><span class=\"strong\"><strong>$${EBASE}</strong></span>($${SECTION})</a>^g" $(top_builddir)/doc/man_html/$${BASE}.html ;\ + done ;\ + echo "finalized addition $${BASE}.html" ;\ + done Added: head/net/libcoap/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcoap/pkg-descr Sat Feb 23 17:36:07 2019 (r493721) @@ -0,0 +1,9 @@ +libcoap is a C implementation of a lightweight application-protocol for devices +that are constrained their resources such as computing power, RF range, memory, +bandwidth, or network packet sizes. This protocol, CoAP, is standardized by the +IETF as RFC 7252. For further information related to CoAP, see +http://coap.technology. + +You might want to check out libcoap-minimal for usage examples. + +WWW: https://github.com/obgm/libcoap Added: head/net/libcoap/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcoap/pkg-plist Sat Feb 23 17:36:07 2019 (r493721) @@ -0,0 +1,119 @@ +bin/coap-client +bin/coap-rd +bin/coap-server +include/coap2/address.h +include/coap2/async.h +include/coap2/bits.h +include/coap2/block.h +include/coap2/coap.h +include/coap2/coap_debug.h +include/coap2/coap_dtls.h +include/coap2/coap_event.h +include/coap2/coap_hashkey.h +include/coap2/coap_io.h +include/coap2/coap_session.h +include/coap2/coap_time.h +include/coap2/encode.h +include/coap2/libcoap.h +include/coap2/mem.h +include/coap2/net.h +include/coap2/option.h +include/coap2/pdu.h +include/coap2/prng.h +include/coap2/resource.h +include/coap2/str.h +include/coap2/subscribe.h +include/coap2/uri.h +include/coap2/uthash.h +lib/libcoap-2-gnutls.a +lib/libcoap-2-gnutls.so +lib/libcoap-2-gnutls.so.0 +lib/libcoap-2-gnutls.so.0.1.0 +libdata/pkgconfig/libcoap-2-gnutls.pc +man/man3/coap_add_attr.3.gz +man/man3/coap_add_data.3.gz +man/man3/coap_add_data_blocked_response.3.gz +man/man3/coap_add_option.3.gz +man/man3/coap_add_optlist_pdu.3.gz +man/man3/coap_add_resource.3.gz +man/man3/coap_add_token.3.gz +man/man3/coap_attribute.3.gz +man/man3/coap_context.3.gz +man/man3/coap_context_set_pki.3.gz +man/man3/coap_context_set_pki_root_cas.3.gz +man/man3/coap_context_set_psk.3.gz +man/man3/coap_debug_set_packet_loss.3.gz +man/man3/coap_delete_all_resources.3.gz +man/man3/coap_delete_observer.3.gz +man/man3/coap_delete_observers.3.gz +man/man3/coap_delete_optlist.3.gz +man/man3/coap_delete_resource.3.gz +man/man3/coap_dtls_is_supported.3.gz +man/man3/coap_dtls_pki_t.3.gz +man/man3/coap_encode_var_bytes.3.gz +man/man3/coap_encryption.3.gz +man/man3/coap_endpoint_set_default_mtu.3.gz +man/man3/coap_endpoint_str.3.gz +man/man3/coap_find_attr.3.gz +man/man3/coap_find_observer.3.gz +man/man3/coap_free_context.3.gz +man/man3/coap_free_endpoint.3.gz +man/man3/coap_get_log_level.3.gz +man/man3/coap_get_tls_library_version.3.gz +man/man3/coap_handler.3.gz +man/man3/coap_insert_optlist.3.gz +man/man3/coap_log.3.gz +man/man3/coap_logging.3.gz +man/man3/coap_new_client_session.3.gz +man/man3/coap_new_client_session_pki.3.gz +man/man3/coap_new_client_session_psk.3.gz +man/man3/coap_new_context.3.gz +man/man3/coap_new_endpoint.3.gz +man/man3/coap_new_optlist.3.gz +man/man3/coap_observe.3.gz +man/man3/coap_package_name.3.gz +man/man3/coap_package_version.3.gz +man/man3/coap_pdu_init.3.gz +man/man3/coap_pdu_setup.3.gz +man/man3/coap_recovery.3.gz +man/man3/coap_register_event_handler.3.gz +man/man3/coap_register_handler.3.gz +man/man3/coap_register_nack_handler.3.gz +man/man3/coap_register_ping_handler.3.gz +man/man3/coap_register_pong_handler.3.gz +man/man3/coap_register_response_handler.3.gz +man/man3/coap_resource.3.gz +man/man3/coap_resource_get_uri_path.3.gz +man/man3/coap_resource_init.3.gz +man/man3/coap_resource_notify_observers.3.gz +man/man3/coap_resource_set_get_observable.3.gz +man/man3/coap_resource_set_mode.3.gz +man/man3/coap_resource_unknown_init.3.gz +man/man3/coap_session.3.gz +man/man3/coap_session_get_ack_random_factor.3.gz +man/man3/coap_session_get_ack_timeout.3.gz +man/man3/coap_session_get_app_data.3.gz +man/man3/coap_session_get_max_transmit.3.gz +man/man3/coap_session_max_pdu_size.3.gz +man/man3/coap_session_reference.3.gz +man/man3/coap_session_release.3.gz +man/man3/coap_session_set_ack_random_factor.3.gz +man/man3/coap_session_set_ack_timeout.3.gz +man/man3/coap_session_set_app_data.3.gz +man/man3/coap_session_set_max_retransmit.3.gz +man/man3/coap_session_set_mtu.3.gz +man/man3/coap_session_str.3.gz +man/man3/coap_set_log_handler.3.gz +man/man3/coap_set_log_level.3.gz +man/man3/coap_set_show_pdu_output.3.gz +man/man3/coap_show_pdu.3.gz +man/man3/coap_show_tls_version.3.gz +man/man3/coap_split_path.3.gz +man/man3/coap_split_query.3.gz +man/man3/coap_string_tls_version.3.gz +man/man3/coap_tls_is_supported.3.gz +man/man3/coap_tls_library.3.gz +man/man5/coap-client.5.gz +man/man5/coap-rd.5.gz +man/man5/coap-server.5.gz +man/man7/coap.7.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902231736.x1NHa8TI071168>