blob: 6bc2bfef84459ce737d59ab689a4c0141fbc589d [file] [log] [blame]
William A. Kennington IIIee32beb2021-06-02 12:48:35 -07001SUMMARY = "Advanced Intrusion Detection Environment"
2HOMEPAGE = "https://aide.github.io"
3LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
Patrick Williams03907ee2022-05-01 06:28:52 -05004LICENSE = "GPL-2.0-only"
William A. Kennington IIIee32beb2021-06-02 12:48:35 -07005
6DEPENDS = "bison-native libpcre"
7
8SRC_URI = "https://github.com/aide/aide/releases/download/v${PV}/${BPN}-${PV}.tar.gz \
9 file://aide.conf"
10
Andrew Geisslerd5838332022-05-27 11:33:10 -050011SRC_URI[sha256sum] = "c81505246f3ffc2e76036d43a77212ae82895b5881d9b9e25c1361b1a9b7a846"
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070012
13inherit autotools pkgconfig
14
15PACKAGECONFIG ??=" mhash zlib e2fsattrs \
16 ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit', '', d)} \
17 ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)} \
18 "
19PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux, libselinux"
20PACKAGECONFIG[zlib] = "--with-zlib, --without-zlib, zlib, zlib "
21PACKAGECONFIG[xattr] = "--with-xattr, --without-xattr, attr, attr"
22PACKAGECONFIG[curl] = "--with-curl, --without-curl, curl, libcurl"
Andrew Geisslerd5838332022-05-27 11:33:10 -050023PACKAGECONFIG[audit] = "--with-audit, --without-audit,audit"
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070024PACKAGECONFIG[gcrypt] = "--with-gcrypt, --without-gcrypt, libgcrypt, libgcrypt"
25PACKAGECONFIG[mhash] = "--with-mhash, --without-mhash, libmhash, libmhash"
26PACKAGECONFIG[e2fsattrs] = "--with-e2fsattrs, --without-e2fsattrs, e2fsprogs, e2fsprogs"
27
Patrick Williams213cb262021-08-07 19:21:33 -050028do_install:append () {
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070029 install -d ${D}${libdir}/${PN}/logs
30 install -d ${D}${sysconfdir}
31 install ${WORKDIR}/aide.conf ${D}${sysconfdir}/
32}
33
34CONF_FILE = "${sysconfdir}/aide.conf"
35
Patrick Williams213cb262021-08-07 19:21:33 -050036FILES:${PN} += "${libdir}/${PN} ${sysconfdir}/aide.conf"
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070037
Patrick Williams213cb262021-08-07 19:21:33 -050038pkg_postinst_ontarget:${PN} () {
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070039 /usr/bin/aide -i
40}
41RDPENDS_${PN} = "bison, libpcre"