From patchwork Wed Jul 31 19:31:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1139978 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nnfXmVWf"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45zNpH5kzgz9s7T for ; Thu, 1 Aug 2019 05:31:33 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4E853854E5; Wed, 31 Jul 2019 19:31:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6FTtOOn9c5I3; Wed, 31 Jul 2019 19:31:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 931F5854C9; Wed, 31 Jul 2019 19:31:30 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id ADB771BF3C8 for ; Wed, 31 Jul 2019 19:31:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AA144854B4 for ; Wed, 31 Jul 2019 19:31:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NsMRZKtfBB-R for ; Wed, 31 Jul 2019 19:31:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 7903184921 for ; Wed, 31 Jul 2019 19:31:26 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id r12so32015758edo.5 for ; Wed, 31 Jul 2019 12:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cjfCS0Vu+HaKVikNK/lVgqdrzMUnvFZtFb0oLP2NTE0=; b=nnfXmVWfhOx6+GrZMODWeu8pCVGeIzsH4gT1wXsxQppY9GGr1eCC6ePhxOUKwjOfmY MDZBAmJXsL8l7iA5fyKeFs2TgTn+ba3Dr2fa/8WRkrsuwieD16RxGKROsJK7sbZu1Skt 0IEce84OGbChEJGHRlVMsHkLjGMhSdDOrxlDJG8xNH7e8qDReLQqBRQlU6UQ6rYkimSH JlxSPIh1Jx5YRElzLz29vuATDnAsTC2zOlI34wgl8Y0zFHLzad2nFb1ztcnynbiSSd4Q 2iYUCaEJ6TMBeyfgDRxOCsjCsK/hNyX7Z75kdxzcXfidoDLP/0YI0ArAH7BjOGPynuJM ZFaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cjfCS0Vu+HaKVikNK/lVgqdrzMUnvFZtFb0oLP2NTE0=; b=npHo3YRwAUq24t7zMZ/OrhXzDMKReglfiD7Dr7n0puDCyAvbMT7K6ZK8c/RsfBxb1U pUzgEj9kkw6EqU7Ez45FJvvv9Ut6y5/DyZFvcS9RGgn4snv/3nfVb1uQLpHrGUMgncSC c8Iav6RBF4sNMYTQTeqSxFOJyKKO8kdKC8mjpGZx35YO3wg+/M363PfOb7HIMwhyQUXh wBtkfpGzMH8Zc3QWu20u8vzEKoj59ws1kwO5Msw4yE87zKObRhmrnW6anXWwZpf3lAIM fkYyV/+I8TbNpXmzsv57LH8COiJVBOblxGdaU1t4N/SWWHKvQrO+5HciP4cN38DrJCW/ RP7A== X-Gm-Message-State: APjAAAVSu0hyMS20rJKch+KItfOu/Ig/pFBklziTVrF0dsgr49H4MFwa VWBad+wr12EMjY3TrtjFGc2y2KP0emc= X-Google-Smtp-Source: APXvYqx5fOt0hFLBO/trR5Jslj2XIdvv1odtdd7j6qPgTCPc/Fk+VofpQZRi7ycpb0CX30ZP8pil9w== X-Received: by 2002:a17:906:9385:: with SMTP id l5mr94440075ejx.8.1564601484254; Wed, 31 Jul 2019 12:31:24 -0700 (PDT) Received: from dell5510.arch.suse.de ([62.201.25.198]) by smtp.gmail.com with ESMTPSA id e14sm348076ejj.69.2019.07.31.12.31.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 12:31:23 -0700 (PDT) From: Petr Vorel To: buildroot@buildroot.org Date: Wed, 31 Jul 2019 21:31:19 +0200 Message-Id: <20190731193119.10522-1-petr.vorel@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] ima-evm-utils: Add as new package, version 1.2.1 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" + add myself as a maintainer. Adding build and install hooks to run make in src subdirectory (root directory asciidoc and xsltproc for manpage). Signed-off-by: Petr Vorel --- Changes v1->v2: * Update to 1.2.1 (thus drop patch 0001-evmctl-use-correct-include-for-xattr.h.patch) * Fix build by adding required selects (BR2_PACKAGE_OPENSSL and BR2_PACKAGE_KEYUTILS) * Add depends on BR2_USE_MMU and !BR2_STATIC_LIBS (based on keyutils dependency) * cleanup comments Petr DEVELOPERS | 1 + package/Config.in | 1 + package/ima-evm-utils/Config.in | 11 ++++++++ package/ima-evm-utils/ima-evm-utils.hash | 3 +++ package/ima-evm-utils/ima-evm-utils.mk | 32 ++++++++++++++++++++++++ 5 files changed, 48 insertions(+) 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 diff --git a/DEVELOPERS b/DEVELOPERS index 05711ba678..5435a892c7 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1825,6 +1825,7 @@ N: Petr Kulhavy F: package/linuxptp/ N: Petr Vorel +F: package/ima-evm-utils/ F: package/iproute2/ F: package/iputils/ F: package/linux-backports/ diff --git a/package/Config.in b/package/Config.in index 9b2cc7522d..76f1ee1798 100644 --- a/package/Config.in +++ b/package/Config.in @@ -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" diff --git a/package/ima-evm-utils/Config.in b/package/ima-evm-utils/Config.in new file mode 100644 index 0000000000..7e3dcc4002 --- /dev/null +++ b/package/ima-evm-utils/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_IMA_EVM_UTILS + bool "ima-evm-utils" + depends on BR2_USE_MMU # keyutils dependency: fork() + depends on !BR2_STATIC_LIBS # keyutils dependency: dlopen + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_KEYUTILS + help + Linux Integrity Measurement Architecture (IMA) + Extended Verification Module (EVM) tools. + + https://sourceforge.net/p/linux-ima/wiki/Home/ diff --git a/package/ima-evm-utils/ima-evm-utils.hash b/package/ima-evm-utils/ima-evm-utils.hash new file mode 100644 index 0000000000..24be627d20 --- /dev/null +++ b/package/ima-evm-utils/ima-evm-utils.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 ad8471b58c4df29abd51c80d74b1501cfe3289b60d32d1b318618a8fd26c0c0a ima-evm-utils-1.2.1.tar.gz +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING diff --git a/package/ima-evm-utils/ima-evm-utils.mk b/package/ima-evm-utils/ima-evm-utils.mk new file mode 100644 index 0000000000..cd15f526f6 --- /dev/null +++ b/package/ima-evm-utils/ima-evm-utils.mk @@ -0,0 +1,32 @@ +################################################################################ +# +# ima-evm-utils +# +################################################################################ + +IMA_EVM_UTILS_VERSION = 1.2.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))