<commit_before>DESCRIPTION = "Base files from openwrt project"
HOMEPAGE = "http://wiki.openwrt.org/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f"

SRC_URI = "git://git.openwrt.org/15.05/openwrt.git;protocol=git;branch=master \
           file://0001-use-sh-not-ash.patch \
           "
SRCREV = "1fea0d89f5b7867262213fc0ac459c4ab861e465"

S = "${WORKDIR}/git"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

do_install () {
    cp -a ${S}/package/base-files/files/* ${D}
    chown -R root:root ${D}
    mkdir -p ${D}/CONTROL
    mkdir -p ${D}/dev
    mkdir -p ${D}/etc/crontabs
    mkdir -p ${D}/etc/rc.d
    mkdir -p ${D}/overlay
    mkdir -p ${D}/lib/firmware
    mkdir -p ${D}/mnt
    mkdir -p ${D}/proc
    mkdir -p ${D}/tmp
    mkdir -p ${D}/usr/lib
    mkdir -p ${D}/usr/bin
    mkdir -p ${D}/sys
    mkdir -p ${D}/www
    mkdir -p ${D}/root
    ln -sf /proc/mounts ${D}/etc/mtab
    mkdir -p ${D}/etc
    rm -rf ${D}/var
    ln -sf /tmp/resolv.conf /tmp/fstab /tmp/TZ ${D}/etc/
    chmod 0600 ${D}/etc/shadow
    chmod 1777 ${D}/tmp

    mkdir -p ${D}/etc/rc.d
    for script in ${D}/etc/init.d/*
    do
        grep '#!/bin/sh /etc/rc.common' $script > /dev/null || continue
        IPKG_INSTROOT=${D} /bin/bash ${D}/etc/rc.common $script enable || continue<commit_msg>base-files-openwrt: create /var/run directory<commit_after>DESCRIPTION = "Base files from openwrt project"
HOMEPAGE = "http://wiki.openwrt.org/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f"

SRC_URI = "git://git.openwrt.org/15.05/openwrt.git;protocol=git;branch=master \
           file://0001-use-sh-not-ash.patch \
           "
SRCREV = "1fea0d89f5b7867262213fc0ac459c4ab861e465"

S = "${WORKDIR}/git"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

do_install () {
    cp -a ${S}/package/base-files/files/* ${D}
    chown -R root:root ${D}
    mkdir -p ${D}/CONTROL
    mkdir -p ${D}/dev
    mkdir -p ${D}/etc/crontabs
    mkdir -p ${D}/etc/rc.d
    mkdir -p ${D}/overlay
    mkdir -p ${D}/lib/firmware
    mkdir -p ${D}/mnt
    mkdir -p ${D}/proc
    mkdir -p ${D}/tmp
    mkdir -p ${D}/usr/lib
    mkdir -p ${D}/usr/bin
    mkdir -p ${D}/sys
    mkdir -p ${D}/www
    mkdir -p ${D}/root
    ln -sf /proc/mounts ${D}/etc/mtab
    mkdir -p ${D}/etc
    rm -rf ${D}/var
    ln -sf /tmp/resolv.conf /tmp/fstab /tmp/TZ ${D}/etc/
    chmod 0600 ${D}/etc/shadow
    chmod 1777 ${D}/tmp

    mkdir -p ${D}/var/run
    mkdir -p ${D}/etc/rc.d
    for script in ${D}/etc/init.d/*
    do
        grep '#!/bin/sh /etc/rc.common' $script > /dev/null || continue
        IPKG_INSTROOT=${D} /bin/bash ${D}/etc/rc.common $script enable || continue
{'fraction_non_alphanumeric': 0.19108983799705448, 'fraction_numerical': 0.04639175257731959, 'mean_word_length': 2.4655612244897958, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3948300', 'n_tokens_mistral': 1232, 'n_tokens_neox': 1128, 'n_words': 237}