Subject: [PATCH v2 1/1] testing/ima-evm-utils: new aport

From: Petr Vorel <[email-masked]>
Date: Mon, 25 Jan 2021 01:34:02 +0100

From: Petr Vorel <[email-masked]>

Signed-off-by: Petr Vorel <[email-masked]>
---
Changes v1->v2 (required by maxice8):
* put into testing directory + fix commit message
* move build dependencies from depends to makedepends
* add more build dependencies (tpm2-tss-dev, attr - getfattr required
for testing, maybe only attr-dev would be enough)
* drop empty variables

@maxice8: thanks for your review and suggestions!

Kind regards,
Petr

 testing/ima-evm-utils/APKBUILD | 41 ++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 testing/ima-evm-utils/APKBUILD

diff --git a/testing/ima-evm-utils/APKBUILD b/testing/ima-evm-utils/APKBUILD
new file mode 100644
index 0000000000..b1e3341629
--- /dev/null
+++ b/testing/ima-evm-utils/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Petr Vorel <[email-masked]>
+# Maintainer: Petr Vorel <[email-masked]>
+pkgname=ima-evm-utils
+pkgver=1.3.2
+pkgrel=0
+pkgdesc="Linux Integrity Measurement Architecture (IMA) Extended Verification Module (EVM) tools"
+url="https://sourceforge.net/p/linux-ima/wiki/Home/"
+arch="all"
+license="LGPL-2.1-or-later"
+depends=""
+makedepends="attr attr-dev asciidoc autoconf automake bash diffutils docbook-xsl keyutils-dev libtool libxslt linux-headers openssl-dev tpm2-tss-dev xxd"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/project/linux-ima/ima-evm-utils/ima-evm-utils-$pkgver.tar.gz"
+builddir="$srcdir/ima-evm-utils-$pkgver"
+
+prepare() {
+	default_prepare
+	./autogen.sh
+}
+
+build() {
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--localstatedir=/var \
+		--disable-static
+	make
+}
+
+check() {
+	make check
+}
+
+package() {
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="af96935f953fbec8cdd40ba1a24001fae916633df03f9dee1e96775baec0ffea21a7a13798b3e3c3f375fd493a65fe65b5357887890b46cac0c4dcca5a5b79db  ima-evm-utils-1.3.2.tar.gz"
-- 
2.30.0