Strange Install blocker bug found. No solution yet.
(19:04:54) rousskov: 2008/09/30 00:05:20| errorpage.cc(290) errorTryLoadText:
'/usr/local/squid3-ecap/share/errors/templates//usr/local/squid3-ecap/etc/errorpage.css':
(2) No such file or directory
(19:07:52) rousskov: $ make install > /tmp/tm
(19:07:52) rousskov: /bin/bash: -c: line 17: syntax error near unexpected token `then'
(19:07:52) rousskov: /bin/bash: -c: line 17: `@if test -f /usr/local/squid3-ecap/etc/errorpage.css ; then \'
##dist-hook eveything
DEFAULT_ERROR_DIR = $(errordir)
-DEFAULT_STYLESHEET = $(sysconfdir)/errorpage.css
-
# List of automated translations possible:
TRANSLATIONS = \
$(INSTALL_DATA) $$f $(DESTDIR)$(DEFAULT_ERROR_DIR)/$$l; \
done; \
fi \
- done; \
- $(INSTALL_DATA) $(srcdir)/errorpage.css $(DEFAULT_STYLESHEET).default; \
- @if test -f $(DEFAULT_STYLESHEET) ; then \
- echo "$@ will not overwrite existing $(DEFAULT_STYLESHEET)" ; \
- else \
- echo "$(INSTALL_DATA) $(srcdir)/errorpage.css $(DEFAULT_STYLESHEET)"; \
- $(INSTALL_DATA) $(srcdir)/errorpage.css $(DEFAULT_STYLESHEET); \
- fi
-
+ done
uninstall-local:
@ for l in $(LANGUAGES); do \
rm -f $(DESTDIR)$(DEFAULT_ERROR_DIR)/$$l/`basename $$f`; \
done; \
fi \
- done; \
- rm -f $(DEFAULT_STYLESHEET).default
+ done
# undocumented hack. You can use this target to create multi-lingual
# error pages. For example:
cp -p $(srcdir)/$$lang/ERR_* $(distdir)/$$lang \
|| exit 1; \
fi; \
- done; \
- cp $(srcdir)/errorpage.css $(distdir)/errorpage.css
+ done
translate:
@ if test "$(PO2HTML)" != "" ; then \
+++ /dev/null
-
-// page basics
-html body {
- background-color:#ffffff;
- font-family:verdana,sans-serif
-}
-
-// initial title
-h1 {
-}
-
-// page sub-title
-h2 {
-}
-
-// general text
-p {
-}
-
-// error brief description
-#error p {
-}
-
-// some data which may have caused the prblem
-#data {
-}
-
-// the error message received from the system or other software
-#sysmsg {
-}
-
-
-pre {
- font-family:sans-serif
-}
-
-// horizontal lines
-hr {
-}
-
-// page footer
-#footer {
-}
-
-// special event: FTP success page titles
-ftpsuccess {
- background-color:#00ff00;
- width:100%
-}
DEFAULT_ICP_PORT = @CACHE_ICP_PORT@
DEFAULT_PREFIX = $(prefix)
DEFAULT_CONFIG_FILE = $(sysconfdir)/squid.conf
-DEFAULT_CONFIG_DIR = $(sysconfdir)
DEFAULT_MIME_TABLE = $(sysconfdir)/mime.conf
DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
DEFAULT_LOG_PREFIX = $(localstatedir)/logs
s%@DEFAULT_ICON_DIR@%$(DEFAULT_ICON_DIR)%g;\
s%@DEFAULT_MIB_PATH@%$(DEFAULT_MIB_PATH)%g;\
s%@DEFAULT_ERROR_DIR@%$(DEFAULT_ERROR_DIR)%g;\
- s%@DEFAULT_CONFIG_DIR@%$(DEFAULT_CONFIG_DIR)%g;\
s%@DEFAULT_PREFIX@%$(DEFAULT_PREFIX)%g;\
s%@DEFAULT_HOSTS@%$(DEFAULT_HOSTS)%g;\
s%@[V]ERSION@%$(VERSION)%g;"\
of is error page translations.
DOC_END
-NAME: err_page_stylesheet
-TYPE: string
-LOC: Config.errorStylesheet
-DEFAULT: @DEFAULT_CONFIG_DIR@/errorpage.css
-DOC_START
- CSS Stylesheet to pattern the display of Squid default error pages.
-
- For information on CSS see http://www.w3.org/Style/CSS/
-DOC_END
-
NAME: err_html_text
TYPE: eol
LOC: Config.errHtmlText
/// \ingroup ErrorPageInternal
static int error_page_count = 0;
-/// \ingroup ErrorPageInternal
-static MemBuf error_stylesheet;
-
static char *errorTryLoadText(const char *page_name, const char *dir, bool silent = false);
static char *errorLoadText(const char *page_name);
static const char *errorFindHardText(err_type type);
}
}
}
-
- error_stylesheet.reset();
-
- // look for and load stylesheet into global MemBuf for it.
- if(Config.errorStylesheet) {
- char *temp = errorLoadText(Config.errorStylesheet);
- if(temp) {
- error_stylesheet.Printf("%s",temp);
- safe_free(temp);
- }
- }
}
void
break;
- case 'l':
- mb.append(error_stylesheet.content(), error_stylesheet.contentSize());
- do_quote = 0;
- break;
-
case 'L':
if (Config.errHtmlText) {
mb.Printf("%s", Config.errHtmlText);
H - server host name x
i - client IP address x
I - server IP address x
- l - HREF link for CSS stylesheet inclusion x
L - HREF link for more info/contact x
M - Request Method x
m - Error message returned by auth helper x
char *errorDefaultLanguage;
int errorLogMissingLanguages;
#endif
- char *errorStylesheet;
struct
{