diff options
author | Marcin Juszkiewicz <marcin@buglabs.net> | 2009-05-16 13:48:10 +0200 |
---|---|---|
committer | Marcin Juszkiewicz <marcin@buglabs.net> | 2009-05-16 21:16:12 +0200 |
commit | ce7d21308430468c4d0ef3b6e2642112be52bae9 (patch) | |
tree | 1ad27af9f418917fb819de81ca4f2e597a62711a /recipes/hdparm | |
parent | 32a26a50e11abddf6a4f3aaff8ad09a464211b3c (diff) |
hdparm: added 9.15
Diffstat (limited to 'recipes/hdparm')
-rw-r--r-- | recipes/hdparm/hdparm_9.15.bb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes/hdparm/hdparm_9.15.bb b/recipes/hdparm/hdparm_9.15.bb new file mode 100644 index 0000000000..d351e8dc85 --- /dev/null +++ b/recipes/hdparm/hdparm_9.15.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "hdparm is a Linux shell utility for viewing \ +and manipulating various IDE drive and driver parameters." +SECTION = "console/utils" +PRIORITY = "optional" +LICENSE = "BSD" + +SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/hdparm-${PV}.tar.gz " + +do_install () { + install -d ${D}/${base_sbindir} ${D}/${mandir}/man8 + oe_runmake 'DESTDIR=${D}' 'sbindir=${base_sbindir}' install + mv ${D}${base_sbindir}/hdparm ${D}${base_sbindir}/hdparm.${PN} +} + +pkg_postinst_${PN} () { + update-alternatives --install ${base_sbindir}/hdparm hdparm hdparm.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove hdparm hdparm.${PN} +} |