mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ncdu: Add new package
@ 2020-03-12 13:35 Alexander Dahl
  2020-03-12 13:50 ` Alexander Dahl
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Dahl @ 2020-03-12 13:35 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---

Notes:
    I'm not sure about that ncurses solution, maybe just omit those two
    lines and let the autotools stuff of ncdu do the magic?

 rules/ncdu.in   | 10 +++++++++
 rules/ncdu.make | 59 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
 create mode 100644 rules/ncdu.in
 create mode 100644 rules/ncdu.make

diff --git a/rules/ncdu.in b/rules/ncdu.in
new file mode 100644
index 000000000..04e9719e7
--- /dev/null
+++ b/rules/ncdu.in
@@ -0,0 +1,10 @@
+## SECTION=disk_and_file
+
+config NCDU
+	tristate
+	prompt "ncdu"
+	select NCURSES
+	help
+	  Disk usage analyzer with ncurses interface.
+
+# vim: ft=kconfig noet tw=72 ts=8 sw=8
diff --git a/rules/ncdu.make b/rules/ncdu.make
new file mode 100644
index 000000000..a6317b3d4
--- /dev/null
+++ b/rules/ncdu.make
@@ -0,0 +1,59 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016,2020 by Alexander Dahl <ada@thorsis.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_NCDU) += ncdu
+
+#
+# Paths and names
+#
+NCDU_VERSION	:= 1.14.2
+NCDU_MD5	:= 6c7e88b0c205f124f397de701402ad3a
+NCDU		:= ncdu-$(NCDU_VERSION)
+NCDU_SUFFIX	:= tar.gz
+NCDU_URL	:= https://dev.yorhel.nl/download/$(NCDU).$(NCDU_SUFFIX)
+NCDU_SOURCE	:= $(SRCDIR)/$(NCDU).$(NCDU_SUFFIX)
+NCDU_DIR	:= $(BUILDDIR)/$(NCDU)
+NCDU_LICENSE	:= MIT
+NCDU_LICENSE_FILES := file://COPYING;md5=1a8f907df32388f0d4b8cc88479f9a6a
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+NCDU_CONF_TOOL	:= autoconf
+NCDU_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	$(GLOBAL_LARGE_FILE_OPTION) \
+	--$(call ptx/wow, PTXCONF_NCURSES_WIDE_CHAR)-ncurses \
+	--$(call ptx/wwo, PTXCONF_NCURSES_WIDE_CHAR)-ncursesw
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/ncdu.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, ncdu)
+	@$(call install_fixup, ncdu,PRIORITY,optional)
+	@$(call install_fixup, ncdu,SECTION,base)
+	@$(call install_fixup, ncdu,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
+	@$(call install_fixup, ncdu,DESCRIPTION,missing)
+
+	@$(call install_copy, ncdu, 0, 0, 0755, -, /usr/bin/ncdu)
+
+	@$(call install_finish, ncdu)
+
+	@$(call touch)
+
+# vim: ft=make noet tw=72 ts=8 sw=8
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] [PATCH] ncdu: Add new package
  2020-03-12 13:35 [ptxdist] [PATCH] ncdu: Add new package Alexander Dahl
@ 2020-03-12 13:50 ` Alexander Dahl
  2020-03-12 14:08   ` [ptxdist] [PATCH v3] " Alexander Dahl
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Dahl @ 2020-03-12 13:50 UTC (permalink / raw)
  To: ptxdist

Hei hei,

I just found that old thread from 2016 again, where I first tried this:

https://www.mail-archive.com/ptxdist@pengutronix.de/msg10864.html

Well, at least we have ptx/wow meanwhile …

Will send v2 then.

Alex

Am Donnerstag, 12. März 2020, 14:35:39 CET schrieb Alexander Dahl:
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> ---
> 
> Notes:
>     I'm not sure about that ncurses solution, maybe just omit those two
>     lines and let the autotools stuff of ncdu do the magic?
> 
>  rules/ncdu.in   | 10 +++++++++
>  rules/ncdu.make | 59 +++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 69 insertions(+)
>  create mode 100644 rules/ncdu.in
>  create mode 100644 rules/ncdu.make
> 
> diff --git a/rules/ncdu.in b/rules/ncdu.in
> new file mode 100644
> index 000000000..04e9719e7
> --- /dev/null
> +++ b/rules/ncdu.in
> @@ -0,0 +1,10 @@
> +## SECTION=disk_and_file
> +
> +config NCDU
> +	tristate
> +	prompt "ncdu"
> +	select NCURSES
> +	help
> +	  Disk usage analyzer with ncurses interface.
> +
> +# vim: ft=kconfig noet tw=72 ts=8 sw=8
> diff --git a/rules/ncdu.make b/rules/ncdu.make
> new file mode 100644
> index 000000000..a6317b3d4
> --- /dev/null
> +++ b/rules/ncdu.make
> @@ -0,0 +1,59 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016,2020 by Alexander Dahl <ada@thorsis.com>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_NCDU) += ncdu
> +
> +#
> +# Paths and names
> +#
> +NCDU_VERSION	:= 1.14.2
> +NCDU_MD5	:= 6c7e88b0c205f124f397de701402ad3a
> +NCDU		:= ncdu-$(NCDU_VERSION)
> +NCDU_SUFFIX	:= tar.gz
> +NCDU_URL	:= https://dev.yorhel.nl/download/$(NCDU).$(NCDU_SUFFIX)
> +NCDU_SOURCE	:= $(SRCDIR)/$(NCDU).$(NCDU_SUFFIX)
> +NCDU_DIR	:= $(BUILDDIR)/$(NCDU)
> +NCDU_LICENSE	:= MIT
> +NCDU_LICENSE_FILES := file://COPYING;md5=1a8f907df32388f0d4b8cc88479f9a6a
> +
> +#
> ---------------------------------------------------------------------------
> - +# Prepare
> +#
> ---------------------------------------------------------------------------
> - +
> +NCDU_CONF_TOOL	:= autoconf
> +NCDU_CONF_OPT	:= \
> +	$(CROSS_AUTOCONF_USR) \
> +	$(GLOBAL_LARGE_FILE_OPTION) \
> +	--$(call ptx/wow, PTXCONF_NCURSES_WIDE_CHAR)-ncurses \
> +	--$(call ptx/wwo, PTXCONF_NCURSES_WIDE_CHAR)-ncursesw
> +
> +#
> ---------------------------------------------------------------------------
> - +# Target-Install
> +#
> ---------------------------------------------------------------------------
> - +
> +$(STATEDIR)/ncdu.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, ncdu)
> +	@$(call install_fixup, ncdu,PRIORITY,optional)
> +	@$(call install_fixup, ncdu,SECTION,base)
> +	@$(call install_fixup, ncdu,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
> +	@$(call install_fixup, ncdu,DESCRIPTION,missing)
> +
> +	@$(call install_copy, ncdu, 0, 0, 0755, -, /usr/bin/ncdu)
> +
> +	@$(call install_finish, ncdu)
> +
> +	@$(call touch)
> +
> +# vim: ft=make noet tw=72 ts=8 sw=8



_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ptxdist] [PATCH v3] ncdu: Add new package
  2020-03-12 13:50 ` Alexander Dahl
@ 2020-03-12 14:08   ` Alexander Dahl
  2020-03-13 10:38     ` Roland Hieber
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Dahl @ 2020-03-12 14:08 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---

Notes:
    Changes:
    
    + since (implicit) v1 from 2016:
      - Rewrote from scratch, forgot about that old patch …
      - Upgrade to recent 1.14.2
      - Add license file hash
      - Semi automatic ./configure option handling with the new ptx/wow
    
    + since (implicit) v2 from 2020:
      - Add hidden config option NCDU_WIDE_CHAR and let that depend on
        NCURSES_WIDE_CHAR like suggested by Michael Olbrich back in 2016

 rules/ncdu.in   | 14 ++++++++++++
 rules/ncdu.make | 59 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)
 create mode 100644 rules/ncdu.in
 create mode 100644 rules/ncdu.make

diff --git a/rules/ncdu.in b/rules/ncdu.in
new file mode 100644
index 000000000..362fc733f
--- /dev/null
+++ b/rules/ncdu.in
@@ -0,0 +1,14 @@
+## SECTION=disk_and_file
+
+config NCDU
+	tristate
+	prompt "ncdu"
+	select NCURSES
+	help
+	  Disk usage analyzer with ncurses interface.
+
+config NCDU_WIDE_CHAR
+	bool
+	default NCURSES_WIDE_CHAR
+
+# vim: ft=kconfig noet tw=72 ts=8 sw=8
diff --git a/rules/ncdu.make b/rules/ncdu.make
new file mode 100644
index 000000000..ee539ad09
--- /dev/null
+++ b/rules/ncdu.make
@@ -0,0 +1,59 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016,2020 by Alexander Dahl <ada@thorsis.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_NCDU) += ncdu
+
+#
+# Paths and names
+#
+NCDU_VERSION	:= 1.14.2
+NCDU_MD5	:= 6c7e88b0c205f124f397de701402ad3a
+NCDU		:= ncdu-$(NCDU_VERSION)
+NCDU_SUFFIX	:= tar.gz
+NCDU_URL	:= https://dev.yorhel.nl/download/$(NCDU).$(NCDU_SUFFIX)
+NCDU_SOURCE	:= $(SRCDIR)/$(NCDU).$(NCDU_SUFFIX)
+NCDU_DIR	:= $(BUILDDIR)/$(NCDU)
+NCDU_LICENSE	:= MIT
+NCDU_LICENSE_FILES := file://COPYING;md5=1a8f907df32388f0d4b8cc88479f9a6a
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+NCDU_CONF_TOOL	:= autoconf
+NCDU_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	$(GLOBAL_LARGE_FILE_OPTION) \
+	--$(call ptx/wow, PTXCONF_NCDU_WIDE_CHAR)-ncurses \
+	--$(call ptx/wwo, PTXCONF_NCDU_WIDE_CHAR)-ncursesw
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/ncdu.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, ncdu)
+	@$(call install_fixup, ncdu,PRIORITY,optional)
+	@$(call install_fixup, ncdu,SECTION,base)
+	@$(call install_fixup, ncdu,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
+	@$(call install_fixup, ncdu,DESCRIPTION,missing)
+
+	@$(call install_copy, ncdu, 0, 0, 0755, -, /usr/bin/ncdu)
+
+	@$(call install_finish, ncdu)
+
+	@$(call touch)
+
+# vim: ft=make noet tw=72 ts=8 sw=8
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] [PATCH v3] ncdu: Add new package
  2020-03-12 14:08   ` [ptxdist] [PATCH v3] " Alexander Dahl
@ 2020-03-13 10:38     ` Roland Hieber
  2020-03-13 12:05       ` [ptxdist] [PATCH v4] " Alexander Dahl
  0 siblings, 1 reply; 6+ messages in thread
From: Roland Hieber @ 2020-03-13 10:38 UTC (permalink / raw)
  To: ptxdist

On Thu, Mar 12, 2020 at 03:08:52PM +0100, Alexander Dahl wrote:
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> ---
> 
> Notes:
>     Changes:
>     
>     + since (implicit) v1 from 2016:
>       - Rewrote from scratch, forgot about that old patch …
>       - Upgrade to recent 1.14.2
>       - Add license file hash
>       - Semi automatic ./configure option handling with the new ptx/wow
>     
>     + since (implicit) v2 from 2020:
>       - Add hidden config option NCDU_WIDE_CHAR and let that depend on
>         NCURSES_WIDE_CHAR like suggested by Michael Olbrich back in 2016
> 
>  rules/ncdu.in   | 14 ++++++++++++
>  rules/ncdu.make | 59 +++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 73 insertions(+)
>  create mode 100644 rules/ncdu.in
>  create mode 100644 rules/ncdu.make
> 
> diff --git a/rules/ncdu.in b/rules/ncdu.in
> new file mode 100644
> index 000000000..362fc733f
> --- /dev/null
> +++ b/rules/ncdu.in
> @@ -0,0 +1,14 @@
> +## SECTION=disk_and_file
> +
> +config NCDU
> +	tristate
> +	prompt "ncdu"
> +	select NCURSES
> +	help
> +	  Disk usage analyzer with ncurses interface.
> +
> +config NCDU_WIDE_CHAR
> +	bool
> +	default NCURSES_WIDE_CHAR
> +
> +# vim: ft=kconfig noet tw=72 ts=8 sw=8
> diff --git a/rules/ncdu.make b/rules/ncdu.make
> new file mode 100644
> index 000000000..ee539ad09
> --- /dev/null
> +++ b/rules/ncdu.make
> @@ -0,0 +1,59 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016,2020 by Alexander Dahl <ada@thorsis.com>
> +#
> +# See CREDITS for details about who has contributed to this project.

This line keeps sneaking back in... :D 

> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_NCDU) += ncdu
> +
> +#
> +# Paths and names
> +#
> +NCDU_VERSION	:= 1.14.2
> +NCDU_MD5	:= 6c7e88b0c205f124f397de701402ad3a
> +NCDU		:= ncdu-$(NCDU_VERSION)
> +NCDU_SUFFIX	:= tar.gz
> +NCDU_URL	:= https://dev.yorhel.nl/download/$(NCDU).$(NCDU_SUFFIX)
> +NCDU_SOURCE	:= $(SRCDIR)/$(NCDU).$(NCDU_SUFFIX)
> +NCDU_DIR	:= $(BUILDDIR)/$(NCDU)
> +NCDU_LICENSE	:= MIT
> +NCDU_LICENSE_FILES := file://COPYING;md5=1a8f907df32388f0d4b8cc88479f9a6a
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +NCDU_CONF_TOOL	:= autoconf
> +NCDU_CONF_OPT	:= \
> +	$(CROSS_AUTOCONF_USR) \
> +	$(GLOBAL_LARGE_FILE_OPTION) \
> +	--$(call ptx/wow, PTXCONF_NCDU_WIDE_CHAR)-ncurses \
> +	--$(call ptx/wwo, PTXCONF_NCDU_WIDE_CHAR)-ncursesw
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/ncdu.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, ncdu)
> +	@$(call install_fixup, ncdu,PRIORITY,optional)
> +	@$(call install_fixup, ncdu,SECTION,base)
> +	@$(call install_fixup, ncdu,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
> +	@$(call install_fixup, ncdu,DESCRIPTION,missing)
> +
> +	@$(call install_copy, ncdu, 0, 0, 0755, -, /usr/bin/ncdu)
> +
> +	@$(call install_finish, ncdu)
> +
> +	@$(call touch)
> +
> +# vim: ft=make noet tw=72 ts=8 sw=8
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ptxdist] [PATCH v4] ncdu: Add new package
  2020-03-13 10:38     ` Roland Hieber
@ 2020-03-13 12:05       ` Alexander Dahl
  2020-03-27  9:52         ` [ptxdist] [v4] " Michael Olbrich
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Dahl @ 2020-03-13 12:05 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---

Notes:
    + Changes since v3:
      - Removed CREDITS line from .make rule (Roland Hieber)
    
    + Changes since (implicit) v2 from 2020:
      - Add hidden config option NCDU_WIDE_CHAR and let that depend on
        NCURSES_WIDE_CHAR like suggested by Michael Olbrich back in 2016
    
    + Changes since (implicit) v1 from 2016:
      - Rewrote from scratch, forgot about that old patch …
      - Upgrade to recent 1.14.2
      - Add license file hash
      - Semi automatic ./configure option handling with the new ptx/wow

 rules/ncdu.in   | 14 ++++++++++++
 rules/ncdu.make | 57 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)
 create mode 100644 rules/ncdu.in
 create mode 100644 rules/ncdu.make

diff --git a/rules/ncdu.in b/rules/ncdu.in
new file mode 100644
index 000000000..362fc733f
--- /dev/null
+++ b/rules/ncdu.in
@@ -0,0 +1,14 @@
+## SECTION=disk_and_file
+
+config NCDU
+	tristate
+	prompt "ncdu"
+	select NCURSES
+	help
+	  Disk usage analyzer with ncurses interface.
+
+config NCDU_WIDE_CHAR
+	bool
+	default NCURSES_WIDE_CHAR
+
+# vim: ft=kconfig noet tw=72 ts=8 sw=8
diff --git a/rules/ncdu.make b/rules/ncdu.make
new file mode 100644
index 000000000..f4817b9de
--- /dev/null
+++ b/rules/ncdu.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016,2020 by Alexander Dahl <ada@thorsis.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_NCDU) += ncdu
+
+#
+# Paths and names
+#
+NCDU_VERSION	:= 1.14.2
+NCDU_MD5	:= 6c7e88b0c205f124f397de701402ad3a
+NCDU		:= ncdu-$(NCDU_VERSION)
+NCDU_SUFFIX	:= tar.gz
+NCDU_URL	:= https://dev.yorhel.nl/download/$(NCDU).$(NCDU_SUFFIX)
+NCDU_SOURCE	:= $(SRCDIR)/$(NCDU).$(NCDU_SUFFIX)
+NCDU_DIR	:= $(BUILDDIR)/$(NCDU)
+NCDU_LICENSE	:= MIT
+NCDU_LICENSE_FILES := file://COPYING;md5=1a8f907df32388f0d4b8cc88479f9a6a
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+NCDU_CONF_TOOL	:= autoconf
+NCDU_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	$(GLOBAL_LARGE_FILE_OPTION) \
+	--$(call ptx/wow, PTXCONF_NCDU_WIDE_CHAR)-ncurses \
+	--$(call ptx/wwo, PTXCONF_NCDU_WIDE_CHAR)-ncursesw
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/ncdu.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, ncdu)
+	@$(call install_fixup, ncdu,PRIORITY,optional)
+	@$(call install_fixup, ncdu,SECTION,base)
+	@$(call install_fixup, ncdu,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
+	@$(call install_fixup, ncdu,DESCRIPTION,missing)
+
+	@$(call install_copy, ncdu, 0, 0, 0755, -, /usr/bin/ncdu)
+
+	@$(call install_finish, ncdu)
+
+	@$(call touch)
+
+# vim: ft=make noet tw=72 ts=8 sw=8
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] [v4] ncdu: Add new package
  2020-03-13 12:05       ` [ptxdist] [PATCH v4] " Alexander Dahl
@ 2020-03-27  9:52         ` Michael Olbrich
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Olbrich @ 2020-03-27  9:52 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

Thanks, applied.

Michael

[sent from post-receive hook]

On Fri, 27 Mar 2020 10:52:18 +0100, Alexander Dahl <ada@thorsis.com> wrote:
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> ---
> 
> Notes:
>     + Changes since v3:
>       - Removed CREDITS line from .make rule (Roland Hieber)
>     
>     + Changes since (implicit) v2 from 2020:
>       - Add hidden config option NCDU_WIDE_CHAR and let that depend on
>         NCURSES_WIDE_CHAR like suggested by Michael Olbrich back in 2016
>     
>     + Changes since (implicit) v1 from 2016:
>       - Rewrote from scratch, forgot about that old patch …
>       - Upgrade to recent 1.14.2
>       - Add license file hash
>       - Semi automatic ./configure option handling with the new ptx/wow
> 
>  rules/ncdu.in   | 14 ++++++++++++
>  rules/ncdu.make | 57 +++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 71 insertions(+)
>  create mode 100644 rules/ncdu.in
>  create mode 100644 rules/ncdu.make
> 
> diff --git a/rules/ncdu.in b/rules/ncdu.in
> new file mode 100644
> index 000000000..362fc733f
> --- /dev/null
> +++ b/rules/ncdu.in
> @@ -0,0 +1,14 @@
> +## SECTION=disk_and_file
> +
> +config NCDU
> +	tristate
> +	prompt "ncdu"
> +	select NCURSES
> +	help
> +	  Disk usage analyzer with ncurses interface.
> +
> +config NCDU_WIDE_CHAR
> +	bool
> +	default NCURSES_WIDE_CHAR
> +
> +# vim: ft=kconfig noet tw=72 ts=8 sw=8
> diff --git a/rules/ncdu.make b/rules/ncdu.make
> new file mode 100644
> index 000000000..f4817b9de
> --- /dev/null
> +++ b/rules/ncdu.make
> @@ -0,0 +1,57 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016,2020 by Alexander Dahl <ada@thorsis.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_NCDU) += ncdu
> +
> +#
> +# Paths and names
> +#
> +NCDU_VERSION	:= 1.14.2
> +NCDU_MD5	:= 6c7e88b0c205f124f397de701402ad3a
> +NCDU		:= ncdu-$(NCDU_VERSION)
> +NCDU_SUFFIX	:= tar.gz
> +NCDU_URL	:= https://dev.yorhel.nl/download/$(NCDU).$(NCDU_SUFFIX)
> +NCDU_SOURCE	:= $(SRCDIR)/$(NCDU).$(NCDU_SUFFIX)
> +NCDU_DIR	:= $(BUILDDIR)/$(NCDU)
> +NCDU_LICENSE	:= MIT
> +NCDU_LICENSE_FILES := file://COPYING;md5=1a8f907df32388f0d4b8cc88479f9a6a
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +NCDU_CONF_TOOL	:= autoconf
> +NCDU_CONF_OPT	:= \
> +	$(CROSS_AUTOCONF_USR) \
> +	$(GLOBAL_LARGE_FILE_OPTION) \
> +	--$(call ptx/wow, PTXCONF_NCDU_WIDE_CHAR)-ncurses \
> +	--$(call ptx/wwo, PTXCONF_NCDU_WIDE_CHAR)-ncursesw
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/ncdu.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, ncdu)
> +	@$(call install_fixup, ncdu,PRIORITY,optional)
> +	@$(call install_fixup, ncdu,SECTION,base)
> +	@$(call install_fixup, ncdu,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
> +	@$(call install_fixup, ncdu,DESCRIPTION,missing)
> +
> +	@$(call install_copy, ncdu, 0, 0, 0755, -, /usr/bin/ncdu)
> +
> +	@$(call install_finish, ncdu)
> +
> +	@$(call touch)
> +
> +# vim: ft=make noet tw=72 ts=8 sw=8
> 

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-27  9:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-12 13:35 [ptxdist] [PATCH] ncdu: Add new package Alexander Dahl
2020-03-12 13:50 ` Alexander Dahl
2020-03-12 14:08   ` [ptxdist] [PATCH v3] " Alexander Dahl
2020-03-13 10:38     ` Roland Hieber
2020-03-13 12:05       ` [ptxdist] [PATCH v4] " Alexander Dahl
2020-03-27  9:52         ` [ptxdist] [v4] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox