blob: fbfa8a7d0768fd41c4bb2122b32415ff92abfc59 [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"
4LICENSE = "GPL-2.0"
5
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
11SRC_URI[sha256sum] = "a2eb1883cafaad056fbe43ee1e8ae09fd36caa30a0bc8edfea5d47bd67c464f8"
12
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"
23PACKAGECONFIG[audit] = "--with-audit, --without-audit,"
24PACKAGECONFIG[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"