]> git.ipfire.org Git - thirdparty/squid.git/blob - contrib/Makefile.am
Source Format Enforcement (#1234)
[thirdparty/squid.git] / contrib / Makefile.am
1 ## Copyright (C) 1996-2023 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 solaris/solaris-krb5-include.patch
22
23 all:
24
25 install: install-@host_os@
26
27 install-hpux10.10 install-hpux10.20:
28 $(INSTALL_BIN) $(SQUID_RC) /sbin/init.d/squid
29 $(INSTALL_FILE) $(SQUID_OPTIONS) /etc/rc.config.d/squid
30 -$(LN_S) ../init.d/squid /sbin/rc2.d/S900squid
31 -$(LN_S) ../init.d/squid /sbin/rc1.d/K100squid
32 /usr/sbin/ch_rc -ap SQUID=1
33 @echo "use 'ch_rc -ap SQUID=0' to disable squid at startup"
34 @echo "edit /etc/rc.config.d/squid to change options"
35
36 install-solaris2.4 install-solaris2.5:
37 $(INSTALL_BIN) $(SQUID_RC) /etc/init.d/squid
38 -$(LN_S) ../init.d/squid /etc/rc2.d/S90squid
39 -$(LN_S) ../init.d/squid /etc/rc1.d/K10squid
40 -$(LN_S) ../init.d/squid /etc/rc0.d/K10squid
41 @echo "set SQUID=0 in /etc/init.d/squid to disable squid at startup"
42 @echo "edit /etc/init.d/squid to change options"
43
44 install-irix6.2:
45 $(INSTALL_BIN) $(SQUID_RC) /etc/init.d/squid
46 $(INSTALL_FILE) $(SQUID_OPTIONS) /var/config/squid.options
47 -$(LN_S) ../init.d/squid /etc/rc2.d/S99squid
48 -$(LN_S) ../init.d/squid /etc/rc0.d/K01squid
49 /sbin/chkconfig -f squid on
50 @echo "use 'chkconfig squid off' to disable squid at startup"
51 @echo "edit /var/config/squid.options to change options"
52
53 install-osf3.2:
54 $(INSTALL_BIN) $(SQUID_RC) /sbin/init.d/squid
55 -$(LN_S) ../init.d/squid /sbin/rc2.d/S99squid
56 -$(LN_S) ../init.d/squid /sbin/rc0.d/K01squid
57 /usr/sbin/rcmgr set SQUID 1
58 @echo "use 'rcmgr set SQUID 0' to disable squid at startup"
59 @echo "use 'rcmgr set SQUID_OPTIONS ...' to change options"
60 @echo "use 'rcmgr set SQUID_RESPAWN 0' to change option"
61
62 install-linux:
63 $(INSTALL_BIN) $(SQUID_RC) /sbin/init.d/squid
64 -$(LN_S) ../squid /sbin/init.d/rc3.d/S90squid
65 -$(LN_S) ../squid /sbin/init.d/rc3.d/K10squid
66 grep '^SQUID=' /etc/rc.config || echo SQUID=1 >>/etc/rc.config
67 @echo "set SQUID=0 in /etc/rc.config to disable squid at startup"
68 @echo "edit /sbin/init.d/squid to change options"