From: "Alexandru Campeanu" <tiotags1@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: www-servers/hinsightd/, www-servers/hinsightd/files/
Date: Mon, 26 Apr 2021 09:40:21 +0000 (UTC) [thread overview]
Message-ID: <1619429943.ae65a194038ff27752b13602466ffef599002c09.tiotags1@gentoo> (raw)
commit: ae65a194038ff27752b13602466ffef599002c09
Author: tiotags <tiotags1 <AT> gmail <DOT> com>
AuthorDate: Mon Apr 26 09:39:03 2021 +0000
Commit: Alexandru Campeanu <tiotags1 <AT> gmail <DOT> com>
CommitDate: Mon Apr 26 09:39:03 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ae65a194
www-servers/hinsightd: switched to cmake
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alexandru Campeanu <tiotags1 <AT> gmail.com>
www-servers/hinsightd/files/init.d.sh | 2 +-
www-servers/hinsightd/hinsightd-9999.ebuild | 30 ++++++++++++++++++-----------
www-servers/hinsightd/metadata.xml | 2 +-
3 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/www-servers/hinsightd/files/init.d.sh b/www-servers/hinsightd/files/init.d.sh
index 9146de844..bc05ab5c9 100644
--- a/www-servers/hinsightd/files/init.d.sh
+++ b/www-servers/hinsightd/files/init.d.sh
@@ -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"
diff --git a/www-servers/hinsightd/hinsightd-9999.ebuild b/www-servers/hinsightd/hinsightd-9999.ebuild
index 8ae886a39..9107371b8 100644
--- a/www-servers/hinsightd/hinsightd-9999.ebuild
+++ b/www-servers/hinsightd/hinsightd-9999.ebuild
@@ -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
diff --git a/www-servers/hinsightd/metadata.xml b/www-servers/hinsightd/metadata.xml
index f494a4303..f06968fc0 100644
--- a/www-servers/hinsightd/metadata.xml
+++ b/www-servers/hinsightd/metadata.xml
@@ -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>
next reply other threads:[~2021-04-26 9:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-26 9:40 Alexandru Campeanu [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-04-30 7:50 [gentoo-commits] repo/proj/guru:dev commit in: www-servers/hinsightd/, www-servers/hinsightd/files/ Alexandru Campeanu
2021-05-25 15:33 Alexandru Campeanu
2021-07-29 19:59 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=1619429943.ae65a194038ff27752b13602466ffef599002c09.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