From ce7d21308430468c4d0ef3b6e2642112be52bae9 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Sat, 16 May 2009 13:48:10 +0200 Subject: hdparm: added 9.15 --- recipes/hdparm/hdparm_9.15.bb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 recipes/hdparm/hdparm_9.15.bb (limited to 'recipes/hdparm') 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} +} -- cgit v1.2.3