diff options
author | martti <martti> | 2003-12-03 05:07:32 +0000 |
---|---|---|
committer | martti <martti> | 2003-12-03 05:07:32 +0000 |
commit | 47135280d1f443f6b51a8695964bcc88f25d230f (patch) | |
tree | d9b672d1cda65b497aec6f0e3f8618aede27e22a /sysutils | |
parent | e71e771c0be92b4c9b0b446e2e7172ccaaf35457 (diff) | |
download | pkgsrc-47135280d1f443f6b51a8695964bcc88f25d230f.tar.gz |
Disk performance plugin for XFce4.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/xfce4-diskperf-plugin/DESCR | 1 | ||||
-rw-r--r-- | sysutils/xfce4-diskperf-plugin/Makefile | 13 | ||||
-rw-r--r-- | sysutils/xfce4-diskperf-plugin/PLIST | 4 | ||||
-rw-r--r-- | sysutils/xfce4-diskperf-plugin/buildlink2.mk | 26 | ||||
-rw-r--r-- | sysutils/xfce4-diskperf-plugin/distinfo | 5 | ||||
-rw-r--r-- | sysutils/xfce4-diskperf-plugin/patches/patch-aa | 19 |
6 files changed, 68 insertions, 0 deletions
diff --git a/sysutils/xfce4-diskperf-plugin/DESCR b/sysutils/xfce4-diskperf-plugin/DESCR new file mode 100644 index 00000000000..3a495783c24 --- /dev/null +++ b/sysutils/xfce4-diskperf-plugin/DESCR @@ -0,0 +1 @@ +Disk performance plugin for XFce4. diff --git a/sysutils/xfce4-diskperf-plugin/Makefile b/sysutils/xfce4-diskperf-plugin/Makefile new file mode 100644 index 00000000000..963a94bac85 --- /dev/null +++ b/sysutils/xfce4-diskperf-plugin/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/12/03 05:07:32 martti Exp $ + +.include "../../meta-pkgs/xfce4/Makefile.common" + +XFCE4_VERSION= 1.4 + +DISTNAME= xfce4-diskperf-plugin-${XFCE4_VERSION} +CATEGORIES= sysutils +MASTER_SITES= http://download.berlios.de/xfce-goodies/ +COMMENT= XFce4 disk performance plugin + +.include "../../x11/xfce4-panel/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/xfce4-diskperf-plugin/PLIST b/sysutils/xfce4-diskperf-plugin/PLIST new file mode 100644 index 00000000000..98748c5f048 --- /dev/null +++ b/sysutils/xfce4-diskperf-plugin/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/03 05:07:32 martti Exp $ +lib/xfce4/panel-plugins/libdiskperf.a +lib/xfce4/panel-plugins/libdiskperf.la +lib/xfce4/panel-plugins/libdiskperf.so diff --git a/sysutils/xfce4-diskperf-plugin/buildlink2.mk b/sysutils/xfce4-diskperf-plugin/buildlink2.mk new file mode 100644 index 00000000000..0482ddadb19 --- /dev/null +++ b/sysutils/xfce4-diskperf-plugin/buildlink2.mk @@ -0,0 +1,26 @@ +# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/12/03 05:07:32 martti Exp $ +# +# This Makefile fragment is included by packages that use xfce4-diskperf-plugin. +# +# This file was created automatically using createbuildlink 2.8. +# + +.if !defined(XFCE4_DISKPERF_PLUGIN_BUILDLINK2_MK) +XFCE4_DISKPERF_PLUGIN_BUILDLINK2_MK= # defined + +BUILDLINK_PACKAGES+= xfce4-diskperf-plugin +BUILDLINK_DEPENDS.xfce4-diskperf-plugin?= xfce4-diskperf-plugin>=1.4 +BUILDLINK_PKGSRCDIR.xfce4-diskperf-plugin?= ../../sysutils/xfce4-diskperf-plugin + +EVAL_PREFIX+= BUILDLINK_PREFIX.xfce4-diskperf-plugin=xfce4-diskperf-plugin +BUILDLINK_PREFIX.xfce4-diskperf-plugin_DEFAULT= ${X11PREFIX} +BUILDLINK_FILES.xfce4-diskperf-plugin+= lib/xfce4/panel-plugins/libdiskperf.* + +.include "../../x11/xfce4-panel/buildlink2.mk" +.include "../../devel/glib2/buildlink2.mk" + +BUILDLINK_TARGETS+= xfce4-diskperf-plugin-buildlink + +xfce4-diskperf-plugin-buildlink: _BUILDLINK_USE + +.endif # XFCE4_DISKPERF_PLUGIN_BUILDLINK2_MK diff --git a/sysutils/xfce4-diskperf-plugin/distinfo b/sysutils/xfce4-diskperf-plugin/distinfo new file mode 100644 index 00000000000..5873f50e656 --- /dev/null +++ b/sysutils/xfce4-diskperf-plugin/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/12/03 05:07:32 martti Exp $ + +SHA1 (xfce4-diskperf-plugin-1.4.tar.gz) = 1f61d46fbb7a7b202e964380f3164535a8351a00 +Size (xfce4-diskperf-plugin-1.4.tar.gz) = 314724 bytes +SHA1 (patch-aa) = 3b244cfbcd7098bdcbd8b44ef9adc0d1aa38e732 diff --git a/sysutils/xfce4-diskperf-plugin/patches/patch-aa b/sysutils/xfce4-diskperf-plugin/patches/patch-aa new file mode 100644 index 00000000000..cf1f5df1113 --- /dev/null +++ b/sysutils/xfce4-diskperf-plugin/patches/patch-aa @@ -0,0 +1,19 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/12/03 05:07:32 martti Exp $ + +--- panel-plugin/devperf.c.orig Tue Nov 11 01:00:41 2003 ++++ panel-plugin/devperf.c Mon Nov 17 10:39:35 2003 +@@ -292,8 +292,14 @@ + gettimeofday (&tv, 0); + perf->timestamp_ns = (uint64_t)1000ull * 1000ull * 1000ull * + tv.tv_sec + 1000ull * tv.tv_usec; ++#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 106110000) ++ /* NetBSD < 1.6K does not have separate read/write statistics. */ ++ perf->rbytes = drive.dk_bytes; ++ perf->wbytes = drive.dk_bytes; ++#else + perf->rbytes = drive.dk_rbytes; + perf->wbytes = drive.dk_wbytes; ++#endif + /* + * XXX - Currently, I don't know of any way to determine write/read busy + * time separatly. |