summaryrefslogtreecommitdiff
path: root/net-firewall/nfacct/nfacct-1.0.2-r2.ebuild
blob: a6dc39569c14d50eadac201a4b1bdb8a7e6118b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit linux-info

DESCRIPTION="Command line tool to create/retrieve/delete accounting objects in NetFilter"
HOMEPAGE="https://www.netfilter.org/projects/nfacct/"
SRC_URI="https://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~ppc64 x86"

RDEPEND="
	net-libs/libmnl:=
	>=net-libs/libnetfilter_acct-1.0.3
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

CONFIG_CHECK="~NETFILTER_NETLINK_ACCT"

src_install() {
	default

	keepdir /var/lib/nfacct
	newinitd "${FILESDIR}"/${PN}.initd nfacct
	newconfd "${FILESDIR}"/${PN}.confd nfacct
}