added my Recipes
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
SUMMARY = "Crypto and TLS for C++11"
|
||||
HOMEPAGE = "https://botan.randombit.net"
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://license.txt;md5=f4ce98476c07c34e1793daa036960fad"
|
||||
SECTION = "libs"
|
||||
|
||||
SRC_URI = "https://botan.randombit.net/releases/Botan-${PV}.tar.xz"
|
||||
SRC_URI[sha256sum] = "dae047f399c5a47f087db5d3d9d9e8f11ae4985d14c928d71da1aff801802d55"
|
||||
|
||||
S = "${WORKDIR}/Botan-${PV}"
|
||||
|
||||
inherit python3native siteinfo lib_package
|
||||
|
||||
CPU ?= "${TARGET_ARCH}"
|
||||
CPU:x86 = "x86_32"
|
||||
CPU:armv7a = "armv7"
|
||||
CPU:armv7ve = "armv7"
|
||||
|
||||
do_configure() {
|
||||
python3 ${S}/configure.py \
|
||||
--prefix="${D}${exec_prefix}" \
|
||||
--libdir="${D}${libdir}" \
|
||||
--cpu="${CPU}" \
|
||||
--cc-bin="${CXX}" \
|
||||
--cxxflags="${CXXFLAGS}" \
|
||||
--ldflags="${LDFLAGS}" \
|
||||
--with-endian=${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \
|
||||
${@bb.utils.contains("TUNE_FEATURES","neon","","--disable-neon",d)} \
|
||||
--with-sysroot-dir=${STAGING_DIR_HOST} \
|
||||
--with-build-dir="${B}" \
|
||||
--optimize-for-size \
|
||||
--with-stack-protector \
|
||||
--enable-shared-library \
|
||||
--with-python-versions=3 \
|
||||
${EXTRA_OECONF}
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
oe_runmake
|
||||
}
|
||||
do_install() {
|
||||
oe_runmake install
|
||||
sed -i -e "s|${D}||g" ${D}${libdir}/pkgconfig/botan-2.pc
|
||||
}
|
||||
|
||||
PACKAGES += "${PN}-python3"
|
||||
|
||||
FILES:${PN}-python3 = "${libdir}/python3"
|
||||
|
||||
RDEPENDS:${PN}-python3 += "python3"
|
||||
|
||||
COMPATIBLE_HOST:riscv32 = "null"
|
||||
@@ -0,0 +1,117 @@
|
||||
SUMMARY = "Manage plain dm-crypt and LUKS encrypted volumes"
|
||||
DESCRIPTION = "Cryptsetup is used to conveniently setup dm-crypt managed \
|
||||
device-mapper mappings. These include plain dm-crypt volumes and \
|
||||
LUKS volumes. The difference is that LUKS uses a metadata header \
|
||||
and can hence offer more features than plain dm-crypt. On the other \
|
||||
hand, the header is visible and vulnerable to damage."
|
||||
HOMEPAGE = "https://gitlab.com/cryptsetup/cryptsetup"
|
||||
SECTION = "console"
|
||||
LICENSE = "GPL-2.0-with-OpenSSL-exception"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"
|
||||
|
||||
DEPENDS = " \
|
||||
json-c \
|
||||
libdevmapper \
|
||||
popt \
|
||||
util-linux-libuuid \
|
||||
"
|
||||
|
||||
DEPENDS:append:libc-musl = " argp-standalone"
|
||||
LDFLAGS:append:libc-musl = " -largp"
|
||||
|
||||
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/${BPN}/v${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}/${BP}.tar.xz"
|
||||
SRC_URI[sha256sum] = "410ded65a1072ab9c8e41added37b9729c087fef4d2db02bb4ef529ad6da4693"
|
||||
|
||||
inherit autotools gettext pkgconfig
|
||||
|
||||
# Use openssl because libgcrypt drops root privileges
|
||||
# if libgcrypt is linked with libcap support
|
||||
PACKAGECONFIG ??= " \
|
||||
keyring \
|
||||
cryptsetup \
|
||||
veritysetup \
|
||||
luks2-reencryption \
|
||||
integritysetup \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \
|
||||
kernel_crypto \
|
||||
internal-argon2 \
|
||||
blkid \
|
||||
luks-adjust-xts-keysize \
|
||||
openssl \
|
||||
ssh-token \
|
||||
"
|
||||
PACKAGECONFIG:append:class-target = " \
|
||||
udev \
|
||||
"
|
||||
|
||||
PACKAGECONFIG[keyring] = "--enable-keyring,--disable-keyring"
|
||||
PACKAGECONFIG[fips] = "--enable-fips,--disable-fips"
|
||||
PACKAGECONFIG[pwquality] = "--enable-pwquality,--disable-pwquality,libpwquality"
|
||||
PACKAGECONFIG[passwdqc] = "--enable-passwdqc,--disable-passwdqc,passwdqc"
|
||||
PACKAGECONFIG[cryptsetup] = "--enable-cryptsetup,--disable-cryptsetup"
|
||||
PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable-veritysetup"
|
||||
PACKAGECONFIG[luks2-reencryption] = "--enable-luks2-reencryption,--disable-luks2-reencryption"
|
||||
PACKAGECONFIG[integritysetup] = "--enable-integritysetup,--disable-integritysetup"
|
||||
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux"
|
||||
PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,,udev lvm2-udevrules"
|
||||
PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-kernel_crypto"
|
||||
# gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn't
|
||||
# recognized.
|
||||
PACKAGECONFIG[gcrypt-pbkdf2] = "--enable-gcrypt-pbkdf2"
|
||||
PACKAGECONFIG[internal-argon2] = "--enable-internal-argon2,--disable-internal-argon2"
|
||||
PACKAGECONFIG[internal-sse-argon2] = "--enable-internal-sse-argon2,--disable-internal-sse-argon2"
|
||||
PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux"
|
||||
PACKAGECONFIG[dev-random] = "--enable-dev-random,--disable-dev-random"
|
||||
PACKAGECONFIG[luks-adjust-xts-keysize] = "--enable-luks-adjust-xts-keysize,--disable-luks-adjust-xts-keysize"
|
||||
PACKAGECONFIG[openssl] = "--with-crypto_backend=openssl,,openssl"
|
||||
PACKAGECONFIG[gcrypt] = "--with-crypto_backend=gcrypt,,libgcrypt"
|
||||
PACKAGECONFIG[nss] = "--with-crypto_backend=nss,,nss"
|
||||
PACKAGECONFIG[kernel] = "--with-crypto_backend=kernel"
|
||||
PACKAGECONFIG[nettle] = "--with-crypto_backend=nettle,,nettle"
|
||||
PACKAGECONFIG[luks2] = "--with-default-luks-format=LUKS2,--with-default-luks-format=LUKS1"
|
||||
PACKAGECONFIG[ssh-token] = "--enable-ssh-token,--disable-ssh-token,libssh"
|
||||
|
||||
EXTRA_OECONF = "--enable-static"
|
||||
# Building without largefile is not supported by upstream
|
||||
EXTRA_OECONF += "--enable-largefile"
|
||||
# Requires a static popt library
|
||||
EXTRA_OECONF += "--disable-static-cryptsetup"
|
||||
# There's no recipe for libargon2 yet
|
||||
EXTRA_OECONF += "--disable-libargon2"
|
||||
# Disable documentation, there is no asciidoctor-native available in OE
|
||||
EXTRA_OECONF += "--disable-asciidoc"
|
||||
# libcryptsetup default PBKDF algorithm, Argon2 memory cost (KB), parallel threads and iteration time (ms)
|
||||
LUKS2_PBKDF ?= "argon2i"
|
||||
LUKS2_MEMORYKB ?= "1048576"
|
||||
LUKS2_PARALLEL_THREADS ?= "4"
|
||||
LUKS2_ITERTIME ?= "2000"
|
||||
|
||||
EXTRA_OECONF += "--with-luks2-pbkdf=${LUKS2_PBKDF} \
|
||||
--with-luks2-memory-kb=${LUKS2_MEMORYKB} \
|
||||
--with-luks2-parallel-threads=${LUKS2_PARALLEL_THREADS} \
|
||||
--with-luks2-iter-time=${LUKS2_ITERTIME}"
|
||||
|
||||
do_install:append() {
|
||||
# The /usr/lib/cryptsetup directory is always created, even when ssh-token
|
||||
# is disabled. In that case it is empty and causes a packaging error. Since
|
||||
# there is no reason to distribute the empty directory, the easiest solution
|
||||
# is to remove it if it is empty.
|
||||
rmdir -p --ignore-fail-on-non-empty ${D}${libdir}/${BPN}
|
||||
}
|
||||
|
||||
FILES:${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/cryptsetup.conf', '', d)}"
|
||||
|
||||
RDEPENDS:${PN} = " \
|
||||
libdevmapper \
|
||||
"
|
||||
|
||||
RRECOMMENDS:${PN}:class-target = " \
|
||||
kernel-module-aes-generic \
|
||||
kernel-module-dm-crypt \
|
||||
kernel-module-md5 \
|
||||
kernel-module-cbc \
|
||||
kernel-module-sha256-generic \
|
||||
kernel-module-xts \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,31 @@
|
||||
SUMMARY = "Userspace utilities for fs-verity"
|
||||
DESCRIPTION = "fs-verity is a Linux kernel feature that does transparent \
|
||||
on-demand integrity/authenticity verification of the contents of read-only \
|
||||
files, using a hidden Merkle tree (hash tree) associated with the file. The \
|
||||
mechanism is similar to dm-verity, but implemented at the file level rather \
|
||||
than at the block device level."
|
||||
HOMEPAGE = "https://www.kernel.org/doc/html/latest/filesystems/fsverity.html"
|
||||
SECTION = "console"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=bc974d217b525ea216a336adb73e1220"
|
||||
|
||||
SRCREV = "20e87c13075a8e5660a8d69fd6c93d4f7c5f01a5"
|
||||
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/fsverity-utils.git;branch=master"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS = "openssl"
|
||||
|
||||
EXTRA_OEMAKE:append = " PREFIX=${prefix} LIBDIR=${libdir} USE_SHARED_LIB=1"
|
||||
# We want to statically link the binary to libfsverity on native Windows
|
||||
EXTRA_OEMAKE:remove:mingw32:class-nativesdk = "USE_SHARED_LIB=1"
|
||||
EXTRA_OEMAKE:remove:mingw32:class-native = "USE_SHARED_LIB=1"
|
||||
|
||||
do_install() {
|
||||
oe_runmake install DESTDIR=${D}
|
||||
}
|
||||
|
||||
PACKAGES =+ "libfsverity"
|
||||
FILES:libfsverity = "${libdir}/libfsverity*${SOLIBS}"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,32 @@
|
||||
SUMMARY = "Linux Kernel Crypto API User Space Interface Library"
|
||||
HOMEPAGE = "http://www.chronox.de/libkcapi.html"
|
||||
LICENSE = "BSD-3-Clause | GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=a2562899bc38f1735868f0bf0c1dd1a5"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
SRCREV = "1429ab42d48123cc8f73b96c69a87fb9c6d8a7c9"
|
||||
SRC_URI = "git://github.com/smuellerDD/libkcapi.git;branch=master;protocol=https \
|
||||
"
|
||||
|
||||
inherit autotools
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,bash"
|
||||
PACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher --enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,,"
|
||||
PACKAGECONFIG[hasher_only] = "--enable-kcapi-hasher --disable-lib-kdf --disable-lib-sym --disable-lib-aead --disable-lib-rng,,,"
|
||||
|
||||
do_install:append() {
|
||||
# bindir contains testapp and apps. However it is always created, even
|
||||
# when no binaries are installed (empty bin_PROGRAMS in Makefile.am),
|
||||
rmdir --ignore-fail-on-non-empty ${D}${bindir}
|
||||
|
||||
# Remove the generated binary checksum files
|
||||
rm -f ${D}${bindir}/.*.hmac
|
||||
rm -f ${D}${libdir}/.*.hmac
|
||||
}
|
||||
|
||||
CPPFLAGS:append:libc-musl:toolchain-clang = " -Wno-error=sign-compare"
|
||||
CPPFLAGS:remove:libc-musl:toolchain-clang = "-Wno-error=sign-conversion"
|
||||
CPPFLAGS:append:libc-musl = " -Wno-error=sign-conversion"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,30 @@
|
||||
SUMMARY = "Replacement for the old crypt() package and crypt(1) command, with extensions"
|
||||
HOMEPAGE = "http://mcrypt.sourceforge.net/"
|
||||
LICENSE = "LGPL-2.1-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff"
|
||||
DEPENDS = "libtool"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/project/mcrypt/Libmcrypt/${PV}/libmcrypt-${PV}.tar.gz"
|
||||
|
||||
SRC_URI[md5sum] = "0821830d930a86a5c69110837c55b7da"
|
||||
SRC_URI[sha256sum] = "e4eb6c074bbab168ac47b947c195ff8cef9d51a211cdd18ca9c9ef34d27a373e"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/mcrypt/files/Libmcrypt/"
|
||||
UPSTREAM_CHECK_REGEX = "Libmcrypt/(?P<pver>\d+(\.\d+)+)/"
|
||||
|
||||
inherit autotools-brokensep gettext binconfig
|
||||
|
||||
CFLAGS += "-Wno-error=implicit-int"
|
||||
|
||||
do_configure() {
|
||||
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
|
||||
install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
|
||||
aclocal
|
||||
libtoolize --automake --copy --force
|
||||
autoconf
|
||||
autoheader
|
||||
automake -a
|
||||
oe_runconf
|
||||
}
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
@@ -0,0 +1,13 @@
|
||||
SUMMARY = "The Sodium crypto library"
|
||||
HOMEPAGE = "http://libsodium.org/"
|
||||
BUGTRACKER = "https://github.com/jedisct1/libsodium/issues"
|
||||
LICENSE = "ISC"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=47203c753972e855179dfffe15188bee"
|
||||
|
||||
SRC_URI = "https://download.libsodium.org/libsodium/releases/${BPN}-${PV}.tar.gz"
|
||||
SRC_URI[md5sum] = "3ca9ebc13b6b4735acae0a6a4c4f9a95"
|
||||
SRC_URI[sha256sum] = "6f504490b342a4f8a4c4a02fc9b866cbef8622d5df4e5452b46be121e46636c1"
|
||||
|
||||
inherit autotools
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,21 @@
|
||||
SUMMARY = "LibTomCrypt is a public domain open source cryptographic toolkit"
|
||||
HOMEPAGE = "https://www.libtom.net/LibTomCrypt"
|
||||
SECTION = "libs"
|
||||
LICENSE = "Unlicense"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=71baacc459522324ef3e2b9e052e8180"
|
||||
|
||||
DEPENDS += "libtool-cross"
|
||||
|
||||
SRC_URI = "git://github.com/libtom/libtomcrypt.git;protocol=https;branch=master"
|
||||
|
||||
SRCREV = "7e7eb695d581782f04b24dc444cbfde86af59853"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_compile() {
|
||||
oe_runmake -f makefile.shared
|
||||
}
|
||||
|
||||
do_install() {
|
||||
oe_runmake -f makefile.shared 'PREFIX=${prefix}' 'DESTDIR=${D}' 'LIBPATH=${libdir}' install
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
SUMMARY = "A library for using PKCS"
|
||||
DESCRIPTION = "pkcs11-helper is a library that simplifies the interaction with PKCS \
|
||||
providers for end-user applications using a simple API and optional OpenSSL \
|
||||
engine. The library allows using multiple PKCS enumerating available token \
|
||||
certificates, or selecting a certificate directly by serialized id, handling \
|
||||
card removal and card insert events, handling card ie-insert to a different \
|
||||
slot, supporting session expiration and much more all using a simple API."
|
||||
|
||||
HOMEPAGE = "https://github.com/OpenSC/pkcs11-helper"
|
||||
SECTION = "Development/Libraries"
|
||||
|
||||
LICENSE = "GPL-2.0-only & BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://COPYING;md5=30f10d22cfb1ba98ccd714a41ad3311a \
|
||||
file://COPYING.GPL;md5=8a71d0475d08eee76d8b6d0c6dbec543 \
|
||||
file://COPYING.BSD;md5=66b7a37c3c10483c1fd86007726104d7 \
|
||||
"
|
||||
SRC_URI = "git://github.com/OpenSC/${BPN}.git;branch=master;protocol=https"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
# master
|
||||
SRCREV = "f23911037d9790a3f3a3447a78d31a6362358e21"
|
||||
PV .= "+1.30.0+git${SRCPV}"
|
||||
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "pkcs11-helper-(?P<pver>\d+(\.\d+)+)"
|
||||
|
||||
DEPENDS = "zlib nettle gnutls gmp openssl nss nspr"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
EXTRA_OECONF = "--disable-static"
|
||||
Reference in New Issue
Block a user