xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/hddtemp/hddtemp_0.3-beta15.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Hard disk temperature monitor daemon"
2SECTION = "console/network"
3LICENSE = "GPL-2.0-or-later"
4
5PR = "r1"
6
7SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/hddtemp/hddtemp-0.3-beta15.tar.bz2 \
8           file://hddtemp-no-nls-support.patch \
9           file://hddtemp_0.3-beta15-52.diff \
10           file://hddtemp-0.3-beta15-autodetect-717479.patch \
11           file://0001-backtrace-Replace-struct-ucontext-with-ucontext_t.patch \
12           file://0001-configure.ac-Rename-to-configure.ac-and-use-external.patch \
13           file://hddtemp.db \
14           file://init \
15"
16
17SRC_URI[md5sum] = "8b829339e1ae9df701684ec239021bb8"
18SRC_URI[sha256sum] = "618541584054093d53be8a2d9e81c97174f30f00af91cb8700a97e442d79ef5b"
19
20LIC_FILES_CHKSUM = "file://GPL-2;md5=eb723b61539feef013de476e68b5c50a"
21
22inherit autotools gettext update-rc.d
23
24FILES:${PN} += "/usr/share/misc/hddtemp.db"
25
26do_install:append() {
27    install -d ${D}/usr/share/misc/
28    install -m 0644 ${WORKDIR}/hddtemp.db ${D}/usr/share/misc/hddtemp.db
29    install -d ${D}${sysconfdir}/init.d
30    install -m 0644 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hddtemp
31}
32
33INITSCRIPT_NAME = "hddtemp"
34INITSCRIPT_PARAMS = "start 99 2 3 4 5 . stop 20 0 1 6 ."
35