blob: 3adeb057152d7ba3a63b8fe269c662b8971b573a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- ./graph/src/Makefile.orig 2009-01-07 19:20:02.000000000 +0100
+++ ./graph/src/Makefile 2014-07-24 01:02:02.000000000 +0200
@@ -33,21 +33,21 @@
$(RM) stats.pl config.ini graph-summary.cgi
install_templates:
- $(INSTALL_DIR) -m 0755 $(TEMPLATEDIR)
+ $(INSTALL_DIR) -m 0755 $(DESTDIR)$(TEMPLATEDIR)
@for dep in $(TEMPLATES); do \
- echo $(INSTALL) -m 0644 templates/$$dep $(TEMPLATEDIR)/$$dep; \
- $(INSTALL) -m 0644 templates/$$dep $(TEMPLATEDIR)/$$dep; \
+ echo $(INSTALL) -m 0644 templates/$$dep $(DESTDIR)$(TEMPLATEDIR)/$$dep; \
+ $(INSTALL) -m 0644 templates/$$dep $(DESTDIR)$(TEMPLATEDIR)/$$dep; \
done
install: all install_templates
- $(INSTALL_DIR) -m 0755 -o $(WEB_USER) $(GRAPH_DATADIR)
- $(INSTALL_DIR) -m 0755 -o $(STATS_USER) $(RRD_DATADIR)
- $(INSTALL_DIR) -m 0755 $(WEB_DATADIR)
- $(INSTALL_DIR) -m 0755 $(CGIDIR)
- $(INSTALL_DIR) -m 0755 $(ETCDIR)
- $(INSTALL) -m 0755 stats.pl $(BINDIR)/squidstats.pl
- $(INSTALL) -m 0755 graph-summary.cgi $(CGIDIR)/graph-summary.cgi
- $(INSTALL) -m 0644 config.ini $(ETCDIR)/config.ini
- $(INSTALL) -m 0644 templates.conf $(ETCDIR)/templates.conf
- $(INSTALL) -m 0644 snmp_monitor.cfg $(ETCDIR)/snmp_monitor.cfg
- $(INSTALL) -m 0644 graph.css $(WEB_DATADIR)/graph.css
+ $(INSTALL_DIR) -m 0755 $(DESTDIR)$(GRAPH_DATADIR)
+ $(INSTALL_DIR) -m 0755 $(DESTDIR)$(RRD_DATADIR)
+ $(INSTALL_DIR) -m 0755 $(DESTDIR)$(WEB_DATADIR)
+ $(INSTALL_DIR) -m 0755 $(DESTDIR)$(CGIDIR)
+ $(INSTALL_DIR) -m 0755 $(DESTDIR)$(ETCDIR)
+ $(INSTALL) -m 0755 stats.pl $(DESTDIR)$(BINDIR)/squidstats.pl
+ $(INSTALL) -m 0755 graph-summary.cgi $(DESTDIR)$(CGIDIR)/graph-summary.cgi
+ $(INSTALL) -m 0644 config.ini $(DESTDIR)$(ETCDIR)/config.ini
+ $(INSTALL) -m 0644 templates.conf $(DESTDIR)$(ETCDIR)/templates.conf
+ $(INSTALL) -m 0644 snmp_monitor.cfg $(DESTDIR)$(ETCDIR)/snmp_monitor.cfg
+ $(INSTALL) -m 0644 graph.css $(DESTDIR)$(WEB_DATADIR)/graph.css
|