[sys-process/audit] fix messed up merge which broke USE=python
This commit is contained in:
parent
569c9cb8c5
commit
607a8ec284
@ -21,7 +21,7 @@ IUSE="apparmor ldap python tcpd"
|
|||||||
RESTRICT="test"
|
RESTRICT="test"
|
||||||
|
|
||||||
RDEPEND="apparmor? ( sys-apps/apparmor )
|
RDEPEND="apparmor? ( sys-apps/apparmor )
|
||||||
ldap? ( net-nds/openldap )
|
ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
|
||||||
tcpd? ( sys-apps/tcp-wrappers )
|
tcpd? ( sys-apps/tcp-wrappers )
|
||||||
sys-libs/libcap-ng"
|
sys-libs/libcap-ng"
|
||||||
DEPEND="${RDEPEND}
|
DEPEND="${RDEPEND}
|
||||||
@ -90,6 +90,27 @@ multilib_src_configure() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
multilib_src_compile() {
|
||||||
|
if multilib_is_native_abi; then
|
||||||
|
default
|
||||||
|
|
||||||
|
python_compile() {
|
||||||
|
emake -C "${BUILD_DIR}"/swig \
|
||||||
|
VPATH="${native_build}/lib" \
|
||||||
|
LIBS="${native_build}/lib/libaudit.la"
|
||||||
|
emake -C "${BUILD_DIR}"/bindings/python \
|
||||||
|
VPATH="${S}/bindings/python:${native_build}/bindings/python" \
|
||||||
|
auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la"
|
||||||
|
}
|
||||||
|
|
||||||
|
local native_build=${BUILD_DIR}
|
||||||
|
use python && python_foreach_impl python_compile
|
||||||
|
else
|
||||||
|
emake -C lib
|
||||||
|
emake -C auparse
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
multilib_src_install() {
|
multilib_src_install() {
|
||||||
if multilib_is_native_abi; then
|
if multilib_is_native_abi; then
|
||||||
emake DESTDIR="${D}" initdir="$(systemd_get_unitdir)" install
|
emake DESTDIR="${D}" initdir="$(systemd_get_unitdir)" install
|
||||||
|
Loading…
Reference in New Issue
Block a user