ima-evm-utils: Add as new package
PATCH 1/1 ima-evm-utils: Add as new package
+ add myself as a maintainer.
Upstream patch from upcoming release is needed to fix build. Adding build and install hooks to run make in src subdirectory (root directory asciidoc and xsltproc for manpage).
---
Hi,
not sure if asciidoc and xsltproc should be detected and man page built if they are available on host.
NOTE: Git contains new version, but it might take some time before upstream uploads it to sourceforge.
Kind regards,
Petr
DEVELOPERS | 1 + package/Config.in | 1 + ...mctl-use-correct-include-for-xattr.h.patch | 84 +++++++++++++++++++ package/ima-evm-utils/Config.in | 13 +++ package/ima-evm-utils/ima-evm-utils.hash | 3 + package/ima-evm-utils/ima-evm-utils.mk | 32 +++++++ 6 files changed, 134 insertions(+) create mode 100644 package/ima-evm-utils/0001-evmctl-use-correct-include-for-xattr.h.patch create mode 100644 package/ima-evm-utils/Config.in create mode 100644 package/ima-evm-utils/ima-evm-utils.hash create mode 100644 package/ima-evm-utils/ima-evm-utils.mk
DEVELOPERS +1 -0
@@ -1825,6 +1825,7 @@ N: Petr Kulhavy <[email protected]> F: package/linuxptp/ N: Petr Vorel <[email protected]> +F: package/ima-evm-utils/ F: package/iproute2/ F: package/iputils/ F: package/linux-backports/
package/Config.in +1 -0
@@ -2122,6 +2122,7 @@ endmenu menu "Security" source "package/checkpolicy/Config.in" + source "package/ima-evm-utils/Config.in" source "package/optee-benchmark/Config.in" source "package/optee-client/Config.in" source "package/optee-examples/Config.in"
package/ima-evm-utils/0001-evmctl-use-correct-include-for-xattr.h.patch new file +84 -0
84 lines not on this page · raw message
package/ima-evm-utils/Config.in new file +13 -0
@@ -0,0 +1,13 @@ +config BR2_PACKAGE_IMA_EVM_UTILS + bool "ima-evm-utils" + #depends on BR2_USE_WCHAR + #depends on !BR2_STATIC_LIBS # uses dlfcn.h + #depends on BR2_TOOLCHAIN_HAS_THREADS + #depends on BR2_USE_MMU # libglib2 + #depends on BR2_TOOLCHAIN_HAS_SYNC_4 + select BR2_PACKAGE_OPENSSL + help + Linux Integrity Measurement Architecture (IMA) + Extended Verification Module (EVM) tools. + + https://sourceforge.net/p/linux-ima/wiki/Home/
package/ima-evm-utils/ima-evm-utils.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 766b9d5f18e4c929ffd59f262a1a178aeceba9a23dd3186e3f5b57c6965f3c44 ima-evm-utils-1.1.tar.gz +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
package/ima-evm-utils/ima-evm-utils.mk new file +32 -0
@@ -0,0 +1,32 @@ +################################################################################ +# +# ima-evm-utils +# +################################################################################ + +IMA_EVM_UTILS_VERSION = 1.1 +IMA_EVM_UTILS_SITE = http://downloads.sourceforge.net/project/linux-ima/ima-evm-utils +IMA_EVM_UTILS_LICENSE = GPL-2.0 +IMA_EVM_UTILS_LICENSE_FILES = COPYING +IMA_EVM_UTILS_DEPENDENCIES = host-pkgconf keyutils openssl + +# configure is missing but gpm seems not compatible with our autoreconf +# mechanism so we have to do it manually instead of using IMA_EVM_UTILS_AUTORECONF = YES +define IMA_EVM_UTILS_RUN_AUTOGEN + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh +endef +IMA_EVM_UTILS_PRE_CONFIGURE_HOOKS += IMA_EVM_UTILS_RUN_AUTOGEN + +# build just sources in src subdirectory as root directory requires asciidoc +# and xsltproc for manpage +define IMA_EVM_UTILS_BUILD_CMDS + $(TARGET_MAKE_ENV) $(IMA_EVM_UTILS_MAKE_ENV) $(MAKE) -C $(@D)/src all +endef +define IMA_EVM_UTILS_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(IMA_EVM_UTILS_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D)/src install +endef +define IMA_EVM_UTILS_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(IMA_EVM_UTILS_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D)/src install +endef + +$(eval $(autotools-package))
Signature · 1 line
2.22.0
PATCH 1/1 ima-evm-utils: Add as new package
Hi,
Quoted 3 lines
Upstream patch from upcoming release is needed to fix build. Adding build and install hooks to run make in src subdirectory (root directory asciidoc and xsltproc for manpage).
v2 will be needed. All tests fails when tested with ./utils/test-pkg:
Makefile:579: *** keyutils is in the dependency chain of ima-evm-utils that has added it to its _DEPENDENCIES variable without selecting it or depending on it from Config.in. Stop. Sorry for not catching it before.
And 1.2.1 has been released and uploaded to sourceforge.
Kind regards,
Petr