<commit_before>DESCRIPTION = "Configure WiFi, username, password, etc"
HOMEPAGE = "https://github.com/RabbitPi/rabbitpi-config"
SECTION = "Network & Connectivity"
LICENSE = "Apache-2.0"
PR = "r1"

LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

SRC_URI = "git://github.com/RabbitPi/rabbitpi-config.git;branch=master;tag=b00a48298b5854e3c0151ad46c89f1c5e546da52"

DEPENDS = "nodejs"

S = "${WORKDIR}/git"

do_configure() {
}

do_compile() {
}

do_install() {
 cd ${S}
 npm install
 rm -rf ${D}
 mkdir -p ${D}/opt/rabbitpi-config
 cp -R ${S}/* ${D}/opt/rabbitpi-config/
}

FILES_${PN} = ""
FILES_${PN} += "/opt/"
FILES_${PN} += "/opt/rabbitpi-config"
FILES_${PN} += "/opt/rabbitpi-config/*"<commit_msg>rabbitpi-config_git.bb: systemd service to launch the web server<commit_after>DESCRIPTION = "Configure WiFi, username, password, etc"
HOMEPAGE = "https://github.com/RabbitPi/rabbitpi-config"
SECTION = "Network & Connectivity"
LICENSE = "Apache-2.0"
PR = "r1"

LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

SRC_URI = "git://github.com/RabbitPi/rabbitpi-config.git;branch=master;tag=95af2fa40f7d19c1b1bb66de0af8b4970522c909"

inherit systemd

SYSTEMD_SERVICE_${PN} = "rabbitpi-config.service"

DEPENDS = "nodejs"

S = "${WORKDIR}/git"

do_configure() {
}

do_compile() {
}

do_install() {
 cd ${S}
 npm install
 rm -rf ${D}
 mkdir -p ${D}/opt/rabbitpi-config
 cp -R ${S}/* ${D}/opt/rabbitpi-config/

 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
  install -p -D ${S}/systemd/rabbitpi-config.service ${D}${systemd_unitdir}/system/rabbitpi-config.service
 fi
}

FILES_${PN} = ""
FILES_${PN} += "/opt/"
FILES_${PN} += "/opt/rabbitpi-config"
FILES_${PN} += "/opt/rabbitpi-config/*"
{'fraction_non_alphanumeric': 0.18898071625344354, 'fraction_numerical': 0.05234159779614325, 'mean_word_length': 5.240549828178694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3520243', 'n_tokens_mistral': 831, 'n_tokens_neox': 761, 'n_words': 117}