summaryrefslogtreecommitdiff
path: root/recipes/scsi-idle
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/scsi-idle
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/scsi-idle')
-rw-r--r--recipes/scsi-idle/files/makefile.patch9
-rw-r--r--recipes/scsi-idle/files/scsi-idle.init.patch12
-rw-r--r--recipes/scsi-idle/scsi-idle_2.4.23.bb34
3 files changed, 55 insertions, 0 deletions
diff --git a/recipes/scsi-idle/files/makefile.patch b/recipes/scsi-idle/files/makefile.patch
new file mode 100644
index 0000000000..5a31fc8277
--- /dev/null
+++ b/recipes/scsi-idle/files/makefile.patch
@@ -0,0 +1,9 @@
+diff -ur scsi-idle-2.4.23/Makefile scsi-idle-2.4.23~patched/Makefile
+--- scsi-idle-2.4.23/Makefile 2004-01-31 11:34:30.000000000 +0100
++++ scsi-idle-2.4.23~patched/Makefile 2005-08-29 19:21:29.116560624 +0200
+@@ -1,4 +1,4 @@
+-KSRC ?= /usr/src/linux
++KSRC ?= ${QPEDIR}
+ CFLAGS=-Wall -O2 -fomit-frame-pointer -pipe -s -include $(KSRC)/include/scsi/scsi_ioctl.h -include $(KSRC)/include/linux/major.h
+
+ TARGETS = scsi-start scsi-stop scsi-idle
diff --git a/recipes/scsi-idle/files/scsi-idle.init.patch b/recipes/scsi-idle/files/scsi-idle.init.patch
new file mode 100644
index 0000000000..54a7503eca
--- /dev/null
+++ b/recipes/scsi-idle/files/scsi-idle.init.patch
@@ -0,0 +1,12 @@
+diff -ur scsi-idle-2.4.23/debian/scsi-idle.init scsi-idle-2.4.23~patched/debian/scsi-idle.init
+--- scsi-idle-2.4.23/debian/scsi-idle.init 2004-01-31 11:47:02.000000000 +0100
++++ scsi-idle-2.4.23~patched/debian/scsi-idle.init 2005-08-31 18:56:46.000000000 +0200
+@@ -21,7 +21,7 @@
+ export BEQUIET
+ if [ "$PAIRS" ] ; then
+ set -- $PAIRS
+- while [ "$#" !=0 ] ; do
++ while [ "$#" != 0 ] ; do
+ PIDFILE=/var/run/$NAME`echo $1 | tr / _`.pid
+ export PIDFILE
+ echo -n " $1"
diff --git a/recipes/scsi-idle/scsi-idle_2.4.23.bb b/recipes/scsi-idle/scsi-idle_2.4.23.bb
new file mode 100644
index 0000000000..6085112c63
--- /dev/null
+++ b/recipes/scsi-idle/scsi-idle_2.4.23.bb
@@ -0,0 +1,34 @@
+DESCRIPTION = "Description: turn off SCSI disks when idle \
+This package contains small programs to start and stop SCSI disks and a \
+daemon that spins down drives when idle. A kernel patch provided by the \
+kernel-patch-scsi-idle package is required to send spin up/down \
+commands to the SCSI hardware."
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+HOMEPAGE = "http://packages.debian.org/unstable/admin/scsi-idle"
+AUTHOR = "Eduard Bloch <blade@debian.org>"
+PR = "r1"
+
+SRC_URI = "${DEBIAN_MIRROR}/main/s/scsi-idle/scsi-idle_${PV}-5.tar.gz \
+ file://makefile.patch;patch=1 \
+ file://scsi-idle.init.patch;patch=1"
+
+S = "${WORKDIR}/scsi-idle-${PV}"
+
+inherit autotools
+
+do_install() {
+ install -d ${D}${sbindir} ${D}${mandir}/man8
+ install -d ${D}${sysconfdir}/default
+ install -d ${D}${sysconfdir}/init.d
+ install -d ${D}${sysconfdir}/rcS.d
+
+ install -m 0755 ${S}/scsi-idle ${D}${sbindir}
+ install -m 0755 ${S}/scsi-start ${D}${sbindir}
+ cd ${D}${sbindir} && ln -s scsi-start scsi-stop
+ install -m 0644 ${S}/debian/scsi-idle.default ${D}${sysconfdir}/default/scsi-idle
+ install -m 0755 ${S}/debian/scsi-idle.init ${D}${sysconfdir}/init.d/scsi-idle
+ cd ${D}${sysconfdir}/rcS.d && ln -s ../init.d/scsi-idle S57scsi-idle
+ install -m 0644 ${S}/scsi-idle.8 ${D}${mandir}/man8
+ install -m 0644 ${S}/scsi-start.8 ${D}${mandir}/man8
+}