SUMMARY="Cloud metadata-based bootstrap support for Haiku"
DESCRIPTION="When installed, cloud-init enhances Haiku's ability to run in \
cloud environments by provisioning the system from the providers cloud-init \
metadata server.
"
HOMEPAGE="https://gitlab.com/kallisti5/cloud-init-haiku"
COPYRIGHT="2014-2021 Alexander von Gluck IV"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://gitlab.com/kallisti5/cloud-init-haiku/-/archive/v$portVersion/cloud-init-haiku-v$portVersion.tar.gz"
CHECKSUM_SHA256="8a0e8a5adad1e63c638451c33348202cedd56229ae085406133e01be2b132f18"
SOURCE_FILENAME="cloud-init-haiku-v$portVersion.tar.gz"
SOURCE_DIR="cloud-init-haiku-v$portVersion"

ARCHITECTURES="any"

PROVIDES="
	cloud_init = $portVersion
	cmd:cloud_init = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	cmd:curl
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	makefile_engine
	"
BUILD_PREREQUIRES="
	cmd:make
	"

BUILD()
{
	true
}

INSTALL()
{
	mkdir -p $binDir
	cp cloud-init.sh $binDir/cloud-init
	chmod 755 $binDir/cloud-init

	mkdir -p $dataDir/launch
	cp cloud-init.launch $dataDir/launch/cloud-init
}
