openbsd-ports/www/squid/patches/patch-ag
brad 85e8a0d4da upgrade to Squid 2.3.STABLE3
- NOTE: you can now override the dir used for cache/logs by using the
variable STATEDIR. i.e., "make STATEDIR=/alternate/dir package", and it
will be substituted into the INSTALL/DEINSTALL scripts.
2000-06-28 07:08:28 +00:00

48 lines
1.3 KiB
Plaintext

--- icons/Makefile.in.orig Tue Jun 27 23:09:05 2000
+++ icons/Makefile.in Tue Jun 27 23:12:00 2000
@@ -15,7 +15,10 @@
INSTALL = @INSTALL@
INSTALL_FILE = @INSTALL_DATA@
-DEFAULT_ICON_DIR = $(sysconfdir)/icons
+
+DESTDIR =
+
+DEFAULT_ICON_DIR = $(prefix)/share/squid/icons
ICONS = anthony-binhex.gif \
anthony-bomb.gif \
@@ -52,26 +55,18 @@
install: install-mkdirs anthony-xpm.gif
@for f in $(ICONS); do \
- if test -f $(DEFAULT_ICON_DIR)/$$f ; then \
+ if test -f $(DESTDIR)$(prefix)/lib/squid/icons/$$f ; then \
:; \
else \
- echo "$(INSTALL_FILE) $$f $(DEFAULT_ICON_DIR)"; \
- $(INSTALL_FILE) $$f $(DEFAULT_ICON_DIR); \
+ echo "$(INSTALL_FILE) $$f $(DESTDIR)$(prefix)/lib/squid/icons"; \
+ $(INSTALL_FILE) $$f $(DESTDIR)$(prefix)/lib/squid/icons; \
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_ICON_DIR); then \
- echo "mkdir $(DEFAULT_ICON_DIR)"; \
- mkdir $(DEFAULT_ICON_DIR); \
+ -@if test ! -d $(DESTDIR)$(prefix)/lib/squid/icons; then \
+ echo "${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(prefix)/lib/squid/icons"; \
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(prefix)/lib/squid/icons; \
fi
clean: