diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-10-26 14:05:34 +0200 |
---|---|---|
committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-10-26 14:08:50 +0200 |
commit | 4d2cb79dcecd056742f411a328f9f1f1113bf689 (patch) | |
tree | 8a30a6c536799f2dbd9372f3a9477059d92004ae /recipes/hdparm/hdparm_9.35.bb | |
parent | 3cd16a427e04481015dcb4c4b90150edc6e70476 (diff) | |
download | openembedded-4d2cb79dcecd056742f411a328f9f1f1113bf689.tar.gz |
hdparm: updated to 9.35
also added a separate package for the wiper script (previously unpackaged)
rationale for making it an additional package is because the script
depends on gawk and bash etc.
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/hdparm/hdparm_9.35.bb')
-rw-r--r-- | recipes/hdparm/hdparm_9.35.bb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes/hdparm/hdparm_9.35.bb b/recipes/hdparm/hdparm_9.35.bb new file mode 100644 index 0000000000..8b9bbd7a5a --- /dev/null +++ b/recipes/hdparm/hdparm_9.35.bb @@ -0,0 +1,31 @@ +DESCRIPTION = "hdparm is a Linux shell utility for viewing \ +and manipulating various IDE drive and driver parameters." +SECTION = "console/utils" +PRIORITY = "optional" +LICENSE = "BSD" + +PACKAGES += "wiper" + +FILES_wiper = "${bindir}/wiper.sh" +FILES_${PN} = "${base_sbindir} ${mandir}" + +RDEPENDS_wiper = "bash gawk stat" + +SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/hdparm-${PV}.tar.gz " +SRC_URI[md5sum] = "520996cc36b69212c3907df351296702" +SRC_URI[sha256sum] = "b778e5f42d918226892417986dc135e783e7a1b7b3986a4b1f637bcf51366f5f" + +do_install () { + install -d ${D}/${base_sbindir} ${D}/${mandir}/man8 ${D}/${bindir} + oe_runmake 'DESTDIR=${D}' 'sbindir=${base_sbindir}' install + mv ${D}${base_sbindir}/hdparm ${D}${base_sbindir}/hdparm.${PN} + cp ${S}/wiper/wiper.sh ${D}/${bindir} +} + +pkg_postinst_${PN} () { + update-alternatives --install ${base_sbindir}/hdparm hdparm hdparm.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove hdparm hdparm.${PN} +} |