summaryrefslogtreecommitdiff
path: root/www-servers
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-20 04:17:09 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-20 04:17:09 +0100
commit388a0747e5972613060d5ca13955b5cd7132533d (patch)
tree428632822fc3fccc6f83e13091c09d6c19ad51bc /www-servers
parent89da5c5ac79849bb6d8b087cb9c1e554187bd59c (diff)
gentoo auto-resync : 20:05:2023 - 04:17:09
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/Manifest.gzbin4550 -> 4719 bytes
-rw-r--r--www-servers/kore/Manifest5
-rw-r--r--www-servers/kore/files/kore-4.2.3-kodev-makefile.patch22
-rw-r--r--www-servers/kore/files/kore-4.2.3-makefile.patch34
-rw-r--r--www-servers/kore/kore-4.2.3.ebuild68
-rw-r--r--www-servers/kore/metadata.xml27
6 files changed, 156 insertions, 0 deletions
diff --git a/www-servers/Manifest.gz b/www-servers/Manifest.gz
index 43587e95c402..f7c1c52d18fb 100644
--- a/www-servers/Manifest.gz
+++ b/www-servers/Manifest.gz
Binary files differ
diff --git a/www-servers/kore/Manifest b/www-servers/kore/Manifest
new file mode 100644
index 000000000000..2ded09a888d8
--- /dev/null
+++ b/www-servers/kore/Manifest
@@ -0,0 +1,5 @@
+AUX kore-4.2.3-kodev-makefile.patch 529 BLAKE2B 4dafc09c8a436d0d0abbd3bccdf052eae24e1b8ae7b9ae544b23da7a59a97c84138df30e8a83fa3d7d76eb6c696ba4c03b7d3486ed2996b01260d48848feb899 SHA512 d52bb5c8cc42a95662db40df12ef125cf2b831c921baf62bcfd1de147b64b2d3bd15c3418d0e16499951e7300bc011a632500b6a219903b895e49d9cac7f57b9
+AUX kore-4.2.3-makefile.patch 903 BLAKE2B caad7288496eba92761e12edeb392cdacf10d094f062eee51b14d48abda50ff63b3012fc76007677bebf83cc188f0d863452871f978f89c80d78309b0c008391 SHA512 3ed48c7f7e4fcfa7e0504e196fb96419738c887d2e4cc207475995b7d43efd1c3ce1e6c543010203a963e9f4c596171da3b8eac9a63a5fd3c7b89a45d272fd5a
+DIST kore-4.2.3.tar.gz 1085717 BLAKE2B 1c12c6974ea5997d776efcf490728bf4f90c978d4547bd1c608549d97a544fb0f45e8cd58aab6730999c267a85807d5eb3a04fdcf16817df122992f339c3f05d SHA512 7ed5eb116da190640605d40c757bf49d503d2d866fc7effe9ad658f84f12aec671ec5935677767dd9721b686b61e278b16d8b4360c2fe9ea1eb57068746f52b1
+EBUILD kore-4.2.3.ebuild 1684 BLAKE2B ff7e65e73c00d03ec84da6208de7132b1e66eab94240f78c179a3d3f6f90d3ecc2f94782789971e4d6f1c3856ddd80f0a2bd6d07e5b6f7bd6865b11d273e8a18 SHA512 e4d0f15df40cf4989a059ff7bf2ccc33715d4b7a2e1fb1196467e38bac2856e19252867565f6a7fcd41cb343aaa04e0a166d73c84d03493e5f2e9faf5286c1c8
+MISC metadata.xml 1071 BLAKE2B 24a48485b3078b620685daf46b2a223553a4060aaa5f7e02d6ca577650b467c016fa364338c8f553eda98720e5051eec8a39080cb89991b9c646370d34b09f62 SHA512 d66b2a5048264df46c89115352a3973697a09bf3321f02d00e75c41c07ddbdd79424191ef3cd41080737a3d15e0e11b335aa079154cb58e76915622391519284
diff --git a/www-servers/kore/files/kore-4.2.3-kodev-makefile.patch b/www-servers/kore/files/kore-4.2.3-kodev-makefile.patch
new file mode 100644
index 000000000000..e1e0fe1fd75e
--- /dev/null
+++ b/www-servers/kore/files/kore-4.2.3-kodev-makefile.patch
@@ -0,0 +1,22 @@
+--- a/kodev/Makefile
++++ b/kodev/Makefile
+@@ -9,16 +9,16 @@ INSTALL_DIR=$(PREFIX)/bin
+
+ S_SRC= ../src/cli.c
+
+-CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
++CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes
+ CFLAGS+=-Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual
+ CFLAGS+=-Wsign-compare -Iincludes -std=c99 -pedantic
+ CFLAGS+=-DPREFIX='"$(PREFIX)"'
+-LDFLAGS=-lcrypto
++LDFLAGS+=-lcrypto
+
+ ifneq ("$(NOOPT)", "")
+ CFLAGS+=-O0
+ else
+- CFLAGS+=-O2
++ CFLAGS+=
+ endif
+
+ ifneq ("$(MINIMAL)", "")
diff --git a/www-servers/kore/files/kore-4.2.3-makefile.patch b/www-servers/kore/files/kore-4.2.3-makefile.patch
new file mode 100644
index 000000000000..e8a94f8aecab
--- /dev/null
+++ b/www-servers/kore/files/kore-4.2.3-makefile.patch
@@ -0,0 +1,34 @@
+--- a/Makefile
++++ b/Makefile
+@@ -31,11 +31,11 @@ S_SRC+= src/tls_$(TLS_BACKEND).c
+ FEATURES=
+ FEATURES_INC=
+
+-CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
++CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes
+ CFLAGS+=-Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual
+ CFLAGS+=-Wsign-compare -Iinclude/kore -I$(OBJDIR) -std=c99 -pedantic
+ CFLAGS+=-Wtype-limits -fno-common
+-CFLAGS+=-DPREFIX='"$(PREFIX)"' -fstack-protector-all
++CFLAGS+=-DPREFIX='"$(PREFIX)"'
+
+ LDFLAGS+=-rdynamic
+
+@@ -69,7 +69,7 @@ endif
+ ifneq ("$(NOOPT)", "")
+ CFLAGS+=-O0
+ else
+- CFLAGS+=-O2
++ CFLAGS+=
+ endif
+
+ ifneq ("$(NOSENDFILE)", "")
+@@ -155,7 +155,7 @@ ifeq ("$(OSNAME)", "darwin")
+ endif
+ S_SRC+=src/bsd.c
+ else ifeq ("$(OSNAME)", "linux")
+- CFLAGS+=-D_GNU_SOURCE=1 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
++ CFLAGS+=-D_GNU_SOURCE=1
+ LDFLAGS+=-ldl
+ S_SRC+=src/linux.c src/seccomp.c
+ else
diff --git a/www-servers/kore/kore-4.2.3.ebuild b/www-servers/kore/kore-4.2.3.ebuild
new file mode 100644
index 000000000000..53ae2d4c25fb
--- /dev/null
+++ b/www-servers/kore/kore-4.2.3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Web application platform for writing scalable, concurrent web based processes"
+HOMEPAGE="https://kore.io/
+ https://github.com/jorisvink/kore/"
+
+if [[ ${PV} == *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://git.kore.io/kore.git"
+else
+ SRC_URI="https://kore.io/releases/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="ISC"
+SLOT="0"
+IUSE="+acme +curl debug +http +json +openssl postgres +threads"
+REQUIRED_USE="acme? ( curl openssl )"
+
+RDEPEND="
+ curl? ( net-misc/curl:= )
+ json? ( dev-libs/yajl:= )
+ openssl? ( dev-libs/openssl:= )
+ postgres? ( dev-db/postgresql:= )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.2.3-makefile.patch
+ "${FILESDIR}"/${PN}-4.2.3-kodev-makefile.patch
+)
+
+DOCS=( README.md )
+
+src_prepare() {
+ default
+
+ sed -i 's|-Werror||g' kodev/Makefile tools/kore-serve/conf/build.conf || die
+}
+
+src_compile() {
+ tc-export CC
+
+ # See https://github.com/jorisvink/kore#building-kore
+ env ACME=$(usex acme 1 '') \
+ CURL=$(usex curl 1 '') \
+ DEBUG=$(usex debug 1 '') \
+ JSONRPC=$(usex json 1 '') \
+ NOHTTP=$(usex http '' 1) \
+ PGSQL=$(usex postgres 1 '') \
+ TASKS=$(usex threads 1 '') \
+ TLS_BACKEND=$(usex openssl openssl none) \
+ CFLAGS="${CFLAGS} ${LDFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ PREFIX=/usr \
+ emake
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install
+
+ einstalldocs
+}
diff --git a/www-servers/kore/metadata.xml b/www-servers/kore/metadata.xml
new file mode 100644
index 000000000000..17985b84f511
--- /dev/null
+++ b/www-servers/kore/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xgqt@gentoo.org</email>
+ <name>Maciej Barć</name>
+ </maintainer>
+ <longdescription>
+ Kore is a web application platform for writing scalable, concurrent web
+ based processes. It is built with a "secure by default" approach. It is
+ fully privilege separated while using strong security features at the
+ operating system level such as seccomp, pledge, unveil and more. Today Kore
+ is used in a variety of applications ranging from high assurance
+ cryptographic devices, machine-learning stacks and even in the aerospace
+ industry.
+ </longdescription>
+ <use>
+ <flag name="acme">Add support for ACME</flag>
+ <flag name="http">Add support for HTTP</flag>
+ <flag name="json">Add support for JSONRPC</flag>
+ <flag name="openssl">Use the openssl TLS backend</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">jorisvink/kore</remote-id>
+ </upstream>
+</pkgmetadata>