1 DESCRIPTION = "Description: turn off SCSI disks when idle \
2 This package contains small programs to start and stop SCSI disks and a \
3 daemon that spins down drives when idle. A kernel patch provided by the \
4 kernel-patch-scsi-idle package is required to send spin up/down \
5 commands to the SCSI hardware."
6 SECTION = "console/utils"
8 HOMEPAGE = "http://packages.debian.org/unstable/admin/scsi-idle"
9 AUTHOR = "Eduard Bloch <blade@debian.org>"
12 SRC_URI = "${DEBIAN_MIRROR}/main/s/scsi-idle/scsi-idle_${PV}-5.tar.gz \
13 file://makefile.patch;patch=1 \
14 file://scsi-idle.init.patch;patch=1"
16 S = "${WORKDIR}/scsi-idle-${PV}"
21 install -d ${D}${sbindir} ${D}${mandir}/man8
22 install -d ${D}${sysconfdir}/default
23 install -d ${D}${sysconfdir}/init.d
24 install -d ${D}${sysconfdir}/rcS.d
26 install -m 0755 ${S}/scsi-idle ${D}${sbindir}
27 install -m 0755 ${S}/scsi-start ${D}${sbindir}
28 cd ${D}${sbindir} && ln -s scsi-start scsi-stop
29 install -m 0644 ${S}/debian/scsi-idle.default ${D}${sysconfdir}/default/scsi-idle
30 install -m 0755 ${S}/debian/scsi-idle.init ${D}${sysconfdir}/init.d/scsi-idle
31 cd ${D}${sysconfdir}/rcS.d && ln -s ../init.d/scsi-idle S57scsi-idle
32 install -m 0644 ${S}/scsi-idle.8 ${D}${mandir}/man8
33 install -m 0644 ${S}/scsi-start.8 ${D}${mandir}/man8