SUMMARY="A utility to read and write to network connections"
DESCRIPTION="Netcat is a simple utility which reads and writes data across \
network connections, using the TCP or UDP protocol."
HOMEPAGE="http://nc110.sourceforge.net"
COPYRIGHT="1996 hobbit"
LICENSE="Public Domain"
REVISION="4"
SOURCE_URI="http://downloads.sf.net/nc110/unix%20netcat%201.10%20by%20_Hobbit_/%5BUnnamed%20release%5D/nc110.tgz"
CHECKSUM_SHA256="5b3fda14e972d908896a605293f4634a72e2968278117410e12d8b3faf9a3976"
SOURCE_DIR=""
PATCHES="netcat-1.10.patchset"

ARCHITECTURES="all"

PROVIDES="
	netcat = $portVersion
	cmd:nc = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:ld
	cmd:make
	"

BUILD()
{
	# make tries to static-link which obviously does not work
	cc netcat.c -O -DHAIKU -lnetwork -o nc
}

INSTALL()
{
	mkdir -p $binDir
	cp nc $binDir
}
