parent
21758c5d17
commit
a92afb5120
3 changed files with 59 additions and 0 deletions
1
srcpkgs/libkcapi-devel
Symbolic link
1
srcpkgs/libkcapi-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
libkcapi
|
18
srcpkgs/libkcapi/patches/makefile.patch
Normal file
18
srcpkgs/libkcapi/patches/makefile.patch
Normal file
|
@ -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
|
||||
|
40
srcpkgs/libkcapi/template
Normal file
40
srcpkgs/libkcapi/template
Normal file
|
@ -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 <thinkabit.ukim@gmail.com>"
|
||||
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"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue