<commit_before>SUMMARY = "Node.js service to provide synergy connector for CardDav and CalDav"
SECTION = "webos/services"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d32239bcb673463ab874e80d47fae504"

inherit webos_public_repo
inherit webos_arch_indep
inherit webos_system_bus

PV = "0.3.0+gitr${SRCPV}"

SRCREV = "d7c050f9673dac0489a63e1cf69f058c2d195c30"
SRC_URI = "git://github.com/webOS-ports/org.webosports.service.contacts.carddav;protocol=git;branch=master"
S = "${WORKDIR}/git"

WEBOS_SYSTEM_BUS_FILES_LOCATION = "${S}/service/sysbus"

do_install() {
    # the service itself
    install -d ${D}${webos_servicesdir}/org.webosports.cdav.service
    cp -rv ${S}/service/* ${D}${webos_servicesdir}/org.webosports.cdav.service
    rm -rf ${D}${webos_servicesdir}/org.webosports.cdav.service/configuration

    # db8 kinds and permissions
    install -d ${D}${webos_sysconfdir}/db/kinds
    install -d ${D}${webos_sysconfdir}/db/permissions
    cp -vrf ${S}/service/configuration/db/kinds/* ${D}${webos_sysconfdir}/db/kinds/
    cp -vrf ${S}/service/configuration/db/permissions/* ${D}${webos_sysconfdir}/db/permissions/

    # account templates
    install -d ${D}${webos_accttemplatesdir}/org.webosports.cdav
    cp -vrf ${S}/accounts-enyo/* ${D}${webos_accttemplatesdir}/org.webosports.cdav

    install -d ${D}${webos_accttemplatesdir}/org.webosports.cdav.account.google.contacts
    cp -vrf ${S}/accounts-google-contacts/* ${D}${webos_accttemplatesdir}/org.webosports.cdav.account.google.contacts

    install -d ${D}${webos_accttemplatesdir}/org.webosports.cdav.account.icloud
    cp -vrf ${S}/accounts-icloud/* ${D}${webos_accttemplatesdir}/org.webosports.cdav.account.icloud
<commit_msg>org.webosports.cdav: fixup wrong directory usage<commit_after>SUMMARY = "Node.js service to provide synergy connector for CardDav and CalDav"
SECTION = "webos/services"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d32239bcb673463ab874e80d47fae504"

inherit webos_public_repo
inherit webos_arch_indep
inherit webos_system_bus

PV = "0.3.0+gitr${SRCPV}"

SRCREV = "d7c050f9673dac0489a63e1cf69f058c2d195c30"
SRC_URI = "git://github.com/webOS-ports/org.webosports.service.contacts.carddav;protocol=git;branch=master"
S = "${WORKDIR}/git"

WEBOS_SYSTEM_BUS_FILES_LOCATION = "${S}/service/sysbus"

do_install() {
    # the service itself
    install -d ${D}${webos_servicesdir}/org.webosports.cdav.service
    cp -rv ${S}/service/* ${D}${webos_servicesdir}/org.webosports.cdav.service
    rm -rf ${D}${webos_servicesdir}/org.webosports.cdav.service/configuration

    # db8 kinds and permissions
    install -d ${D}${webos_sysconfdir}/db/kinds
    install -d ${D}${webos_sysconfdir}/db/permissions
    cp -vrf ${S}/service/configuration/db/kinds/* ${D}${webos_sysconfdir}/db/kinds/
    cp -vrf ${S}/service/configuration/db/permissions/* ${D}${webos_sysconfdir}/db/permissions/

    # account templates
    install -d ${D}${webos_accttemplatesdir}/org.webosports.cdav
    cp -vrf ${S}/accounts-enyo/* ${D}${webos_accttemplatesdir}/org.webosports.cdav

    install -d ${D}${webos_accttemplatesdir}/org.webosports.cdav.account.google
    cp -vrf ${S}/accounts-google/* ${D}${webos_accttemplatesdir}/org.webosports.cdav.account.google

    install -d ${D}${webos_accttemplatesdir}/org.webosports.cdav.account.icloud
    cp -vrf ${S}/accounts-icloud/* ${D}${webos_accttemplatesdir}/org.webosports.cdav.account.icloud

{'fraction_non_alphanumeric': 0.15339918651946544, 'fraction_numerical': 0.03137710633352702, 'mean_word_length': 5.061619718309859, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5002968', 'n_tokens_mistral': 1395, 'n_tokens_neox': 1324, 'n_words': 180}