From 4a7366c4f161a98611a292394a9662a0c507f904 Mon Sep 17 00:00:00 2001 From: Anton Gerasimov Date: Fri, 8 Sep 2017 17:11:33 +0200 Subject: Add recipes to test pkcs11 functionality in Aktualizr --- .../softhsm-testtoken/softhsm-testtoken.bb | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 recipes-support/softhsm-testtoken/softhsm-testtoken.bb (limited to 'recipes-support/softhsm-testtoken/softhsm-testtoken.bb') diff --git a/recipes-support/softhsm-testtoken/softhsm-testtoken.bb b/recipes-support/softhsm-testtoken/softhsm-testtoken.bb new file mode 100644 index 0000000..c5691db --- /dev/null +++ b/recipes-support/softhsm-testtoken/softhsm-testtoken.bb @@ -0,0 +1,27 @@ +SUMMARY = "Mock smartcard for aktualizr" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ + file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + + +inherit systemd + +RDEPENDS_${PN} = "softhsm libp11" +DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" + + +SRC_URI = "file://createtoken.service \ + file://createtoken.sh" + +SYSTEMD_SERVICE_${PN} = "createtoken.service" + +do_install() { + install -d ${D}${systemd_unitdir}/system + install -m 0644 ${WORKDIR}/createtoken.service ${D}${systemd_unitdir}/system/createtoken.service + install -d ${D}${bindir} + install -m 0744 ${WORKDIR}/createtoken.sh ${D}${bindir}/createtoken.sh +} + +FILES_${PN} = "${bindir}/createtoken.sh \ + ${systemd_unitdir}/system/createtoken.service" + -- cgit v1.2.3-54-g00ecf