diff options
author | Tim 'timtim' Ellis <tim.ellis@foonas.org> | 2009-01-24 00:43:58 +0000 |
---|---|---|
committer | Tim 'timtim' Ellis <tim.ellis@foonas.org> | 2009-01-24 00:43:58 +0000 |
commit | b1777b1bdf7d5971397ac6615257af56eced2602 (patch) | |
tree | 45b5982f912daaa8f9836334b1ee94cd61fd2a2e /packages/piccontrol/piccontrol_0.4.bb | |
parent | 1fae1769d399b1157bcb4318593cd24a2f6d45b4 (diff) |
piccontrol: Add init script, tidy up
Diffstat (limited to 'packages/piccontrol/piccontrol_0.4.bb')
-rw-r--r-- | packages/piccontrol/piccontrol_0.4.bb | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/packages/piccontrol/piccontrol_0.4.bb b/packages/piccontrol/piccontrol_0.4.bb index 7ec7e4c7d9..cfdef98b3c 100644 --- a/packages/piccontrol/piccontrol_0.4.bb +++ b/packages/piccontrol/piccontrol_0.4.bb @@ -1,25 +1,27 @@ DESCRIPTION = "Microcontroller utility for ARM turbostations by Byron Bradley" SECTION = "console/network" DEPENDS = "lua5.1" -FILE_PR = "r0" +PR = "r1" LICENSE = "GPL" - COMPATIBLE_MACHINE = "tsx09" -LDFLAGS += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl " -CFLAGS += " -I${STAGING_INCDIR}/lua5.1 " - -S = "${WORKDIR}/qcontrol-${PV}" - SRC_URI = "http://byronbradley.co.uk/piccontrol/qcontrol-0.4.tar.gz \ file://luafix-0.4.patch;patch=0 \ file://configlocation.patch;patch=1 \ - file://piccontrol-0.4.conf" + file://piccontrol-0.4.conf \ + file://init" +S = "${WORKDIR}/qcontrol-${PV}" + +inherit update-rc.d + +INITSCRIPT_NAME = "piccontrol" +INITSCRIPT_PARAMS = "defaults" + +LDFLAGS += " ${STAGING_LIBDIR}/liblua5.1.a -lpthread -lm -ldl " +CFLAGS += " -I${STAGING_INCDIR}/lua5.1 " do_install() { - install -d ${D}${sbindir} \ - ${D}${sysconfdir} - install -c -m 755 ${S}/piccontrol ${D}${sbindir}/piccontrol - install -m 0644 ${WORKDIR}/piccontrol-0.4.conf ${D}${sysconfdir}/piccontrol.conf + install -D -m 0755 ${S}/piccontrol ${D}${sbindir}/piccontrol + install -D -m 0644 ${WORKDIR}/piccontrol-0.4.conf ${D}${sysconfdir}/piccontrol.conf + install -D -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/piccontrol } - |