blob: 20055fd5bf5ef011e09a72b6fb1981e22c382989 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-info verify-sig
DESCRIPTION="Library providing interface to extended accounting infrastructure"
HOMEPAGE="https://netfilter.org/projects/libnetfilter_acct/"
SRC_URI="https://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2
verify-sig? ( https://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2.sig )"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~arm64 ppc ~ppc64 ~riscv x86 ~amd64-linux"
IUSE="examples"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/netfilter.org.asc
RDEPEND="
net-libs/libmnl
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig
verify-sig? ( sec-keys/openpgp-keys-netfilter )"
DOCS=( README )
CONFIG_CHECK="~NETFILTER_NETLINK_ACCT"
pkg_setup() {
kernel_is lt 3 3 && ewarn "This package will work with kernel version 3.3 or higher"
linux-info_pkg_setup
}
src_configure() {
econf \
--libdir="${EPREFIX}"/$(get_libdir)
}
src_install() {
default
dodir /usr/$(get_libdir)/pkgconfig/
mv "${ED}"/{,usr/}$(get_libdir)/pkgconfig/${PN}.pc || die
if use examples; then
find examples/ -name "Makefile*" -exec rm -f '{}' + || die 'find failed'
dodoc -r examples/
docompress -x /usr/share/doc/${P}/examples
fi
find "${ED}" -name '*.la' -delete || die
}
|