www-servers/hinsightd: fixed qa issues

Signed-off-by: Alexandru Campeanu <tiotags1@gmail.com>
This commit is contained in:
Alexandru Campeanu
2022-08-27 09:50:47 +03:00
parent 7223182670
commit a714e34286
2 changed files with 18 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ mycommit="60ff105ba76746ac8f669616ed3658f7c03c3ab3"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/tiotags/hin9.git"
elif [[ ! -z "$mycommit" ]]; then
elif [[ ! -z "${mycommit}" ]]; then
SRC_URI="https://gitlab.com/tiotags/hin9/-/archive/${mycommit}/hin9-${mycommit}.tar.gz"
S="${WORKDIR}/hin9-${mycommit}"
else
@@ -55,13 +55,13 @@ FILECAPS=(
)
pkg_setup() {
linux-info_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
if [[ "${version}" == "2.1" ]]; then
version="jit"
fi
local emesonargs=(
@@ -70,7 +70,7 @@ src_configure() {
$(meson_use fcgi)
$(meson_use rproxy)
$(meson_use ffcall)
-Dforce-lua-version=$version
-Dforce-lua-version=${version}
)
meson_src_configure
}
@@ -78,19 +78,19 @@ 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
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
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
newins "${S}/external/packaging/${PN}.logrotate.sh" ${PN}
}
pkg_postinst() {

View File

@@ -15,7 +15,7 @@ SLOT="0"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.com/tiotags/hin9.git"
elif [[ ! -z "$mycommit" ]]; then
elif [[ ! -z "${mycommit}" ]]; then
SRC_URI="https://gitlab.com/tiotags/hin9/-/archive/${mycommit}/hin9-${mycommit}.tar.gz"
S="${WORKDIR}/hin9-${mycommit}"
else
@@ -53,13 +53,13 @@ FILECAPS=(
)
pkg_setup() {
linux-info_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
if [[ "${version}" == "2.1" ]]; then
version="jit"
fi
local emesonargs=(
@@ -68,7 +68,7 @@ src_configure() {
$(meson_use fcgi)
$(meson_use rproxy)
$(meson_use ffcall)
-Dforce-lua-version=$version
-Dforce-lua-version=${version}
)
meson_src_configure
}
@@ -76,19 +76,19 @@ 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
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
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
newins "${S}/external/packaging/${PN}.logrotate.sh" ${PN}
}
pkg_postinst() {