<commit_before>SECTION = "console/network"
DESCRIPTION = "netkit-tftpd includes a tftp server."
DEPENDS = "netkit-base"
RDEPENDS_${PN} = "netkit-base"
LICENSE = "BSD"
FILESDIR = "${<EMAIL>(bb.data.getVar('FILE',d,1))}/netkit-tftp-${PV}"

SRC_URI = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-tftp-${PV}.tar.gz \
	   file://mconfig.patch \
           file://tftpd_add_debug.patch \
	   file://pack_tftphdr.patch"

S = "${WORKDIR}/netkit-tftp-${PV}"

PR = "r8"

do_compile () {
	oe_runmake 'CC=${CC}' 'LD=${LD}' all
}

do_install () {
	install -d ${D}${sbindir}
	install -m 0755 tftpd/tftpd ${D}${sbindir}/tftpd
}

pkg_postinst () {
	#only run on the device
	if [ -n "$D" ]; then exit 1; fi

	#install inetd.conf line to run tftpd
	echo "tftp    dgram   udp     wait    root    ${sbindir}/tftpd tftpd" >> /etc/inetd.conf

	#force inetd to reload settings
	kill -SIGHUP `cat /var/run/inetd.pid`
}

SRC_URI[md5sum] = "b7262c798e2ff50e29c2ff50dfd8d6a8"
SRC_URI[sha256sum] = "3a43c0010d4e61f412563fd83769d4667d8b8e82903526d21cb9205fe55ad14d"<commit_msg>Revert "netkit-tftp/netkit-tftpd_0.17.bb: removed unneeded EXTRA_OEMAKE"<commit_after>SECTION = "console/network"
DESCRIPTION = "netkit-tftpd includes a tftp server."
DEPENDS = "netkit-base"
RDEPENDS_${PN} = "netkit-base"
LICENSE = "BSD"
FILESDIR = "${@<EMAIL>(bb.data.getVar('FILE',d,1))}/netkit-tftp-${PV}"

SRC_URI = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-tftp-${PV}.tar.gz \
	   file://mconfig.patch \
           file://tftpd_add_debug.patch \
	   file://pack_tftphdr.patch"

S = "${WORKDIR}/netkit-tftp-${PV}"

PR = "r8"

EXTRA_OEMAKE = ""
do_compile () {
	oe_runmake 'CC=${CC}' 'LD=${LD}' all
}

do_install () {
	install -d ${D}${sbindir}
	install -m 0755 tftpd/tftpd ${D}${sbindir}/tftpd
}

pkg_postinst () {
	#only run on the device
	if [ -n "$D" ]; then exit 1; fi

	#install inetd.conf line to run tftpd
	echo "tftp    dgram   udp     wait    root    ${sbindir}/tftpd tftpd" >> /etc/inetd.conf

	#force inetd to reload settings
	kill -SIGHUP `cat /var/run/inetd.pid`
}

SRC_URI[md5sum] = "b7262c798e2ff50e29c2ff50dfd8d6a8"
SRC_URI[sha256sum] = "3a43c0010d4e61f412563fd83769d4667d8b8e82903526d21cb9205fe55ad14d"
{'fraction_non_alphanumeric': 0.16984559491371481, 'fraction_numerical': 0.06857402361489555, 'mean_word_length': 4.064367816091954, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2480286', 'n_tokens_mistral': 1094, 'n_tokens_neox': 984, 'n_words': 164}