summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/scsirastools/scsirastools_1.6.6.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-06-20 01:05:12 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-06-22 16:04:14 +0200
commitd2da8b82cfb2f8e55236751c1c56c9e7f3b5f68d (patch)
tree18e69e4a3c4e47cf67da9179294e3d532b190f20 /meta-oe/recipes-extended/scsirastools/scsirastools_1.6.6.bb
parent11d98126c99a36c637ba9af01b0f888169f10550 (diff)
downloadmeta-openembedded-d2da8b82cfb2f8e55236751c1c56c9e7f3b5f68d.tar.gz
scsirastools: Upgrade to 1.6.6
Fix build with hardening flags Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/scsirastools/scsirastools_1.6.6.bb')
-rw-r--r--meta-oe/recipes-extended/scsirastools/scsirastools_1.6.6.bb49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/scsirastools/scsirastools_1.6.6.bb b/meta-oe/recipes-extended/scsirastools/scsirastools_1.6.6.bb
new file mode 100644
index 000000000..e202d16eb
--- /dev/null
+++ b/meta-oe/recipes-extended/scsirastools/scsirastools_1.6.6.bb
@@ -0,0 +1,49 @@
1SUMMARY = "Linux SCSi tools to service maintain disk storage devices"
2DESCRIPTION = "scsirastools were designed to add to the Serviceability of \
3 SCSI devices under Linux so that the system does not have \
4 to be rebooted or taken out of service to perform common \
5 maintenance or service functions. It handles SCSI, \
6 Linux SW RAID, SAS, SATA, and USB devices via SCSI emulation."
7HOMEPAGE = "http://scsirastools.sourceforge.net/"
8LICENSE = "BSD"
9LIC_FILES_CHKSUM = "file://COPYING;md5=687ea108478d26152ae46eb29d9d1545"
10
11DEPENDS += "groff-native"
12
13SRC_URI = "http://prdownloads.sourceforge.net/scsirastools/scsirastools-${PV}.tar.gz \
14 file://mdadm.patch;apply=no \
15 file://print-format.patch \
16"
17SRC_URI[md5sum] = "6271a61b2ce40aaf33ef61775148cda1"
18SRC_URI[sha256sum] = "e7b997e75decb06a650c42c35cd63d0c94c34e39cf133c723337b0eeabbfdf6a"
19
20inherit autotools update-rc.d
21
22# mdadm Makefile has CC set to gcc, hence override CC to ${CC}
23EXTRA_OEMAKE += "CC='${CC}'"
24
25
26do_configure_append() {
27 oe_runmake -C mdadm.d mdadm-1.3.0
28 patch -p0 < ${WORKDIR}/mdadm.patch
29}
30INITSCRIPT_PACKAGES = "${PN}-diskmon ${PN}-raidmon"
31INITSCRIPT_NAME_${PN}-diskmon = "sgdisk"
32INITSCRIPT_PARAMS_${PN}-diskmon = "defaults 80 20"
33INITSCRIPT_NAME_${PN}-raidmon = "sgraid"
34INITSCRIPT_PARAMS_${PN}-raidmon = "defaults 80 20"
35
36PACKAGES =+ "${PN}-diskmon ${PN}-diskmon-dbg"
37PACKAGES =+ "${PN}-raidmon ${PN}-raidmon-dbg"
38
39FILES_${PN}-dbg += "/usr/share/scsirastools/.debug"
40
41FILES_${PN}-diskmon = "${sbindir}/sgdiskmon ${sysconfdir}/init.d/sgdisk"
42FILES_${PN}-diskmon-dbg = "${sbindir}/.debug/sgdiskmon"
43
44FILES_${PN}-raidmon = "${sbindir}/sgraidmon ${sysconfdir}/init.d/sgraid"
45FILES_${PN}-raidmon-dbg = "${sbindir}/.debug/sgraidmon"
46
47RDEPENDS_${PN} += "bash"
48RDEPENDS_${PN}-diskmon += "${PN}"
49RDEPENDS_${PN}-raidmon += "${PN}"