From 7257be007e096ab1f7f6e3bf6c738b9b67b849f2 Mon Sep 17 00:00:00 2001 From: gobo72 Date: Thu, 3 Mar 2011 06:08:54 +0000 Subject: [PATCH] =?utf8?q?R=C3=A9gl=C3=A9=20probl=C3=A8me=20avec=20Lynx?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- functions-ac | 2 +- stage3/install-1 | 2 +- stage3/pkg/lynx | 18 +++++++++++++++--- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/functions-ac b/functions-ac index 89c7313..f8669af 100644 --- a/functions-ac +++ b/functions-ac @@ -123,7 +123,7 @@ ipkg_script() ipkg_decompress_package if [ -f ${PACKAGE_DEF} ]; then - echo "Load custom package functions and definitions" + echo "Load custom package functions and definitions from ${PACKAGE_DEF}" source ${PACKAGE_DEF} fi diff --git a/stage3/install-1 b/stage3/install-1 index c5d0f7c..63f28c5 100755 --- a/stage3/install-1 +++ b/stage3/install-1 @@ -27,7 +27,7 @@ ipkg ${LIBUSB_COMPAT} ipkg ${USBUTILS} ipkg ${FCRON} ipkg ${OPENSSH} -ipkg ${LYNX} +ipkg -s lynx ${LYNX} ipkg ${EXPAT} ipkg ${APR} "--with-installbuilddir=/usr/lib/apr-1/build" ipkg ${APR_UTIL} "--with-apr=/usr/bin/apr-1-config" diff --git a/stage3/pkg/lynx b/stage3/pkg/lynx index 3b53d58..7e193fc 100644 --- a/stage3/pkg/lynx +++ b/stage3/pkg/lynx @@ -1,12 +1,13 @@ #!/bin/bash -LYNX_CFG_PATH=/etc/lynx.cfg +LYNX_CFG_PATH=/etc/lynx/lynx.cfg hvconfig_pre() { # --sysconfdir=/etc/lynx \ CONFIGURE_OPTS="\ - ${CONFIGURE_OPTS} \ + --prefix=/usr \ + --sysconfdir=/etc/lynx \ --datadir=/usr/share/doc/lynx \ --with-zlib \ --with-bzlib \ @@ -24,8 +25,19 @@ hvbuild_post() # The built-in editor in Lynx Breaks Multibyte Characters. Configure Lynx # to use an external editor (bound to the “Ctrl+X e” key combination by # default): - sed -i 's/#\(DEFAULT_EDITOR\):/\1:vi/' ${LYNX_CFG_PATH} + sed -i 's/#\(DEFAULT_EDITOR\):/\1:nano/' ${LYNX_CFG_PATH} # By default, Lynx doesn't save cookies between sessions. Change this: sed -i 's/#\(PERSISTENT_COOKIES\):FALSE/\1:TRUE/' ${LYNX_CFG_PATH} + + # Set proper homepage + sed -i 's!^\(STARTFILE\):.*!\1:http://www.google.com/!' ${LYNX_CFG_PATH} + sed -i 's!^\(DEFAULT_INDEX_FILE\):.*!\1:http://www.google.com/!' \ + ${LYNX_CFG_PATH} + + # Set download directory + sed -i 's!#\(SAVE_SPACE\):.*!\1:~/Downloads/!' ${LYNX_CFG_PATH} + + + } -- 2.20.1