openbsd-ports/www/squid/patches/patch-af
1999-05-09 20:01:50 +00:00

45 lines
1.2 KiB
Plaintext

--- errors/Makefile.in.orig Fri Apr 24 01:26:39 1998
+++ errors/Makefile.in Sun May 9 14:05:51 1999
@@ -15,7 +15,7 @@
INSTALL = @INSTALL@
INSTALL_FILE = @INSTALL_DATA@
-DEFAULT_ERROR_DIR = $(sysconfdir)/errors
+DEFAULT_ERROR_DIR = $(prefix)/share/squid/errors
LANGUAGE = @ERR_LANGUAGE@
@@ -23,26 +23,18 @@
install: install-mkdirs
@for f in $(srcdir)/$(LANGUAGE)/ERR_*; do \
- if test -f $(DEFAULT_ERROR_DIR)/$$f ; then \
+ if test -f $(prefix)/lib/squid/errors/$$f ; then \
:; \
else \
- echo "$(INSTALL_FILE) $$f $(DEFAULT_ERROR_DIR)"; \
- $(INSTALL_FILE) $$f $(DEFAULT_ERROR_DIR); \
+ echo "$(INSTALL_FILE) $$f $(prefix)/lib/squid/errors"; \
+ $(INSTALL_FILE) $$f $(prefix)/lib/squid/errors; \
fi; \
done
install-mkdirs:
- -@if test ! -d $(prefix); then \
- echo "mkdir $(prefix)"; \
- mkdir $(prefix); \
- fi
- -@if test ! -d $(sysconfdir); then \
- echo "mkdir $(sysconfdir)"; \
- mkdir $(sysconfdir); \
- fi
- -@if test ! -d $(DEFAULT_ERROR_DIR); then \
- echo "mkdir $(DEFAULT_ERROR_DIR)"; \
- mkdir $(DEFAULT_ERROR_DIR); \
+ -@if test ! -d $(prefix)/lib/squid/errors; then \
+ echo "mkdir $(prefix)/lib/squid/errors"; \
+ ${BSD_INSTALL_DATA_DIR} $(prefix)/lib/squid/errors; \
fi
clean: