diff options
author | bapt <bapt@FreeBSD.org> | 2011-12-29 04:31:15 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2011-12-29 04:31:15 +0800 |
commit | 0ebe50b2dd9ba9c373b3c59fbff2516e846520cd (patch) | |
tree | a0845b855643ee71abc7147cc3e9c77379431309 /x11/i3status | |
parent | b0384fb8b550cbd310b5a1548fd40737623ecf36 (diff) | |
download | freebsd-ports-gnome-0ebe50b2dd9ba9c373b3c59fbff2516e846520cd.tar.gz freebsd-ports-gnome-0ebe50b2dd9ba9c373b3c59fbff2516e846520cd.tar.zst freebsd-ports-gnome-0ebe50b2dd9ba9c373b3c59fbff2516e846520cd.zip |
- update to 2.4 (mostly integrate the freebsd support)
Diffstat (limited to 'x11/i3status')
-rw-r--r-- | x11/i3status/Makefile | 3 | ||||
-rw-r--r-- | x11/i3status/distinfo | 4 | ||||
-rw-r--r-- | x11/i3status/files/patch-include__i3status.h | 12 | ||||
-rw-r--r-- | x11/i3status/files/patch-src__print_disk_info.c | 41 |
4 files changed, 3 insertions, 57 deletions
diff --git a/x11/i3status/Makefile b/x11/i3status/Makefile index 842b69a0e3a3..66b03370284f 100644 --- a/x11/i3status/Makefile +++ b/x11/i3status/Makefile @@ -6,8 +6,7 @@ # PORTNAME= i3status -PORTVERSION= 2.3 -PORTREVISION= 1 +PORTVERSION= 2.4 CATEGORIES= x11 MASTER_SITES= http://i3wm.org/i3status/ diff --git a/x11/i3status/distinfo b/x11/i3status/distinfo index a66ff6c5a1b7..b7c18d203070 100644 --- a/x11/i3status/distinfo +++ b/x11/i3status/distinfo @@ -1,2 +1,2 @@ -SHA256 (i3status-2.3.tar.bz2) = 552dac4649f4e142c88ad3c42faace1fc372515c1b9dd979ebca58d36fa4bb1a -SIZE (i3status-2.3.tar.bz2) = 24814 +SHA256 (i3status-2.4.tar.bz2) = 620f3768dc4e9ea391ca5b5e358d018ca5d2820da1fce71a71664ca554778abd +SIZE (i3status-2.4.tar.bz2) = 26020 diff --git a/x11/i3status/files/patch-include__i3status.h b/x11/i3status/files/patch-include__i3status.h deleted file mode 100644 index b9d0cc947b8b..000000000000 --- a/x11/i3status/files/patch-include__i3status.h +++ /dev/null @@ -1,12 +0,0 @@ ---- ./include/i3status.h.orig 2011-07-21 23:11:48.000000000 +0200 -+++ ./include/i3status.h 2011-12-08 14:48:47.000000000 +0100 -@@ -16,7 +16,8 @@ - - #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) - --#define THERMAL_ZONE "hw.acpi.thermal.tz%d.temperature" -+/* this needs the coretemp module to be loaded */ -+#define THERMAL_ZONE "dev.cpu.%d.temperature" - #define BATT_LIFE "hw.acpi.battery.life" - #define BATT_TIME "hw.acpi.battery.time" - #define BATT_STATE "hw.acpi.battery.state" diff --git a/x11/i3status/files/patch-src__print_disk_info.c b/x11/i3status/files/patch-src__print_disk_info.c deleted file mode 100644 index 7f8a04eb9390..000000000000 --- a/x11/i3status/files/patch-src__print_disk_info.c +++ /dev/null @@ -1,41 +0,0 @@ ---- ./src/print_disk_info.c.orig 2011-07-21 23:11:48.000000000 +0200 -+++ ./src/print_disk_info.c 2011-12-08 15:47:21.000000000 +0100 -@@ -6,6 +6,11 @@ - #include <stdint.h> - #include <sys/statvfs.h> - #include <sys/types.h> -+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -+#include <sys/param.h> -+#include <sys/mount.h> -+#endif -+ - - #include "i3status.h" - -@@ -39,10 +44,18 @@ - */ - void print_disk_info(const char *path, const char *format) { - const char *walk; -+ -+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -+ struct statfs buf; -+ -+ if (statfs(path, &buf) == -1) -+ return; -+#else - struct statvfs buf; - - if (statvfs(path, &buf) == -1) - return; -+#endif - - for (walk = format; *walk != '\0'; walk++) { - if (*walk != '%') { -@@ -63,6 +76,7 @@ - if (BEGINS_WITH(walk+1, "total")) { - print_bytes_human((uint64_t)buf.f_bsize * (uint64_t)buf.f_blocks); - walk += strlen("total"); -+ - } - - if (BEGINS_WITH(walk+1, "avail")) { |