www-servers/hinsightd: add 0.9.15_p20220828, drop old

Signed-off-by: Alexandru Campeanu <tiotags1@gmail.com>
This commit is contained in:
Alexandru Campeanu 2022-08-28 12:26:36 +03:00
parent e290051627
commit a2c960b186
No known key found for this signature in database
GPG Key ID: 16C983E4FFB6FBAD
3 changed files with 2 additions and 107 deletions

View File

@ -1,2 +1 @@
DIST hin9-0c584cbe00c2227d4cb29675e8e2da2c6bd57371.tar.gz 116295 BLAKE2B 69c6a9593fa721e113172696523beb39c63385e8fe319687b2e12c9eb8ff91bb63e45e3c33429026e45522d535c6acb305af1dcc8f120d552dab5fcda3d7734c SHA512 9d66c58545b64c66365c74935be8e3988022b1f3902af5bec7996df86f37bf2fdd54fb913826a0bcf5f9f4ba07e30abc5e6573cf8b4c2f11ec67c1917ed7f000
DIST hin9-60ff105ba76746ac8f669616ed3658f7c03c3ab3.tar.gz 116619 BLAKE2B 9e7777c584cc31c853f210e3c4b9306e675fb2501c99239b86fc8b5d925532fba8402b40b9ff43eebafec70457f67f11174e36a7c49aa59483606e19ebdf936e SHA512 e4e6e62b618e0fa845d94a723b4723e230fa03415ad4831bddc0a99f8c262fdca495a8ea6bdb7019e3a97bcf03554fae6f09a2a673e2f3db3e535c5fdc490f4e
DIST hin9-4843c07f40c4ed6ea7b5945b73fa999fb7881564.tar.gz 116931 BLAKE2B c2d2af2b14e465b38dd7c19d0eece7b745b2686ab786b2f6266ac70fd5a94fca2d7da37b672fffcfcdfac9b8940d47089adf04b81a9542e0e52d6d324afc62c8 SHA512 26ec3e1468ba354af4d0a5eb0540fdb80810713700f63ce1fb32c68682b3a39463bc950eee8b1dd7ca103d5623ce3f385b925cc7408a23bdda802adddbb3e2cc

View File

@ -1,104 +0,0 @@
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LUA_COMPAT=( lua5-{1..4} luajit )
inherit fcaps lua-single systemd meson linux-info
DESCRIPTION="hinsightd a http/1.1 webserver with (hopefully) minimal goals"
HOMEPAGE="https://tiotags.gitlab.io/hinsightd"
LICENSE="BSD"
SLOT="0"
mycommit="0c584cbe00c2227d4cb29675e8e2da2c6bd57371"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/tiotags/hin9.git"
elif [[ ! -z "$mycommit" ]]; then
SRC_URI="https://gitlab.com/tiotags/hin9/-/archive/${mycommit}/hin9-${mycommit}.tar.gz"
S="${WORKDIR}/hin9-${mycommit}"
else
SRC_URI="https://gitlab.com/tiotags/hin9/-/archive/v${PV}/hin9-v${PV}.tar.gz"
S="${WORKDIR}/hin9-v${PV}"
fi
if [[ ${PV} != *9999* ]]; then
KEYWORDS="~amd64"
fi
IUSE="+ssl cgi +fcgi +rproxy +ffcall"
REQUIRED_USE="${LUA_REQUIRED_USE}"
BDEPEND="
dev-util/meson
virtual/pkgconfig
"
RDEPEND="
${LUA_DEPS}
acct-user/hinsightd
acct-group/hinsightd
sys-libs/liburing
sys-libs/zlib
virtual/libcrypt
ssl? ( dev-libs/openssl )
ffcall? ( dev-libs/ffcall )
"
DEPEND="${RDEPEND}"
FILECAPS=(
cap_net_bind_service usr/sbin/${PN}
)
pkg_setup() {
linux-info_pkg_setup;
lua-single_pkg_setup
}
src_configure() {
version=$(ver_cut 1-2 $(lua_get_version))
if [ "$version" == "2.1" ]; then
version="jit"
fi
local emesonargs=(
$(meson_use ssl openssl)
$(meson_use cgi)
$(meson_use fcgi)
$(meson_use rproxy)
$(meson_use ffcall)
-Dforce-lua-version=$version
)
meson_src_configure
}
src_install() {
meson_src_install
newinitd "${S}/external/packaging/$PN.initd.sh" $PN
newconfd "${S}/external/packaging/$PN.confd.sh" $PN
systemd_dounit "${FILESDIR}/$PN.service" # not tested
# config
insinto /etc/$PN
doins "${S}/workdir/main.lua"
doins "${S}/workdir/lib.lua"
doins -r "${S}/workdir/config/"
# logrotate
insinto /etc/logrotate.d
newins "${S}/external/packaging/$PN.logrotate.sh" $PN
}
pkg_postinst() {
fcaps_pkg_postinst
if kernel_is lt 5 7; then
ewarn ""
ewarn "hinsightd requires io_uring and kernel ~5.6.0"
ewarn ""
fi
}

View File

@ -12,7 +12,7 @@ HOMEPAGE="https://tiotags.gitlab.io/hinsightd"
LICENSE="BSD"
SLOT="0"
mycommit="60ff105ba76746ac8f669616ed3658f7c03c3ab3"
mycommit="4843c07f40c4ed6ea7b5945b73fa999fb7881564"
if [[ ${PV} == *9999* ]]; then
inherit git-r3