Tue Feb 28 21:07:43 2023 UTC ()
sysutils/ncdu2: import as ncdu2 version 2.2.2
Imported from wip.
ncdu (NCurses Disk Usage) is a curses-based version of the well-known
'du', and provides a fast way to see what directories are using
your disk space. This is a complete rewrite in zig, with lower memory
usage and better performance.
(nikita)
diff -r1.1036 -r1.1037 pkgsrc/sysutils/Makefile
diff -r0 -r1.1 pkgsrc/sysutils/ncdu2/DESCR
diff -r0 -r1.1 pkgsrc/sysutils/ncdu2/Makefile
diff -r0 -r1.1 pkgsrc/sysutils/ncdu2/PLIST
diff -r0 -r1.1 pkgsrc/sysutils/ncdu2/distinfo
diff -r0 -r1.1 pkgsrc/sysutils/ncdu2/patches/patch-build.zig
--- pkgsrc/sysutils/Makefile 2023/02/22 11:59:19 1.1036
+++ pkgsrc/sysutils/Makefile 2023/02/28 21:07:43 1.1037
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.1036 2023/02/22 11:59:19 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.1037 2023/02/28 21:07:43 nikita Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | COMMENT= System utilities | | 4 | COMMENT= System utilities |
5 | | | 5 | |
6 | SUBDIR+= 855resolution | | 6 | SUBDIR+= 855resolution |
7 | SUBDIR+= 915resolution | | 7 | SUBDIR+= 915resolution |
8 | SUBDIR+= 9base | | 8 | SUBDIR+= 9base |
9 | SUBDIR+= R-biglm | | 9 | SUBDIR+= R-biglm |
10 | SUBDIR+= R-ff | | 10 | SUBDIR+= R-ff |
11 | SUBDIR+= R-later | | 11 | SUBDIR+= R-later |
12 | SUBDIR+= R-processx | | 12 | SUBDIR+= R-processx |
13 | SUBDIR+= R-progress | | 13 | SUBDIR+= R-progress |
14 | SUBDIR+= R-ps | | 14 | SUBDIR+= R-ps |
| @@ -455,26 +455,27 @@ SUBDIR+= monitoring | | | @@ -455,26 +455,27 @@ SUBDIR+= monitoring |
455 | SUBDIR+= mrsync | | 455 | SUBDIR+= mrsync |
456 | SUBDIR+= mtools | | 456 | SUBDIR+= mtools |
457 | SUBDIR+= mtoolsfm | | 457 | SUBDIR+= mtoolsfm |
458 | SUBDIR+= mtscan | | 458 | SUBDIR+= mtscan |
459 | SUBDIR+= mtx | | 459 | SUBDIR+= mtx |
460 | SUBDIR+= munin-common | | 460 | SUBDIR+= munin-common |
461 | SUBDIR+= munin-master | | 461 | SUBDIR+= munin-master |
462 | SUBDIR+= munin-node | | 462 | SUBDIR+= munin-node |
463 | SUBDIR+= nabud | | 463 | SUBDIR+= nabud |
464 | SUBDIR+= nautilus | | 464 | SUBDIR+= nautilus |
465 | SUBDIR+= navi | | 465 | SUBDIR+= navi |
466 | SUBDIR+= nbase | | 466 | SUBDIR+= nbase |
467 | SUBDIR+= ncdu | | 467 | SUBDIR+= ncdu |
| | | 468 | SUBDIR+= ncdu2 |
468 | SUBDIR+= ndesk-dbus | | 469 | SUBDIR+= ndesk-dbus |
469 | SUBDIR+= ndesk-dbus-glib | | 470 | SUBDIR+= ndesk-dbus-glib |
470 | SUBDIR+= neb-wipe | | 471 | SUBDIR+= neb-wipe |
471 | SUBDIR+= neofetch | | 472 | SUBDIR+= neofetch |
472 | SUBDIR+= netbt-hcidump | | 473 | SUBDIR+= netbt-hcidump |
473 | SUBDIR+= netmask | | 474 | SUBDIR+= netmask |
474 | SUBDIR+= news | | 475 | SUBDIR+= news |
475 | SUBDIR+= nnn | | 476 | SUBDIR+= nnn |
476 | SUBDIR+= node_exporter | | 477 | SUBDIR+= node_exporter |
477 | SUBDIR+= noice | | 478 | SUBDIR+= noice |
478 | SUBDIR+= notification-daemon | | 479 | SUBDIR+= notification-daemon |
479 | SUBDIR+= nrg2iso | | 480 | SUBDIR+= nrg2iso |
480 | SUBDIR+= ntfsprogs | | 481 | SUBDIR+= ntfsprogs |
ncdu (NCurses Disk Usage) is a curses-based version of the well-known
'du', and provides a fast way to see what directories are using
your disk space. This is a complete rewrite in zig, with lower memory
usage and better performance.
# $NetBSD: Makefile,v 1.1 2023/02/28 21:07:43 nikita Exp $
DISTNAME= ncdu-2.2.2
CATEGORIES= sysutils
MASTER_SITES= https://dev.yorhel.nl/download/
COMMENT= Disk usage visualization tool
MAINTAINER= nikita@NetBSD.org
HOMEPAGE= https://dev.yorhel.nl/ncdu
LICENSE= mit
USE_TOOLS+= pkg-config
CONFLICTS+= ncdu-1.*
# \todo: There is currently an issue building zig packages as RELRO.
RELRO_SUPPORTED= no
# TODO: fix "make doc" or patch zig.build to install docs
post-build:
mkdir ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA} ${WRKSRC}/ncdu.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../devel/ncursesw/buildlink3.mk"
.include "../../lang/zig/application.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2023/02/28 21:07:43 nikita Exp $
bin/ncdu
man/man1/ncdu.1
$NetBSD: distinfo,v 1.1 2023/02/28 21:07:43 nikita Exp $
BLAKE2s (ncdu-2.2.2.tar.gz) = 15f96d67a36352647e986c7829d069c0d6d06954e6e5d3c160eb71a782c69e77
SHA512 (ncdu-2.2.2.tar.gz) = 5742b4abca1168256b6a7afa24d25e709bc3b490181d85fc070ddce4aad9d41fa3acb5c5a63676d804d082918fdf2bf0c98a27d8d07a56abeef0574c1b598da6
Size (ncdu-2.2.2.tar.gz) = 56096 bytes
SHA1 (patch-build.zig) = a8ad575ef54b7ad682cf2ba587694f844cc0ebb1
$NetBSD: patch-build.zig,v 1.1 2023/02/28 21:07:43 nikita Exp $
Fix PIE build.
--- build.zig.orig 2023-01-19 20:45:54.216372800 +0100
+++ build.zig 2023-01-19 20:46:23.795210635 +0100
@@ -10,6 +10,7 @@
const exe = b.addExecutable("ncdu", "src/main.zig");
exe.setTarget(target);
exe.setBuildMode(mode);
+ exe.pie = true;
exe.addCSourceFile("src/ncurses_refs.c", &[_][]const u8{});
exe.linkLibC();
exe.linkSystemLibrary("ncursesw");