File: Makefile.am

package info (click to toggle)
squid 2.6.5-6etch5
  • links: PTS
  • area: main
  • in suites: etch
  • size: 12,540 kB
  • ctags: 13,801
  • sloc: ansic: 105,278; sh: 6,083; makefile: 1,297; perl: 1,245; awk: 40
file content (71 lines) | stat: -rw-r--r-- 2,319 bytes parent folder | download | duplicates (14)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Makefile for installing Squid startup files on systems
# using a SVR4-based startup mechanism/file system layout
#

SQUID_RC        = squid.rc
SQUID_OPTIONS   = squid.options

EXTRA_DIST = \
	squid.options \
	config.site \
	squid.rc \
	rredir.c \
	rredir.pl \
	user-agents.pl \
	url-normalizer.pl \
	nextstep/Makefile \
	nextstep/Makefile.real \
	nextstep/README \
	nextstep/Squid.pkg.README \
	nextstep/info.in \
	nextstep/makepkg \
	nextstep/post_install \
	nextstep/pre_install

all: 

install: install-@host_os@

install-hpux10.10 install-hpux10.20:
	$(INSTALL_BIN) $(SQUID_RC) /sbin/init.d/squid
	$(INSTALL_FILE) $(SQUID_OPTIONS) /etc/rc.config.d/squid
	-$(LN_S) ../init.d/squid /sbin/rc2.d/S900squid
	-$(LN_S) ../init.d/squid /sbin/rc1.d/K100squid
	/usr/sbin/ch_rc -ap SQUID=1
	@echo "use 'ch_rc -ap SQUID=0' to disable squid at startup"
	@echo "edit /etc/rc.config.d/squid to change options"

install-solaris2.4 install-solaris2.5:
	$(INSTALL_BIN) $(SQUID_RC) /etc/init.d/squid
	-$(LN_S) ../init.d/squid /etc/rc2.d/S90squid
	-$(LN_S) ../init.d/squid /etc/rc1.d/K10squid
	-$(LN_S) ../init.d/squid /etc/rc0.d/K10squid
	@echo "set SQUID=0 in /etc/init.d/squid to disable squid at startup"
	@echo "edit /etc/init.d/squid to change options"

install-irix6.2:
	$(INSTALL_BIN) $(SQUID_RC) /etc/init.d/squid
	$(INSTALL_FILE) $(SQUID_OPTIONS) /var/config/squid.options
	-$(LN_S) ../init.d/squid /etc/rc2.d/S99squid
	-$(LN_S) ../init.d/squid /etc/rc0.d/K01squid
	/sbin/chkconfig -f squid on
	@echo "use 'chkconfig squid off' to disable squid at startup"
	@echo "edit /var/config/squid.options to change options"

install-osf3.2:
	$(INSTALL_BIN) $(SQUID_RC) /sbin/init.d/squid
	-$(LN_S) ../init.d/squid /sbin/rc2.d/S99squid
	-$(LN_S) ../init.d/squid /sbin/rc0.d/K01squid
	/usr/sbin/rcmgr set SQUID 1
	@echo "use 'rcmgr set SQUID 0' to disable squid at startup"
	@echo "use 'rcmgr set SQUID_OPTIONS ...' to change options"
	@echo "use 'rcmgr set SQUID_RESPAWN 0' to change option"

install-linux:
	$(INSTALL_BIN) $(SQUID_RC) /sbin/init.d/squid
	-$(LN_S) ../squid /sbin/init.d/rc3.d/S90squid
	-$(LN_S) ../squid /sbin/init.d/rc3.d/K10squid
	grep '^SQUID=' /etc/rc.config || echo SQUID=1 >>/etc/rc.config
	@echo "set SQUID=0 in /etc/rc.config to disable squid at startup"
	@echo "edit /sbin/init.d/squid to change options"