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

45 lines
1.2 KiB
Plaintext

--- icons/Makefile.in.orig Sun Apr 18 21:24:10 1999
+++ icons/Makefile.in Sun May 9 14:00:47 1999
@@ -15,7 +15,7 @@
INSTALL = @INSTALL@
INSTALL_FILE = @INSTALL_DATA@
-DEFAULT_ICON_DIR = $(sysconfdir)/icons
+DEFAULT_ICON_DIR = $(prefix)/share/squid/icons
ICONS = anthony-binhex.gif \
anthony-bomb.gif \
@@ -52,26 +52,18 @@
install: install-mkdirs anthony-xpm.gif
@for f in $(ICONS); do \
- if test -f $(DEFAULT_ICON_DIR)/$$f ; then \
+ if test -f $(prefix)/lib/squid/icons/$$f ; then \
:; \
else \
- echo "$(INSTALL_FILE) $$f $(DEFAULT_ICON_DIR)"; \
- $(INSTALL_FILE) $$f $(DEFAULT_ICON_DIR); \
+ echo "$(INSTALL_FILE) $$f $(prefix)/lib/squid/icons"; \
+ $(INSTALL_FILE) $$f $(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 $(prefix)/lib/squid/icons; then \
+ echo "mkdir $(prefix)/lib/squid/icons"; \
+ ${BSD_INSTALL_DATA_DIR} $(prefix)/lib/squid/icons; \
fi
clean: