File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11DIST nuclei-templates-10.4.5.gh.tar.gz 9485841 BLAKE2B d3e5cd3794f0b9439b32c44516ead6ad596f016df06e1de650377bc98ac8633bae5e213a06de307d3f9bceb445c92c1fd90637917ee3b35ceec3694f302e6415 SHA512 7043054f46188ee760f22418a541b9f98621bc856edd6c9da865b5c3585da65f80d345ab9fbcc475aff84a76a2ca2834e9ccb0a7a8558238979970d1a279792b
2+ DIST nuclei-templates-10.5.0.gh.tar.gz 9925953 BLAKE2B 8ec8ec03018367e820137799062423ca99dbd76b178f7e3fe45255839c3f7813ec9dad5d07dd2726463ea788d227ee4af984abaf5a401834655008347aa09218 SHA512 8313ee557d15967121007cca2614bc0e7a17f60588e8d320ea36772e9bc81b8e79568f75589f2cd4239bc8a2a6cbbca849ff87dc37534f3c379ab93743d03852
Original file line number Diff line number Diff line change 1+ # Copyright 1999-2026 Gentoo Authors
2+ # Distributed under the terms of the GNU General Public License v2
3+
4+ EAPI=8
5+
6+
7+ DESCRIPTION=" Community curated list of templates for the nuclei engine."
8+ HOMEPAGE=" https://github.com/projectdiscovery/nuclei-templates https://projectdiscovery.io"
9+ SRC_URI=" https://github.com/projectdiscovery/${PN} /archive/refs/tags/v${PV} .tar.gz -> ${P} .gh.tar.gz"
10+
11+ LICENSE=" MIT"
12+ SLOT=" 0"
13+ KEYWORDS=" ~amd64"
14+
15+ RDEPEND=" "
16+ DEPEND=" ${RDEPEND} "
17+
18+ S=" ${WORKDIR} "
19+
20+ src_install () {
21+ dodir /usr/share/${PN}
22+ rsync -a -v " ${WORKDIR} /${P} /" * " ${D} /usr/share/nuclei-templates/" --exclude * .md || die
23+ }
24+
Original file line number Diff line number Diff line change 11DIST nuclei-3.11.0-deps.tar.xz 222833324 BLAKE2B c0e784b89cc7287e7c6d5b6116f4596d33a8593114f3ef13e3101511adf0ee1c04328f9646ae07b26be122bd3934e0e8edac4f2cfc8508ead86cd981ef264429 SHA512 af658b738ac789af329a77cd9f1a9756feab884fdd521c3ee1485c07d91373992c7b1e5a99ee8364497693baafc30b6ea544533986195b6aa642b149e0887696
22DIST nuclei-3.11.0.gh.tar.gz 12283428 BLAKE2B 1ad5f3ae1533158f2d252e7285d00f07a19e6870779730fe1ca980065ccc6b9a9b46ad3356a2c269d4c9cad9b0b31f051c8be1a76be76a8fa8d9c0bbeea2183c SHA512 d1f40d830d815c2b7df71b40873fdb09c6ebb22f50a7b0b81b86f8b376c7e71726bbc0507fb7241d4aa4ae215f801e635ca654ca35b36bb5e484ddedde76b13a
3+ DIST nuclei-3.11.1-deps.tar.xz 227745188 BLAKE2B e0e8cc9db2bfdb521a2bbdfc354c743884c3b16b732a90c092f2abfdcdfd331f9c62ef8a7a4a4dc8294809ae9e54cc5f82fa3600aa756e4276979388514c0ea4 SHA512 07db514b4b6c05d6a22b2f8a131d099acaf0856d988a35437af76e4ad11938f7a32fc436b028afd712c6a84ee9f06f4a647a8cf6e53ef307a4b51a65f8ac91ad
4+ DIST nuclei-3.11.1.gh.tar.gz 12364581 BLAKE2B 4edef4c8e7cb2583649d2ceebf748ae1ca26a1f31829db8fdb4bbea4b7e445a25b1e8ff0e0e1e5490f5e0025157395799827c3bf34046aad7ad7124b941b8033 SHA512 678846c2ba39ecba16fb1dad271fa826a0ffc7e744bc6ff3f0e4fe08c0166fb5cebd5f4bdbb7158bd1aba49c26ec04c8050076d6fbdead6abca98d5a71ce1853
35DIST nuclei-3.9.0-deps.tar.xz 233137208 BLAKE2B f9b4a45c622f2ddd983434b1cb171fe000af86cd9bc65ca99eae38ebbcb497bc42afaa059192c6b2918b3c3402d1a27b27e170b8b029f556d80282018e8c290f SHA512 8984c6c202f765711d0b6b1b53e26e1eec4806cf41302cc92c6730309ee1233244b32473bb80937752e0a933d4b7d4508e068bfde7a27abd590334327c85276c
46DIST nuclei-3.9.0.gh.tar.gz 12196947 BLAKE2B b7d923e38af2fd4d6288f5ad5a5c54cbdb0ccc5c7162fdd9a8848891f548c103398d9e4ee139cce8c7cdba28d4512317ff79e054bb38cff63f55447a6a26634e SHA512 befaddf29bf4fe5ca802819871d3a8371f028df3bc04e7caac6aa28914e8818b61eea08c92e8343ee3fdd113d2c58865196d6b46f80bc5436e1f83e926603c09
Original file line number Diff line number Diff line change 1+ # Copyright 1999-2026 Gentoo Authors
2+ # Distributed under the terms of the GNU General Public License v2
3+
4+ EAPI=8
5+
6+ inherit go-module flag-o-matic
7+
8+ DESCRIPTION=" Simple and configurable vulnerability scanner based on YAML templates"
9+ HOMEPAGE=" https://github.com/projectdiscovery/nuclei https://projectdiscovery.io"
10+ SRC_URI="
11+ https://github.com/projectdiscovery/${PN} /archive/refs/tags/v${PV} .tar.gz -> ${P} .gh.tar.gz
12+ https://github.com/pentoo/pentoo-golang-dist/releases/download/${P} /${P} -deps.tar.xz
13+ "
14+
15+ LICENSE=" MIT"
16+ SLOT=" 0"
17+ KEYWORDS=" ~amd64"
18+ IUSE=" +templates"
19+
20+ RESTRICT=" test"
21+
22+ RDEPEND="
23+ templates? ( net-analyzer/nuclei-templates )
24+ "
25+ DEPEND=" ${RDEPEND} "
26+ BDEPEND="
27+ dev-lang/go
28+ "
29+
30+ QA_PREBUILD=" *"
31+
32+ S=" ${WORKDIR} /${PN} -${PV} "
33+
34+ src_prepare () {
35+ default
36+ }
37+
38+ src_unpack () {
39+ go-module_src_unpack
40+ }
41+
42+ src_compile () {
43+
44+ # Flag inspired by Arch PKGBUILD:
45+ # - https://github.com/BlackArch/blackarch/blob/d9f24f83f5632f16bf3727e8788069717e83312d/packages/nuclei/PKGBUILD#L4
46+
47+ local nuclei_ldflags=(
48+ " -s"
49+ " -w"
50+ " -X main.Version=${PV} "
51+ " -X main.BuildTime=$( date -u +%Y-%m-%dT%H:%M:%SZ) "
52+ )
53+
54+ ego build \
55+ -trimpath \
56+ -buildmode=pie \
57+ -mod=readonly \
58+ -modcacherw \
59+ -ldflags " ${nuclei_ldflags[*]} " \
60+ -o ${PN} \
61+ ./cmd/${PN}
62+ }
63+
64+ src_install () {
65+ newbin ${PN} ${PN}
66+
67+ # Documentation
68+ dodoc README.md CONTRIBUTING.md || true
69+
70+ # Man page si présente
71+ if [[ -f man/man1/nuclei.1 ]]; then
72+ doman man/man1/nuclei.1
73+ fi
74+ }
75+
76+ pkg_postinst () {
77+ elog " More informations:"
78+ elog " - Documentation: https://docs.projectdiscovery.io/tools/nuclei/"
79+ elog " - Templates: https://github.com/projectdiscovery/nuclei-templates"
80+ elog " "
81+ }
You can’t perform that action at this time.
0 commit comments