hdparm_9.56.bb 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. SUMMARY = "Utility for viewing/manipulating IDE disk drive/driver parameters"
  2. HOMEPAGE = "http://sourceforge.net/projects/hdparm/"
  3. DESCRIPTION = "hdparm is a Linux shell utility for viewing \
  4. and manipulating various IDE drive and driver parameters."
  5. SECTION = "console/utils"
  6. LICENSE = "BSD & GPLv2"
  7. LICENSE_${PN} = "BSD"
  8. LICENSE_${PN}-dbg = "BSD"
  9. LICENSE_wiper = "GPLv2"
  10. LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=495d03e50dc6c89d6a30107ab0df5b03 \
  11. file://debian/copyright;md5=a82d7ba3ade9e8ec902749db98c592f3 \
  12. file://wiper/GPLv2.txt;md5=fcb02dc552a041dee27e4b85c7396067 \
  13. file://wiper/wiper.sh;beginline=7;endline=31;md5=b7bc642addc152ea307505bf1a296f09"
  14. PACKAGES =+ "wiper"
  15. FILES_wiper = "${bindir}/wiper.sh"
  16. RDEPENDS_wiper = "bash gawk coreutils"
  17. SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz \
  18. file://wiper.sh-fix-stat-path.patch \
  19. "
  20. SRC_URI[md5sum] = "7900608e32834f65d2654fdb696e71a0"
  21. SRC_URI[sha256sum] = "6ff9ed695f1017396eec4101f990f114b7b0e0a04c5aa6369c0394053d16e4da"
  22. EXTRA_OEMAKE = 'STRIP="echo" LDFLAGS="${LDFLAGS}"'
  23. inherit update-alternatives
  24. ALTERNATIVE_${PN} = "hdparm"
  25. ALTERNATIVE_LINK_NAME[hdparm] = "${base_sbindir}/hdparm"
  26. ALTERNATIVE_PRIORITY = "100"
  27. do_install () {
  28. install -d ${D}/${base_sbindir} ${D}/${mandir}/man8 ${D}/${bindir}
  29. oe_runmake 'DESTDIR=${D}' 'sbindir=${base_sbindir}' install
  30. cp ${S}/wiper/wiper.sh ${D}/${bindir}
  31. }