commit:     b1349123aa8262d56069a350b766e03813c2becb
Author:     tiotags <tiotags1 <AT> gmail <DOT> com>
AuthorDate: Wed Apr 21 08:49:23 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Apr 21 08:49:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b1349123

www-servers/hinsightd: added ebuild 0.9.0

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alexandru Campeanu <tiotags1 <AT> gmail.com>

 www-servers/hinsightd/Manifest               |  1 +
 www-servers/hinsightd/hinsightd-0.9.0.ebuild | 64 ++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/www-servers/hinsightd/Manifest b/www-servers/hinsightd/Manifest
new file mode 100644
index 000000000..61940dc50
--- /dev/null
+++ b/www-servers/hinsightd/Manifest
@@ -0,0 +1 @@
+DIST hin9-v0.9.0.tar.gz 65320 BLAKE2B 
c1348bc5afffa8804494f6ae228f54874d25cc5f40c17ee2a36f23104286f96f5d616cdc3e98de0854cf7d4b18165a2b70600b32f58024b679d213b2156c1f18
 SHA512 
60a1ff72d1abf57d8f764ebb77ab77f7069b40bfdbb5bb1c95324b366d1052378ffe36198112a595e08238622654a9c1e1d89679924883f8ff42b98ca7cf139e

diff --git a/www-servers/hinsightd/hinsightd-0.9.0.ebuild 
b/www-servers/hinsightd/hinsightd-0.9.0.ebuild
new file mode 100644
index 000000000..1a48c1f94
--- /dev/null
+++ b/www-servers/hinsightd/hinsightd-0.9.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} )
+
+inherit fcaps
+
+DESCRIPTION="hinsightd a http/1.1 webserver with (hopefully) minimal goals"
+HOMEPAGE="https://gitlab.com/tiotags/hin9";
+SRC_URI="https://gitlab.com/tiotags/hin9/-/archive/v0.9.0/hin9-v0.9.0.tar.gz";
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE="" #+openssl
+
+BDEPEND="
+dev-util/ninja
+"
+
+RDEPEND="
+acct-user/hinsightd
+acct-group/hinsightd
+sys-libs/liburing
+dev-lang/lua:*
+sys-libs/zlib
+dev-libs/openssl
+"
+
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+"${FILESDIR}/hinsightd-redefine-directories.patch"
+)
+
+#src_configure() {
+#}
+
+src_compile() {
+       cd build
+       ninja || die
+}
+
+src_install() {
+       newbin "${S}/build/hin9" hinsightd
+       newinitd "${FILESDIR}/init.d.sh" hinsightd
+       #systemd_dounit "${FILESDIR}/hinsightd.service" # not tested
+
+       insinto /etc/hinsightd
+       newins "${S}/workdir/main.lua" hinsightd.lua
+
+       # logrotate
+       insinto /etc/logrotate.d
+       newins "${FILESDIR}"/logrotate.d.sh hinsightd
+
+       keepdir /var/www/localhost/htdocs
+       keepdir /var/log/hinsightd
+       keepdir /var/tmp/hinsightd
+}
+
+pkg_postinst() {
+       fcaps CAP_NET_BIND_SERVICE /usr/bin/hinsightd
+}

Reply via email to