<commit_before>DESCRIPTION = "Watchdog sample daemon"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

FILESEXTRAPATHS_prepend := "${THISDIR}/watchdog-sample/:"

SRC_URI += "file://watchdog-sample.service"
SRC_URI += "file://watchdog-sample.c"

SYSTEMD_SERVICE_${PN} = "watchdog-sample.service"

RDEPENDS_${PN} = "systemd"
DEPENDS = "systemd"

inherit systemd

S = "${WORKDIR}"

do_compile() {
	$CC $CFLAGS ${S}/watchdog-sample.c `pkg-config --cflags --libs --print-errors libsystemd` -o watchdog-sample
}

do_install() {
	# install service file
	install -d ${D}${systemd_unitdir}/system
	install -c -m 0644 ${WORKDIR}/watchdog-sample.service ${D}${systemd_unitdir}/system
<commit_msg>watchdog-sample: inherit pkgconfig<commit_after>DESCRIPTION = "Watchdog sample daemon"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

FILESEXTRAPATHS_prepend := "${THISDIR}/watchdog-sample/:"

SRC_URI += "file://watchdog-sample.service"
SRC_URI += "file://watchdog-sample.c"

SYSTEMD_SERVICE_${PN} = "watchdog-sample.service"

RDEPENDS_${PN} = "systemd"
DEPENDS = "systemd"

inherit systemd
inherit pkgconfig

S = "${WORKDIR}"

do_compile() {
	$CC $CFLAGS ${S}/watchdog-sample.c `pkg-config --cflags --libs --print-errors libsystemd` -o watchdog-sample
}

do_install() {
	# install service file
	install -d ${D}${systemd_unitdir}/system
	install -c -m 0644 ${WORKDIR}/watchdog-sample.service ${D}${systemd_unitdir}/system

{'fraction_non_alphanumeric': 0.16399743754003843, 'fraction_numerical': 0.029468289557975657, 'mean_word_length': 5.6752136752136755, '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': '2895187', 'n_tokens_mistral': 634, 'n_tokens_neox': 601, 'n_words': 104}