diff options
| author | Kang Kai <kai.kang@windriver.com> | 2014-04-10 10:54:34 +0800 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-04-20 11:10:14 +0200 |
| commit | 206f81e2186779fde7e2099f54a80e094acd352f (patch) | |
| tree | dee5266b4e312c9b0ba029ea6b0c3d90227e3cf7 /meta-oe/recipes-extended/smartmontools/smartmontools_6.2.bb | |
| parent | 314b713e7f9f73530a45467bc95dd8d6c8806097 (diff) | |
| download | meta-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.bb | 14 |
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" | |||
| 12 | LICENSE = "GPLv2" | 12 | LICENSE = "GPLv2" |
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 14 | 14 | ||
| 15 | SRC_URI = "${SOURCEFORGE_MIRROR}/smartmontools/smartmontools-${PV}.tar.gz" | 15 | SRC_URI = "${SOURCEFORGE_MIRROR}/smartmontools/smartmontools-${PV}.tar.gz \ |
| 16 | file://initd.smartd \ | ||
| 17 | " | ||
| 16 | 18 | ||
| 17 | SRC_URI[md5sum] = "d44f84081a12cef79cd17f78044351fc" | 19 | SRC_URI[md5sum] = "d44f84081a12cef79cd17f78044351fc" |
| 18 | SRC_URI[sha256sum] = "486f660579bb0fb4f6b927ded7531cb1f99685c666397377761c5b04dd96065b" | 20 | SRC_URI[sha256sum] = "486f660579bb0fb4f6b927ded7531cb1f99685c666397377761c5b04dd96065b" |
| 19 | 21 | ||
| 20 | inherit autotools | 22 | inherit autotools update-rc.d |
| 21 | 23 | ||
| 24 | do_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 | |||
| 30 | INITSCRIPT_NAME = "smartd" | ||
| 31 | INITSCRIPT_PARAMS = "start 60 . stop 60 0 1 2 3 4 5 6 ." | ||
