blob: 522cd85fe2a8f3d4b608049cd365c34026191ae1 [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
28do_install_append () {
29 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
36FILES_${PN} += "${libdir}/${PN} ${sysconfdir}/aide.conf"
37
38pkg_postinst_ontarget_${PN} () {
39 /usr/bin/aide -i
40}
41RDPENDS_${PN} = "bison, libpcre"