diff options
author | Anton Gerasimov <anton@advancedtelematic.com> | 2017-09-08 17:11:33 +0200 |
---|---|---|
committer | Anton Gerasimov <anton@advancedtelematic.com> | 2017-09-13 11:53:33 +0200 |
commit | 4a7366c4f161a98611a292394a9662a0c507f904 (patch) | |
tree | 2b71f99717dec2b17c23684bc20311c926489d32 /recipes-support/softhsm-testtoken/softhsm-testtoken.bb | |
parent | 6db91a2e484ab026dd50817147beed31c49abc2b (diff) | |
download | meta-updater-4a7366c4f161a98611a292394a9662a0c507f904.tar.gz |
Add recipes to test pkcs11 functionality in Aktualizr
Diffstat (limited to 'recipes-support/softhsm-testtoken/softhsm-testtoken.bb')
-rw-r--r-- | recipes-support/softhsm-testtoken/softhsm-testtoken.bb | 27 |
1 files changed, 27 insertions, 0 deletions
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 @@ | |||
1 | SUMMARY = "Mock smartcard for aktualizr" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
4 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
5 | |||
6 | |||
7 | inherit systemd | ||
8 | |||
9 | RDEPENDS_${PN} = "softhsm libp11" | ||
10 | DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}" | ||
11 | |||
12 | |||
13 | SRC_URI = "file://createtoken.service \ | ||
14 | file://createtoken.sh" | ||
15 | |||
16 | SYSTEMD_SERVICE_${PN} = "createtoken.service" | ||
17 | |||
18 | do_install() { | ||
19 | install -d ${D}${systemd_unitdir}/system | ||
20 | install -m 0644 ${WORKDIR}/createtoken.service ${D}${systemd_unitdir}/system/createtoken.service | ||
21 | install -d ${D}${bindir} | ||
22 | install -m 0744 ${WORKDIR}/createtoken.sh ${D}${bindir}/createtoken.sh | ||
23 | } | ||
24 | |||
25 | FILES_${PN} = "${bindir}/createtoken.sh \ | ||
26 | ${systemd_unitdir}/system/createtoken.service" | ||
27 | |||