SUMMARY = "OverC installer script"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

SRCREV = "${AUTOREV}"
SRC_URI = " \
    git://github.com/OverC/overc-installer.git \
    file://git/COPYING \
"

S = "${WORKDIR}/git"

do_install() {
	mkdir -p ${D}/opt/${BPN}/
	mkdir -p ${D}/lib/systemd/system/
	install -m755 ${S}/sbin/overc-cctl ${D}/opt/${BPN}/
	install -m 0755 ${S}/files/overc_cleanup.service ${D}/lib/systemd/system/
}

FILES_${PN} += "/opt/${BPN} \
		/lib/systemd/system \
	    "
RDEPENDS_${PN} += "bash"

SUMMARY = "OverC installer script"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

SRCREV = "${AUTOREV}"
SRC_URI = " \
    git://github.com/OverC/overc-installer.git \
    file://git/COPYING \
"

S = "${WORKDIR}/git"

do_install() {
	mkdir -p ${D}/opt/${BPN}/
	mkdir -p ${D}${systemd_system_unitdir}/
	install -m755 ${S}/sbin/overc-cctl ${D}/opt/${BPN}/
	install -m 0755 ${S}/files/overc_cleanup.service ${D}${systemd_system_unitdir}/
}

FILES_${PN} += "/opt/${BPN} \
		${systemd_system_unitdir} \
	    "
RDEPENDS_${PN} += "bash"

Make use of bitbake variables where appropriate.
overc-installer: Make use of bitbake variables where appropriate.

Signed-off-by: Amarnath Valluri <5a3316effc402a684e9cb7a2e1a469c9d7af1d37@intel.com>
Signed-off-by: Bruce Ashfield <284cc737d174a260eec2a2a6324a304f84b1ae0f@windriver.com>
