pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils



Module Name:    pkgsrc
Committed By:   nikita
Date:           Tue Feb 28 21:07:43 UTC 2023

Modified Files:
        pkgsrc/sysutils: Makefile
Added Files:
        pkgsrc/sysutils/ncdu2: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/ncdu2/patches: patch-build.zig

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1036 -r1.1037 pkgsrc/sysutils/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/ncdu2/DESCR \
    pkgsrc/sysutils/ncdu2/Makefile pkgsrc/sysutils/ncdu2/PLIST \
    pkgsrc/sysutils/ncdu2/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/ncdu2/patches/patch-build.zig

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.1036 pkgsrc/sysutils/Makefile:1.1037
--- pkgsrc/sysutils/Makefile:1.1036     Wed Feb 22 11:59:19 2023
+++ pkgsrc/sysutils/Makefile    Tue Feb 28 21:07:43 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1036 2023/02/22 11:59:19 jperkin Exp $
+# $NetBSD: Makefile,v 1.1037 2023/02/28 21:07:43 nikita Exp $
 #
 
 COMMENT=       System utilities
@@ -465,6 +465,7 @@ SUBDIR+=    nautilus
 SUBDIR+=       navi
 SUBDIR+=       nbase
 SUBDIR+=       ncdu
+SUBDIR+=       ncdu2
 SUBDIR+=       ndesk-dbus
 SUBDIR+=       ndesk-dbus-glib
 SUBDIR+=       neb-wipe

Added files:

Index: pkgsrc/sysutils/ncdu2/DESCR
diff -u /dev/null pkgsrc/sysutils/ncdu2/DESCR:1.1
--- /dev/null   Tue Feb 28 21:07:43 2023
+++ pkgsrc/sysutils/ncdu2/DESCR Tue Feb 28 21:07:43 2023
@@ -0,0 +1,4 @@
+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.
Index: pkgsrc/sysutils/ncdu2/Makefile
diff -u /dev/null pkgsrc/sysutils/ncdu2/Makefile:1.1
--- /dev/null   Tue Feb 28 21:07:43 2023
+++ pkgsrc/sysutils/ncdu2/Makefile      Tue Feb 28 21:07:43 2023
@@ -0,0 +1,25 @@
+# $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@localhost
+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"
Index: pkgsrc/sysutils/ncdu2/PLIST
diff -u /dev/null pkgsrc/sysutils/ncdu2/PLIST:1.1
--- /dev/null   Tue Feb 28 21:07:43 2023
+++ pkgsrc/sysutils/ncdu2/PLIST Tue Feb 28 21:07:43 2023
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2023/02/28 21:07:43 nikita Exp $
+bin/ncdu
+man/man1/ncdu.1
Index: pkgsrc/sysutils/ncdu2/distinfo
diff -u /dev/null pkgsrc/sysutils/ncdu2/distinfo:1.1
--- /dev/null   Tue Feb 28 21:07:43 2023
+++ pkgsrc/sysutils/ncdu2/distinfo      Tue Feb 28 21:07:43 2023
@@ -0,0 +1,6 @@
+$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

Index: pkgsrc/sysutils/ncdu2/patches/patch-build.zig
diff -u /dev/null pkgsrc/sysutils/ncdu2/patches/patch-build.zig:1.1
--- /dev/null   Tue Feb 28 21:07:43 2023
+++ pkgsrc/sysutils/ncdu2/patches/patch-build.zig       Tue Feb 28 21:07:43 2023
@@ -0,0 +1,14 @@
+$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");



Home | Main Index | Thread Index | Old Index