SUMMARY="A cron daemon"
DESCRIPTION="Cronie is a standard UNIX daemon cron based on the original vixie-cron"
HOMEPAGE="https://github.com/cronie-crond/cronie/"
COPYRIGHT="2004-2016 Paul Vixie"
LICENSE="BSD (2-clause)
	BSD (3-clause)
	GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/cronie-crond/cronie/archive/cronie-$portVersion.tar.gz"
CHECKSUM_SHA256="14701a1b952d3cf730ac73db626a6becd049c2d44dde43cd53e00643c573e0b6"
SOURCE_DIR="cronie-cronie-$portVersion"

ARCHITECTURES="all ?x86_gcc2 ?x86"
SECONDARY_ARCHITECTURES="?x86"

PROVIDES="
	cronie$secondaryArchSuffix = $portVersion
	cmd:crond$secondaryArchSuffix = $portVersion
	cmd:crontab$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
#	lib:libpam$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
#	devel:libpam$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoreconf
	cmd:gcc$secondaryArchSuffix
	cmd:libtoolize$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	autogen.sh

	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
