mirror of
https://git.yoctoproject.org/meta-security
synced 2026-10-15 17:27:01 +00:00
Release notes: https://github.com/aide/aide/releases/tag/v0.19.4 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
71 lines
2.5 KiB
BlitzBasic
71 lines
2.5 KiB
BlitzBasic
SUMMARY = "Advanced Intrusion Detection Environment"
|
|
HOMEPAGE = "https://aide.github.io"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
LICENSE = "GPL-2.0-only"
|
|
|
|
DEPENDS = "bison-native libpcre2"
|
|
|
|
SRC_URI = "https://github.com/aide/aide/releases/download/v${PV}/${BPN}-${PV}.tar.gz \
|
|
file://0001-Fixes-build-issues.patch \
|
|
file://aide.conf \
|
|
"
|
|
|
|
SRC_URI[sha256sum] = "47ab7c696f0745911479a41f90d7ad99d26536e186d66c4aad093bc72d20ff5f"
|
|
|
|
UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
|
|
|
|
inherit autotools pkgconfig aide-base
|
|
|
|
PACKAGECONFIG ??= " nettle zlib e2fsattrs posix-acl capabilities curl \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit', '', d)} \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)} \
|
|
"
|
|
PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux, libselinux"
|
|
PACKAGECONFIG[zlib] = "--with-zlib, --without-zlib, zlib, zlib "
|
|
PACKAGECONFIG[xattr] = "--with-xattr, --without-xattr, attr, attr"
|
|
PACKAGECONFIG[curl] = "--with-curl, --without-curl, curl, libcurl"
|
|
PACKAGECONFIG[audit] = "--with-audit, --without-audit,audit"
|
|
PACKAGECONFIG[gcrypt] = "--with-gcrypt, --without-gcrypt, libgcrypt, libgcrypt, , nettle"
|
|
PACKAGECONFIG[nettle] = "--with-nettle, --without-nettle, nettle, nettle, , gcrypt"
|
|
PACKAGECONFIG[e2fsattrs] = "--with-e2fsattrs, --without-e2fsattrs, e2fsprogs, e2fsprogs"
|
|
PACKAGECONFIG[capabilities] = "--with-capabilities, --without-capabilities, libcap, libcap"
|
|
PACKAGECONFIG[posix-acl] = "--with-posix-acl, --without-posix-acl, acl, acl"
|
|
|
|
do_install:append () {
|
|
install -d ${D}${libdir}/${PN}/logs
|
|
install -d ${D}${sysconfdir}
|
|
install ${UNPACKDIR}/aide.conf ${D}${sysconfdir}/
|
|
|
|
for dir in ${AIDE_INCLUDE_DIRS}; do
|
|
echo "${dir} NORMAL" >> ${D}${sysconfdir}/aide.conf
|
|
done
|
|
for dir in ${AIDE_SKIP_DIRS}; do
|
|
echo "!${dir}" >> ${D}${sysconfdir}/aide.conf
|
|
done
|
|
}
|
|
|
|
do_install:class-native () {
|
|
install -d ${D}${bindir}
|
|
install -d ${D}${datadir}/${BPN}
|
|
|
|
install ${B}/aide ${D}${bindir}
|
|
install ${UNPACKDIR}/aide.conf ${D}${datadir}/${BPN}/
|
|
}
|
|
|
|
CONF_FILE = "${sysconfdir}/aide.conf"
|
|
|
|
FILES:${PN} += "${libdir}/${PN} ${sysconfdir}/aide.conf"
|
|
|
|
pkg_postinst_ontarget:${PN} () {
|
|
if [ "${AIDE_SCAN_POSTINIT}" = "1" ]; then
|
|
${bindir}/aide -i
|
|
fi
|
|
if [ "${AIDE_RESCAN_POSTINIT}" = "1" ] && [ -e ${libdir}/aide/aide.db.gz ]; then
|
|
${bindir}/aide -C
|
|
fi
|
|
}
|
|
|
|
RDEPENDS:${PN} = "bison libpcre"
|
|
|
|
BBCLASSEXTEND = "native"
|