Réglé problème avec Lynx
authorgobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Thu, 3 Mar 2011 06:08:54 +0000 (06:08 +0000)
committergobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Thu, 3 Mar 2011 06:08:54 +0000 (06:08 +0000)
functions-ac
stage3/install-1
stage3/pkg/lynx

index 89c7313..f8669af 100644 (file)
@@ -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
 
index c5d0f7c..63f28c5 100755 (executable)
@@ -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"
index 3b53d58..7e193fc 100644 (file)
@@ -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}
+
+
+
 }