1 |
commit: 35125f480a229bdfa738c6c0b7dee924e2d883a5 |
2 |
Author: tiotags <tiotags1 <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Apr 29 07:27:18 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 29 07:27:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=35125f48 |
7 |
|
8 |
www-servers/hinsightd: fixed compilation errors |
9 |
|
10 |
* removed version v0.9.0 |
11 |
* added warnings for old kernels |
12 |
* removed dep on dev-util/ninja, let sys decide |
13 |
|
14 |
Closes: https://bugs.gentoo.org/785007 |
15 |
Closes: https://bugs.gentoo.org/784965 |
16 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
17 |
Signed-off-by: Alexandru Campeanu <tiotags1 <AT> gmail.com> |
18 |
|
19 |
www-servers/hinsightd/Manifest | 1 - |
20 |
www-servers/hinsightd/hinsightd-0.9.0.ebuild | 70 ---------------------------- |
21 |
www-servers/hinsightd/hinsightd-0.9.1.ebuild | 9 +++- |
22 |
www-servers/hinsightd/hinsightd-9999.ebuild | 9 +++- |
23 |
4 files changed, 14 insertions(+), 75 deletions(-) |
24 |
|
25 |
diff --git a/www-servers/hinsightd/Manifest b/www-servers/hinsightd/Manifest |
26 |
index 37be5d923..e91d4ba71 100644 |
27 |
--- a/www-servers/hinsightd/Manifest |
28 |
+++ b/www-servers/hinsightd/Manifest |
29 |
@@ -1,2 +1 @@ |
30 |
-DIST hin9-v0.9.0.tar.gz 65320 BLAKE2B c1348bc5afffa8804494f6ae228f54874d25cc5f40c17ee2a36f23104286f96f5d616cdc3e98de0854cf7d4b18165a2b70600b32f58024b679d213b2156c1f18 SHA512 60a1ff72d1abf57d8f764ebb77ab77f7069b40bfdbb5bb1c95324b366d1052378ffe36198112a595e08238622654a9c1e1d89679924883f8ff42b98ca7cf139e |
31 |
DIST hin9-v0.9.1.tar.gz 64851 BLAKE2B ca646af3b2a752f2b0ba2eec983f807d148b302a7a2db627117686dea3d16811829a1f89a3347708c775d8141372dd91ca46c79c32684b9366b703eb7018706e SHA512 175bbb25bd8be5052bcda96b709b33a996945c63f71249750ab11a46bafdb425818437023a882858e34692abc341d99141954ca31f6296383b26f617e76ac11a |
32 |
|
33 |
diff --git a/www-servers/hinsightd/hinsightd-0.9.0.ebuild b/www-servers/hinsightd/hinsightd-0.9.0.ebuild |
34 |
deleted file mode 100644 |
35 |
index b81f198f9..000000000 |
36 |
--- a/www-servers/hinsightd/hinsightd-0.9.0.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,70 +0,0 @@ |
39 |
-# Copyright 2021 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=7 |
43 |
- |
44 |
-LUA_COMPAT=( lua5-1 ) |
45 |
- |
46 |
-inherit fcaps lua-single systemd |
47 |
- |
48 |
-DESCRIPTION="hinsightd a http/1.1 webserver with (hopefully) minimal goals" |
49 |
-HOMEPAGE="https://gitlab.com/tiotags/hin9" |
50 |
-SRC_URI="https://gitlab.com/tiotags/hin9/-/archive/v${PV}/hin9-v${PV}.tar.gz" |
51 |
- |
52 |
-LICENSE="BSD" |
53 |
-SLOT="0" |
54 |
-KEYWORDS="~amd64" |
55 |
- |
56 |
-IUSE="" #+openssl |
57 |
-REQUIRED_USE="${LUA_REQUIRED_USE}" |
58 |
- |
59 |
-S="${WORKDIR}/hin9-v${PV}" |
60 |
- |
61 |
-BDEPEND=" |
62 |
- dev-util/ninja |
63 |
- virtual/pkgconfig |
64 |
-" |
65 |
- |
66 |
-RDEPEND=" |
67 |
- ${LUA_DEPS} |
68 |
- acct-user/hinsightd |
69 |
- acct-group/hinsightd |
70 |
- sys-libs/liburing |
71 |
- sys-libs/zlib |
72 |
- dev-libs/openssl |
73 |
-" |
74 |
- |
75 |
-DEPEND="${RDEPEND}" |
76 |
- |
77 |
-PATCHES=( |
78 |
- "${FILESDIR}/hinsightd-redefine-directories.patch" |
79 |
-) |
80 |
- |
81 |
-#src_configure() { |
82 |
-#} |
83 |
- |
84 |
-src_compile() { |
85 |
- cd build |
86 |
- ninja || die |
87 |
-} |
88 |
- |
89 |
-src_install() { |
90 |
- newbin "${S}/build/hin9" hinsightd |
91 |
- newinitd "${FILESDIR}/init.d.sh" hinsightd |
92 |
- systemd_dounit "${FILESDIR}/hinsightd.service" # not tested |
93 |
- |
94 |
- insinto /etc/hinsightd |
95 |
- newins "${S}/workdir/main.lua" hinsightd.lua |
96 |
- |
97 |
- # logrotate |
98 |
- insinto /etc/logrotate.d |
99 |
- newins "${FILESDIR}"/logrotate.d.sh hinsightd |
100 |
- |
101 |
- keepdir /var/www/localhost/htdocs |
102 |
- keepdir /var/log/hinsightd |
103 |
- keepdir /var/tmp/hinsightd |
104 |
-} |
105 |
- |
106 |
-pkg_postinst() { |
107 |
- fcaps CAP_NET_BIND_SERVICE /usr/bin/hinsightd |
108 |
-} |
109 |
|
110 |
diff --git a/www-servers/hinsightd/hinsightd-0.9.1.ebuild b/www-servers/hinsightd/hinsightd-0.9.1.ebuild |
111 |
index 924a614e4..a7e45d693 100644 |
112 |
--- a/www-servers/hinsightd/hinsightd-0.9.1.ebuild |
113 |
+++ b/www-servers/hinsightd/hinsightd-0.9.1.ebuild |
114 |
@@ -5,7 +5,7 @@ EAPI=7 |
115 |
|
116 |
LUA_COMPAT=( lua5-{1..4} ) |
117 |
|
118 |
-inherit fcaps lua-single systemd cmake |
119 |
+inherit fcaps lua-single systemd cmake linux-info |
120 |
|
121 |
DESCRIPTION="hinsightd a http/1.1 webserver with (hopefully) minimal goals" |
122 |
HOMEPAGE="https://gitlab.com/tiotags/hin9" |
123 |
@@ -26,7 +26,6 @@ IUSE="+openssl" |
124 |
REQUIRED_USE="${LUA_REQUIRED_USE}" |
125 |
|
126 |
BDEPEND=" |
127 |
- dev-util/ninja |
128 |
dev-util/cmake |
129 |
virtual/pkgconfig |
130 |
" |
131 |
@@ -73,4 +72,10 @@ src_install() { |
132 |
|
133 |
pkg_postinst() { |
134 |
fcaps CAP_NET_BIND_SERVICE /usr/bin/hinsightd |
135 |
+ |
136 |
+ if kernel_is lt 5 7; then |
137 |
+ ewarn "" |
138 |
+ ewarn "hinsightd requires io_uring and kernel ~5.6.0" |
139 |
+ ewarn "" |
140 |
+ fi |
141 |
} |
142 |
|
143 |
diff --git a/www-servers/hinsightd/hinsightd-9999.ebuild b/www-servers/hinsightd/hinsightd-9999.ebuild |
144 |
index 924a614e4..a7e45d693 100644 |
145 |
--- a/www-servers/hinsightd/hinsightd-9999.ebuild |
146 |
+++ b/www-servers/hinsightd/hinsightd-9999.ebuild |
147 |
@@ -5,7 +5,7 @@ EAPI=7 |
148 |
|
149 |
LUA_COMPAT=( lua5-{1..4} ) |
150 |
|
151 |
-inherit fcaps lua-single systemd cmake |
152 |
+inherit fcaps lua-single systemd cmake linux-info |
153 |
|
154 |
DESCRIPTION="hinsightd a http/1.1 webserver with (hopefully) minimal goals" |
155 |
HOMEPAGE="https://gitlab.com/tiotags/hin9" |
156 |
@@ -26,7 +26,6 @@ IUSE="+openssl" |
157 |
REQUIRED_USE="${LUA_REQUIRED_USE}" |
158 |
|
159 |
BDEPEND=" |
160 |
- dev-util/ninja |
161 |
dev-util/cmake |
162 |
virtual/pkgconfig |
163 |
" |
164 |
@@ -73,4 +72,10 @@ src_install() { |
165 |
|
166 |
pkg_postinst() { |
167 |
fcaps CAP_NET_BIND_SERVICE /usr/bin/hinsightd |
168 |
+ |
169 |
+ if kernel_is lt 5 7; then |
170 |
+ ewarn "" |
171 |
+ ewarn "hinsightd requires io_uring and kernel ~5.6.0" |
172 |
+ ewarn "" |
173 |
+ fi |
174 |
} |