<commit_before>DESCRIPTION = "Ethernet/FDDI station activity monitor"
LICENSE = "BSD"
SECTION = "network"
HOMEPAGE = "http://www-nrg.ee.lbl.gov/"
RRECOMMENDS = "arpwatch-data"

SRC_URI = "ftp://ftp.ee.lbl.gov/arpwatch-${PV}.tar.gz \
    file://05debian_fhs.patch;patch=1 \
    file://06debian_manpages.patch;patch=1 \
    file://init.d \
    file://arpwatch.default \
    file://arpwatch.conf \
    file://ethercodes.dat \
    file://make.patch;patch=1"

inherit autotools

EXTRA_OEMAKE = "LDFLAGS=-L${STAGING_LIBDIR}"

fakeroot do_install() {
    install -d ${D}${bindir} ${D}${sbindir} ${D}${mandir}/man8 \
               ${D}${sysconfdir}/default \
               ${D}${sysconfdir}/init.d \
               ${D}${datadir}/arpwatch

    oe_runmake install DESTDIR=${D}
    oe_runmake install-man DESTDIR=${D}

    install -m 0755 ${S}/arp2ethers         ${D}${sbindir}
    install -m 0755 ${S}/arpfetch           ${D}${sbindir}
    install -m 0755 ${S}/bihourly           ${D}${sbindir}
    install -m 0755 ${S}/massagevendor      ${D}${sbindir}

    install -m 0644 ${S}/arp2ethers.8      ${D}${mandir}/man8
    install -m 0644 ${S}/arpfetch.8        ${D}${mandir}/man8
    install -m 0644 ${S}/bihourly.8        ${D}${mandir}/man8
    install -m 0644 ${S}/massagevendor.8   ${D}${mandir}/man8

    install -m 0755 ${WORKDIR}/init.d      ${D}${sysconfdir}/init.d/arpwatch
    install -m 0644 ${WORKDIR}/arpwatch.default   ${D}${sysconfdir}/default/arpwatch
    install -m 0644 ${WORKDIR}/arpwatch.conf      ${D}${sysconfdir}

    install -m 0644 ${WORKDIR}/ethercodes.dat     ${D}${datadir}/arpwatch
}

PACKAGES =+ "arpwatch-data"
FILES_arpwatch-data = "${datadir}/arpwatch/ethercodes.dat"
<commit_msg>arpwatch 2.1a13: Add fakeroot-native to DEPENDS since it's required to build. Closes #946.<commit_after>DESCRIPTION = "Ethernet/FDDI station activity monitor"
LICENSE = "BSD"
SECTION = "network"
HOMEPAGE = "http://www-nrg.ee.lbl.gov/"
DEPENDS = "fakeroot-native"
RRECOMMENDS = "arpwatch-data"

SRC_URI = "ftp://ftp.ee.lbl.gov/arpwatch-${PV}.tar.gz \
    file://05debian_fhs.patch;patch=1 \
    file://06debian_manpages.patch;patch=1 \
    file://init.d \
    file://arpwatch.default \
    file://arpwatch.conf \
    file://ethercodes.dat \
    file://make.patch;patch=1"

inherit autotools

EXTRA_OEMAKE = "LDFLAGS=-L${STAGING_LIBDIR}"

fakeroot do_install() {
    install -d ${D}${bindir} ${D}${sbindir} ${D}${mandir}/man8 \
               ${D}${sysconfdir}/default \
               ${D}${sysconfdir}/init.d \
               ${D}${datadir}/arpwatch

    oe_runmake install DESTDIR=${D}
    oe_runmake install-man DESTDIR=${D}

    install -m 0755 ${S}/arp2ethers         ${D}${sbindir}
    install -m 0755 ${S}/arpfetch           ${D}${sbindir}
    install -m 0755 ${S}/bihourly           ${D}${sbindir}
    install -m 0755 ${S}/massagevendor      ${D}${sbindir}

    install -m 0644 ${S}/arp2ethers.8      ${D}${mandir}/man8
    install -m 0644 ${S}/arpfetch.8        ${D}${mandir}/man8
    install -m 0644 ${S}/bihourly.8        ${D}${mandir}/man8
    install -m 0644 ${S}/massagevendor.8   ${D}${mandir}/man8

    install -m 0755 ${WORKDIR}/init.d      ${D}${sysconfdir}/init.d/arpwatch
    install -m 0644 ${WORKDIR}/arpwatch.default   ${D}${sysconfdir}/default/arpwatch
    install -m 0644 ${WORKDIR}/arpwatch.conf      ${D}${sysconfdir}

    install -m 0644 ${WORKDIR}/ethercodes.dat     ${D}${datadir}/arpwatch
}

PACKAGES =+ "arpwatch-data"
FILES_arpwatch-data = "${datadir}/arpwatch/ethercodes.dat"

{'fraction_non_alphanumeric': 0.1830344434955878, 'fraction_numerical': 0.03956732137773982, 'mean_word_length': 2.8657865786578656, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5612032', 'n_tokens_mistral': 1432, 'n_tokens_neox': 1324, 'n_words': 226}