SUMMARY="Secure file deletion for posix systems"
DESCRIPTION="A command-line compatible rm which destroys file contents \
before unlinking."
HOMEPAGE="http://srm.sourceforge.net/"
COPYRIGHT="2000 Matthew D. Gauthier"
LICENSE="MIT (no promotion)"
REVISION="1"
SOURCE_URI="https://downloads.sourceforge.net/project/srm/$portVersion/srm-$portVersion.tar.gz"
CHECKSUM_SHA256="7583c1120e911e292f22b4a1d949b32c23518038afd966d527dae87c61565283"

ARCHITECTURES="all"

PROVIDES="
	srm = $portVersion
	cmd:fill_test = $portVersion
	cmd:srm = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:automake
	cmd:gcc
	cmd:make
	"

BUILD()
{
	#./autogen.sh ...
	aclocal
	autoheader
	automake --add-missing
	autoconf
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}

# Beware, needs at least 5GB of disk space free.
TEST()
{
	make test
}
