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-2018 Paul Vixie"
LICENSE="BSD (2-clause)
	BSD (3-clause)
	GNU GPL v2"
REVISION="2"
SOURCE_URI="https://github.com/cronie-crond/cronie/archive/cronie-$portVersion.tar.gz"
CHECKSUM_SHA256="28cfdc6cc7df304dced6d0d0543767d8d22926f669a28d650c0513c168183eb4"
SOURCE_DIR="cronie-cronie-$portVersion"

if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
PATCHES="cronie-$portVersion.patchset"
fi

ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	cronie$secondaryArchSuffix = $portVersion
	cmd:crond$secondaryArchSuffix = $portVersion
	cmd:cronnext$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:autoconf
	cmd:autoheader
	cmd:automake
	cmd:make
	cmd:gcc$secondaryArchSuffix
	cmd:libtoolize$secondaryArchSuffix
	"

BUILD()
{
	autogen.sh
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
