pegtl: Initial recipe
PATCH v3 1/2 pegtl: Initial recipe
Introduce the Parsing Expression Grammar Template Library (PEGTL)
a zero-dependency C++ header-only parser combinator library for creating parsers according to the Parsing Expression Grammar (PEG).
--- meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb
meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb new file +11 -0
@@ -0,0 +1,11 @@ +DESCRIPTION="header-only library for creating parsers according to Parsing Expression Grammar" +HOMEPAGE="https://github.com/taocpp/PEGTL" +LICENSE="MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=80cb066ab204c7fe022f1cfe0c2c6818" + +SRCREV = "776fa4a1e8bda860008524f6dd9473967c8375b1" +SRC_URI = "git://[email protected]/taocpp/PEGTL.git;protocol=https;branch=master" + +inherit cmake + +S = "${WORKDIR}/git"
Signature · 1 line
2.17.1
PATCH v3 2/2 usbguard: Initial recipe
Introduce the USBGuard software framework that helps to protect against rogue USB devices (a.k.a. BadUSB) by implementing basic whitelisting and blacklisting capabilities based on device attributes.
--- .../usbguard/usbguard_0.7.4.bb | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 meta-oe/recipes-security/usbguard/usbguard_0.7.4.bb
meta-oe/recipes-security/usbguard/usbguard_0.7.4.bb new file +35 -0
@@ -0,0 +1,35 @@ +DESCRIPTION="USBGuard framework helps to protect against BadUSB." +HOMEPAGE="https://github.com/dkopecek/usbguard" +LICENSE="GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022" + +SRCREV = "0ab32d7fa092067030fcbef530968b5cc237b08c" +SRC_URI = "git://[email protected]/USBGuard/usbguard.git;protocol=https;branch=master" + +inherit autotools pkgconfig systemd bash-completion + +S = "${WORKDIR}/git" + +DEPENDS = "protobuf-native libxml2-native libxslt-native xmlto-native glib-2.0-native \ + dbus dbus-glib libqb libcap-ng libgcrypt libsodium protobuf pegtl" + +EXTRA_OECONF += "--with-bundled-catch" + +PACKAGECONFIG ??= "libsodium \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}" + +PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd" +PACKAGECONFIG[libsodium] = "--with-crypto-library=sodium" +PACKAGECONFIG[libgcrypt] = "--with-crypto-library=gcrypt" +PACKAGECONFIG[polkit] = "--with-polkit,--without-polkit" +PACKAGECONFIG[dbus] = "--with-dbus,--without-dbus" + +SYSTEMD_SERVICE_${PN} = "${PN}.service" +SYSTEMD_PACKAGES += "${PN}" + +do_install_append(){ + + sed -i 's|/var/log/usbguard/usbguard-audit.log|/var/log/usbguard-audit.log|g' \ + ${D}${sysconfdir}/usbguard/usbguard-daemon.conf +}
Signature · 1 line
2.17.1
Re: [meta-oe][PATCH v3 2/2] usbguard: Initial recipe
We are seeing below failures on mips
checking for LIBGCRYPT - version >= 1.5.0... ERROR:/usr/bin/libgcrypt-config should not be used, use an alternative such as pkg-config
see https://errors.yoctoproject.org/Errors/Details/254961/
Quoted 57 lines · Ayoub Zaki
Introduce the USBGuard software framework that helps to protect against rogue USB devices (a.k.a. BadUSB) by implementing basic whitelisting and blacklisting capabilities based on device attributes.
--- .../usbguard/usbguard_0.7.4.bb | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 meta-oe/recipes-security/usbguard/usbguard_0.7.4.bbmeta-oe/recipes-security/usbguard/usbguard_0.7.4.bb new file +35
-1@@ -0,0 +1,35 @@ +DESCRIPTION="USBGuard framework helps to protect against BadUSB." +HOMEPAGE="https://github.com/dkopecek/usbguard" +LICENSE="GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022" + +SRCREV = "0ab32d7fa092067030fcbef530968b5cc237b08c" +SRC_URI = "git://[email protected]/USBGuard/usbguard.git;protocol=https;branch=master" + +inherit autotools pkgconfig systemd bash-completion + +S = "${WORKDIR}/git" + +DEPENDS = "protobuf-native libxml2-native libxslt-native xmlto-native glib-2.0-native \ + dbus dbus-glib libqb libcap-ng libgcrypt libsodium protobuf pegtl" + +EXTRA_OECONF += "--with-bundled-catch" + +PACKAGECONFIG ??= "libsodium \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}" + +PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd" +PACKAGECONFIG[libsodium] = "--with-crypto-library=sodium" +PACKAGECONFIG[libgcrypt] = "--with-crypto-library=gcrypt" +PACKAGECONFIG[polkit] = "--with-polkit,--without-polkit" +PACKAGECONFIG[dbus] = "--with-dbus,--without-dbus" + +SYSTEMD_SERVICE_${PN} = "${PN}.service" +SYSTEMD_PACKAGES += "${PN}" + +do_install_append(){ + + sed -i 's|/var/log/usbguard/usbguard-audit.log|/var/log/usbguard-audit.log|g' \ + ${D}${sysconfdir}/usbguard/usbguard-daemon.conf +} --2.17.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel