mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-19 15:59:00 -04:00
www-servers/hinsightd: switched to cmake
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alexandru Campeanu <tiotags1@gmail.com>
This commit is contained in:
parent
2052e32be7
commit
ae65a19403
@ -14,7 +14,7 @@ RUN_USER="hinsightd"
|
||||
extra_commands="checkconfig reload"
|
||||
|
||||
command=$RUN_FILE
|
||||
command_args="--config $CFG_FILE --logdir $LOG_DIR --cwd $CWD_DIR --pidfile $PID_FILE --tmpdir $TMP_DIR"
|
||||
command_args="--config $CFG_FILE --logdir $LOG_DIR/ --cwd $CWD_DIR/ --pidfile $PID_FILE --tmpdir $TMP_DIR"
|
||||
pidfile="$PID_FILE"
|
||||
command_args_background="--daemonize"
|
||||
command_user="$RUN_USER:$RUN_USER"
|
||||
|
@ -5,21 +5,30 @@ EAPI=7
|
||||
|
||||
LUA_COMPAT=( lua5-{1..4} )
|
||||
|
||||
inherit git-r3 fcaps lua-single systemd
|
||||
inherit fcaps lua-single systemd cmake
|
||||
|
||||
DESCRIPTION="hinsightd a http/1.1 webserver with (hopefully) minimal goals"
|
||||
HOMEPAGE="https://gitlab.com/tiotags/hin9"
|
||||
EGIT_REPO_URI="https://gitlab.com/tiotags/hin9.git"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.com/tiotags/hin9.git"
|
||||
inherit git-r3
|
||||
else
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://gitlab.com/tiotags/hin9/-/archive/v${PV}/hin9-v${PV}.tar.gz"
|
||||
S="${WORKDIR}/hin9-v${PV}"
|
||||
fi
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
|
||||
IUSE="" #+openssl
|
||||
IUSE="+openssl"
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
|
||||
BDEPEND="
|
||||
dev-util/ninja
|
||||
dev-util/cmake
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
@ -29,7 +38,7 @@ RDEPEND="
|
||||
acct-group/hinsightd
|
||||
sys-libs/liburing
|
||||
sys-libs/zlib
|
||||
dev-libs/openssl
|
||||
openssl? ( dev-libs/openssl )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
@ -38,16 +47,15 @@ PATCHES=(
|
||||
"${FILESDIR}/hinsightd-redefine-directories.patch"
|
||||
)
|
||||
|
||||
#src_configure() {
|
||||
#}
|
||||
|
||||
src_compile() {
|
||||
cd build
|
||||
ninja || die
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DUSE_OPENSSL=$(usex openssl)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "${S}/build/hin9" hinsightd
|
||||
newbin "${BUILD_DIR}/hin9" hinsightd
|
||||
newinitd "${FILESDIR}/init.d.sh" hinsightd
|
||||
systemd_dounit "${FILESDIR}/hinsightd.service" # not tested
|
||||
|
||||
|
@ -17,6 +17,6 @@
|
||||
Full debug information can be toggled per request and outputted to console or a log file.
|
||||
</longdescription>
|
||||
<use>
|
||||
<!--<flag name="openssl">Enable tls encryption with openssl</flag>-->
|
||||
<flag name="openssl">Enable tls encryption with openssl</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
Loading…
x
Reference in New Issue
Block a user