pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/kore



Module Name:    pkgsrc
Committed By:   fcambus
Date:           Thu Aug 22 13:30:31 UTC 2019

Added Files:
        pkgsrc/www/kore: DESCR Makefile PLIST distinfo options.mk
        pkgsrc/www/kore/patches: patch-Makefile patch-kodev_Makefile

Log Message:
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@


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/www/kore/DESCR pkgsrc/www/kore/Makefile \
    pkgsrc/www/kore/PLIST pkgsrc/www/kore/distinfo pkgsrc/www/kore/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/www/kore/patches/patch-Makefile \
    pkgsrc/www/kore/patches/patch-kodev_Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/www/kore/DESCR
diff -u /dev/null pkgsrc/www/kore/DESCR:1.1
--- /dev/null   Thu Aug 22 13:30:31 2019
+++ pkgsrc/www/kore/DESCR       Thu Aug 22 13:30:31 2019
@@ -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.
Index: pkgsrc/www/kore/Makefile
diff -u /dev/null pkgsrc/www/kore/Makefile:1.1
--- /dev/null   Thu Aug 22 13:30:31 2019
+++ pkgsrc/www/kore/Makefile    Thu Aug 22 13:30:31 2019
@@ -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"
Index: pkgsrc/www/kore/PLIST
diff -u /dev/null pkgsrc/www/kore/PLIST:1.1
--- /dev/null   Thu Aug 22 13:30:31 2019
+++ pkgsrc/www/kore/PLIST       Thu Aug 22 13:30:31 2019
@@ -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
Index: pkgsrc/www/kore/distinfo
diff -u /dev/null pkgsrc/www/kore/distinfo:1.1
--- /dev/null   Thu Aug 22 13:30:31 2019
+++ pkgsrc/www/kore/distinfo    Thu Aug 22 13:30:31 2019
@@ -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
Index: pkgsrc/www/kore/options.mk
diff -u /dev/null pkgsrc/www/kore/options.mk:1.1
--- /dev/null   Thu Aug 22 13:30:31 2019
+++ pkgsrc/www/kore/options.mk  Thu Aug 22 13:30:31 2019
@@ -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

Index: pkgsrc/www/kore/patches/patch-Makefile
diff -u /dev/null pkgsrc/www/kore/patches/patch-Makefile:1.1
--- /dev/null   Thu Aug 22 13:30:31 2019
+++ pkgsrc/www/kore/patches/patch-Makefile      Thu Aug 22 13:30:31 2019
@@ -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:
Index: pkgsrc/www/kore/patches/patch-kodev_Makefile
diff -u /dev/null pkgsrc/www/kore/patches/patch-kodev_Makefile:1.1
--- /dev/null   Thu Aug 22 13:30:31 2019
+++ pkgsrc/www/kore/patches/patch-kodev_Makefile        Thu Aug 22 13:30:31 2019
@@ -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