1 |
commit: b1349123aa8262d56069a350b766e03813c2becb |
2 |
Author: tiotags <tiotags1 <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Apr 21 08:49:23 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Wed Apr 21 08:49:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b1349123 |
7 |
|
8 |
www-servers/hinsightd: added ebuild 0.9.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Alexandru Campeanu <tiotags1 <AT> gmail.com> |
12 |
|
13 |
www-servers/hinsightd/Manifest | 1 + |
14 |
www-servers/hinsightd/hinsightd-0.9.0.ebuild | 64 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 65 insertions(+) |
16 |
|
17 |
diff --git a/www-servers/hinsightd/Manifest b/www-servers/hinsightd/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..61940dc50 |
20 |
--- /dev/null |
21 |
+++ b/www-servers/hinsightd/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST hin9-v0.9.0.tar.gz 65320 BLAKE2B c1348bc5afffa8804494f6ae228f54874d25cc5f40c17ee2a36f23104286f96f5d616cdc3e98de0854cf7d4b18165a2b70600b32f58024b679d213b2156c1f18 SHA512 60a1ff72d1abf57d8f764ebb77ab77f7069b40bfdbb5bb1c95324b366d1052378ffe36198112a595e08238622654a9c1e1d89679924883f8ff42b98ca7cf139e |
24 |
|
25 |
diff --git a/www-servers/hinsightd/hinsightd-0.9.0.ebuild b/www-servers/hinsightd/hinsightd-0.9.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000..1a48c1f94 |
28 |
--- /dev/null |
29 |
+++ b/www-servers/hinsightd/hinsightd-0.9.0.ebuild |
30 |
@@ -0,0 +1,64 @@ |
31 |
+# Copyright 2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+LUA_COMPAT=( lua5-{1..4} ) |
37 |
+ |
38 |
+inherit fcaps |
39 |
+ |
40 |
+DESCRIPTION="hinsightd a http/1.1 webserver with (hopefully) minimal goals" |
41 |
+HOMEPAGE="https://gitlab.com/tiotags/hin9" |
42 |
+SRC_URI="https://gitlab.com/tiotags/hin9/-/archive/v0.9.0/hin9-v0.9.0.tar.gz" |
43 |
+LICENSE="BSD" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="" |
46 |
+IUSE="" #+openssl |
47 |
+ |
48 |
+BDEPEND=" |
49 |
+dev-util/ninja |
50 |
+" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+acct-user/hinsightd |
54 |
+acct-group/hinsightd |
55 |
+sys-libs/liburing |
56 |
+dev-lang/lua:* |
57 |
+sys-libs/zlib |
58 |
+dev-libs/openssl |
59 |
+" |
60 |
+ |
61 |
+DEPEND="${RDEPEND}" |
62 |
+ |
63 |
+PATCHES=( |
64 |
+"${FILESDIR}/hinsightd-redefine-directories.patch" |
65 |
+) |
66 |
+ |
67 |
+#src_configure() { |
68 |
+#} |
69 |
+ |
70 |
+src_compile() { |
71 |
+ cd build |
72 |
+ ninja || die |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ newbin "${S}/build/hin9" hinsightd |
77 |
+ newinitd "${FILESDIR}/init.d.sh" hinsightd |
78 |
+ #systemd_dounit "${FILESDIR}/hinsightd.service" # not tested |
79 |
+ |
80 |
+ insinto /etc/hinsightd |
81 |
+ newins "${S}/workdir/main.lua" hinsightd.lua |
82 |
+ |
83 |
+ # logrotate |
84 |
+ insinto /etc/logrotate.d |
85 |
+ newins "${FILESDIR}"/logrotate.d.sh hinsightd |
86 |
+ |
87 |
+ keepdir /var/www/localhost/htdocs |
88 |
+ keepdir /var/log/hinsightd |
89 |
+ keepdir /var/tmp/hinsightd |
90 |
+} |
91 |
+ |
92 |
+pkg_postinst() { |
93 |
+ fcaps CAP_NET_BIND_SERVICE /usr/bin/hinsightd |
94 |
+} |