<commit_before>DESCRIPTION = "opencocon configuration reader"
SECTION = "base"
RDEPENDS_${PN} = "lsb python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"

SRC_URI = "file://scan-cnf-from-storage \
           file://cocon-read-cnf"

S="${WORKDIR}"

do_install() {
  set -ex

  install -d ${D}${sysconfdir}/init.d
  install -m 0755 ${WORKDIR}/scan-cnf-from-storage ${D}${sysconfdir}/init.d/scan-cnf-from-storage

  install -d ${D}${bindir}/
  install -m 0755 ${WORKDIR}/cocon-read-cnf ${D}${bindir}/cocon-read-cnf

}

# init.d : run on rc.S after udev, before of spmachine.

inherit update-rc.d

INITSCRIPT_PACKAGES = "scan-cnf-from-storage"
INITSCRIPT_NAME_scan-cnf-from-storage = "scan-cnf-from-storage"
INITSCRIPT_PARAMS_scan-cnf-from-storage = "start 40 S ."

FILES_${PN} = "/"

<commit_msg>cocon-readcnf : move init.d sequence<commit_after>DESCRIPTION = "opencocon configuration reader"
SECTION = "base"
RDEPENDS_${PN} = "lsb python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"

SRC_URI = "file://scan-cnf-from-storage \
           file://cocon-read-cnf"

S="${WORKDIR}"

do_install() {
  set -ex

  install -d ${D}${sysconfdir}/init.d
  install -m 0755 ${WORKDIR}/scan-cnf-from-storage ${D}${sysconfdir}/init.d/scan-cnf-from-storage

  install -d ${D}${bindir}/
  install -m 0755 ${WORKDIR}/cocon-read-cnf ${D}${bindir}/cocon-read-cnf

}


# init.d : run on rc.S after udev, before of spmachine.

inherit update-rc.d

INITSCRIPT_PACKAGES = "cocon-readcnf"
INITSCRIPT_NAME_cocon-readcnf = "scan-cnf-from-storage"
INITSCRIPT_PARAMS_cocon-readcnf = "start 40 S ."

FILES_${PN} = "/"


{'fraction_non_alphanumeric': 0.1702002355712603, 'fraction_numerical': 0.03415783274440518, 'mean_word_length': 4.243827160493828, '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': '2887889', 'n_tokens_mistral': 747, 'n_tokens_neox': 696, 'n_words': 115}