<commit_before>SUMMARY = "A Firmware Over-The-Air agent for Embedded and Industrial Linux-based devices"
HOMEPAGE = "https://updatehub.io"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${S}/src/${GO_IMPORT}/COPYING;md5=21acc3521d288a5d8a4b3fb611a39604"

DEPENDS_append = " glide-native libarchive upx-native"

GO_IMPORT = "github.com/updatehub/updatehub"
SRC_URI = " \
    git://${GO_IMPORT};branch=v1 \
    file://updatehub.initd \
    file://updatehub.service \
    file://updatehub.start \
"

SRCREV = "5533579f00c3e2e3655ecc9410d45c6bc63b0ac0"

PV = "1.0.12"

inherit go glide systemd update-rc.d pkgconfig

# Avoid dynamic linking as it causes segfault
GO_LINKSHARED = ""

SYSTEMD_PACKAGE = "${PN}"
SYSTEMD_SERVICE_${PN} = "${PN}.service"

INITSCRIPT_NAME = "${PN}"
INITSCRIPT_PARAMS = "defaults 99"

UPX ?= "${STAGING_BINDIR_NATIVE}/upx"
UPX_ARGS ?= "--best -q"

GO_INSTALL = " \
    ${GO_IMPORT}/cmd/updatehub \
    ${GO_IMPORT}/cmd/updatehub-ctl \
    ${GO_IMPORT}/cmd/updatehub-server \
"

GO_LINKMODE_append = " \
    -X main.gitversion=${PV} \
"

do_install_append() {
    # updatehub server udev rule for USB mounting<commit_msg>updatehub: Update 1.0.12 -> 1.0.14<commit_after>SUMMARY = "A Firmware Over-The-Air agent for Embedded and Industrial Linux-based devices"
HOMEPAGE = "https://updatehub.io"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${S}/src/${GO_IMPORT}/COPYING;md5=21acc3521d288a5d8a4b3fb611a39604"

DEPENDS_append = " glide-native libarchive upx-native"

GO_IMPORT = "github.com/updatehub/updatehub"
SRC_URI = " \
    git://${GO_IMPORT};branch=v1 \
    file://updatehub.initd \
    file://updatehub.service \
    file://updatehub.start \
"

SRCREV = "a66b3e1db138579844aba49b89685b4303c5202c"

PV = "1.0.14"

inherit go glide systemd update-rc.d pkgconfig

# Avoid dynamic linking as it causes segfault
GO_LINKSHARED = ""

SYSTEMD_PACKAGE = "${PN}"
SYSTEMD_SERVICE_${PN} = "${PN}.service"

INITSCRIPT_NAME = "${PN}"
INITSCRIPT_PARAMS = "defaults 99"

UPX ?= "${STAGING_BINDIR_NATIVE}/upx"
UPX_ARGS ?= "--best -q"

GO_INSTALL = " \
    ${GO_IMPORT}/cmd/updatehub \
    ${GO_IMPORT}/cmd/updatehub-ctl \
    ${GO_IMPORT}/cmd/updatehub-server \
"

GO_LINKMODE_append = " \
    -X main.gitversion=${PV} \
"

do_install_append() {
    # updatehub server udev rule for USB mounting
{'fraction_non_alphanumeric': 0.14932520679146713, 'fraction_numerical': 0.052242054854157595, 'mean_word_length': 4.129464285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4027949', 'n_tokens_mistral': 989, 'n_tokens_neox': 919, 'n_words': 152}