pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/ncdu ncdu: update to 1.18.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6948d5fcb2b6
branches:  trunk
changeset: 391075:6948d5fcb2b6
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jan 03 13:29:49 2023 +0000

description:
ncdu: update to 1.18.

1.18 - 2022-12-06
        - Fix 'dark-bg' color scheme to actually have a dark background
        - Backport configuration file support from 2.x
        - Backport many new CLI options from 2.x
        - Negation of existing flags: --no-si, --no-confirm-quit, --no-follow-symlinks, --include-caches, --include-kernfs
        - --[no-]extended in addition to -e
        - --one-file-system and --cross-file-system in addition to -x
        - --slow-ui-updates, --fast-ui-updates in addition to -q
        - Column visibility options: --(show|hide)-(hidden|itemcount|mtime|graph|percent)
        - Sorting: --sort, --[no-]group-directories-first
        - Feature selection: --(enable|disable)-(shell|delete|refresh)
        - Deletion confirmation: --[no-]confirm-delete
        - Hidden file visibility: --show-hidden, --hide-hidden
        - Size display: --apparent-size, --disk-usage

diffstat:

 sysutils/ncdu/Makefile                 |   6 +++---
 sysutils/ncdu/distinfo                 |   9 +++++----
 sysutils/ncdu/patches/patch-src_main.c |  26 ++++++++++++++++++++++++++
 3 files changed, 34 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 9fc9b879fad6 -r 6948d5fcb2b6 sysutils/ncdu/Makefile
--- a/sysutils/ncdu/Makefile    Tue Jan 03 13:23:21 2023 +0000
+++ b/sysutils/ncdu/Makefile    Tue Jan 03 13:29:49 2023 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: Makefile,v 1.15 2022/07/21 17:19:37 fcambus Exp $
+# $NetBSD: Makefile,v 1.16 2023/01/03 13:29:49 wiz Exp $
 
-DISTNAME=      ncdu-1.17
+DISTNAME=      ncdu-1.18
 CATEGORIES=    sysutils
 MASTER_SITES=  https://dev.yorhel.nl/download/
 
-COMMENT=       Disk usage visualization tool
 MAINTAINER=    slitvinov%gmail.com@localhost
 HOMEPAGE=      https://dev.yorhel.nl/ncdu
+COMMENT=       Disk usage visualization tool
 LICENSE=       modified-bsd
 
 GNU_CONFIGURE= yes
diff -r 9fc9b879fad6 -r 6948d5fcb2b6 sysutils/ncdu/distinfo
--- a/sysutils/ncdu/distinfo    Tue Jan 03 13:23:21 2023 +0000
+++ b/sysutils/ncdu/distinfo    Tue Jan 03 13:29:49 2023 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.11 2022/07/21 17:19:37 fcambus Exp $
+$NetBSD: distinfo,v 1.12 2023/01/03 13:29:49 wiz Exp $
 
-BLAKE2s (ncdu-1.17.tar.gz) = 1052419587718521fe07cc8868f6071737c690868a7210e3db7dd17246663ab4
-SHA512 (ncdu-1.17.tar.gz) = aa2366797760f0c0b2bea866f0ae0446b8113e3ff6460192a4a42d4d888d473d7f37bc4acff6220fa86003bd96d71761168a2ae0ded36456072176a69564c775
-Size (ncdu-1.17.tar.gz) = 157187 bytes
+BLAKE2s (ncdu-1.18.tar.gz) = 970c3374f5776b52b50ed46bd6f95839a14ad84842260843926be952ac554b22
+SHA512 (ncdu-1.18.tar.gz) = 959ca90ad35055467346c196d7d6e5afc1e57d87c83855dfb92dd8e370bce10c1a1633064854abb3ed581e0ea7b6451474472acd9e4ad3ae91b90311b07cc7d7
+Size (ncdu-1.18.tar.gz) = 159781 bytes
+SHA1 (patch-src_main.c) = c287bc35122c47bfc3a2496165ea99387cb9011f
diff -r 9fc9b879fad6 -r 6948d5fcb2b6 sysutils/ncdu/patches/patch-src_main.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/ncdu/patches/patch-src_main.c    Tue Jan 03 13:29:49 2023 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_main.c,v 1.1 2023/01/03 13:29:49 wiz Exp $
+
+Fix build on non-Linux.
+
+--- src/main.c.orig    2022-11-30 10:30:55.000000000 +0000
++++ src/main.c
+@@ -257,8 +257,10 @@ static int arg_option(void) {
+     if(exclude_addfile(arg)) die("Can't open %s: %s\n", arg, strerror(errno));
+   } else if(OPT("--exclude-caches")) cachedir_tags = 1;
+   else if(OPT("--include-caches")) cachedir_tags = 0;
++#if HAVE_LINUX_MAGIC_H && HAVE_SYS_STATFS_H && HAVE_STATFS
+   else if(OPT("--exclude-kernfs")) exclude_kernfs = 1;
+   else if(OPT("--include-kernfs")) exclude_kernfs = 0;
++#endif
+   else if(OPT("--follow-firmlinks")) follow_firmlinks = 1;
+   else if(OPT("--exclude-firmlinks")) follow_firmlinks = 0;
+   else if(OPT("--confirm-quit")) confirm_quit = 1;
+@@ -395,7 +397,7 @@ static void argv_parse(int argc, char **
+     else if(!arg_option()) die("Unknown option '%s'.\n", argparser_state.last);
+   }
+ 
+-#if !(HAVE_LINUX_MAGIC_H && HAVE_SYS_STATFS_H && HAVE_STATFS)
++#if HAVE_LINUX_MAGIC_H && HAVE_SYS_STATFS_H && HAVE_STATFS
+   if(exclude_kernfs) die("The --exclude-kernfs flag is currently only supported on Linux.\n");
+ #endif
+ 



Home | Main Index | Thread Index | Old Index