From: Bart vdr. Meulen <bartvdrmeu...@gmail.com>

This add the dialog package to ptxdist

Signed-off-by: Bart vdr. Meulen <bartvdrmeu...@gmail.com>
Signed-off-by: Remy Bohmer <li...@bohmer.net>
---
 rules/dialog.in   |   13 +++++++++++
 rules/dialog.make |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+), 0 deletions(-)
 create mode 100644 rules/dialog.in
 create mode 100644 rules/dialog.make

diff --git a/rules/dialog.in b/rules/dialog.in
new file mode 100644
index 0000000..b1a3104
--- /dev/null
+++ b/rules/dialog.in
@@ -0,0 +1,13 @@
+## SECTION=shell_and_console
+
+config DIALOG
+       tristate
+       select NCURSES
+       prompt "dialog"
+       help
+         Dialog is a program that will let you to present a variety of
+         questions or display messages using dialog boxes from a shell script.
+         It is built from the dialog library, which consists of several widgets
+         as well as utility functions that are used by the widgets or the main
+         program.
+
diff --git a/rules/dialog.make b/rules/dialog.make
new file mode 100644
index 0000000..b3d45e2
--- /dev/null
+++ b/rules/dialog.make
@@ -0,0 +1,63 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2010 by Bart vdr. Meulen <bartvdrmeu...@gmail.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_DIALOG) += dialog
+
+#
+# Paths and names
+#
+DIALOG_VERSION := 1.1-20100119
+DIALOG         := dialog-$(DIALOG_VERSION)
+DIALOG_SUFFIX  := tgz
+DIALOG_URL     := ftp://invisible-island.net/dialog/$(DIALOG).$(DIALOG_SUFFIX)
+DIALOG_SOURCE  := $(SRCDIR)/$(DIALOG).$(DIALOG_SUFFIX)
+DIALOG_DIR     := $(BUILDDIR)/$(DIALOG)
+DIALOG_LICENSE := LGPLv2.1
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(DIALOG_SOURCE):
+       @$(call targetinfo)
+       @$(call get, DIALOG)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+DIALOG_CONF_TOOL       := autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/dialog.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init,  dialog)
+       @$(call install_fixup, dialog,PACKAGE,dialog)
+       @$(call install_fixup, dialog,PRIORITY,optional)
+       @$(call install_fixup, dialog,VERSION,$(DIALOG_VERSION))
+       @$(call install_fixup, dialog,SECTION,base)
+       @$(call install_fixup, dialog,AUTHOR,"Bart vdr. Meulen 
<bartvdrmeu...@gmail.com>")
+       @$(call install_fixup, dialog,DEPENDS,)
+       @$(call install_fixup, dialog,DESCRIPTION,missing)
+
+       @$(call install_copy, dialog, 0, 0, 0755, -, /usr/bin/dialog)
+
+       @$(call install_finish, dialog)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
1.7.0.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to