From f10ea6c2d520cc0826f0c47bba6dd03e7d5d0656 Mon Sep 17 00:00:00 2001 From: fcambus Date: Thu, 22 Aug 2019 13:30:31 +0000 Subject: www/kore: import kore-3.3.1. Kore is an easy to use web application framework for writing scalable web APIs in C. Its main goals are security, scalability and allowing rapid development and deployment of such APIs. Because of this Kore is an ideal candidate for building robust, scalable and secure web things. OK kamil@ --- www/kore/DESCR | 6 +++++ www/kore/Makefile | 20 +++++++++++++++ www/kore/PLIST | 13 ++++++++++ www/kore/distinfo | 8 ++++++ www/kore/options.mk | 18 ++++++++++++++ www/kore/patches/patch-Makefile | 46 +++++++++++++++++++++++++++++++++++ www/kore/patches/patch-kodev_Makefile | 34 ++++++++++++++++++++++++++ 7 files changed, 145 insertions(+) create mode 100644 www/kore/DESCR create mode 100644 www/kore/Makefile create mode 100644 www/kore/PLIST create mode 100644 www/kore/distinfo create mode 100644 www/kore/options.mk create mode 100644 www/kore/patches/patch-Makefile create mode 100644 www/kore/patches/patch-kodev_Makefile diff --git a/www/kore/DESCR b/www/kore/DESCR new file mode 100644 index 00000000000..f61ef099d3a --- /dev/null +++ b/www/kore/DESCR @@ -0,0 +1,6 @@ +Kore is an easy to use web application framework for writing scalable +web APIs in C. + +Its main goals are security, scalability and allowing rapid development +and deployment of such APIs. Because of this Kore is an ideal candidate +for building robust, scalable and secure web things. diff --git a/www/kore/Makefile b/www/kore/Makefile new file mode 100644 index 00000000000..ec9bf30f89b --- /dev/null +++ b/www/kore/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2019/08/22 13:30:31 fcambus Exp $ + +DISTNAME= kore-3.3.1 +CATEGORIES= www +MASTER_SITES= https://kore.io/releases/ + +MAINTAINER= fcambus@NetBSD.org +HOMEPAGE= https://kore.io/ +COMMENT= Web application framework for writing scalable web APIs in C +LICENSE= isc + +USE_LANGUAGES= c99 +USE_TOOLS+= gmake + +MAKE_FLAGS+= MAN_DIR="${PREFIX}/${PKGMANDIR}" +MAKE_FLAGS+= TASKS=1 + +.include "options.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/www/kore/PLIST b/www/kore/PLIST new file mode 100644 index 00000000000..3bebc3e10c2 --- /dev/null +++ b/www/kore/PLIST @@ -0,0 +1,13 @@ +@comment $NetBSD: PLIST,v 1.1 2019/08/22 13:30:31 fcambus Exp $ +bin/kodev +bin/kore +include/kore/curl.h +include/kore/http.h +include/kore/jsonrpc.h +include/kore/kore.h +include/kore/pgsql.h +include/kore/python_api.h +include/kore/python_methods.h +include/kore/tasks.h +man/man1/kodev.1 +share/kore/features diff --git a/www/kore/distinfo b/www/kore/distinfo new file mode 100644 index 00000000000..903b6a8a5c5 --- /dev/null +++ b/www/kore/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1 2019/08/22 13:30:31 fcambus Exp $ + +SHA1 (kore-3.3.1.tar.gz) = 6f1caa21cbedda8b9757bc3d363bf8389ecb47fc +RMD160 (kore-3.3.1.tar.gz) = 706efbac47e047427ed50d6e55f709c52626850b +SHA512 (kore-3.3.1.tar.gz) = a6641632fdd125948379884920e5804f428650644b25c757adaace86a286b69ff62947ba85601f9851abbacd697e6fd9385c37c1b2571e55a3f23b15e33a4750 +Size (kore-3.3.1.tar.gz) = 1009866 bytes +SHA1 (patch-Makefile) = 585cf7936d69b486391a44c88e10b6db1d8ec0ca +SHA1 (patch-kodev_Makefile) = a5366d2879f59f27302b08d33f50620698ff5654 diff --git a/www/kore/options.mk b/www/kore/options.mk new file mode 100644 index 00000000000..9c9a3b2a1ba --- /dev/null +++ b/www/kore/options.mk @@ -0,0 +1,18 @@ +# $NetBSD: options.mk,v 1.1 2019/08/22 13:30:31 fcambus Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.kore +PKG_SUPPORTED_OPTIONS= curl debug + +.include "../../mk/bsd.options.mk" + +# Compile in asynchronous curl support +.if !empty(PKG_OPTIONS:Mcurl) +. include "../../www/curl/buildlink3.mk" +MAKE_FLAGS+= CURL=1 +USE_TOOLS+= pkg-config +.endif + +# Enable use of -d for debug +.if !empty(PKG_OPTIONS:Mdebug) +MAKE_FLAGS+= DEBUG=1 +.endif diff --git a/www/kore/patches/patch-Makefile b/www/kore/patches/patch-Makefile new file mode 100644 index 00000000000..9eb802506dd --- /dev/null +++ b/www/kore/patches/patch-Makefile @@ -0,0 +1,46 @@ +$NetBSD: patch-Makefile,v 1.1 2019/08/22 13:30:31 fcambus Exp $ + +Adapt install target for pkgsrc. + +--- Makefile.orig 2019-06-03 13:29:24.000000000 +0000 ++++ Makefile +@@ -1,6 +1,7 @@ + # Kore Makefile + + CC?=cc ++DESTDIR?= + PREFIX?=/usr/local + OBJDIR?=obj + KORE=kore +@@ -46,8 +47,6 @@ endif + + ifneq ("$(NOOPT)", "") + CFLAGS+=-O0 +-else +- CFLAGS+=-O2 + endif + + ifneq ("$(NOSENDFILE)", "") +@@ -176,14 +175,14 @@ $(OBJDIR): + @mkdir -p $(OBJDIR) + + install: +- mkdir -p $(SHARE_DIR) +- mkdir -p $(INCLUDE_DIR) +- mkdir -p $(INSTALL_DIR) +- mkdir -p $(MAN_DIR)/man1 +- install -m 644 share/man/kodev.1 $(MAN_DIR)/man1/kodev.1 +- install -m 555 $(KORE) $(INSTALL_DIR)/$(KORE) +- install -m 644 kore.features $(SHARE_DIR)/features +- install -m 644 include/kore/*.h $(INCLUDE_DIR) ++ mkdir -p $(DESTDIR)$(SHARE_DIR) ++ mkdir -p $(DESTDIR)$(INCLUDE_DIR) ++ mkdir -p $(DESTDIR)$(INSTALL_DIR) ++ mkdir -p $(DESTDIR)$(MAN_DIR)/man1 ++ install -m 644 share/man/kodev.1 $(DESTDIR)$(MAN_DIR)/man1/kodev.1 ++ install -m 555 $(KORE) $(DESTDIR)$(INSTALL_DIR)/$(KORE) ++ install -m 644 kore.features $(DESTDIR)$(SHARE_DIR)/features ++ install -m 644 include/kore/*.h $(DESTDIR)$(INCLUDE_DIR) + $(MAKE) -C kodev install + + uninstall: diff --git a/www/kore/patches/patch-kodev_Makefile b/www/kore/patches/patch-kodev_Makefile new file mode 100644 index 00000000000..b44af93385c --- /dev/null +++ b/www/kore/patches/patch-kodev_Makefile @@ -0,0 +1,34 @@ +$NetBSD: patch-kodev_Makefile,v 1.1 2019/08/22 13:30:31 fcambus Exp $ + +Adapt install target for pkgsrc. + +--- kodev/Makefile.orig 2019-06-03 13:29:24.000000000 +0000 ++++ kodev/Makefile +@@ -4,6 +4,7 @@ CC?=cc + PREFIX?=/usr/local + OBJDIR?=obj + KODEV=kodev ++DESTDIR?= + INSTALL_DIR=$(PREFIX)/bin + + S_SRC= ../src/cli.c +@@ -16,8 +17,6 @@ LDFLAGS=-lcrypto + + ifneq ("$(NOOPT)", "") + CFLAGS+=-O0 +-else +- CFLAGS+=-O2 + endif + + OSNAME=$(shell uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z) +@@ -37,8 +36,8 @@ $(OBJDIR): + @mkdir -p $(OBJDIR) + + install: $(KODEV) +- mkdir -p $(INSTALL_DIR) +- install -m 555 $(KODEV) $(INSTALL_DIR)/$(KODEV) ++ mkdir -p $(DESTDIR)$(INSTALL_DIR) ++ install -m 555 $(KODEV) $(DESTDIR)$(INSTALL_DIR)/$(KODEV) + + uninstall: + rm -f $(INSTALL_DIR)/$(KODEV) -- cgit v1.2.3