| 10 |
10 |
PYTHON_COMPAT=( python3_{12..15} )
|
| 11 |
11 |
TMPFILES_OPTIONAL=1
|
| 12 |
12 |
|
| 13 |
|
inherit autotools multilib-minimal toolchain-funcs python-r1 linux-info systemd tmpfiles usr-ldscript
|
|
13 |
inherit autotools multilib-minimal toolchain-funcs python-r1 linux-info
|
|
14 |
inherit systemd tmpfiles usr-ldscript
|
| 14 |
15 |
|
| 15 |
16 |
DESCRIPTION="Userspace utilities for storing and processing auditing records"
|
| 16 |
17 |
HOMEPAGE="https://people.redhat.com/sgrubb/audit/"
|
| 17 |
|
SRC_URI="https://github.com/linux-audit/audit-userspace/archive/refs/tags/v${PV}.tar.gz
|
| 18 |
|
-> ${P}.tar.gz"
|
| 19 |
|
|
|
18 |
SRC_URI="https://github.com/linux-audit/audit-userspace/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
| 20 |
19 |
S="${WORKDIR}/audit-userspace-${PV}"
|
|
20 |
|
| 21 |
21 |
LICENSE="GPL-2+ LGPL-2.1+"
|
| 22 |
22 |
SLOT="0"
|
| 23 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
| 24 |
|
IUSE="build gssapi io-uring ldap python static-libs"
|
|
23 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
24 |
IUSE="build gssapi io-uring ldap python ssl static-libs"
|
| 25 |
25 |
|
| 26 |
26 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
| 27 |
27 |
|
| ... | ... | |
| 30 |
30 |
gssapi? ( virtual/krb5 )
|
| 31 |
31 |
ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
|
| 32 |
32 |
python? ( ${PYTHON_DEPS} )
|
|
33 |
ssl? ( >=dev-libs/openssl-1.1.1:= )
|
| 33 |
34 |
"
|
| 34 |
35 |
DEPEND="
|
| 35 |
36 |
${RDEPEND}
|
| ... | ... | |
| 51 |
52 |
strndupa
|
| 52 |
53 |
)
|
| 53 |
54 |
|
| 54 |
|
PATCHES=(
|
| 55 |
|
"${FILESDIR}/${PN}-4.0.1-musl-basename.patch"
|
| 56 |
|
)
|
| 57 |
|
|
| 58 |
55 |
src_prepare() {
|
|
56 |
default
|
|
57 |
|
| 59 |
58 |
# audisp-remote moved in multilib_src_install_all
|
| 60 |
59 |
sed -i \
|
| 61 |
60 |
-e "s,/sbin/audisp-remote,${EPREFIX}/usr/sbin/audisp-remote," \
|
| ... | ... | |
| 64 |
63 |
# Disable installing sample rules so they can be installed as docs.
|
| 65 |
64 |
echo -e '%:\n\t:' | tee rules/Makefile.{am,in} >/dev/null || die
|
| 66 |
65 |
|
| 67 |
|
default
|
|
66 |
# Tries to send a real audit event so fails
|
|
67 |
sed -i -e '/test_audit_logging_comm_format()/d' \
|
|
68 |
lib/test/audit_logging_test.c || die
|
|
69 |
|
| 68 |
70 |
eautoreconf
|
| 69 |
71 |
}
|
| 70 |
72 |
|
| ... | ... | |
| 75 |
77 |
--runstatedir="${EPREFIX}"/run
|
| 76 |
78 |
$(use_enable gssapi gssapi-krb5)
|
| 77 |
79 |
$(use_enable ldap zos-remote)
|
|
80 |
$(multilib_native_use_enable ssl tls)
|
| 78 |
81 |
$(use_enable static-libs static)
|
| 79 |
82 |
$(use_with arm)
|
| 80 |
83 |
$(use_with arm64 aarch64)
|