Install this version:
emerge -a =net-analyzer/nuclei-3.11.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-analyzer/nuclei-3.11.0
Or alternatively:
emerge --autounmask-write -a =net-analyzer/nuclei-3.11.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 3.11.0 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module flag-o-matic
DESCRIPTION="Simple and configurable vulnerability scanner based on YAML templates"
HOMEPAGE="https://github.com/projectdiscovery/nuclei https://projectdiscovery.io"
SRC_URI="
https://github.com/projectdiscovery/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz
https://github.com/pentoo/pentoo-golang-dist/releases/download/${P}/${P}-deps.tar.xz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+templates"
RESTRICT="test"
RDEPEND="
templates? ( net-analyzer/nuclei-templates )
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-lang/go
"
QA_PREBUILD="*"
S="${WORKDIR}/${PN}-${PV}"
src_prepare() {
default
}
src_unpack() {
go-module_src_unpack
}
src_compile() {
# Flag inspired by Arch PKGBUILD:
# - https://github.com/BlackArch/blackarch/blob/d9f24f83f5632f16bf3727e8788069717e83312d/packages/nuclei/PKGBUILD#L4
local nuclei_ldflags=(
"-s"
"-w"
"-X main.Version=${PV}"
"-X main.BuildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
)
ego build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "${nuclei_ldflags[*]}" \
-o ${PN} \
./cmd/${PN}
}
src_install() {
newbin ${PN} ${PN}
# Documentation
dodoc README.md CONTRIBUTING.md || true
# Man page si présente
if [[ -f man/man1/nuclei.1 ]]; then
doman man/man1/nuclei.1
fi
}
pkg_postinst() {
elog "More informations:"
elog " - Documentation: https://docs.projectdiscovery.io/tools/nuclei/"
elog " - Templates: https://github.com/projectdiscovery/nuclei-templates"
elog ""
}
Manage flags for this package:
euse -i <flag> -p net-analyzer/nuclei |
euse -E <flag> -p net-analyzer/nuclei |
euse -D <flag> -p net-analyzer/nuclei
templates? ( net-analyzer/nuclei-templates )
templates? ( net-analyzer/nuclei-templates )
dev-lang/go
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | nuclei-3.11.0-deps.tar.xz | 222833324 bytes | https://github.com/pentoo/pentoo-golang-dist/releases/download/nuclei-3.11.0/nuclei-3.11.0-deps.tar.xz |
| DIST | nuclei-3.11.0.gh.tar.gz | 12283428 bytes | https://github.com/projectdiscovery/nuclei/archive/refs/tags/v3.11.0.tar.gz |