]>
Commit | Line | Data |
---|---|---|
cd1a2927 | 1 | ############################################################################### |
cd1a2927 | 2 | # # |
70df8302 MT |
3 | # IPFire.org - A linux based firewall # |
4 | # Copyright (C) 2007 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
cd1a2927 | 7 | # it under the terms of the GNU General Public License as published by # |
70df8302 | 8 | # the Free Software Foundation, either version 3 of the License, or # |
cd1a2927 MT |
9 | # (at your option) any later version. # |
10 | # # | |
70df8302 | 11 | # This program is distributed in the hope that it will be useful, # |
cd1a2927 MT |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
70df8302 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # |
cd1a2927 | 18 | # # |
cd1a2927 MT |
19 | ############################################################################### |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
0bd28dc5 MT |
27 | PKG_NAME = squid |
28 | VER = 3.0.STABLE8 | |
cd1a2927 | 29 | |
494f86cb MT |
30 | EXTRA = yes |
31 | DEBUG = no | |
32 | ||
0bd28dc5 | 33 | THISAPP = $(PKG_NAME)-$(VER) |
cd1a2927 | 34 | DL_FILE = $(THISAPP).tar.bz2 |
cd1a2927 | 35 | DIR_APP = $(DIR_SRC)/$(THISAPP) |
0bd28dc5 | 36 | |
6679675b | 37 | OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) |
cd1a2927 MT |
38 | |
39 | ############################################################################### | |
40 | # Top-level Rules | |
41 | ############################################################################### | |
42 | ||
363fb6af | 43 | objects = $(DL_FILE) |
cd1a2927 | 44 | |
84cd486a MT |
45 | info: |
46 | $(DO_PKG_INFO) | |
47 | ||
6679675b | 48 | install: $(OBJECT) |
cd1a2927 | 49 | |
87703b91 | 50 | download : $(objects) |
cd1a2927 | 51 | |
87703b91 | 52 | $(objects) : |
cd1a2927 MT |
53 | @$(LOAD) |
54 | ||
cd1a2927 MT |
55 | ############################################################################### |
56 | # Installation Details | |
57 | ############################################################################### | |
58 | ||
6679675b | 59 | $(OBJECT) : |
cd1a2927 MT |
60 | @$(PREBUILD) |
61 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) | |
0bd28dc5 MT |
62 | cd $(DIR_APP) && \ |
63 | ./configure \ | |
936696ae | 64 | $(CONFIGURE_ARCH) \ |
0bd28dc5 MT |
65 | --prefix=/usr \ |
66 | --datadir=/usr/lib/squid \ | |
67 | --libexecdir=/usr/lib/squid \ | |
68 | --localstatedir=/var \ | |
69 | --sysconfdir=/etc/squid \ | |
70 | --enable-storeio="aufs,coss,diskd,null,ufs" \ | |
71 | --enable-removal-policies="heap,lru" \ | |
72 | --enable-icmp \ | |
73 | --enable-delay-pools \ | |
74 | --disable-esi \ | |
75 | --disable-icap-client \ | |
76 | --enable-useragent-log \ | |
77 | --enable-referrer-log \ | |
78 | --disable-wccp \ | |
79 | --disable-wccpv2 \ | |
80 | --enable-kill-parent-hack \ | |
81 | --disable-snmp \ | |
82 | --enable-arp-acl \ | |
83 | --enable-htcp \ | |
84 | --enable-ssl \ | |
85 | --enable-forw-via-db \ | |
86 | --disable-cache-digests \ | |
87 | --enable-poll \ | |
88 | --enable-select \ | |
89 | --disable-kqueue \ | |
90 | --enable-epoll \ | |
91 | --enable-http-violations \ | |
92 | --enable-linux-netfilter \ | |
93 | --disable-ident-lookups \ | |
94 | --enable-internal-dns \ | |
95 | --enable-auth=basic,ntlm \ | |
96 | --enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \ | |
97 | --enable-ntlm-auth-helpers="SMB" \ | |
98 | --enable-ntlm-fail-open \ | |
99 | --enable-unlinkd \ | |
100 | \ | |
101 | --with-pthreads \ | |
102 | --with-aio \ | |
103 | --with-dl \ | |
104 | --with-large-files | |
105 | ||
106 | cd $(DIR_APP) && make $(PARALLELISMFLAGS) | |
cd1a2927 MT |
107 | cd $(DIR_APP) && make install |
108 | ||
0bd28dc5 MT |
109 | rm -vf /etc/squid/squid.conf |
110 | ln -svf $(CONFIG_ROOT)/proxy/squid.conf /etc/squid/squid.conf | |
111 | rm -vf /etc/squid/errors | |
112 | ln -svf /usr/lib/squid/errors/English /etc/squid/errors | |
cd1a2927 | 113 | |
0bd28dc5 | 114 | -mkdir -pv /var/log/cache /var/log/squid |
cd1a2927 | 115 | touch /var/log/squid/access.log |
0bd28dc5 MT |
116 | chown -Rv squid:squid /var/log/squid /var/log/cache |
117 | ||
b4f8d26c | 118 | chown squid:squid /var/log/squid |
0bd28dc5 | 119 | ln -svf /usr/lib/squid /usr/lib/squid/auth |
46c01c09 | 120 | |
cd1a2927 MT |
121 | @rm -rf $(DIR_APP) |
122 | @$(POSTBUILD) |