public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexandru Campeanu" <tiotags1@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: www-servers/hinsightd/
Date: Thu, 29 Apr 2021 07:28:09 +0000 (UTC)	[thread overview]
Message-ID: <1619681238.35125f480a229bdfa738c6c0b7dee924e2d883a5.tiotags1@gentoo> (raw)

commit:     35125f480a229bdfa738c6c0b7dee924e2d883a5
Author:     tiotags <tiotags1 <AT> gmail <DOT> com>
AuthorDate: Thu Apr 29 07:27:18 2021 +0000
Commit:     Alexandru Campeanu <tiotags1 <AT> gmail <DOT> com>
CommitDate: Thu Apr 29 07:27:18 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=35125f48

www-servers/hinsightd: fixed compilation errors

* removed version v0.9.0
* added warnings for old kernels
* removed dep on dev-util/ninja, let sys decide

Closes: https://bugs.gentoo.org/785007
Closes: https://bugs.gentoo.org/784965
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 | 70 ----------------------------
 www-servers/hinsightd/hinsightd-0.9.1.ebuild |  9 +++-
 www-servers/hinsightd/hinsightd-9999.ebuild  |  9 +++-
 4 files changed, 14 insertions(+), 75 deletions(-)

diff --git a/www-servers/hinsightd/Manifest b/www-servers/hinsightd/Manifest
index 37be5d923..e91d4ba71 100644
--- a/www-servers/hinsightd/Manifest
+++ b/www-servers/hinsightd/Manifest
@@ -1,2 +1 @@
-DIST hin9-v0.9.0.tar.gz 65320 BLAKE2B c1348bc5afffa8804494f6ae228f54874d25cc5f40c17ee2a36f23104286f96f5d616cdc3e98de0854cf7d4b18165a2b70600b32f58024b679d213b2156c1f18 SHA512 60a1ff72d1abf57d8f764ebb77ab77f7069b40bfdbb5bb1c95324b366d1052378ffe36198112a595e08238622654a9c1e1d89679924883f8ff42b98ca7cf139e
 DIST hin9-v0.9.1.tar.gz 64851 BLAKE2B ca646af3b2a752f2b0ba2eec983f807d148b302a7a2db627117686dea3d16811829a1f89a3347708c775d8141372dd91ca46c79c32684b9366b703eb7018706e SHA512 175bbb25bd8be5052bcda96b709b33a996945c63f71249750ab11a46bafdb425818437023a882858e34692abc341d99141954ca31f6296383b26f617e76ac11a

diff --git a/www-servers/hinsightd/hinsightd-0.9.0.ebuild b/www-servers/hinsightd/hinsightd-0.9.0.ebuild
deleted file mode 100644
index b81f198f9..000000000
--- a/www-servers/hinsightd/hinsightd-0.9.0.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-1 )
-
-inherit fcaps lua-single systemd
-
-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/v${PV}/hin9-v${PV}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="" #+openssl
-REQUIRED_USE="${LUA_REQUIRED_USE}"
-
-S="${WORKDIR}/hin9-v${PV}"
-
-BDEPEND="
-	dev-util/ninja
-	virtual/pkgconfig
-"
-
-RDEPEND="
-	${LUA_DEPS}
-	acct-user/hinsightd
-	acct-group/hinsightd
-	sys-libs/liburing
-	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
-}

diff --git a/www-servers/hinsightd/hinsightd-0.9.1.ebuild b/www-servers/hinsightd/hinsightd-0.9.1.ebuild
index 924a614e4..a7e45d693 100644
--- a/www-servers/hinsightd/hinsightd-0.9.1.ebuild
+++ b/www-servers/hinsightd/hinsightd-0.9.1.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 LUA_COMPAT=( lua5-{1..4} )
 
-inherit fcaps lua-single systemd cmake
+inherit fcaps lua-single systemd cmake linux-info
 
 DESCRIPTION="hinsightd a http/1.1 webserver with (hopefully) minimal goals"
 HOMEPAGE="https://gitlab.com/tiotags/hin9"
@@ -26,7 +26,6 @@ IUSE="+openssl"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 BDEPEND="
-	dev-util/ninja
 	dev-util/cmake
 	virtual/pkgconfig
 "
@@ -73,4 +72,10 @@ src_install() {
 
 pkg_postinst() {
 	fcaps CAP_NET_BIND_SERVICE /usr/bin/hinsightd
+
+	if kernel_is lt 5 7; then
+		ewarn ""
+		ewarn "hinsightd requires io_uring and kernel ~5.6.0"
+		ewarn ""
+	fi
 }

diff --git a/www-servers/hinsightd/hinsightd-9999.ebuild b/www-servers/hinsightd/hinsightd-9999.ebuild
index 924a614e4..a7e45d693 100644
--- a/www-servers/hinsightd/hinsightd-9999.ebuild
+++ b/www-servers/hinsightd/hinsightd-9999.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 LUA_COMPAT=( lua5-{1..4} )
 
-inherit fcaps lua-single systemd cmake
+inherit fcaps lua-single systemd cmake linux-info
 
 DESCRIPTION="hinsightd a http/1.1 webserver with (hopefully) minimal goals"
 HOMEPAGE="https://gitlab.com/tiotags/hin9"
@@ -26,7 +26,6 @@ IUSE="+openssl"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 BDEPEND="
-	dev-util/ninja
 	dev-util/cmake
 	virtual/pkgconfig
 "
@@ -73,4 +72,10 @@ src_install() {
 
 pkg_postinst() {
 	fcaps CAP_NET_BIND_SERVICE /usr/bin/hinsightd
+
+	if kernel_is lt 5 7; then
+		ewarn ""
+		ewarn "hinsightd requires io_uring and kernel ~5.6.0"
+		ewarn ""
+	fi
 }


             reply	other threads:[~2021-04-29  7:28 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29  7:28 Alexandru Campeanu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-11-18 16:05 [gentoo-commits] repo/proj/guru:dev commit in: www-servers/hinsightd/ Alexandru Campeanu
2022-11-01 14:50 Alexandru Campeanu
2022-08-28  9:28 Alexandru Campeanu
2022-08-27  6:57 Alexandru Campeanu
2022-08-24 18:52 Alexandru Campeanu
2022-08-22 17:25 Alexandru Campeanu
2022-08-17  8:04 Alexandru Campeanu
2022-08-04  9:52 Alexandru Campeanu
2022-07-27 16:15 Alexandru Campeanu
2022-04-26 10:06 Alexandru Campeanu
2022-04-20 19:02 Alexandru Campeanu
2021-12-16 19:32 Alexandru Campeanu
2021-09-20 16:47 Alexandru Campeanu
2021-09-20  9:41 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-09-20  9:41 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-09-10 10:09 Alexandru Campeanu
2021-08-31  9:05 Alexandru Campeanu
2021-08-30  8:22 Alexandru Campeanu
2021-08-17 10:14 Alexandru Campeanu
2021-08-11 19:18 Alexandru Campeanu
2021-07-28 11:06 Alexandru Campeanu
2021-04-29 19:05 Alexandru Campeanu
2021-04-23 12:25 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-04-23 12:16 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-04-23  7:23 Alexandru Campeanu
2021-04-22 18:07 Alexandru Campeanu
2021-04-22  7:35 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-04-22  7:16 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-04-21 18:55 Alexandru Campeanu
2021-04-21  9:21 Alexandru Campeanu
2021-04-21  9:21 Alexandru Campeanu
2021-04-18  7:07 Alexandru Campeanu
2021-04-17 21:10 Alexandru Campeanu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1619681238.35125f480a229bdfa738c6c0b7dee924e2d883a5.tiotags1@gentoo \
    --to=tiotags1@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox