summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2014-04-10 10:54:34 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2014-04-20 11:10:14 +0200
commit206f81e2186779fde7e2099f54a80e094acd352f (patch)
treedee5266b4e312c9b0ba029ea6b0c3d90227e3cf7 /meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb
parent314b713e7f9f73530a45467bc95dd8d6c8806097 (diff)
downloadmeta-openembedded-206f81e2186779fde7e2099f54a80e094acd352f.tar.gz
smartmontools: add init script
Add init script smartd for smartmontools. Thought smartmontools provides init script itself, but it checks distribution version that is not usable for oe. So add an init script for smartmontools which removes distribution version check. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb')
-rw-r--r--meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb14
1 files changed, 12 insertions, 2 deletions
diff --git a/meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb b/meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb
index 83ff028845..66fdb4d8d8 100644
--- a/meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb
+++ b/meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb
@@ -12,10 +12,20 @@ SECTION = "console/utils"
12LICENSE = "GPLv2" 12LICENSE = "GPLv2"
13LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 13LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
14 14
15SRC_URI = "${SOURCEFORGE_MIRROR}/smartmontools/smartmontools-${PV}.tar.gz" 15SRC_URI = "${SOURCEFORGE_MIRROR}/smartmontools/smartmontools-${PV}.tar.gz \
16 file://initd.smartd \
17 "
16 18
17SRC_URI[md5sum] = "d44f84081a12cef79cd17f78044351fc" 19SRC_URI[md5sum] = "d44f84081a12cef79cd17f78044351fc"
18SRC_URI[sha256sum] = "486f660579bb0fb4f6b927ded7531cb1f99685c666397377761c5b04dd96065b" 20SRC_URI[sha256sum] = "486f660579bb0fb4f6b927ded7531cb1f99685c666397377761c5b04dd96065b"
19 21
20inherit autotools 22inherit autotools update-rc.d
21 23
24do_install_append () {
25 #install the init.d/smartd
26 install -d ${D}${sysconfdir}/init.d
27 install -p -m 0755 ${WORKDIR}/initd.smartd ${D}${sysconfdir}/init.d/smartd
28}
29
30INITSCRIPT_NAME = "smartd"
31INITSCRIPT_PARAMS = "start 60 . stop 60 0 1 2 3 4 5 6 ."