From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.thorsis.com ([92.198.35.195]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jCO00-0008WR-4G for ptxdist@pengutronix.de; Thu, 12 Mar 2020 14:35:44 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id EAEB14DB for ; Thu, 12 Mar 2020 14:35:42 +0100 (CET) Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XjgZFqCF24lr for ; Thu, 12 Mar 2020 14:35:42 +0100 (CET) Received: from adahl by ada.ifak-system.com with local (Exim 4.89) (envelope-from ) id 1jCNzv-0004WA-H6 for ptxdist@pengutronix.de; Thu, 12 Mar 2020 14:35:39 +0100 From: Alexander Dahl Date: Thu, 12 Mar 2020 14:35:39 +0100 Message-Id: <20200312133539.17326-1-ada@thorsis.com> Subject: [ptxdist] [PATCH] ncdu: Add new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Signed-off-by: Alexander Dahl --- 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 +# +# 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 ") + @$(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