pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/xfce4-fsguard-plugin
Module Name: pkgsrc
Committed By: youri
Date: Mon May 28 23:41:53 UTC 2018
Modified Files:
pkgsrc/sysutils/xfce4-fsguard-plugin: Makefile distinfo
pkgsrc/sysutils/xfce4-fsguard-plugin/patches:
patch-panel-plugin_fsguard.c
Log Message:
Update to fix free space calculation on a hard drive on NetBSD.
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 pkgsrc/sysutils/xfce4-fsguard-plugin/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/sysutils/xfce4-fsguard-plugin/distinfo
cvs rdiff -u -r1.2 -r1.3 \
pkgsrc/sysutils/xfce4-fsguard-plugin/patches/patch-panel-plugin_fsguard.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/sysutils/xfce4-fsguard-plugin/Makefile
diff -u pkgsrc/sysutils/xfce4-fsguard-plugin/Makefile:1.42 pkgsrc/sysutils/xfce4-fsguard-plugin/Makefile:1.43
--- pkgsrc/sysutils/xfce4-fsguard-plugin/Makefile:1.42 Mon Apr 16 14:35:13 2018
+++ pkgsrc/sysutils/xfce4-fsguard-plugin/Makefile Mon May 28 23:41:52 2018
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.42 2018/04/16 14:35:13 wiz Exp $
+# $NetBSD: Makefile,v 1.43 2018/05/28 23:41:52 youri Exp $
-PKGREVISION= 3
+PKGREVISION= 4
.include "../../meta-pkgs/xfce4/Makefile.common"
DISTNAME= xfce4-fsguard-plugin-1.1.0
Index: pkgsrc/sysutils/xfce4-fsguard-plugin/distinfo
diff -u pkgsrc/sysutils/xfce4-fsguard-plugin/distinfo:1.11 pkgsrc/sysutils/xfce4-fsguard-plugin/distinfo:1.12
--- pkgsrc/sysutils/xfce4-fsguard-plugin/distinfo:1.11 Tue Jun 20 21:49:03 2017
+++ pkgsrc/sysutils/xfce4-fsguard-plugin/distinfo Mon May 28 23:41:52 2018
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.11 2017/06/20 21:49:03 youri Exp $
+$NetBSD: distinfo,v 1.12 2018/05/28 23:41:52 youri Exp $
SHA1 (xfce4-fsguard-plugin-1.1.0.tar.bz2) = f96bec79e6dcac6f1a5ab576f78bc5b6b8986369
RMD160 (xfce4-fsguard-plugin-1.1.0.tar.bz2) = 9aa79cf084663319d818436b9982fb81ee99318e
SHA512 (xfce4-fsguard-plugin-1.1.0.tar.bz2) = c5e49a045f1987d57c6e6d120ad25785d2f9ad4e97d07af3d40ab88c268b5b8417deba40e0277ecc1725092063fa2a7f94aa163579f04a419aad5b4e47c79d7d
Size (xfce4-fsguard-plugin-1.1.0.tar.bz2) = 360463 bytes
-SHA1 (patch-panel-plugin_fsguard.c) = 05ec59240563a208fc3cb23d49c8b4321d680c47
+SHA1 (patch-panel-plugin_fsguard.c) = 813ab6c5f61591039c4b8d8a817183dbe1c9505e
Index: pkgsrc/sysutils/xfce4-fsguard-plugin/patches/patch-panel-plugin_fsguard.c
diff -u pkgsrc/sysutils/xfce4-fsguard-plugin/patches/patch-panel-plugin_fsguard.c:1.2 pkgsrc/sysutils/xfce4-fsguard-plugin/patches/patch-panel-plugin_fsguard.c:1.3
--- pkgsrc/sysutils/xfce4-fsguard-plugin/patches/patch-panel-plugin_fsguard.c:1.2 Tue Jun 20 21:49:03 2017
+++ pkgsrc/sysutils/xfce4-fsguard-plugin/patches/patch-panel-plugin_fsguard.c Mon May 28 23:41:53 2018
@@ -1,9 +1,9 @@
-$NetBSD: patch-panel-plugin_fsguard.c,v 1.2 2017/06/20 21:49:03 youri Exp $
+$NetBSD: patch-panel-plugin_fsguard.c,v 1.3 2018/05/28 23:41:53 youri Exp $
Fix NetBSD support.
Add SunOS, OS X and DragonFlyBSD support.
---- panel-plugin/fsguard.c.orig 2012-06-30 09:07:55.000000000 +0000
+--- panel-plugin/fsguard.c.orig 2016-10-29 06:43:10.000000000 +0000
+++ panel-plugin/fsguard.c
@@ -38,13 +38,18 @@
#include <string.h>
@@ -25,3 +25,15 @@ Add SunOS, OS X and DragonFlyBSD support
#include <gtk/gtk.h>
#include <libxfce4util/libxfce4util.h>
#include <libxfce4ui/libxfce4ui.h>
+@@ -277,7 +282,11 @@ fsguard_check_fs (FsGuard *fsguard)
+ err = statfs (fsguard->path, &fsd);
+
+ if (err != -1) {
++#ifdef __NetBSD__
++ blocksize = fsd.f_frsize;
++#else
+ blocksize = fsd.f_bsize;
++#endif
+ freeblocks = fsd.f_bavail;
+ totalblocks = fsd.f_blocks;
+ freespace = (freeblocks * blocksize) / 1048576;
Home |
Main Index |
Thread Index |
Old Index