freebsd-ports/japanese/lynx/files/patch-aa
Pav Lucistnik 9d2daefba9 - Resurrect, unbreak and update to 2.8.6.rel4
PR:		ports/111326
Submitted by:	Watanabe Kazuhiro <CQG00620@nifty.ne.jp>
2008-06-18 22:46:24 +00:00

46 lines
2 KiB
Text

--- makefile.in.orig Mon Sep 4 08:25:39 2006
+++ makefile.in Thu Apr 5 17:42:33 2007
@@ -360,13 +360,9 @@
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 ;
+ @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 | \
@@ -374,9 +370,9 @@
$(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
-rm -f $(SYSCONFDIR)/lynx.tmp
+ -[ ! -f $(SYSCONFDIR)/lynx.cfg ] && $(INSTALL_DATA) $(SYSCONFDIR)/lynx.cfg.default $(SYSCONFDIR)/lynx.cfg
LYHelp.h : help_files.sed LYHelp.hin
@echo Creating $@
@@ -398,11 +394,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)
- -mv -f $(SYSCONFDIR)/lynx.lss $(SYSCONFDIR)/lynx.oldlss
- $(INSTALL_DATA) $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss
+ $(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 && $(MAKE) CC="$(CC)" uninstall