FreeBSD Bugzilla – Attachment 174391 Details for
Bug 211603
[NEW PORT] devel/kore: Web application framework for writing web APIs in C
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
kore.shar
kore.shar (text/plain), 12.48 KB, created by
Tobias Kortkamp
on 2016-09-05 19:12:33 UTC
(
hide
)
Description:
kore.shar
Filename:
MIME Type:
Creator:
Tobias Kortkamp
Created:
2016-09-05 19:12:33 UTC
Size:
12.48 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># kore ># kore/pkg-plist ># kore/files ># kore/files/patch-src_pgsql.c ># kore/files/patch-src_bsd.c ># kore/files/patch-src_cli.c ># kore/pkg-descr ># kore/Makefile ># kore/distinfo ># >echo c - kore >mkdir -p kore > /dev/null 2>&1 >echo x - kore/pkg-plist >sed 's/^X//' >kore/pkg-plist << '8e03c9c68047ec71c4def49e930f1376' >Xbin/kore >Xinclude/kore/http.h >Xinclude/kore/jsonrpc.h >Xinclude/kore/kore.h >Xinclude/kore/pgsql.h >Xinclude/kore/tasks.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cpp/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cpp/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cpp/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cpp/conf/cpp.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cpp/dh2048.pem >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cpp/src/cpp.cpp >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cpp/src/example_class.cpp >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cpp/src/example_class.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/generic/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/generic/assets/index.html >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/generic/assets/intro.jpg >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/generic/assets/params.html >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/generic/assets/private.html >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/generic/assets/private_test.html >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/generic/assets/style.css >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/generic/assets/upload.html >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/generic/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/generic/conf/generic.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/generic/src/example.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/headers/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/headers/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/headers/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/headers/conf/headers.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/headers/src/headers.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/integers/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/integers/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/integers/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/integers/conf/integers.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/integers/src/check_integers.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/json_yajl/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/json_yajl/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/json_yajl/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/json_yajl/conf/json_yajl.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/json_yajl/src/json_yajl.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/jsonrpc/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/jsonrpc/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/jsonrpc/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/jsonrpc/conf/jsonrpc.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/jsonrpc/src/home.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/jsonrpc/src/v1.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/jsonrpc/test/integ/jsonrpc.bats >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/kore.conf.example >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ktunnel/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ktunnel/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ktunnel/client/Makefile >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ktunnel/client/client.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ktunnel/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ktunnel/conf/ktunnel.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ktunnel/src/ktunnel.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/messaging/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/messaging/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/messaging/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/messaging/conf/messaging.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/messaging/src/messaging.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nohttp/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nohttp/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nohttp/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nohttp/conf/nohttp.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nohttp/src/nohttp.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parameters/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parameters/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parameters/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parameters/conf/parameters.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parameters/src/parameters.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgsql-sync/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgsql-sync/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgsql-sync/conf/pgsql-sync.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgsql-sync/src/pgsql-sync.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgsql/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgsql/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgsql/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgsql/conf/pgsql.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgsql/src/pgsql.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pipe_task/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pipe_task/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pipe_task/assets/frontend.html >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pipe_task/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pipe_task/conf/pipe_task.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pipe_task/src/pipe_task.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sse/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sse/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sse/assets/index.html >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sse/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sse/conf/sse.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sse/src/sse.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tasks/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tasks/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tasks/conf/tasks.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tasks/src/tasks.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tls-proxy/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tls-proxy/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tls-proxy/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tls-proxy/conf/tls-proxy.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tls-proxy/src/proxy.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/upload/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/upload/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/upload/conf/upload.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/upload/src/upload.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/video_stream/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/video_stream/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/video_stream/assets/video.html >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/video_stream/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/video_stream/conf/video_stream.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/video_stream/src/stream.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/video_stream/videos/placeholder >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/websocket/.gitignore >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/websocket/README.md >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/websocket/assets/frontend.html >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/websocket/conf/build.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/websocket/conf/websocket.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/websocket/src/websocket.c >8e03c9c68047ec71c4def49e930f1376 >echo c - kore/files >mkdir -p kore/files > /dev/null 2>&1 >echo x - kore/files/patch-src_pgsql.c >sed 's/^X//' >kore/files/patch-src_pgsql.c << '45b161d0dbe495d5376b394eb2e446fc' >XBackport of https://github.com/jorisvink/kore/commit/c071d64bdddacbe1b69d238e14994d666a86f7cf >Xso compiling on FreeBSD 10.x/i386 succeeds. Without it the build will fail with: >X >Xsrc/pgsql.c:222:6: error: variable 'args' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] >X if (count > 0) >X ^~~~~~~~~ >Xsrc/pgsql.c:225:63: note: uninitialized use occurs here >X ret = kore_pgsql_v_query_params(pgsql, query, result, count, args); >X ^~~~ >Xsrc/pgsql.c:222:2: note: remove the 'if' if its condition is always true >X if (count > 0) >X ^~~~~~~~~~~~~~ >Xsrc/pgsql.c:220:15: note: initialize the variable 'args' to silence this warning >X va_list args; >X ^ >X = NULL >X1 error generated. >X >X--- src/pgsql.c.orig 2016-08-01 07:59:32 UTC >X+++ src/pgsql.c >X@@ -219,13 +219,11 @@ kore_pgsql_query_params(struct kore_pgsq >X int ret; >X va_list args; >X >X- if (count > 0) >X- va_start(args, count); >X+ va_start(args, count); >X >X ret = kore_pgsql_v_query_params(pgsql, query, result, count, args); >X >X- if (count > 0) >X- va_end(args); >X+ va_end(args); >X >X return (ret); >X } >45b161d0dbe495d5376b394eb2e446fc >echo x - kore/files/patch-src_bsd.c >sed 's/^X//' >kore/files/patch-src_bsd.c << '17ebb80257faf6cfd934f49b0753d51f' >XNeeded for building on FreeBSD 9.x. Once FreeBSD 9 support ends this >Xpatch can be removed. >X >Xcc1: warnings being treated as errors >Xsrc/bsd.c: In function 'kore_platform_worker_setcpu': >Xsrc/bsd.c:65: warning: declaration of 'cpuset' shadows a global declaration >X/usr/include/sys/cpuset.h:131: warning: shadowed declaration is here >X >X--- src/bsd.c.orig 2016-08-01 07:59:32 UTC >X+++ src/bsd.c >X@@ -62,12 +62,12 @@ void >X kore_platform_worker_setcpu(struct kore_worker *kw) >X { >X #if defined(__FreeBSD_version) >X- cpuset_t cpuset; >X+ cpuset_t cpuset1; >X >X- CPU_ZERO(&cpuset); >X- CPU_SET(kw->cpu, &cpuset); >X+ CPU_ZERO(&cpuset1); >X+ CPU_SET(kw->cpu, &cpuset1); >X if (cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, >X- -1, sizeof(cpuset), &cpuset) == -1) { >X+ -1, sizeof(cpuset1), &cpuset1) == -1) { >X fatal("failed: %s", errno_s); >X } >X >17ebb80257faf6cfd934f49b0753d51f >echo x - kore/files/patch-src_cli.c >sed 's/^X//' >kore/files/patch-src_cli.c << '400bd4473b5a11b1eda297a052a54737' >X--- src/cli.c.orig 2016-08-01 07:59:32 UTC >X+++ src/cli.c >X@@ -267,9 +267,9 @@ static int s_fd = -1; >X static char *appl = NULL; >X static int run_after = 0; >X static char *rootdir = NULL; >X-static char *compiler_c = "gcc"; >X-static char *compiler_cpp = "g++"; >X-static char *compiler_ld = "gcc"; >X+static char *compiler_c = "cc"; >X+static char *compiler_cpp = "c++"; >X+static char *compiler_ld = "cc"; >X static struct cfile_list source_files; >X static struct buildopt_list build_options; >X static int source_files_count; >400bd4473b5a11b1eda297a052a54737 >echo x - kore/pkg-descr >sed 's/^X//' >kore/pkg-descr << 'f980da5fa0e9b41e83f485b611c44969' >XKore is an easy to use web application framework for writing scalable >Xweb APIs in C. Its main goals are security, scalability and allowing >Xrapid development and deployment of such APIs. >X >XBecause of this Kore is an ideal candidate for building robust, >Xscalable and secure web things. >X >XWWW: http://www.kore.io/ >f980da5fa0e9b41e83f485b611c44969 >echo x - kore/Makefile >sed 's/^X//' >kore/Makefile << '59c383200b7a34eb22e3cca58e24f11f' >X# Created by: Tobias Kortkamp <t@tobik.me> >X# $FreeBSD$ >X >XPORTNAME= kore >XPORTVERSION= 2.0.0 >XDISTVERSIONSUFFIX= -release >XCATEGORIES= devel www >X >XMAINTAINER= t@tobik.me >XCOMMENT= Web application framework for writing web APIs in C >X >XLICENSE= ISCL >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XUSES= gmake >X >XUSE_GITHUB= yes >XGH_ACCOUNT= jorisvink >X >XMAKE_ARGS= INSTALL_DIR="${STAGEDIR}${PREFIX}/bin" \ >X INCLUDE_DIR="${STAGEDIR}${PREFIX}/include/kore" >X >XOPTIONS_DEFINE= DEBUG HTTP JSONRPC PGSQL TASKS TLS >XOPTIONS_DEFAULT= HTTP JSONRPC PGSQL TASKS TLS >X >XHTTP_DESC= Build with HTTP support >XJSONRPC_DESC= Build with JSON-RPC support >XTASKS_DESC= Build with tasks support >X >XTASKS_VARS= MAKE_ARGS+=TASKS=1 >X >XPGSQL_IMPLIES= HTTP >XPGSQL_VARS= MAKE_ARGS+=PGSQL=1 >XPGSQL_USES= pgsql >X >XTLS_VARS_OFF= MAKE_ARGS+=NOTLS=1 >XTLS_USES= ssl >X >XHTTP_VARS_OFF= MAKE_ARGS+=NOHTTP=1 >X# If TLS=off and HTTP=on kore will still link with libcrypto, so add >X# an OpenSSL dependency here. >XHTTP_USES= ssl >X >XJSONRPC_IMPLIES= HTTP >XJSONRPC_VARS= MAKE_ARGS+=JSONRPC=1 >XJSONRPC_LIB_DEPENDS= libyajl.so:devel/yajl >X >XDEBUG_VARS= MAKE_ARGS+=DEBUG=1 >X >X.include <bsd.port.pre.mk> >X >X.if ${SSL_DEFAULT} == base >XBROKEN_FreeBSD_9= Base OpenSSL on FreeBSD 9.x is too old >X.endif >X >Xpost-patch: >X# Disable kore's own optimizations flags >X @${REINPLACE_CMD} 's|CFLAGS+=-O|#|g' ${WRKSRC}/Makefile >X# Make sure the correct flags are set when LOCALBASE is not /usr/local >X @${REINPLACE_CMD} 's|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/Makefile >X >Xpre-install: >X ${STRIP_CMD} ${WRKSRC}/kore >X >Xpost-install: >X cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} >X cd ${WRKSRC}/conf && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} >X >X.include <bsd.port.post.mk> >59c383200b7a34eb22e3cca58e24f11f >echo x - kore/distinfo >sed 's/^X//' >kore/distinfo << '7a37e4a608f6b63a678b2bc27d4f8e86' >XTIMESTAMP = 1470351284 >XSHA256 (jorisvink-kore-2.0.0-release_GH0.tar.gz) = e9573a3bd986bc7d91ce3fb8898cb542523d6ed274761281cea72a81963549c1 >XSIZE (jorisvink-kore-2.0.0-release_GH0.tar.gz) = 947440 >7a37e4a608f6b63a678b2bc27d4f8e86 >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
Flags:
tobik
:
maintainer-approval+
Actions:
View
Attachments on
bug 211603
:
173322
|
173323
|
174136
| 174391