diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-11-03 19:14:00 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2008-11-03 19:14:00 +0100 |
commit | bebb376e62f94fec5caa1abb6141a6e6728ae95f (patch) | |
tree | 2e1cefeb324a5d0b30fe90c3619098098052e130 /meta-moblin/packages/sreadahead/sreadahead_0.02.bb | |
parent | 7b5d03d08e737dd3637072f60259af5b093b7f70 (diff) | |
download | openembedded-core-bebb376e62f94fec5caa1abb6141a6e6728ae95f.tar.gz openembedded-core-bebb376e62f94fec5caa1abb6141a6e6728ae95f.tar.bz2 openembedded-core-bebb376e62f94fec5caa1abb6141a6e6728ae95f.zip |
sreadahead: Initial commit
Super readahead is an improved readahead tool.
Diffstat (limited to 'meta-moblin/packages/sreadahead/sreadahead_0.02.bb')
-rw-r--r-- | meta-moblin/packages/sreadahead/sreadahead_0.02.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-moblin/packages/sreadahead/sreadahead_0.02.bb b/meta-moblin/packages/sreadahead/sreadahead_0.02.bb new file mode 100644 index 0000000000..ca89635776 --- /dev/null +++ b/meta-moblin/packages/sreadahead/sreadahead_0.02.bb @@ -0,0 +1,41 @@ +DESCRIPTION = "Super readahead, part of the fastboot tool set." +SECTION = "base" +HOMEPAGE = "http://www.moblin.org" +LICENSE = "GPLv2" +PR = "r12" + +inherit update-rc.d + +SRC_URI = "http://www.moblin.org/sites/all/files/sreadahead-${PV}.tar.gz \ + file://sreadahead-0.02-make.patch;patch=1 \ + file://readahead_c.patch;patch=1 \ + file://sreadahead-generate.sh \ + file://sreadahead.sh" + +CFLAGS_prepend = "-I ${S}/include " + +PACKAGES += "${PN}-generate" +FILES_${PN} = "${base_sbindir}/sreadahead ${sysconfdir}/init.d/sreadahead.sh" +FILES_${PN}-generate = "${base_sbindir}/generate_filelist ${sysconfdir}/init.d/sreadahead-generate.sh" + +INITSCRIPT_PACKAGES = "${PN} ${PN}-generate" +INITSCRIPT_NAME = "sreadahead.sh" +INITSCRIPT_NAME_${PN}-generate = "sreadahead-generate.sh" +INITSCRIPT_PARAMS = "start 00 S ." +INITSCRIPT_PARAMS_${PN}-generate = "defaults 99" + +do_install() { + oe_runmake install DESTDIR=${D} + install -d ${D}${sysconfdir}/init.d + install -m 755 ${WORKDIR}/sreadahead.sh ${D}${sysconfdir}/init.d/ + install -m 755 ${WORKDIR}/sreadahead-generate.sh ${D}${sysconfdir}/init.d/ +} + +pkg_postinst_${PN}-generate () { + # can't do this offline + if [ "x$D" != "x" ]; then + exit 1 + fi + + touch /etc/readahead.packed.first +} |