<commit_before>SUMMARY = "OpenBSD Internet Superserver"
DESCRIPTION = "The inetd server is a network daemon program that specializes in managing\n\
incoming network connections. Its configuration file tells it what\n\
program needs to be run when an incoming connection is received. Any\n\
service port may be configured for either of the tcp or udp protocols.\n\
.\n\
This is a port of the OpenBSD daemon with some debian-specific features.\n\
This package supports IPv6, built-in libwrap access control, binding to\n\
specific addresses, UNIX domain sockets and socket buffers tuning."

inherit debian-package
PV = "0.20140418"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://inetd.c;beginline=3;endline=30;md5=ccb4076c1b1c0fd44eea72b467e0d33c"

DEPENDS = "libbsd tcp-wrappers"

do_compile() {
	oe_runmake -f ${S}/Makefile.debian
}

do_install() {
	install -d ${D}${sbindir} ${D}${systemd_system_unitdir}

	install -m 0755 ${S}/inetd ${D}${sbindir}/<commit_msg>openbsd-inetd: Fix do_configure error on "make clean"<commit_after>SUMMARY = "OpenBSD Internet Superserver"
DESCRIPTION = "The inetd server is a network daemon program that specializes in managing\n\
incoming network connections. Its configuration file tells it what\n\
program needs to be run when an incoming connection is received. Any\n\
service port may be configured for either of the tcp or udp protocols.\n\
.\n\
This is a port of the OpenBSD daemon with some debian-specific features.\n\
This package supports IPv6, built-in libwrap access control, binding to\n\
specific addresses, UNIX domain sockets and socket buffers tuning."

inherit debian-package
PV = "0.20140418"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://inetd.c;beginline=3;endline=30;md5=ccb4076c1b1c0fd44eea72b467e0d33c"

DEPENDS = "libbsd tcp-wrappers"

# Overwrite base_do_configure
do_configure() {
	# Original Makefile does not have target "clean" and is unusable,
	# use Makefile.debian instead
	if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then
		if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" ]; then
			cd ${B}
			if [ "${CLEANBROKEN}" != "1" ]; then
				oe_runmake -f ${S}/Makefile.debian clean
			fi
			find ${B} -ignore_readdir_race -name \*.la -delete
		fi
	fi
	if [ -n "${CONFIGURESTAMPFILE}" ]; then
		mkdir -p `dirname ${CONFIGURESTAMPFILE}`
		echo ${BB_TASKHASH} > ${CONFIGURESTAMPFILE}
	fi
}

do_compile() {
	oe_runmake -f ${S}/Makefile.debian
}

do_install() {
	install -d ${D}${sbindir} ${D}${systemd_system_unitdir}

	install -m 0755 ${S}/inetd ${D}${sbindir}/
{'fraction_non_alphanumeric': 0.11570247933884298, 'fraction_numerical': 0.027941755214482486, 'mean_word_length': 4.674107142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5390776', 'n_tokens_mistral': 950, 'n_tokens_neox': 866, 'n_words': 280}