SUMMARY="Internet File Transfer Protocol server"
DESCRIPTION="the Internet File Transfer Protocol server process.
The server uses the TCP protocol and listens at the FTP port (21 by default)"
HOMEPAGE="http://ftp.netbsd.org/pub/NetBSD/misc/tnftp/"
COPYRIGHT="2001-2019 The NetBSD foundation"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="http://ftp.netbsd.org/pub/NetBSD/misc/tnftp/tnftpd-$portVersion.tar.gz"
CHECKSUM_SHA256="905519d239745ebec41c91e357af299f3bce04b59f84f2ba5f7654738439ac1c"
PATCHES="tnftpd-$portVersion.patchset"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	tnftpd = $portVersion
	cmd:tnftpd = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:bison
	cmd:gcc
	cmd:make
	"

BUILD()
{
	runConfigure ./configure LDFLAGS=-lbsd
	make $jobArgs
}

INSTALL()
{
	make install
}

TEST()
{
	make check
}
