ncdu-1.15.1

Message ID 20200821193707.5633-1-smooky@v16.de
State Accepted
Commit 34a831e0d630dc298ab055b64502b2da45c86aaf
Headers
Series ncdu-1.15.1 |

Commit Message

smooky Aug. 21, 2020, 7:37 p.m. UTC
  >>> 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) <smooky@16.de>
---
 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
  

Comments

Michael Tremer Aug. 24, 2020, 2:38 p.m. UTC | #1
Hello Marcel,

Thank you for your patch.

Before we talk about the actual patch I would like to know the use case for this package in IPFire.

Best,
-Michael

> On 21 Aug 2020, at 20:37, smooky@v16.de wrote:
> 
>>>> 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) <smooky@16.de>
> ---
> 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  <info@ipfire.org>                     #
> +#                                                                             #
> +# 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 <http://www.gnu.org/licenses/>.       #
> +#                                                                             #
> +###############################################################################
> +
> +
> +###############################################################################
> +# 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)
> -- 
> 2.12.2
>
  
smooky Aug. 24, 2020, 3:21 p.m. UTC | #2
Hi Michael.I use this tool to quickly and easily find the largest memory consumers on my hard drives. I have e.g. Samba run as a file server where there are always many files quickly. With this tool it is possible for me to find the biggest memory hogs very quickly. It can search directly in the whole system or in individual folders. It is also very pleasant that the tool shows everything in a tree hierarchy, which speeds up the search enormously.best regardsMarcel
-------- Ursprüngliche Nachricht --------Von: Michael Tremer <michael.tremer@ipfire.org> Datum: 24.08.20  16:38  (GMT+01:00) An: smooky@v16.de Cc: "IPFire: Development-List" <development@lists.ipfire.org>, Marcel Follert <smooky@16.de> Betreff: Re: [PATCH] ncdu-1.15.1 Hello Marcel,Thank you for your patch.Before we talk about the actual patch I would like to know the use case for this package in IPFire.Best,-Michael> On 21 Aug 2020, at 20:37, smooky@v16.de wrote:> >>>> 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) <smooky@16.de>> ---> 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  <info@ipfire.org>                     #> +#                                                                             #> +# 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 <http://www.gnu.org/licenses/>.       #> +#                                                                             #> +###############################################################################> +> +> +###############################################################################> +# 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)> -- > 2.12.2>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Hi Michael.</div><div><br></div><div><span class="tlid-translation translation" lang="en"><span title="">I use this tool to quickly and easily find the largest memory consumers on my hard drives.</span> <span title="">I have e.g.</span> <span title="">Samba run as a file server where there are always many files quickly.</span> <span title="">With this tool it is possible for me to find the biggest memory hogs very quickly.</span> <span title="">It can search directly in the whole system or in individual folders.</span> <span title="">It is also very pleasant that the tool shows everything in a tree hierarchy, which speeds up the search enormously.</span><br><br><span title="">best regards</span><br><br><span title="">Marcel</span></span></div><div><br></div><div><br></div><div style="font-size:100%;color:#000000"></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Ursprüngliche Nachricht --------</div><div>Von: Michael Tremer &lt;michael.tremer@ipfire.org&gt; </div><div>Datum: 24.08.20  16:38  (GMT+01:00) </div><div>An: smooky@v16.de </div><div>Cc: "IPFire: Development-List" &lt;development@lists.ipfire.org&gt;, Marcel Follert &lt;smooky@16.de&gt; </div><div>Betreff: Re: [PATCH] ncdu-1.15.1 </div><div><br></div></div>Hello Marcel,<br><br>Thank you for your patch.<br><br>Before we talk about the actual patch I would like to know the use case for this package in IPFire.<br><br>Best,<br>-Michael<br><br>&gt; On 21 Aug 2020, at 20:37, smooky@v16.de wrote:<br>&gt; <br>&gt;&gt;&gt;&gt; https://dev.yorhel.nl/ncdu &lt;&lt;&lt;<br>&gt; <br>&gt; Ncdu is a disk usage analyzer with an ncurses interface. <br>&gt; It is designed to find space hogs on a remote server where you don't <br>&gt; have an entire graphical setup available, <br>&gt; but it is a useful tool even on regular desktop systems. <br>&gt; Ncdu aims to be fast, simple and easy to use, <br>&gt; and should be able to run in any minimal POSIX-like environment <br>&gt; with ncurses installed.<br>&gt; <br>&gt; Signed-off-by: Marcel Follert (Smooky) &lt;smooky@16.de&gt;<br>&gt; ---<br>&gt; config/rootfiles/packages/ncdu |&nbsp; 2 +<br>&gt; lfs/ncdu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 85 ++++++++++++++++++++++++++++++++++++++++++<br>&gt; 2 files changed, 87 insertions(+)<br>&gt; create mode 100644 config/rootfiles/packages/ncdu<br>&gt; create mode 100644 lfs/ncdu<br>&gt; <br>&gt; diff --git a/config/rootfiles/packages/ncdu b/config/rootfiles/packages/ncdu<br>&gt; new file mode 100644<br>&gt; index 000000000..0dd1d7ac6<br>&gt; --- /dev/null<br>&gt; +++ b/config/rootfiles/packages/ncdu<br>&gt; @@ -0,0 +1,2 @@<br>&gt; +usr/bin/ncdu<br>&gt; +#usr/share/man/man1/ncdu.1<br>&gt; diff --git a/lfs/ncdu b/lfs/ncdu<br>&gt; new file mode 100644<br>&gt; index 000000000..0ea9370b2<br>&gt; --- /dev/null<br>&gt; +++ b/lfs/ncdu<br>&gt; @@ -0,0 +1,85 @@<br>&gt; +###############################################################################<br>&gt; +#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# IPFire.org - A linux based firewall&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# Copyright (C) 2007-2020&nbsp; IPFire Team&nbsp; &lt;info@ipfire.org&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# This program is free software: you can redistribute it and/or modify&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# it under the terms of the GNU General Public License as published by&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# the Free Software Foundation, either version 3 of the License, or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# (at your option) any later version.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# This program is distributed in the hope that it will be useful,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# but WITHOUT ANY WARRANTY; without even the implied warranty of&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&nbsp; See the&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# GNU General Public License for more details.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# You should have received a copy of the GNU General Public License&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +# along with this program.&nbsp; If not, see &lt;http://www.gnu.org/licenses/&gt;.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt; +###############################################################################<br>&gt; +<br>&gt; +<br>&gt; +###############################################################################<br>&gt; +# Definitions<br>&gt; +###############################################################################<br>&gt; +<br>&gt; +include Config<br>&gt; +<br>&gt; +VER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 1.15.1<br>&gt; +<br>&gt; +THISAPP&nbsp;&nbsp;&nbsp; = ncdu-$(VER)<br>&gt; +DL_FILE&nbsp;&nbsp;&nbsp; = $(THISAPP).tar.gz<br>&gt; +DL_FROM&nbsp;&nbsp;&nbsp; = $(URL_IPFIRE)<br>&gt; +DIR_APP&nbsp;&nbsp;&nbsp; = $(DIR_SRC)/$(THISAPP)<br>&gt; +TARGET&nbsp;&nbsp;&nbsp;&nbsp; = $(DIR_INFO)/$(THISAPP)<br>&gt; +PROG	&nbsp;&nbsp;&nbsp; = ncdu<br>&gt; +PAK_VER&nbsp;&nbsp;&nbsp; = 1<br>&gt; +<br>&gt; +DEPS	&nbsp;&nbsp;&nbsp; = <br>&gt; +<br>&gt; +###############################################################################<br>&gt; +# Top-level Rules<br>&gt; +###############################################################################<br>&gt; +<br>&gt; +objects = $(DL_FILE)<br>&gt; +<br>&gt; +$(DL_FILE) = $(DL_FROM)/$(DL_FILE)<br>&gt; +<br>&gt; +$(DL_FILE)_MD5 = af25aa8462a6f29c8a0c4d3d83d186e7<br>&gt; +<br>&gt; +install : $(TARGET)<br>&gt; +<br>&gt; +check : $(patsubst %,$(DIR_CHK)/%,$(objects))<br>&gt; +<br>&gt; +download :$(patsubst %,$(DIR_DL)/%,$(objects))<br>&gt; +<br>&gt; +md5 : $(subst %,%_MD5,$(objects))<br>&gt; +<br>&gt; +dist: <br>&gt; +	@$(PAK)<br>&gt; +<br>&gt; +###############################################################################<br>&gt; +# Downloading, checking, md5sum<br>&gt; +###############################################################################<br>&gt; +<br>&gt; +$(patsubst %,$(DIR_CHK)/%,$(objects)) :<br>&gt; +	@$(CHECK)<br>&gt; +<br>&gt; +$(patsubst %,$(DIR_DL)/%,$(objects)) :<br>&gt; +	@$(LOAD)<br>&gt; +<br>&gt; +$(subst %,%_MD5,$(objects)) :<br>&gt; +	@$(MD5)<br>&gt; +<br>&gt; +###############################################################################<br>&gt; +# Installation Details<br>&gt; +###############################################################################<br>&gt; +<br>&gt; +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))<br>&gt; +	@$(PREBUILD)<br>&gt; +	@rm -rf $(DIR_APP) &amp;&amp; cd $(DIR_SRC) &amp;&amp; tar xvf $(DIR_DL)/$(DL_FILE)<br>&gt; +	cd $(DIR_APP) &amp;&amp; ./configure --prefix=/usr<br>&gt; +	cd $(DIR_APP) &amp;&amp; make $(MAKETUNING) $(EXTRA_MAKE)<br>&gt; +	cd $(DIR_APP) &amp;&amp; make install<br>&gt; +	@rm -rf $(DIR_APP)<br>&gt; +	@$(POSTBUILD)<br>&gt; -- <br>&gt; 2.12.2<br>&gt; <br><br></body></html>
  
Michael Tremer Aug. 24, 2020, 5:11 p.m. UTC | #3
Hello,

cool. That is good to know. You should include those things in your commit message.

I wrote a blog post a couple of years ago now which outlines a little bit what is helpful to others:

  https://blog.ipfire.org/post/how-to-write-a-good-commit-message

There is more detailed information here:

  https://wiki.ipfire.org/devel/git/commit-messages

And this is well a reminder for everybody else :)

Best,
-Michael

> On 24 Aug 2020, at 16:21, smooky <smooky@v16.de> wrote:
> 
> Hi Michael.
> 
> I use this tool to quickly and easily find the largest memory consumers on my hard drives. I have e.g. Samba run as a file server where there are always many files quickly. With this tool it is possible for me to find the biggest memory hogs very quickly. It can search directly in the whole system or in individual folders. It is also very pleasant that the tool shows everything in a tree hierarchy, which speeds up the search enormously.
> 
> best regards
> 
> Marcel
> 
> 
> -------- Ursprüngliche Nachricht --------
> Von: Michael Tremer <michael.tremer@ipfire.org>
> Datum: 24.08.20 16:38 (GMT+01:00)
> An: smooky@v16.de
> Cc: "IPFire: Development-List" <development@lists.ipfire.org>, Marcel Follert <smooky@16.de>
> Betreff: Re: [PATCH] ncdu-1.15.1
> 
> Hello Marcel,
> 
> Thank you for your patch.
> 
> Before we talk about the actual patch I would like to know the use case for this package in IPFire.
> 
> Best,
> -Michael
> 
> > On 21 Aug 2020, at 20:37, smooky@v16.de wrote:
> > 
> >>>> 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) <smooky@16.de>
> > ---
> > 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  <info@ipfire.org>                     #
> > +#                                                                             #
> > +# 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 <http://www.gnu.org/licenses/>.       #
> > +#                                                                             #
> > +###############################################################################
> > +
> > +
> > +###############################################################################
> > +# 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)
> > -- 
> > 2.12.2
> > 
>
  
Michael Tremer Aug. 24, 2020, 5:33 p.m. UTC | #4
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>

> On 21 Aug 2020, at 20:37, smooky@v16.de wrote:
> 
>>>> 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) <smooky@16.de>
> ---
> 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  <info@ipfire.org>                     #
> +#                                                                             #
> +# 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 <http://www.gnu.org/licenses/>.       #
> +#                                                                             #
> +###############################################################################
> +
> +
> +###############################################################################
> +# 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)
> -- 
> 2.12.2
>
  

Patch

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  <info@ipfire.org>                     #
+#                                                                             #
+# 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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+
+###############################################################################
+# 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)