[Buildroot] [PATCH v2] package: Add support for clex filemanager (v 3.19)

Peter Huewe PeterHuewe at gmx.de
Thu May 13 23:22:56 UTC 2010


From: Peter Huewe <peterhuewe at gmx.de>

Clex is a free and open source ncurses filemanager.
(somewhat similar to a lightweight midnight commander)

"It displays directory contents including the file status
details and provides features like command history, filename
insertion, or name completion in order to help users to create
commands to be executed by the shell."

For more information visit http://www.clex.sk/about.html

This patch adds version 3.19 to the buildroot buildsystem.

Tested on and compiled with atmel ngw100_defconfig.

Signed-off-by: Peter Huewe <peterhuewe at gmx.de>
---
Updated clex.mk to autotools and created a new delkey patch :)


 package/Config.in                   |    1 +
 package/clex/Config.in              |    5 +++++
 package/clex/clex-3.19-delkey.patch |   11 +++++++++++
 package/clex/clex.mk                |   30 ++++++++++++++++++++++++++++++
 4 files changed, 47 insertions(+), 0 deletions(-)
 create mode 100644 package/clex/Config.in
 create mode 100644 package/clex/clex-3.19-delkey.patch
 create mode 100644 package/clex/clex.mk

diff --git a/package/Config.in b/package/Config.in
index d3c4316..1442107 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -448,6 +448,7 @@ source "package/logrotate/Config.in"
 source "package/screen/Config.in"
 source "package/sudo/Config.in"
 source "package/which/Config.in"
+source "package/clex/Config.in"
 endmenu
 
 menu "System tools"
diff --git a/package/clex/Config.in b/package/clex/Config.in
new file mode 100644
index 0000000..1c86f78
--- /dev/null
+++ b/package/clex/Config.in
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_CLEX
+	bool "clex filemanager"
+	help
+		Ncurses file manager with a full-screen user interface
+		http://www.clex.sk/
diff --git a/package/clex/clex-3.19-delkey.patch b/package/clex/clex-3.19-delkey.patch
new file mode 100644
index 0000000..ccda3d7
--- /dev/null
+++ b/package/clex/clex-3.19-delkey.patch
@@ -0,0 +1,11 @@
+--- clex-3.19/src/inout.c.orig	2010-05-14 01:06:44.000000000 +0200
++++ clex-3.19/src/inout.c	2010-05-14 01:10:46.000000000 +0200
+@@ -301,6 +301,8 @@ kbd_getraw(void)
+ 			continue;
+ 		}
+ #endif
++		if (key == 0177) /* my term uses this key for backspace DEL in ascii */
++			key=CH_CTRL('H');
+ 		return key;
+ 	}
+ }
diff --git a/package/clex/clex.mk b/package/clex/clex.mk
new file mode 100644
index 0000000..1112840
--- /dev/null
+++ b/package/clex/clex.mk
@@ -0,0 +1,30 @@
+#############################################################
+#
+# clex filemanager
+#
+#
+# CLEX (pronounced KLEKS) is a file manager with a full-screen
+# user interface. It displays directory contents including the
+# file status details and provides features like command history,
+# filename insertion, or name completion in order to help users
+# to create commands to be executed by the shell.
+#
+# CLEX is a versatile tool for system administrators and all
+# users that utilize the enormous power of the command line.
+# Its unique one-panel user interface enhances productivity
+# and lessens the probability of mistake. There are no
+# built-in commands, CLEX is an add-on to your favorite shell.
+#
+# CLEX is free software released under the terms of GNU
+# General Public License. It is written in C language which
+# makes it easily portable to various Linux and UNIX systems.
+#
+#  Buildroot Script by Peter Huewe <peterhuewe at gmx.de>
+#
+#############################################################
+CLEX_VERSION:=3.19
+CLEX_SOURCE:=clex-$(CLEX_VERSION).tar.gz
+CLEX_SITE:=http://www.clex.sk/download/
+CLEX_INSTALL_TARGET = YES
+CLEX_CONF_OPT = $(DISABLE_NLS) $(DISABLE_LARGEFILE)
+$(eval $(call AUTOTARGETS,package,clex))
--
1.6.4.4





More information about the buildroot mailing list