net-analyzer/brutus - 1.6.1 (pentoo)

Search

Install

Install this version:

emerge -a =net-analyzer/brutus-1.6.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-analyzer/brutus-1.6.1

Or alternatively:

emerge --autounmask-write -a =net-analyzer/brutus-1.6.1

Package Information

Description:
Fast, zero-dependency credential testing tool in Go.
Homepage:
https://github.com/praetorian-inc/brutus/wiki
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.6.1 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Fast, zero-dependency credential testing tool in Go. "
HOMEPAGE="https://github.com/praetorian-inc/brutus/wiki"
SRC_URI="
	https://github.com/praetorian-inc/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/pentoo/pentoo-golang-dist/releases/download/${P}/${P}-deps.tar.xz
"
S="${WORKDIR}/${PN}-${PV}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="nerva naabu"

RESTRICT="test"

RDEPEND="
		nerva? ( net-analyzer/nerva )
		naabu? ( net-analyzer/naabu )
"

DEPEND="${RDEPEND}"
BDEPEND="
	dev-lang/go
"

QA_PREBUILD="*"

src_prepare() {
	default
}

src_unpack() {
	go-module_src_unpack
}

src_compile() {

local brutus_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 "${brutus_ldflags[*]}" \
		-o ${PN} \
		./cmd/${PN}
}

src_install() {
	newbin ${PN} ${PN}

	# Man page if present.
	if [[ -f man/man1/brutus.1 ]]; then
		doman man/man1/brutus.1
	fi
}

pkg_postinst() {
	elog "More informations:"
	elog "  - Documentation: https://github.com/praetorian-inc/brutus/wiki"
	elog ""
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-analyzer/brutus | euse -E <flag> -p net-analyzer/brutus | euse -D <flag> -p net-analyzer/brutus

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

		nerva? ( net-analyzer/nerva )
		naabu? ( net-analyzer/naabu )

RDEPEND

		nerva? ( net-analyzer/nerva )
		naabu? ( net-analyzer/naabu )

BDEPEND

	dev-lang/go

Manifest for 1.6.1

Type File Size Source URLs
DIST brutus-1.6.1-deps.tar.xz 53559196 bytes https://github.com/pentoo/pentoo-golang-dist/releases/download/brutus-1.6.1/brutus-1.6.1-deps.tar.xz
DIST brutus-1.6.1.tar.gz 4199714 bytes https://github.com/praetorian-inc/brutus/archive/refs/tags/v1.6.1.tar.gz