<commit_before>#!/bin/sh

p_source="$pkg_dist_dir/connman-1.26.tar.xz"

use_env host
use_toolchain target

p_prefix="$target_prefix"
p_dest_dir="$target_dir"

pkg_build() {
    export ac_cv_lib_resolv_ns_initparse=yes

    p_run ./configure \
        --host="$target_system" \
        --prefix="$p_prefix" \
        --localstatedir="/var" \
        --enable-pie \
        --disable-gadget \
        --disable-bluetooth \
        --disable-ofono \
        --disable-dundee \
        --disable-pacrunner \
        --disable-neard \
        --disable-wispr \
        --disable-client \
        --with-sysroot="${target_dir}${target_prefix}"

    p_run make
}

install_dbus_conf() {
    local conf_path="/etc/dbus-1/system.d"

    p_run install -vd "$sdk_rootfs_root$conf_path"
    p_run install -vm 644 \
        "$target_dir$conf_path/connman.conf" \
        "$sdk_rootfs_root$conf_path"
}

pkg_install() {
    p_run make DESTDIR="$p_dest_dir" install
}<commit_msg>Added sysconfdir parameter to connman build<commit_after>#!/bin/sh

p_source="$pkg_dist_dir/connman-1.26.tar.xz"

use_env host
use_toolchain target

p_prefix="$target_prefix"
p_dest_dir="$target_dir"

pkg_build() {
    export ac_cv_lib_resolv_ns_initparse=yes

    p_run ./configure \
        --host="$target_system" \
        --prefix="$p_prefix" \
        --sysconfdir="/settings" \
        --localstatedir="/var" \
        --enable-pie \
        --disable-gadget \
        --disable-bluetooth \
        --disable-ofono \
        --disable-dundee \
        --disable-pacrunner \
        --disable-neard \
        --disable-wispr \
        --disable-client \
        --with-sysroot="${target_dir}${target_prefix}"

    p_run make
}

install_dbus_conf() {
    local conf_path="/etc/dbus-1/system.d"

    p_run install -vd "$sdk_rootfs_root$conf_path"
    p_run install -vm 644 \
        "$target_dir$conf_path/connman.conf" \
        "$sdk_rootfs_root$conf_path"
}

pkg_install() {
    p_run make DESTDIR="$p_dest_dir" install
}
{'fraction_non_alphanumeric': 0.14314414866901054, 'fraction_numerical': 0.007031642390758413, 'mean_word_length': 2.287128712871287, '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': '3185907', 'n_tokens_mistral': 733, 'n_tokens_neox': 719, 'n_words': 98}