blob: 517af9be8a806f510537581e50817808fed420ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
MY_PN="nginx-module-vts"
inherit nginx-module
DESCRIPTION="NGINX virtual host traffic status module"
HOMEPAGE="https://github.com/vozlt/nginx-module-vts"
SRC_URI="
https://github.com/vozlt/nginx-module-vts/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
src_install() {
nginx-module_src_install
dodoc CHANGELOG.md
# Install the HTML status pages.
insinto usr/share/"${PN}"
doins share/*.html
}
pkg_postinst() {
nginx-module_pkg_postinst
elog "The HTML status pages have been saved to ${EPREFIX}/usr/share/${PN}."
elog "Copy or symlink/hardlink them to your server directory and"
elog "edit to your pleasure."
}
|