FreeBSD Bugzilla – Attachment 151560 Details for
Bug 196612
[NEW PORT] net/gen_utp: Erlang API and driver for uTP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar, v1
gen_utp.shar (text/plain), 5.02 KB, created by
Jan Beich
on 2015-01-13 14:01:28 UTC
(
hide
)
Description:
shar, v1
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2015-01-13 14:01:28 UTC
Size:
5.02 KB
patch
obsolete
>#!/bin/sh ># This is a shell archive >echo x net/gen_utp >mkdir -p net/gen_utp > /dev/null 2>&1 >echo x net/gen_utp/Makefile >sed 's/^X//' > net/gen_utp/Makefile << 'SHAR_END' >X# $FreeBSD$ >X >XPORTNAME= gen_utp >XPORTVERSION= 0.20130610 >XCATEGORIES= net >X >XMAINTAINER= jbeich@vfemail.net >XCOMMENT= Erlang API and driver for uTP >X >XLICENSE= APACHE20 >X >XBUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang \ >X rebar:${PORTSDIR}/devel/rebar >XLIB_DEPENDS= libutp.so:${PORTSDIR}/net/libutp >XRUN_DEPENDS= erl:${PORTSDIR}/lang/erlang >X >XUSE_GITHUB= yes >XGH_ACCOUNT= basho-labs >XGH_TAGNAME= ${GH_COMMIT} >XGH_COMMIT= 63dd017 >X >XCFLAGS+= -I${LOCALBASE}/include >XLDFLAGS+= -L${LOCALBASE}/lib >XEMODULEDIR= lib/erlang/lib/${DISTNAME} >XPLIST_SUB= EMODULEDIR="${EMODULEDIR}" >XPORTDOCS= * >X >XOPTIONS_DEFINE= TEST >X >XTEST_ALL_TARGET=test >X >Xpost-patch: >X ${REINPLACE_CMD} -e 's,rebar,& -v ${_MAKE_JOBS},' \ >X ${WRKSRC}/Makefile >X >Xdo-install: >X ${MKDIR} ${STAGEDIR}${PREFIX}/${EMODULEDIR} >X ${TAR} cf - -C${WRKSRC} ebin priv src | \ >X ${TAR} xof - -C${STAGEDIR}${PREFIX}/${EMODULEDIR} >X ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${EMODULEDIR}/priv/utpdrv.so >X ${MKDIR} ${STAGEDIR}${DOCSDIR} >X ${INSTALL_DATA} ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR} >X >X.include <bsd.port.mk> >SHAR_END >echo x net/gen_utp/pkg-plist >sed 's/^X//' > net/gen_utp/pkg-plist << 'SHAR_END' >X%%EMODULEDIR%%/ebin/gen_utp.app >X%%EMODULEDIR%%/ebin/gen_utp.beam >X%%EMODULEDIR%%/ebin/gen_utp_app.beam >X%%EMODULEDIR%%/ebin/gen_utp_opts.beam >X%%EMODULEDIR%%/ebin/gen_utp_sup.beam >X%%EMODULEDIR%%/priv/utpdrv.so >X%%EMODULEDIR%%/src/gen_utp.app.src >X%%EMODULEDIR%%/src/gen_utp.erl >X%%EMODULEDIR%%/src/gen_utp_app.erl >X%%EMODULEDIR%%/src/gen_utp_opts.erl >X%%EMODULEDIR%%/src/gen_utp_opts.hrl >X%%EMODULEDIR%%/src/gen_utp_sup.erl >SHAR_END >echo x net/gen_utp/distinfo >sed 's/^X//' > net/gen_utp/distinfo << 'SHAR_END' >XSHA256 (gen_utp-0.20130610.tar.gz) = 4cf6868f8f26c9231578a41b2ea1b9b2900a40631fda254a72b367e16d94a8c7 >XSIZE (gen_utp-0.20130610.tar.gz) = 109100 >SHAR_END >echo x net/gen_utp/pkg-descr >sed 's/^X//' > net/gen_utp/pkg-descr << 'SHAR_END' >Xgen_utp provides an API and driver for uTP (Micro Transport Protocol), >Xsimilar to gen_tcp and gen_udp. It attempts to provide a TCP-like API >Xwith "listen", "accept", and "connect" calls, but due to the nature of >Xthe underlying libutp library the semantics are not identical. >X >XWWW: https://github.com/basho-labs/gen_utp >SHAR_END >echo x net/gen_utp/files >mkdir -p net/gen_utp/files > /dev/null 2>&1 >echo x net/gen_utp/files/patch-gcc >sed 's/^X//' > net/gen_utp/files/patch-gcc << 'SHAR_END' >X--- c_src/coder.cc~ >X+++ c_src/coder.cc >X@@ -21,6 +21,7 @@ >X // ------------------------------------------------------------------- >X >X #include <stdexcept> >X+#include <cstring> >X #include "coder.h" >X >X >X--- c_src/drv_types.cc~ >X+++ c_src/drv_types.cc >X@@ -20,6 +20,7 @@ >X // >X // ------------------------------------------------------------------- >X >X+#include <cstring> >X #include "drv_types.h" >X >X >X--- c_src/socket_handler.cc~ >X+++ c_src/socket_handler.cc >X@@ -23,6 +23,7 @@ >X #include <unistd.h> >X #include <fcntl.h> >X #include <stdexcept> >X+#include <cstring> >X #include "socket_handler.h" >X #include "main_handler.h" >X #include "globals.h" >X--- c_src/utils.cc~ >X+++ c_src/utils.cc >X@@ -21,6 +21,7 @@ >X // ------------------------------------------------------------------- >X >X #include <unistd.h> >X+#include <cstring> >X #include "utils.h" >X #include "coder.h" >X #include "globals.h" >X--- c_src/utp_handler.cc~ >X+++ c_src/utp_handler.cc >X@@ -21,6 +21,7 @@ >X // ------------------------------------------------------------------- >X >X #include <string> >X+#include <cstring> >X #include "utp_handler.h" >X #include "locker.h" >X #include "globals.h" >X--- c_src/write_queue.cc~ >X+++ c_src/write_queue.cc >X@@ -20,6 +20,7 @@ >X // >X // ------------------------------------------------------------------- >X >X+#include <cstring> >X #include "write_queue.h" >X >X >SHAR_END >echo x net/gen_utp/files/patch-rebar.config >sed 's/^X//' > net/gen_utp/files/patch-rebar.config << 'SHAR_END' >X--- rebar.config~ >X+++ rebar.config >X@@ -4,12 +4,9 @@ >X {port_specs, [{"priv/utpdrv.so", ["c_src/*.cc"]}]}. >X >X {port_env, [ >X- {"DRV_CFLAGS", "$DRV_CFLAGS -Werror -I c_src -D_REENTRANT -O3"}, >X- {"DRV_LDFLAGS", "$DRV_LDFLAGS -O3 -lstdc++ c_src/libutp/libutp.a"} >X+ {"CC", "$CXX"}, >X+ {"DRV_CFLAGS", "$DRV_CFLAGS -Werror -I c_src -D_REENTRANT"}, >X+ {"DRV_LDFLAGS", "$DRV_LDFLAGS -lutp"} >X ]}. >X >X-{pre_hooks, [{compile, "c_src/build_deps.sh"}]}. >X- >X-{post_hooks, [{clean, "c_src/build_deps.sh clean"}]}. >X- >X {cover_enabled, true}. >SHAR_END >echo x net/gen_utp/files/patch-libc++ >sed 's/^X//' > net/gen_utp/files/patch-libc++ << 'SHAR_END' >X--- c_src/main_handler.h~ >X+++ c_src/main_handler.h >X@@ -73,7 +73,7 @@ private: >X >X struct MonCompare { >X bool >X- operator()(const ErlDrvMonitor& m1, const ErlDrvMonitor& m2) { >X+ operator()(const ErlDrvMonitor& m1, const ErlDrvMonitor& m2) const { >X return driver_compare_monitors(&m1, &m2) < 0; >X } >X }; >SHAR_END >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 196612
: 151560 |
151561
|
151562