Skip to contentSkip to conversation

package: Add support for clex filemanager (v 3.19)

PATCH Superseded Peter Huewe 2 participants 9 messages May 12, 2010 – Jun 25, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package: Add support for clex filemanager (v 3.19)

From: Peter Huewe <[email protected]>

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.

---
 package/Config.in                   |    1 +
 package/clex/Config.in              |    6 ++
 package/clex/clex-3.19-delkey.patch |   11 ++++
 package/clex/clex.mk                |  103 +++++++++++++++++++++++++++++++++++
 4 files changed, 121 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
package/Config.in +1 -0
index d3c4316..1442107 100644
@@ -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"
package/clex/Config.in new file +6 -0
new file mode 100644
index 0000000..21a1181
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_CLEX
+	bool "clex filemanager"
+	default n
+	help
+		Ncurses file manager with a full-screen user interface
+		http://www.clex.sk/
package/clex/clex-3.19-delkey.patch new file +11 -0
new file mode 100644
index 0000000..02e656e
@@ -0,0 +1,11 @@
+--- clex-3.18/src/inout.c.orig	2008-11-10 17:59:31.176202820 +0100
++++ clex-3.18/src/inout.c	2008-11-10 18:01:50.191201069 +0100
+@@ -306,6 +306,8 @@ kbd_getraw(void)
+ 		if (key == KEY_SUSPEND)
+ 			return CH_CTRL('Z');
+ #endif
++		if (key == 0177) /* my term uses this key for backspace DEL in ascii*/
++			return CH_CTRL('H');
+ 		if (key == KEY_BACKSPACE)
+ 			return CH_CTRL('H');
+ 		if (key == KEY_ENTER)
package/clex/clex.mk new file +103 -0

103 lines not on this page · raw message

Signature · 1 line
1.5.6.5
#1 lore raw

PATCH 1/1 package: Add support for clex filemanager (v 3.19)

Hello Peter,

Thanks for your contribution!

Quoted 1 line · On Thu, 13 May 2010 01:15:00 +0200 Peter Huewe <[email protected]> wrote:
 package/clex/clex.mk                |  103 +++++++++++++++++++++++++++++++++++

clex seems to use the autotools as their build system, therefore your .mk file should use the Buildroot autotools infrastructure. See
http://buildroot.uclibc.org/downloads/buildroot.html#autotools-tutorial
for details.

package/clex/Config.in line 3

Quoted 5 lines

+++ b/package/clex/Config.in

package/clex/Config.in new file +3 -0
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_CLEX
+	bool "clex filemanager"
+	default n

You can remove this "default n", this is the default value.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 package: Add support for clex filemanager (v 3.19)

From: Peter Huewe <[email protected]>

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.

---
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
package/Config.in +1 -0
index d3c4316..1442107 100644
@@ -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"
package/clex/Config.in new file +5 -0
new file mode 100644
index 0000000..1c86f78
@@ -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/
package/clex/clex-3.19-delkey.patch new file +11 -0
new file mode 100644
index 0000000..ccda3d7
@@ -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;
+ 	}
+ }
package/clex/clex.mk new file +30 -0
new file mode 100644
index 0000000..1112840
@@ -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 <[email protected]>
+#
+#############################################################
+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

#3 lore raw

PATCH v2 1/1 package: Add support for clex filemanager (v 3.19)

Hello!

package/clex/Config.in line 2

Quoted 5 lines · On Fri, 14 May 2010 01:22:56 +0200 Peter Huewe <[email protected]> wrote:
package/clex/Config.in new file +2 -0
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_CLEX
+	bool "clex filemanager"

As clex appears to be based on LIBNCURSES, you should add here:

select BR2_PACKAGE_NCURSES

and maybe one of BR2_PACKAGE_NCURSES_TARGET_PANEL, BR2_PACKAGE_NCURSES_TARGET_FORM, BR2_PACKAGE_NCURSES_TARGET_MENU if these are used by your package.

package/clex/Config.in

Quoted 5 lines
package/clex/Config.in new file +5 -0
+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)

No need to add these, they are already part of the default options passed to the configure script by Buildroot.

However, you need to add:

CLEX_DEPENDENCIES = ncurses

to make sure that ncurses gets built *before* clex.

Thanks!

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#4 lore raw

PATCH v3 1/1 package: Add support for clex filemanager (v 3.19)

From: Peter Huewe <[email protected]>

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.

---
Removed unnecessary Config options :)

 package/Config.in                   |    1 +
 package/clex/Config.in              |    6 ++++++
 package/clex/clex-3.19-delkey.patch |   11 +++++++++++
 package/clex/clex.mk                |   28 ++++++++++++++++++++++++++++
 4 files changed, 46 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
package/Config.in +1 -0
index 3749f5a..28715bc 100644
@@ -449,6 +449,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"
package/clex/Config.in new file +6 -0
new file mode 100644
index 0000000..6d94746
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_CLEX
+	bool "clex filemanager"
+	select BR2_PACKAGE_NCURSES
+	help
+		Ncurses file manager with a full-screen user interface
+		http://www.clex.sk/
package/clex/clex-3.19-delkey.patch new file +11 -0
new file mode 100644
index 0000000..ccda3d7
@@ -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;
+ 	}
+ }
package/clex/clex.mk new file +28 -0
new file mode 100644
index 0000000..a03d15c
@@ -0,0 +1,28 @@
+#############################################################
+#
+# 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 <[email protected]>
+#
+#############################################################
+CLEX_VERSION:=3.19
+CLEX_SITE:=http://www.clex.sk/download/
+CLEX_DEPENDENCIES = ncurses
+$(eval $(call AUTOTARGETS,package,clex))
Signature · 1 line
1.6.4.4
#5 lore raw

PATCH v3 1/1 package: Add support for clex filemanager (v 3.19)

Am Freitag 14 Mai 2010 14:21:51 schrieb Peter H?we:

Quoted 5 lines

From: Peter Huewe <[email protected]>

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

Any updates on the merge of this one?
Or any special remarks about my patch?

Thanks,
Peter

#6 lore raw

PATCH v3 1/1 package: Add support for clex filemanager (v 3.19)

In reply to Peter Hüwe

Am Freitag 14 Mai 2010 14:21:51 schrieb Peter H?we:

Quoted 10 lines

From: Peter Huewe <[email protected]>

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."

Quoted 7 lines

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.

Any updates on the merge of this one?

Thanks,
Peter

#7 lore raw

PATCH v4 1/1 package: Add support for clex filemanager (v 3.19)

From: Peter Huewe <[email protected]>

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.

---
Indented Help text correctly (1tab 2 spaces)

 package/Config.in                   |    1 +
 package/clex/Config.in              |    6 ++++++
 package/clex/clex-3.19-delkey.patch |   11 +++++++++++
 package/clex/clex.mk                |   28 ++++++++++++++++++++++++++++
 4 files changed, 46 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
package/Config.in +1 -0
index 5ce01a0..be969b4 100644
@@ -460,6 +460,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"
package/clex/Config.in new file +6 -0
new file mode 100644
index 0000000..612c75d
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_CLEX
+	bool "clex filemanager"
+	select BR2_PACKAGE_NCURSES
+	help
+	  Ncurses file manager with a full-screen user interface
+	  http://www.clex.sk/
package/clex/clex-3.19-delkey.patch new file +11 -0
new file mode 100644
index 0000000..ccda3d7
@@ -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;
+ 	}
+ }
package/clex/clex.mk new file +28 -0
new file mode 100644
index 0000000..a03d15c
@@ -0,0 +1,28 @@
+#############################################################
+#
+# 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 <[email protected]>
+#
+#############################################################
+CLEX_VERSION:=3.19
+CLEX_SITE:=http://www.clex.sk/download/
+CLEX_DEPENDENCIES = ncurses
+$(eval $(call AUTOTARGETS,package,clex))
Signature · 1 line
1.7.1
#8 lore raw

PATCH v4 1/1 package: Add support for clex filemanager (v 3.19)

Quoted 10 lines · On Thu, 24 Jun 2010 17:33:07 +0200 Peter H?we <[email protected]> wrote:

From: Peter Huewe <[email protected]>

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."

Quoted 7 lines

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.

Not tested, but looks good, so:

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com