<commit_before>SUMMARY = "Websocket module for Apache web server"
DESCRIPTION = "Process requests using the WebSocket protocol (RFC 6455)"
HOMEPAGE = "https://github.com/jchampio/${PN}/"
SECTION = "net"
LICENSE = "Apache-2.0"

inherit autotools-brokensep pkgconfig

DEPENDS = "apache2 apache2-native"
RDEPENDS_${PN} += "apache2"

# Original (github.com/disconnect/apache-websocket) is dead since 2012, the
# fork contains patches from the modules ML and fixes CVE compliance issues
SRC_URI = "git://github.com/jchampio/apache-websocket.git"

SRCREV = "f5230d8c520dccf8631da94bf90c23f3c1100dcc"

PV = "0.1.1"

S = "${WORKDIR}/git"

LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"

EXTRA_OECONF = "APACHECTL=${STAGING_DIR_TARGET}${sbindir}/apachectl \
                LIBTOOL=${STAGING_DIR_TARGET}${bindir_crossscripts}/${HOST_SYS}-libtool"

do_install() {
    install -d ${D}${libdir}/apache2/modules/
    install ${B}/.libs/mod_websocket.so ${D}${libdir}/apache2/modules/
}

FILES_${PN} += " ${libdir}/apache2/modules/* "
FILES_${PN}-dbg += " ${libdir}/apache2/modules/.debug/* "
<commit_msg>apache-websocket: add depend on pbzip2-native<commit_after>SUMMARY = "Websocket module for Apache web server"
DESCRIPTION = "Process requests using the WebSocket protocol (RFC 6455)"
HOMEPAGE = "https://github.com/jchampio/${PN}/"
SECTION = "net"
LICENSE = "Apache-2.0"

inherit autotools-brokensep pkgconfig

DEPENDS = "apache2 apache2-native pbzip2-native"
RDEPENDS_${PN} += "apache2"

# Original (github.com/disconnect/apache-websocket) is dead since 2012, the
# fork contains patches from the modules ML and fixes CVE compliance issues
SRC_URI = "git://github.com/jchampio/apache-websocket.git"

SRCREV = "f5230d8c520dccf8631da94bf90c23f3c1100dcc"

PV = "0.1.1"

S = "${WORKDIR}/git"

LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"

EXTRA_OECONF = "APACHECTL=${STAGING_DIR_TARGET}${sbindir}/apachectl \
                LIBTOOL=${STAGING_DIR_TARGET}${bindir_crossscripts}/${HOST_SYS}-libtool"

do_install() {
    install -d ${D}${libdir}/apache2/modules/
    install ${B}/.libs/mod_websocket.so ${D}${libdir}/apache2/modules/
}

FILES_${PN} += " ${libdir}/apache2/modules/* "
FILES_${PN}-dbg += " ${libdir}/apache2/modules/.debug/* "

{'fraction_non_alphanumeric': 0.15263157894736842, 'fraction_numerical': 0.05789473684210526, 'mean_word_length': 5.1482479784366575, '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': '7486772', 'n_tokens_mistral': 949, 'n_tokens_neox': 871, 'n_words': 151}