1 |
commit: fb693d546eed37211f64b428a7244912d26d7c63 |
2 |
Author: Alexandru Campeanu <tiotags1 <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Aug 26 10:11:43 2022 +0000 |
4 |
Commit: Alexandru Campeanu <tiotags1 <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Aug 26 10:14:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fb693d54 |
7 |
|
8 |
www-servers/hinsightd: add 0.9.15_p20220826, drop old |
9 |
|
10 |
Closes: https://bugs.gentoo.org/866458 |
11 |
Signed-off-by: Alexandru Campeanu <tiotags1 <AT> gmail.com> |
12 |
|
13 |
www-servers/hinsightd/Manifest | 2 +- |
14 |
.../hinsightd/files/hinsightd-defines-v4.patch | 18 ------------ |
15 |
...17.ebuild => hinsightd-0.9.15_p20220826.ebuild} | 33 ++++++++++++++-------- |
16 |
www-servers/hinsightd/hinsightd-9999.ebuild | 2 +- |
17 |
4 files changed, 24 insertions(+), 31 deletions(-) |
18 |
|
19 |
diff --git a/www-servers/hinsightd/Manifest b/www-servers/hinsightd/Manifest |
20 |
index ee98956b4..9d5f3af9b 100644 |
21 |
--- a/www-servers/hinsightd/Manifest |
22 |
+++ b/www-servers/hinsightd/Manifest |
23 |
@@ -1,2 +1,2 @@ |
24 |
DIST hin9-0c584cbe00c2227d4cb29675e8e2da2c6bd57371.tar.gz 116295 BLAKE2B 69c6a9593fa721e113172696523beb39c63385e8fe319687b2e12c9eb8ff91bb63e45e3c33429026e45522d535c6acb305af1dcc8f120d552dab5fcda3d7734c SHA512 9d66c58545b64c66365c74935be8e3988022b1f3902af5bec7996df86f37bf2fdd54fb913826a0bcf5f9f4ba07e30abc5e6573cf8b4c2f11ec67c1917ed7f000 |
25 |
-DIST hin9-af60390e3ade1e617ef76c5ab778934acd76a16e.tar.gz 115019 BLAKE2B a8f15d07dfa7adea3665cc4f8189bb9dc4afa9e9ebd457f78fd0975dad65b4741c1e14b9f701b9bfedafc8d138c96022895b17b9628a8569d60818f46ca791fd SHA512 fb125099500b049e5f371ae1d84b2e07f77b28358d5ad7ff8a655baa86bc77a940a9d9321fbbcd6b1d7ac54e14aa214aeb792ade24cb7140fdb494799686efa8 |
26 |
+DIST hin9-60ff105ba76746ac8f669616ed3658f7c03c3ab3.tar.gz 116619 BLAKE2B 9e7777c584cc31c853f210e3c4b9306e675fb2501c99239b86fc8b5d925532fba8402b40b9ff43eebafec70457f67f11174e36a7c49aa59483606e19ebdf936e SHA512 e4e6e62b618e0fa845d94a723b4723e230fa03415ad4831bddc0a99f8c262fdca495a8ea6bdb7019e3a97bcf03554fae6f09a2a673e2f3db3e535c5fdc490f4e |
27 |
|
28 |
diff --git a/www-servers/hinsightd/files/hinsightd-defines-v4.patch b/www-servers/hinsightd/files/hinsightd-defines-v4.patch |
29 |
deleted file mode 100644 |
30 |
index bd0a2b563..000000000 |
31 |
--- a/www-servers/hinsightd/files/hinsightd-defines-v4.patch |
32 |
+++ /dev/null |
33 |
@@ -1,18 +0,0 @@ |
34 |
-diff --git a/src/hin/conf.h b/src/hin/conf.h |
35 |
-index 9edb801..1deefd5 100644 |
36 |
---- a/src/hin/conf.h |
37 |
-+++ b/src/hin/conf.h |
38 |
-@@ -2,10 +2,10 @@ |
39 |
- #ifndef HIN_CONF_H |
40 |
- #define HIN_CONF_H |
41 |
- |
42 |
--#define HIN_CONF_PATH "workdir/main.lua" |
43 |
--#define HIN_LOGDIR_PATH "workdir/logs/" |
44 |
-+#define HIN_CONF_PATH "/etc/hinsightd/main.lua" |
45 |
-+#define HIN_LOGDIR_PATH "/var/log/hinsightd/" |
46 |
- #define HIN_WORKDIR_PATH "./" |
47 |
--#define HIN_TEMP_PATH "/tmp/" |
48 |
-+#define HIN_TEMP_PATH "/var/tmp/hinsightd/" |
49 |
- #define HIN_DEBUG_MASK 0x20007 |
50 |
- |
51 |
- #define HIN_URING_QUEUE_DEPTH 256 |
52 |
|
53 |
diff --git a/www-servers/hinsightd/hinsightd-0.9.15_p20220817.ebuild b/www-servers/hinsightd/hinsightd-0.9.15_p20220826.ebuild |
54 |
similarity index 77% |
55 |
rename from www-servers/hinsightd/hinsightd-0.9.15_p20220817.ebuild |
56 |
rename to www-servers/hinsightd/hinsightd-0.9.15_p20220826.ebuild |
57 |
index 427d8a07b..e4732875c 100644 |
58 |
--- a/www-servers/hinsightd/hinsightd-0.9.15_p20220817.ebuild |
59 |
+++ b/www-servers/hinsightd/hinsightd-0.9.15_p20220826.ebuild |
60 |
@@ -5,14 +5,14 @@ EAPI=8 |
61 |
|
62 |
LUA_COMPAT=( lua5-{1..4} luajit ) |
63 |
|
64 |
-inherit fcaps lua-single systemd cmake linux-info |
65 |
+inherit fcaps lua-single systemd meson linux-info |
66 |
|
67 |
DESCRIPTION="hinsightd a http/1.1 webserver with (hopefully) minimal goals" |
68 |
HOMEPAGE="https://tiotags.gitlab.io/hinsightd" |
69 |
LICENSE="BSD" |
70 |
SLOT="0" |
71 |
|
72 |
-mycommit="af60390e3ade1e617ef76c5ab778934acd76a16e" |
73 |
+mycommit="60ff105ba76746ac8f669616ed3658f7c03c3ab3" |
74 |
|
75 |
if [[ ${PV} == *9999* ]]; then |
76 |
inherit git-r3 |
77 |
@@ -33,7 +33,7 @@ IUSE="+ssl cgi +fcgi +rproxy +ffcall" |
78 |
REQUIRED_USE="${LUA_REQUIRED_USE}" |
79 |
|
80 |
BDEPEND=" |
81 |
- dev-util/cmake |
82 |
+ dev-util/meson |
83 |
virtual/pkgconfig |
84 |
" |
85 |
|
86 |
@@ -54,19 +54,30 @@ FILECAPS=( |
87 |
cap_net_bind_service usr/sbin/${PN} |
88 |
) |
89 |
|
90 |
+pkg_setup() { |
91 |
+ linux-info_pkg_setup; |
92 |
+ lua-single_pkg_setup |
93 |
+} |
94 |
+ |
95 |
src_configure() { |
96 |
- local mycmakeargs=( |
97 |
- -DUSE_OPENSSL=$(usex ssl) |
98 |
- -DUSE_CGI=$(usex cgi) |
99 |
- -DUSE_FCGI=$(usex fcgi) |
100 |
- -DUSE_RPROXY=$(usex rproxy) |
101 |
- -DUSE_FFCALL=$(usex ffcall) |
102 |
+ version=$(ver_cut 1-2 $(lua_get_version)) |
103 |
+ if [ "$version" == "2.1" ]; then |
104 |
+ version="jit" |
105 |
+ fi |
106 |
+ local emesonargs=( |
107 |
+ $(meson_use ssl openssl) |
108 |
+ $(meson_use cgi) |
109 |
+ $(meson_use fcgi) |
110 |
+ $(meson_use rproxy) |
111 |
+ $(meson_use ffcall) |
112 |
+ -Dforce-lua-version=$version |
113 |
) |
114 |
- cmake_src_configure |
115 |
+ meson_src_configure |
116 |
} |
117 |
|
118 |
src_install() { |
119 |
- cmake_src_install |
120 |
+ meson_src_install |
121 |
+ |
122 |
newinitd "${S}/external/packaging/$PN.initd.sh" $PN |
123 |
newconfd "${S}/external/packaging/$PN.confd.sh" $PN |
124 |
systemd_dounit "${FILESDIR}/$PN.service" # not tested |
125 |
|
126 |
diff --git a/www-servers/hinsightd/hinsightd-9999.ebuild b/www-servers/hinsightd/hinsightd-9999.ebuild |
127 |
index 9b9d8695b..60ce5a5ee 100644 |
128 |
--- a/www-servers/hinsightd/hinsightd-9999.ebuild |
129 |
+++ b/www-servers/hinsightd/hinsightd-9999.ebuild |
130 |
@@ -60,7 +60,7 @@ pkg_setup() { |
131 |
src_configure() { |
132 |
version=$(ver_cut 1-2 $(lua_get_version)) |
133 |
if [ "$version" == "2.1" ]; then |
134 |
- version="jit" |
135 |
+ version="jit" |
136 |
fi |
137 |
local emesonargs=( |
138 |
$(meson_use ssl openssl) |