pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/kore www/kore: import kore-3.3.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e94c96a901b9
branches:  trunk
changeset: 338311:e94c96a901b9
user:      fcambus <fcambus%pkgsrc.org@localhost>
date:      Thu Aug 22 13:30:31 2019 +0000

description:
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@

diffstat:

 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(+), 0 deletions(-)

diffs (173 lines):

diff -r f6686f69d2b5 -r e94c96a901b9 www/kore/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/kore/DESCR    Thu Aug 22 13:30:31 2019 +0000
@@ -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 -r f6686f69d2b5 -r e94c96a901b9 www/kore/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/kore/Makefile Thu Aug 22 13:30:31 2019 +0000
@@ -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@localhost
+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 -r f6686f69d2b5 -r e94c96a901b9 www/kore/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/kore/PLIST    Thu Aug 22 13:30:31 2019 +0000
@@ -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 -r f6686f69d2b5 -r e94c96a901b9 www/kore/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/kore/distinfo Thu Aug 22 13:30:31 2019 +0000
@@ -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 -r f6686f69d2b5 -r e94c96a901b9 www/kore/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/kore/options.mk       Thu Aug 22 13:30:31 2019 +0000
@@ -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 -r f6686f69d2b5 -r e94c96a901b9 www/kore/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/kore/patches/patch-Makefile   Thu Aug 22 13:30:31 2019 +0000
@@ -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 -r f6686f69d2b5 -r e94c96a901b9 www/kore/patches/patch-kodev_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/kore/patches/patch-kodev_Makefile     Thu Aug 22 13:30:31 2019 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index