Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add seeker.

  • Loading branch information...
commit 3730f9f7d8e6b1a460641c22cabce24434c47253 1 parent 75fdf0f
divan authored
View
3  app-misc/seeker/Manifest
@@ -0,0 +1,3 @@
+AUX seeker.c.patch 198 RMD160 673332459bcd80dc227ad9d70ebbf004f8220aa5 SHA1 c64c702e4cfad49bdeadbde985fa7b01d3fd10bd SHA256 300bff09dd83687710b9a3d6e53c6c731c8bac0570b231be2768bfe844ba3f50
+DIST seeker.c 1580 RMD160 1daa697b7717a2012ef6fdcfe51d5b05b9548f30 SHA1 a99e2b16d9b35352fe1a8c96beb199f2dcdc1207 SHA256 6b7aaf278db36a7eb27e54e3abed23dab3c4594acf87d592e626df8432ec1b54
+EBUILD seeker-2.0.ebuild 713 RMD160 2dfcf28ff35b5de1be3b631c73616f12f529f1f1 SHA1 91565209823241d361a0e6076c54ff6d2a255d65 SHA256 a277ae9d02708670d4cf4cccfb536f1bb1fd0374766cdfc31ca6a99f53a79af7
View
11 app-misc/seeker/files/seeker.c.patch
@@ -0,0 +1,11 @@
+--- seeker.c.orig 2011-03-08 22:44:23.000000000 +0500
++++ seeker.c 2011-03-08 22:44:31.000000000 +0500
+@@ -16,7 +16,7 @@
+ int count;
+ time_t start;
+
+-void done()
++void done(int)
+ {
+ time_t end;
+
View
37 app-misc/seeker/seeker-2.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs
+
+EAPI=3
+
+DESCRIPTION="Read small pieces of data from a raw disk device, in a random
+access pattern."
+HOMEPAGE="http://www.linuxinsight.com/how_fast_is_your_disk.html"
+SRC_URI="http://www.linuxinsight.com/files/seeker.c"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ mkdir -p "${S}"/ || die
+ cp "${DISTDIR}"/${A} "${S}"/ || die
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${A}.patch || die
+}
+
+src_compile() {
+ cd ${S} && $(tc-getCXX) -O2 seeker.c -o seeker || die
+}
+
+src_install() {
+ dobin seeker || die
+}
Please sign in to comment.
Something went wrong with that request. Please try again.