summaryrefslogtreecommitdiff
path: root/www/lynx-current/files/patch-makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/lynx-current/files/patch-makefile.in')
-rw-r--r--www/lynx-current/files/patch-makefile.in48
1 files changed, 48 insertions, 0 deletions
diff --git a/www/lynx-current/files/patch-makefile.in b/www/lynx-current/files/patch-makefile.in
new file mode 100644
index 000000000000..f9249d82bb8c
--- /dev/null
+++ b/www/lynx-current/files/patch-makefile.in
@@ -0,0 +1,48 @@
+--- makefile.in.orig 2009-11-25 13:56:48.000000000 +0300
++++ makefile.in 2010-03-26 11:13:46.000000000 +0300
+@@ -384,14 +384,10 @@
+ if test "$(COMPRESS_PROG)" != "" ; then \
+ (cd $(HELPDIR) && $(COMPRESS_PROG) $$files ) \
+ fi'
+- @echo Updating $(sysconfdir)/lynx.cfg
+- @ECHO_CC@$(SHELL) -c \
+- 'if test -f $(SYSCONFDIR)/lynx.cfg ; then \
+- mv $(SYSCONFDIR)/lynx.cfg $(SYSCONFDIR)/lynx.tmp ; \
+- else \
+- cp $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.tmp ; \
+- fi'
+- @echo Updating $(sysconfdir)/lynx.cfg to point to installed help-files
++ @echo Updating $(sysconfdir)/lynx.cfg.default
++ cp $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.tmp
++ rm -f $(SYSCONFDIR)/lynx.cfg.default
++ @echo Updating $(sysconfdir)/lynx.cfg.default to point to installed help-files
+ @ECHO_CC@sed -e '/^HELPFILE:http/s!^!#!' \
+ -e '/^#HELPFILE:file/s!#!!' \
+ $(SYSCONFDIR)/lynx.tmp | \
+@@ -399,9 +394,10 @@
+ $(SHELL) $(scripts_dir)/cfg_path.sh lynx_doc $(helpdir) | \
+ sed -e '/^HELPFILE:file/s!$$!$(COMPRESS_EXT)!' \
+ -e '/^HELPFILE:file/s!$(COMPRESS_EXT)$(COMPRESS_EXT)$$!$(COMPRESS_EXT)!' \
+- >$(SYSCONFDIR)/lynx.cfg
+- chmod 644 $(SYSCONFDIR)/lynx.cfg
++ >$(SYSCONFDIR)/lynx.cfg.default
++ chmod 644 $(SYSCONFDIR)/lynx.cfg.default
+ -rm -f $(SYSCONFDIR)/lynx.tmp
++ -[ ! -f $(SYSCONFDIR)/lynx.cfg ] && $(INSTALL_DATA) $(SYSCONFDIR)/lynx.cfg.default $(SYSCONFDIR)/lynx.cfg
+
+ LYHelp.h : help_files.sed $(srcdir)/LYHelp.hin
+ @echo Creating $@
+@@ -423,10 +419,11 @@
+ $(SHELL) -c 'SHELL=$(SHELL) $(SHELL) $(scripts_dir)/cfg_defs.sh $(srcdir)'
+
+ install-cfg : $(SYSCONFDIR)
+- @$(SHELL) $(scripts_dir)/install-cfg.sh "$(INSTALL_DATA)" $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.cfg
++ @$(SHELL) $(scripts_dir)/install-cfg.sh "$(INSTALL_DATA)" $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.cfg.default
+
+ install-lss : $(SYSCONFDIR)
+- @$(SHELL) $(scripts_dir)/install-lss.sh "$(INSTALL_DATA)" $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss
++ @$(SHELL) $(scripts_dir)/install-lss.sh "$(INSTALL_DATA)" $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss.default
++ -[ ! -f $(SYSCONFDIR)/lynx.lss ] && $(INSTALL_DATA) $(SYSCONFDIR)/lynx.lss.default $(SYSCONFDIR)/lynx.lss
+
+ uninstall ::
+ @MSG_DIR_MAKE@ cd $(PO_DIR) && $(MAKE_RECUR) uninstall