From a92afb5120357241f7136f0d1600623067c321a7 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 9 Feb 2018 12:21:43 -0200 Subject: [PATCH] New package: libkcapi-1.0.3. Closes: #11513 [via git-merge-pr] --- srcpkgs/libkcapi-devel | 1 + srcpkgs/libkcapi/patches/makefile.patch | 18 +++++++++++ srcpkgs/libkcapi/template | 40 +++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 120000 srcpkgs/libkcapi-devel create mode 100644 srcpkgs/libkcapi/patches/makefile.patch create mode 100644 srcpkgs/libkcapi/template diff --git a/srcpkgs/libkcapi-devel b/srcpkgs/libkcapi-devel new file mode 120000 index 0000000000..4483bba709 --- /dev/null +++ b/srcpkgs/libkcapi-devel @@ -0,0 +1 @@ +libkcapi \ No newline at end of file diff --git a/srcpkgs/libkcapi/patches/makefile.patch b/srcpkgs/libkcapi/patches/makefile.patch new file mode 100644 index 0000000000..267fa7cb41 --- /dev/null +++ b/srcpkgs/libkcapi/patches/makefile.patch @@ -0,0 +1,18 @@ +Source: Arch Linux +Upstream: No, distro specific +Reason: avoids conflicts with coreutils binaries like md5sum + +--- Makefile.am 2018-01-12 22:41:55.000000000 +0100 ++++ Makefile.am 2018-01-25 15:34:35.649902674 +0100 +@@ -131,8 +131,8 @@ + + install-exec-hook: + (cd $(DESTDIR)$(bindir) && \ +- ($(foreach link, $(kcapi_hasher_links), ln -f kcapi-hasher $(link);)) && \ +- ($(foreach link, $(kcapi_hasher_links), openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $(link) > .$(link).hmac;))) ++ ($(foreach link, $(kcapi_hasher_links), ln -f kcapi-hasher $(link)-kcapi;)) && \ ++ ($(foreach link, $(kcapi_hasher_links), openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $(link)-kcapi > .$(link)-kcapi.hmac;))) + endif + + if ENABLE_KCAPI_RNGAPP + diff --git a/srcpkgs/libkcapi/template b/srcpkgs/libkcapi/template new file mode 100644 index 0000000000..75a7e208e8 --- /dev/null +++ b/srcpkgs/libkcapi/template @@ -0,0 +1,40 @@ +# Template file for 'libkcapi' +pkgname=libkcapi +version=1.0.3 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config autoconf automake libtool" +short_desc="Kernel Crypto API User Space Interface Library" +maintainer="maxice8 " +license="GPL-2.0-or-later, BSD-3-Clause" +homepage="https://github.com/smuellerDD/libkcapi" +distfiles="https://github.com/smuellerDD/libkcapi/archive/v${version}.tar.gz" +checksum=b9e61df09870084b910a9623284596857583918c0a39f0e37906f462b535ba78 +configure_args=" + --enable-kcapi-speed \ + --enable-kcapi-hasher \ + --enable-kcapi-rngapp \ + --enable-kcapi-encapp \ + --enable-kcapi-dgstapp \ + --enable-lib-asym \ + --enable-lib-kpp +" + +pre_configure() { + autoreconf -i +} + +post_install() { + vlicense COPYING +} + +libkcapi-devel_package() { + depends=${sourcepkg}>=${version}_${revision} + short_desc+=" - Development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + vmove "usr/lib/*.a" + } +}