View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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."
}