net-dns/pihole-ftl - 5.25.2 (tatsh-overlay)

Search

Install

Install this version:

emerge -a =net-dns/pihole-ftl-5.25.2

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

autounmask =net-dns/pihole-ftl-5.25.2

Or alternatively:

emerge --autounmask-write -a =net-dns/pihole-ftl-5.25.2

Package Information

Description:
The Pi-hole FTL engine
Homepage:
https://github.com/pi-hole/FTL
License:
EUPL-1.2

Ebuild Details

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

EAPI=8

inherit cmake fcaps systemd

DESCRIPTION="The Pi-hole FTL engine"
HOMEPAGE="https://github.com/pi-hole/FTL"
SRC_URI="https://github.com/pi-hole/FTL/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/FTL-${PV}"
LICENSE="EUPL-1.2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="dev-libs/gmp:=
	dev-libs/nettle:=
	net-dns/libidn
	sys-libs/readline:=
	sys-libs/libtermcap-compat"
RDEPEND="${DEPEND}"
BDEPEND="app-editors/vim-core" # needed for xxd

PATCHES=( "${FILESDIR}/${PN}-0001-fixes.patch" )

FILECAPS=(
	'cap_net_bind_service,cap_net_admin,cap_net_raw,cap_sys_nice' usr/bin/pihole-FTL
)

src_prepare() {
	sed -re 's/-Werror //g' -i src/CMakeLists.txt || die
	cp "${FILESDIR}/pihole-FTL.conf" . || die
	sed -r -e "s/@EPREFIX@/${EPREFIX}/g" -i pihole-FTL.conf || die
	cmake_src_prepare
}

src_compile() {
	export GIT_BRANCH=master GIT_TAG=v${PV} GIT_VERSION=v${PV}
	cmake_src_compile
}

src_install() {
	cmake_src_install
	doinitd "${FILESDIR}/pihole-FTL"
	systemd_dounit "${FILESDIR}/pihole-FTL.service"
	insinto /etc/pihole
	doins pihole-FTL.conf
}

Inherited Eclasses

Dependencies

DEPEND

dev-libs/gmp:=
	dev-libs/nettle:=
	net-dns/libidn
	sys-libs/readline:=
	sys-libs/libtermcap-compat

RDEPEND

dev-libs/gmp:=
	dev-libs/nettle:=
	net-dns/libidn
	sys-libs/readline:=
	sys-libs/libtermcap-compat

BDEPEND

app-editors/vim-core

Manifest for 5.25.2

Type File Size Source URLs
DIST pihole-ftl-5.25.2.tar.gz 3521564 bytes https://github.com/pi-hole/FTL/archive/v5.25.2.tar.gz