William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 1 | SUMMARY = "Advanced Intrusion Detection Environment" |
| 2 | HOMEPAGE = "https://aide.github.io" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 4 | LICENSE = "GPL-2.0" |
| 5 | |
| 6 | DEPENDS = "bison-native libpcre" |
| 7 | |
| 8 | SRC_URI = "https://github.com/aide/aide/releases/download/v${PV}/${BPN}-${PV}.tar.gz \ |
| 9 | file://aide.conf" |
| 10 | |
| 11 | SRC_URI[sha256sum] = "a2eb1883cafaad056fbe43ee1e8ae09fd36caa30a0bc8edfea5d47bd67c464f8" |
| 12 | |
| 13 | inherit autotools pkgconfig |
| 14 | |
| 15 | PACKAGECONFIG ??=" mhash zlib e2fsattrs \ |
| 16 | ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit', '', d)} \ |
| 17 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)} \ |
| 18 | " |
| 19 | PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux, libselinux" |
| 20 | PACKAGECONFIG[zlib] = "--with-zlib, --without-zlib, zlib, zlib " |
| 21 | PACKAGECONFIG[xattr] = "--with-xattr, --without-xattr, attr, attr" |
| 22 | PACKAGECONFIG[curl] = "--with-curl, --without-curl, curl, libcurl" |
| 23 | PACKAGECONFIG[audit] = "--with-audit, --without-audit," |
| 24 | PACKAGECONFIG[gcrypt] = "--with-gcrypt, --without-gcrypt, libgcrypt, libgcrypt" |
| 25 | PACKAGECONFIG[mhash] = "--with-mhash, --without-mhash, libmhash, libmhash" |
| 26 | PACKAGECONFIG[e2fsattrs] = "--with-e2fsattrs, --without-e2fsattrs, e2fsprogs, e2fsprogs" |
| 27 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 28 | do_install:append () { |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 29 | install -d ${D}${libdir}/${PN}/logs |
| 30 | install -d ${D}${sysconfdir} |
| 31 | install ${WORKDIR}/aide.conf ${D}${sysconfdir}/ |
| 32 | } |
| 33 | |
| 34 | CONF_FILE = "${sysconfdir}/aide.conf" |
| 35 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 36 | FILES:${PN} += "${libdir}/${PN} ${sysconfdir}/aide.conf" |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 37 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 38 | pkg_postinst_ontarget:${PN} () { |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 39 | /usr/bin/aide -i |
| 40 | } |
| 41 | RDPENDS_${PN} = "bison, libpcre" |