Files
guru/www-servers/hinsightd/hinsightd-0.9.0.ebuild
tiotags 952f06c0f8 www-servers/hinsightd: removed unsupported lua versions
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alexandru Campeanu <tiotags1@gmail.com>
2021-04-22 21:06:45 +03:00

71 lines
1.2 KiB
Bash

# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
LUA_COMPAT=( lua5-1 )
inherit fcaps lua
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="~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
}