From patchwork Fri Aug 21 19:37:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: smooky X-Patchwork-Id: 3389 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4BYBcR5cJZz3x16 for ; Fri, 21 Aug 2020 19:37:27 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4BYBcQ1Qd3zsL; Fri, 21 Aug 2020 19:37:25 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4BYBcP1kTFz2yHl; Fri, 21 Aug 2020 19:37:25 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4BYBcM3v4Lz2xl3 for ; Fri, 21 Aug 2020 19:37:23 +0000 (UTC) Received: from malta2912.startdedicated.de (v16.de [85.93.91.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4BYBcF04YbznK for ; Fri, 21 Aug 2020 19:37:16 +0000 (UTC) Received: from router.home.v16.de (ip1f109aa8.dynamic.kabel-deutschland.de [31.16.154.168]) (Authenticated sender: smooky.v16) by malta2912.startdedicated.de (Postfix) with ESMTPA id CCE92EC0E70; Fri, 21 Aug 2020 21:37:09 +0200 (CEST) From: smooky@v16.de To: development@lists.ipfire.org Subject: [PATCH] ncdu-1.15.1 Date: Fri, 21 Aug 2020 21:37:07 +0200 Message-Id: <20200821193707.5633-1-smooky@v16.de> X-Mailer: git-send-email 2.12.2 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1598038640; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=XbdJyM8f5sJ3EfZ/Yll6anoIzmotHdm0qS5QnAZiORU=; b=YWh4MtM1ctPg1oFqBYAN69xP49nqALR27UYBjgks1LeSEc8S/UtXrm/QgMSM2M7eiEH/Eg TPFsJ5YcIAcI3g5qvQLk1Ai5/0kqNLvGgeJVpiQGGiF/ldPldlbhDHJq9vKcwYLQHp5c6n Za3Ew9AbPq0zKEfsHa4yvK43TCR5iSrAu2YdXyemJZiP6ST3MuKOgvVDVrOs7SnBkWb+6e lMlEihBfvrcCAZyJMwQ7p5mY2DLujDJFArNN7Hlp4lOa0uNvy3eOhJj3C3WFzDwxlIVrz1 umIgm1OLwL24ikrt9KQfT3hCAXqxgaZlLcvBvsXkM0GH32S29EvqBoMfzvaBbA== ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1598038640; a=rsa-sha256; cv=none; b=Gxv6PGK/MPdXdnRu3Rh/VznsBnNvHesl9km3Y6mYZ0by7QbeibpnSf4elxETDBpAGOWeF5 5IIaZIgOI9LmDPN5Jmojysbxu1g9poMBZWhGhfGhz5nLTHOKxoIRlEHjIpsdscnf6rrDr0 eC1is+Hwhqmjk5kjYiTwb6JCCxyuanYngyTBHp3W415a0rUQKScROg1Sdh4AL9ZPpUbOUV Yg6OqXLmsUdGzyscZbTCK5OvmfcaKn2dmHWvVCpdDs5Q/o0IVJ7alLFBLdSgyhlPbubt6d /0YSza52yhE1MqXrUaclB7WfI3BeghaDzhH7g7fKwf8+3t29PV3MmkaKSuqRqg== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=none; spf=none (mail01.ipfire.org: domain of smooky@v16.de has no SPF policy when checking 85.93.91.151) smtp.mailfrom=smooky@v16.de Authentication-Results: mail01.ipfire.org; dkim=none; dmarc=none; spf=none (mail01.ipfire.org: domain of smooky@v16.de has no SPF policy when checking 85.93.91.151) smtp.mailfrom=smooky@v16.de X-Rspamd-Queue-Id: 4BYBcF04YbznK X-Spamd-Result: default: False [-2.06 / 11.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; IP_REPUTATION_HAM(-0.00)[asn: 8972(0.00), country: DE(-0.00), ip: 85.93.91.151(0.00)]; MIME_GOOD(-0.10)[text/plain]; ARC_SIGNED(0.00)[i=1]; DMARC_NA(0.00)[v16.de]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_NO_DN(0.00)[]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-0.96)[-0.955]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8972, ipnet:85.93.91.0/24, country:DE]; RCVD_COUNT_TWO(0.00)[2]; BAYES_HAM(-3.00)[99.99%]; RECEIVED_SPAMHAUS_PBL(0.00)[31.16.154.168:received] X-Rspamd-Server: mail01.haj.ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marcel Follert Errors-To: development-bounces@lists.ipfire.org Sender: "Development" >>> https://dev.yorhel.nl/ncdu <<< 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. Signed-off-by: Marcel Follert (Smooky) Reviewed-by: Michael Tremer --- config/rootfiles/packages/ncdu | 2 + lfs/ncdu | 85 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 config/rootfiles/packages/ncdu create mode 100644 lfs/ncdu diff --git a/config/rootfiles/packages/ncdu b/config/rootfiles/packages/ncdu new file mode 100644 index 000000000..0dd1d7ac6 --- /dev/null +++ b/config/rootfiles/packages/ncdu @@ -0,0 +1,2 @@ +usr/bin/ncdu +#usr/share/man/man1/ncdu.1 diff --git a/lfs/ncdu b/lfs/ncdu new file mode 100644 index 000000000..0ea9370b2 --- /dev/null +++ b/lfs/ncdu @@ -0,0 +1,85 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2020 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 1.15.1 + +THISAPP = ncdu-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = ncdu +PAK_VER = 1 + +DEPS = + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = af25aa8462a6f29c8a0c4d3d83d186e7 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xvf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure --prefix=/usr + cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD)