net-analyzer/f2b - 0.5 (stintel)

Search

Install

Install this version:

emerge -a =net-analyzer/f2b-0.5

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

autounmask =net-analyzer/f2b-0.5

Or alternatively:

emerge --autounmask-write -a =net-analyzer/f2b-0.5

Package Information

Description:
lightweight automatic anti-bot turret for your public serivces
Homepage:
https://github.com/AdUser/f2b
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
0.5 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=8

inherit cmake

DESCRIPTION="lightweight automatic anti-bot turret for your public serivces"
HOMEPAGE="https://github.com/AdUser/f2b"
SRC_URI="https://github.com/AdUser/${PN}/archive/v${PV}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+client +csocket hardened mcast +pcre redis"

REQUIRED_USE="client? ( csocket )"

DEPEND="pcre? ( dev-libs/libpcre )
		redis? ( dev-db/redis )"
RDEPEND="${DEPEND}"

src_prepare() {
	eapply "${FILESDIR}/${P}-openrc-compat.patch"

	default
}

src_configure() {
	local mycmakeargs=($
		-DENABLE_CLIENT=$(usex client)
		-DENABLE_CSOCKET=$(usex csocket)
		-DENABLE_HARDENING=$(usex hardened)
		-DENABLE_MCAST=$(usex mcast)
		-DENABLE_PCRE=$(usex pcre)
		-DENABLE_REDIS=$(usex redis)
	)
	cmake_src_configure
}

src_install() {
	cmake_src_install

	newinitd "${S}/contrib/init.openrc" "${PN}"
}

USE Flags

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

Global/Standard Flags

client
Default: Enabled (+)
csocket
Default: Enabled (+)
pcre
Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

pcre? ( dev-libs/libpcre )
		redis? ( dev-db/redis )

RDEPEND

pcre? ( dev-libs/libpcre )
		redis? ( dev-db/redis )

Manifest for 0.5

Type File Size Source URLs
DIST f2b-0.5.tar.gz 66226 bytes https://github.com/AdUser/f2b/archive/v0.5/f2b-0.5.tar.gz