summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2013-07-23 17:32:48 +0000
committerPawel Pekala <pawel@FreeBSD.org>2013-07-23 17:32:48 +0000
commit379c97a7b33658be842aed4385a804c5bf9edca9 (patch)
tree0f5da3ec57b216dc0685bd40b5c0c85915409109
parent- Update to version 0.6.1 (diff)
Update to version 0.7
While here: - Trim Makefile header - Convert tab to space in WWW: line PR: ports/180761 Submitted by: Oleg Ginzburg <olevole@olevole.ru> (maintainer)
Notes
Notes: svn path=/head/; revision=323543
-rw-r--r--sysutils/ioping/Makefile8
-rw-r--r--sysutils/ioping/distinfo4
-rw-r--r--sysutils/ioping/files/patch-ioping.c37
-rw-r--r--sysutils/ioping/pkg-descr2
4 files changed, 42 insertions, 9 deletions
diff --git a/sysutils/ioping/Makefile b/sysutils/ioping/Makefile
index fdc1fbaf1021..a6b5ac2a4bf3 100644
--- a/sysutils/ioping/Makefile
+++ b/sysutils/ioping/Makefile
@@ -1,12 +1,8 @@
-# New ports collection makefile for: ioping
-# Date created: 27 December 2011
-# Whom: Oleg Ginzburg <olevole@olevole.ru>
-#
+# Created by: Oleg Ginzburg <olevole@olevole.ru>
# $FreeBSD$
-#
PORTNAME= ioping
-PORTVERSION= 0.6
+PORTVERSION= 0.7
CATEGORIES= sysutils
MASTER_SITES= GOOGLE_CODE
diff --git a/sysutils/ioping/distinfo b/sysutils/ioping/distinfo
index 7fd845361c64..26303abf4801 100644
--- a/sysutils/ioping/distinfo
+++ b/sysutils/ioping/distinfo
@@ -1,2 +1,2 @@
-SHA256 (ioping-0.6.tar.gz) = 1d14469b1bfa9243f992be784cc0e3cd86c66bb7edc1b83e22360075c5435ceb
-SIZE (ioping-0.6.tar.gz) = 6957
+SHA256 (ioping-0.7.tar.gz) = 234e28eeb256e77756a077604b48d59f206a5288c3da6f207629e783f54b13b0
+SIZE (ioping-0.7.tar.gz) = 10011
diff --git a/sysutils/ioping/files/patch-ioping.c b/sysutils/ioping/files/patch-ioping.c
new file mode 100644
index 000000000000..2b383fe9c330
--- /dev/null
+++ b/sysutils/ioping/files/patch-ioping.c
@@ -0,0 +1,37 @@
+--- ioping.c.orig 2013-02-02 21:00:59.000000000 +0400
++++ ioping.c 2013-07-23 15:53:52.000000000 +0400
+@@ -154,11 +154,6 @@
+ return FlushFileBuffers(h) ? 0 : -1;
+ }
+
+-int fdatasync(int fd)
+-{
+- return fsync(fd);
+-}
+-
+ void srandom(unsigned int seed)
+ {
+ srand(seed);
+@@ -178,6 +173,13 @@
+
+ #endif /* __MINGW32__ */
+
++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__MINGW32__)
++int fdatasync(int fd)
++{
++ return fsync(fd);
++}
++#endif /* (__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__MINGW32__) */
++
+ #ifndef HAVE_POSIX_MEMALIGN
+ /* don't free it */
+ int posix_memalign(void **memptr, size_t alignment, size_t size)
+@@ -222,7 +224,7 @@
+
+ void version(void)
+ {
+- fprintf(stderr, "ioping %s\n", VERSION);
++ fprintf(stderr, "ioping %f\n", VERSION);
+ }
+
+ struct suffix {
diff --git a/sysutils/ioping/pkg-descr b/sysutils/ioping/pkg-descr
index a1b6775ea4b0..3f1e89a37f66 100644
--- a/sysutils/ioping/pkg-descr
+++ b/sysutils/ioping/pkg-descr
@@ -1,3 +1,3 @@
This tool lets you monitor I/O latency in real time
-WWW: http://code.google.com/p/ioping/
+WWW: http://code.google.com/p/ioping/