hdparm: added 9.15
authorMarcin Juszkiewicz <marcin@buglabs.net>
Sat, 16 May 2009 11:48:10 +0000 (13:48 +0200)
committerMarcin Juszkiewicz <marcin@buglabs.net>
Sat, 16 May 2009 19:16:12 +0000 (21:16 +0200)
conf/checksums.ini
recipes/hdparm/hdparm_9.15.bb [new file with mode: 0644]

index d6dd12c..6f1d956 100644 (file)
@@ -10178,6 +10178,10 @@ sha256=cae6ed86296d01be98ee3be0c224c4323eee508941a7f162a0366d56655afe06
 md5=62749c6cdf28ce31aae335092fa107df
 sha256=cae6ed86296d01be98ee3be0c224c4323eee508941a7f162a0366d56655afe06
 
+[http://downloads.sourceforge.net/hdparm/hdparm-9.15.tar.gz]
+md5=0524dd10ad986285ff4eeb3507f7471c
+sha256=689a413119c4d670ed95b9ac24511655c4805db678ad93866ab1036a0ba4d6bf
+
 [http://handhelds.org/~zecke/oe_packages/hexatrolic-103beta3-zecke1.tar.bz2]
 md5=1d9420e8b5a6d5fa491c458ffafd4adb
 sha256=b60a5358e56e676529e7d3d655d5107a76b9a2434e38952711fea794f65721ce
diff --git a/recipes/hdparm/hdparm_9.15.bb b/recipes/hdparm/hdparm_9.15.bb
new file mode 100644 (file)
index 0000000..d351e8d
--- /dev/null
@@ -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}
+}