]> git.ipfire.org Git - thirdparty/squid.git/blob - contrib/Makefile.am
SourceFormat Enforcement
[thirdparty/squid.git] / contrib / Makefile.am
1 ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
2 ##
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
6 ##
7
8 #
9 # Makefile for installing Squid startup files on systems
10 # using a SVR4-based startup mechanism/file system layout
11 #
12
13 SQUID_RC = $(top_srcdir)/tools/sysvinit/squid.rc
14 SQUID_OPTIONS = squid.options
15
16 EXTRA_DIST = \
17 squid.options \
18 config.site \
19 user-agents.pl \
20 url-normalizer.pl \
21 nextstep/Makefile \
22 nextstep/Makefile.real \
23 nextstep/README \
24 nextstep/Squid.pkg.README \
25 nextstep/info.in \
26 nextstep/makepkg \
27 nextstep/post_install \
28 nextstep/pre_install \
29 solaris/solaris-krb5-include.patch
30
31 all:
32
33 install: install-@host_os@
34
35 install-hpux10.10 install-hpux10.20:
36 $(INSTALL_BIN) $(SQUID_RC) /sbin/init.d/squid
37 $(INSTALL_FILE) $(SQUID_OPTIONS) /etc/rc.config.d/squid
38 -$(LN_S) ../init.d/squid /sbin/rc2.d/S900squid
39 -$(LN_S) ../init.d/squid /sbin/rc1.d/K100squid
40 /usr/sbin/ch_rc -ap SQUID=1
41 @echo "use 'ch_rc -ap SQUID=0' to disable squid at startup"
42 @echo "edit /etc/rc.config.d/squid to change options"
43
44 install-solaris2.4 install-solaris2.5:
45 $(INSTALL_BIN) $(SQUID_RC) /etc/init.d/squid
46 -$(LN_S) ../init.d/squid /etc/rc2.d/S90squid
47 -$(LN_S) ../init.d/squid /etc/rc1.d/K10squid
48 -$(LN_S) ../init.d/squid /etc/rc0.d/K10squid
49 @echo "set SQUID=0 in /etc/init.d/squid to disable squid at startup"
50 @echo "edit /etc/init.d/squid to change options"
51
52 install-irix6.2:
53 $(INSTALL_BIN) $(SQUID_RC) /etc/init.d/squid
54 $(INSTALL_FILE) $(SQUID_OPTIONS) /var/config/squid.options
55 -$(LN_S) ../init.d/squid /etc/rc2.d/S99squid
56 -$(LN_S) ../init.d/squid /etc/rc0.d/K01squid
57 /sbin/chkconfig -f squid on
58 @echo "use 'chkconfig squid off' to disable squid at startup"
59 @echo "edit /var/config/squid.options to change options"
60
61 install-osf3.2:
62 $(INSTALL_BIN) $(SQUID_RC) /sbin/init.d/squid
63 -$(LN_S) ../init.d/squid /sbin/rc2.d/S99squid
64 -$(LN_S) ../init.d/squid /sbin/rc0.d/K01squid
65 /usr/sbin/rcmgr set SQUID 1
66 @echo "use 'rcmgr set SQUID 0' to disable squid at startup"
67 @echo "use 'rcmgr set SQUID_OPTIONS ...' to change options"
68 @echo "use 'rcmgr set SQUID_RESPAWN 0' to change option"
69
70 install-linux:
71 $(INSTALL_BIN) $(SQUID_RC) /sbin/init.d/squid
72 -$(LN_S) ../squid /sbin/init.d/rc3.d/S90squid
73 -$(LN_S) ../squid /sbin/init.d/rc3.d/K10squid
74 grep '^SQUID=' /etc/rc.config || echo SQUID=1 >>/etc/rc.config
75 @echo "set SQUID=0 in /etc/rc.config to disable squid at startup"
76 @echo "edit /sbin/init.d/squid to change options"