X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-connectivity%2Fkuksa-val%2Fkuksa-val_git.bb;h=a8e2c31f1db109b3d71e1dc3e2f5bc7e6e472567;hb=refs%2Fchanges%2F16%2F27716%2F1;hp=033e81e099dde575707e6920cfa49d64020155fb;hpb=785dae680241b989b92725a57255b1df77486d4a;p=AGL%2Fmeta-agl-demo.git diff --git a/recipes-connectivity/kuksa-val/kuksa-val_git.bb b/recipes-connectivity/kuksa-val/kuksa-val_git.bb index 033e81e09..a8e2c31f1 100644 --- a/recipes-connectivity/kuksa-val/kuksa-val_git.bb +++ b/recipes-connectivity/kuksa-val/kuksa-val_git.bb @@ -40,7 +40,7 @@ EXTRA_OECMAKE = " \ do_install:append() { # Lower the logging level used in the installed config.ini from the upstream - # default of "ALL", which seems to cause performance issues at the moment. + # default of "ALL", which spams the logs. sed -i 's/^log-level = .*/log-level = WARNING/' ${D}/${sysconfdir}/kuksa-val/config.ini if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then @@ -58,5 +58,17 @@ do_install:append() { chgrp 900 ${D}${sysconfdir}/kuksa-val/Server.pem } +# Put client certificates into their own package so we can avoid +# duplicates of them for e.g. cluster clients. Longer term this +# will need to be revisited. +PACKAGE_BEFORE_PN += "${PN}-client-certificates" + +FILES:${PN}-client-certificates = " \ + ${sysconfdir}/kuksa-val/Client.key \ + ${sysconfdir}/kuksa-val/Client.pem \ + ${sysconfdir}/kuksa-val/CA.pem \ +" + FILES:${PN} += "${systemd_system_unitdir} ${datadir}" +RDEPENDS:${PN} += "${PN}-client-certificates"