Hello, On 2023/04/12 10:17:26 +0800, lux <l...@shellcodes.org> wrote: > On Thu, 2023-03-30 at 08:53 +0800, lux wrote: > > Hi > > > > Nuclei is a fast and customisable vulnerability scanner based on > > simple > > YAML based DSL. > > > > Nuclei is used to send requests across targets based on a template, > > leading to zero false positives and providing fast scanning on a > > large > > number of hosts. Nuclei offers scanning for a variety of protocols, > > including TCP, DNS, HTTP, SSL, File, Whois, Websocket, Headless etc. > > With powerful and flexible templating, Nuclei can be used to model > > all > > kinds of security checks. > > > > I built a port and tested on OpenBSD. > > > > Cheers! > > Ping
The problem is that by default 'go build' fetches the dependencies at build-time, which is a big no for the ports infrastructure. (the build will fail if you run with PORTS_PRIVSEP and default pf.conf.) Instead, please use the go-module(5), set up MODGO_{MODNAME,VERSION} and issue `make modgo-gen-modules >modules.inc' to list the dependencies. The `make makesum' to update the checksums and the usual to build the port. I'm attaching a diff against your Makefie and an updated tarball (while there I've also bumped the version to the latest 2.9.1.) I haven't tested it, but the build ends with a : zsyscall_openbsd_amd64.s:213 : (syscall/zsyscall_openbsd_amd64.s:213)([...]/go-link-1246028766/go.o: : (syscall.libc_syscall_trampoline.abi0)): warning: syscall() may go : away, please rewrite code to use direct calls which hints that it may broke a runtime. Cheers, Omar Polo --- Makefile.orig Wed Apr 12 21:51:49 2023 +++ Makefile Wed Apr 12 21:51:23 2023 @@ -1,29 +1,22 @@ -COMMENT = Fast and customizable vulnerability scanner +COMMENT = fast and customizable vulnerability scanner -VERSION = 2.9.0 -GH_ACCOUNT = projectdiscovery -GH_PROJECT = nuclei -GH_TAGNAME = v${VERSION} +MODGO_MODNAME = github.com/projectdiscovery/nuclei/v2 +MODGO_VERSION = v2.9.1 +DISTNAME = nuclei-${MODGO_VERSION} + CATEGORIES = security HOMEPAGE = https://github.com/projectdiscovery/nuclei MAINTAINER = Xi Lu <l...@shellcodes.org> + # MIT PERMIT_PACKAGE = Yes WANTLIB += c pthread -USE_GMAKE = Yes MODULES += lang/go -WRKDIST = ${WRKDIR}/${PKGNAME} - -do-build: - cd ${WRKSRC}/v2 && gmake - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/v2/nuclei ${PREFIX}/bin - +.include "modules.inc" .include <bsd.port.mk>
nuclei.tar.gz
Description: GNU Zip compressed data