mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <post@lespocky.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] ncdu: new package
Date: Wed,  3 Aug 2016 14:29:51 +0200	[thread overview]
Message-ID: <1470227391-6242-1-git-send-email-post@lespocky.de> (raw)

Signed-off-by: Alexander Dahl <post@lespocky.de>
---
 rules/ncdu.in   | 10 ++++++++++
 rules/ncdu.make | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 70 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 0000000..fa0db89
--- /dev/null
+++ b/rules/ncdu.in
@@ -0,0 +1,10 @@
+## SECTION=shell_and_console
+
+config NCDU
+	tristate
+	select NCURSES
+	prompt "ncdu"
+	help
+	  Disk usage analyzer with ncurses interface.
+
+# vim: ft=kconfig noet tw=72
diff --git a/rules/ncdu.make b/rules/ncdu.make
new file mode 100644
index 0000000..c710117
--- /dev/null
+++ b/rules/ncdu.make
@@ -0,0 +1,60 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Alexander Dahl <post@lespocky.de>
+#
+# 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.11
+NCDU_MD5	:= 9e44240a5356b029f05f0e70a63c4d12
+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
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+NCDU_CONF_TOOL	:= autoconf
+NCDU_CONF_OPT	:= $(CROSS_AUTOCONF_USR)
+
+ifdef PTXCONF_NCURSES_WIDE_CHAR
+NCDU_CONF_OPT	+= --with-ncursesw
+else
+NCDU_CONF_OPT	+= --with-ncurses
+endif
+
+# ----------------------------------------------------------------------------
+# 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 <post@lespocky.de>")
+	@$(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
-- 
2.1.4


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2016-08-03 12:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-03 12:29 Alexander Dahl [this message]
2016-08-04  6:49 ` Michael Olbrich
2016-08-04  7:57   ` Alexander Dahl
2016-08-05 10:15     ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1470227391-6242-1-git-send-email-post@lespocky.de \
    --to=post@lespocky.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox