sysutils/ncdu2: Add ncdu2 2.2.2

Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find
space hogs on a remote server where you don't have an entire graphical setup
available, but it is a useful tool even on regular desktop systems. Ncdu aims to
be fast, simple and easy to use, and should be able to run in any minimal
POSIX-like environment with ncurses installed.
This commit is contained in:
Po-Chuan Hsieh 2023-05-27 12:06:35 +08:00
parent 9641077692
commit e545e7a4aa
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
4 changed files with 43 additions and 0 deletions

View file

@ -821,6 +821,7 @@
SUBDIR += namefix
SUBDIR += nbosd
SUBDIR += ncdu
SUBDIR += ncdu2
SUBDIR += ndmpd
SUBDIR += neofetch
SUBDIR += nerdctl

34
sysutils/ncdu2/Makefile Normal file
View file

@ -0,0 +1,34 @@
PORTNAME= ncdu
PORTVERSION= 2.2.2
CATEGORIES= sysutils
MASTER_SITES= https://dev.yorhel.nl/download/
PKGNAMESUFFIX= 2
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= NCurses Disk Usage (stable version written in Zig)
WWW= https://dev.yorhel.nl/ncdu
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSES/MIT.txt
BUILD_DEPENDS= zig>=0.10.0<0.11:lang/zig
RUN_DEPENDS= zig:lang/zig
USES= ncurses
BUILD_ARGS= --prefix "${PREFIX}" --verbose
MAKE_ENV= DESTDIR="${STAGEDIR}"
PLIST_FILES= bin/ncdu \
share/man/man1/ncdu.1.gz
CONFLICTS_INSTALL= ncdu
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build ${BUILD_ARGS}
do-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ncdu
${INSTALL_MAN} ${WRKSRC}/ncdu.1 ${STAGEDIR}${PREFIX}/share/man/man1/ncdu.1
.include <bsd.port.mk>

3
sysutils/ncdu2/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1684104284
SHA256 (ncdu-2.2.2.tar.gz) = 90d920024e752318b469776ce57e03b3c702d49329ad9825aeeab36c3babf993
SIZE (ncdu-2.2.2.tar.gz) = 56096

5
sysutils/ncdu2/pkg-descr Normal file
View file

@ -0,0 +1,5 @@
Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find
space hogs on a remote server where you don't have an entire graphical setup
available, but it is a useful tool even on regular desktop systems. Ncdu aims to
be fast, simple and easy to use, and should be able to run in any minimal
POSIX-like environment with ncurses installed.