iozone3_506.bb 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. SUMMARY = "Filesystem and Disk Benchmarking Tool"
  2. HOMEPAGE = "http://www.iozone.org/"
  3. SECTION = "console/tests"
  4. LICENSE = "iozone3"
  5. LIC_FILES_CHKSUM = "file://iozone.c;beginline=37;endline=48;md5=7331260091868dcad0f9edea735b5f4b \
  6. file://iozone.c;beginline=276;endline=282;md5=77f9ee51e45b57a7e7519c4fa0b4f00b \
  7. "
  8. SRC_URI = "http://www.iozone.org/src/current/${BPN}_${PV}.tar \
  9. file://parallelism.patch \
  10. file://0001-let-system-headers-provide-pread64.patch \
  11. file://copyright.txt \
  12. "
  13. SRC_URI[sha256sum] = "114ce5c071873b9a2c7ba6e73d05d5ef7e66564392acbfcdc0b3261db10fcbe7"
  14. UPSTREAM_CHECK_REGEX = "iozone3_(?P<pver>\d+).tar"
  15. S = "${WORKDIR}/${BPN}_${PV}/src/current"
  16. #
  17. # All other arches can use the default OEMAKE except those
  18. # explicitly listed below. Another, the iozone3 Makefile
  19. # needs to be told about the cross-compiler explicitly here.
  20. #
  21. EXTRA_OEMAKE:powerpc = "linux-powerpc CC='${CC}' GCC='${CC}'"
  22. EXTRA_OEMAKE:powerpc64 = "linux-powerpc64 CC='${CC}' GCC='${CC}'"
  23. EXTRA_OEMAKE:powerpc64le = "linux-powerpc64 CC='${CC}' GCC='${CC}'"
  24. EXTRA_OEMAKE:x86-64 = "linux-AMD64 CC='${CC}' GCC='${CC}'"
  25. EXTRA_OEMAKE:arm = "linux-arm CC='${CC}' GCC='${CC}'"
  26. EXTRA_OEMAKE = "linux CC='${CC}' GCC='${CC}'"
  27. TARGET_CC_ARCH += "${LDFLAGS}"
  28. do_install() {
  29. install -d ${D}${bindir} \
  30. ${D}${mandir}/man1 \
  31. ${D}${datadir}/doc/${BPN}/examples
  32. install -m 0755 ${S}/iozone ${D}${bindir}
  33. install -m 0755 ${S}/fileop ${D}${bindir}
  34. install -m 0644 ${S}/../../docs/iozone.1 ${D}${mandir}/man1/
  35. install -m 0644 ${UNPACKDIR}/copyright.txt ${D}${datadir}/doc/${BPN}/
  36. install -m 0644 ${S}/*.dem ${D}${datadir}/doc/${BPN}/examples
  37. install -m 0644 ${S}/client_list ${D}${datadir}/doc/${BPN}/examples
  38. install -m 0644 ${S}/Gnuplot.txt ${D}${datadir}/doc/${BPN}/examples
  39. install -m 0755 ${S}/Generate_Graphs ${D}${datadir}/doc/${BPN}/examples
  40. install -m 0755 ${S}/gengnuplot.sh ${D}${datadir}/doc/${BPN}/examples
  41. install -m 0755 ${S}/report.pl ${D}${datadir}/doc/${BPN}/examples
  42. install -m 0644 ${S}/../../docs/Iozone_ps.gz ${D}${datadir}/doc/${BPN}/
  43. install -m 0644 ${S}/../../docs/IOzone_msword_98.pdf ${D}${datadir}/doc/${BPN}/
  44. install -m 0644 ${S}/../../docs/Run_rules.doc ${D}${datadir}/doc/${BPN}/
  45. }
  46. FILES:${PN} += "${datadir}/doc/${PN}/copyright.txt"
  47. # LICENSE:
  48. #
  49. # Copyright 1991, 1992, 1994, 1998, 1999, 2002 William D. Norcott
  50. #
  51. # License to freely use and distribute this software is hereby granted
  52. # by the author, subject to the condition that this copyright notice
  53. # remains intact. The author retains the exclusive right to publish
  54. # derivative works based on this work, including, but not limited to
  55. # revised versions of this work.
  56. #
  57. #
  58. # Below is author reply to question about distributing iozone3 in
  59. # OpenEmbedded:
  60. #
  61. # ========================================================================
  62. #
  63. # Marcin,
  64. #
  65. # Re-distribution is permitted as long as the copyright is
  66. # maintained and the source code is not changed. I do not
  67. # see a problem with your mods to enable fileop for Linux-arm,
  68. # as these mods have been returned to the Iozone folks,
  69. # and they have been accepted for inclusion in the next
  70. # release :-)
  71. #
  72. # Thank you for your contribution,
  73. # Don Capps
  74. #
  75. # ----- Original Message -----
  76. # From: "Marcin Juszkiewicz" <firma@hrw.one.pl>
  77. # To: "Don Capps" <don.capps2@verizon.net>; "William D. Norcott"
  78. # <wnorcott@us.oracle.com>
  79. # Sent: Sunday, October 29, 2006 4:55 PM
  80. # Subject: iozone3 263 patch for arm and License question
  81. #
  82. #
  83. # > Morning
  84. # >
  85. # > I want to include iozone3 in OpenEmbedded [1] metadata to give it for
  86. # > other developers. Currently OE is used to build few distributions for
  87. # > misc platforms: ARM, SH3, SH4, x86, PowerPC and different types of
  88. # > machines (PDA, settopbox, devboards, desktops, thin clients, routers).
  89. # >
  90. # > According to your distribution of derivations is forbidden. Packaging
  91. # > iozone3 in OpenEmbedded will not involve any source code changes. But
  92. # > when I was building it for ARM I discovered that fileop binary was not
  93. # > built - so I created patch for it (attached). Not yet tested it on target
  94. # > device.
  95. # >
  96. # > Thus, I seek your written permission via e-mail to distribute a package of
  97. # > the unmodified source code and also a package of the pre-compiled binary.
  98. # > Your copyright statement will be included in the package.
  99. # >
  100. # >
  101. # > 1. http://www.openembedded.org/
  102. # >
  103. # > Regards
  104. # > --
  105. # > JID: hrw-jabber.org
  106. # > OpenEmbedded developer/consultant