author | John Beck <John.Beck@Oracle.COM> |
Fri, 13 Jun 2014 12:36:52 -0700 | |
changeset 1948 | 2d1537e7942d |
parent 1645 | ff50a80c552a |
child 2225 | f064d3d3190d |
permissions | -rw-r--r-- |
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
1 |
# |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
3 |
# |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
7 |
# |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
12 |
# |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
18 |
# |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
20 |
# |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
21 |
|
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
22 |
# |
1624
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
23 |
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. |
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
24 |
# |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
25 |
|
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
27 |
|
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
28 |
PATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
29 |
|
211
f37f16a2a99c
7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
30 |
COMPONENT_NAME= squid |
1295
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
31 |
COMPONENT_VERSION= 3.1.23 |
625
a91e898823c4
7119933 Upgrade Squid to 3.1.18
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
609
diff
changeset
|
32 |
COMPONENT_PROJECT_URL= http://www.squid-cache.org/ |
211
f37f16a2a99c
7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
33 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
1295
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
34 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
625
diff
changeset
|
35 |
COMPONENT_ARCHIVE_HASH= \ |
1295
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
36 |
sha256:ba5f6a7000a032f2315923c1b8d0b37458d33a7f59d603facecf9e8c12470b34 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
211
diff
changeset
|
37 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.1/$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
38 |
COMPONENT_BUGDB= utility/squid |
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
39 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1645
diff
changeset
|
40 |
TPNO= 13323 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1645
diff
changeset
|
41 |
|
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
42 |
include ../../make-rules/prep.mk |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
43 |
include ../../make-rules/configure.mk |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
44 |
include ../../make-rules/ips.mk |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
45 |
|
1605
7fc7910b6d94
17389830 guile fails to build with gcc4.7
Rich Burridge <rich.burridge@oracle.com>
parents:
1496
diff
changeset
|
46 |
COMPILER = gcc |
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
47 |
|
1624
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
48 |
CXX += $(CC_BITS) |
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
49 |
|
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
50 |
CFLAGS += -I/usr/include/kerberosv5 |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
51 |
CFLAGS += $(CPP_LARGEFILES) |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
52 |
|
1624
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
53 |
CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
54 |
CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib |
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
55 |
CONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64" |
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
56 |
CONFIGURE_OPTIONS.64 += LIBS="-m64" |
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
57 |
|
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
58 |
# Squid has own prefix |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
59 |
CONFIGURE_PREFIX = /usr/squid |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
60 |
|
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
61 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
62 |
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
63 |
CONFIGURE_OPTIONS += --localstatedir=/var/squid |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
64 |
CONFIGURE_OPTIONS += --sharedstatedir=/var/squid |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
65 |
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
66 |
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man |
1624
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
67 |
CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/sbin |
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
68 |
CONFIGURE_OPTIONS += --enable-arp-acl |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
69 |
CONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm' |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
70 |
CONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL' |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
71 |
CONFIGURE_OPTIONS += --enable-cache-digests |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
72 |
CONFIGURE_OPTIONS += --enable-carp |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
73 |
CONFIGURE_OPTIONS += --enable-coss-aio-ops |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
74 |
CONFIGURE_OPTIONS += --enable-delay-pools |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
75 |
CONFIGURE_OPTIONS += --enable-digest-auth-helpers='ldap,password' |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
76 |
CONFIGURE_OPTIONS += --enable-external-acl-helpers='ip_user,unix_group,ldap_group,wbinfo_group' |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
77 |
CONFIGURE_OPTIONS += --enable-follow-x-forwarded-for |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
78 |
CONFIGURE_OPTIONS += --enable-forward-log |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
79 |
CONFIGURE_OPTIONS += --enable-forw-via-db |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
80 |
CONFIGURE_OPTIONS += --enable-htcp |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
81 |
CONFIGURE_OPTIONS += --enable-icmp |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
82 |
CONFIGURE_OPTIONS += --enable-large-cache-files |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
83 |
CONFIGURE_OPTIONS += --enable-multicast-miss |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
84 |
CONFIGURE_OPTIONS += --enable-negotiate-auth-helpers='squid_kerb_auth' |
211
f37f16a2a99c
7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
85 |
CONFIGURE_OPTIONS += --enable-ntlm-auth-helpers='smb_lm,fakeauth,no_check' |
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
86 |
CONFIGURE_OPTIONS += --enable-ntlm-fail-open |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
87 |
CONFIGURE_OPTIONS += --enable-referer-log |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
88 |
CONFIGURE_OPTIONS += --enable-removal-policies='heap,lru' |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
89 |
CONFIGURE_OPTIONS += --enable-snmp |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
90 |
CONFIGURE_OPTIONS += --enable-ssl |
211
f37f16a2a99c
7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
91 |
CONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs' |
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
92 |
CONFIGURE_OPTIONS += --enable-useragent-log |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
93 |
CONFIGURE_OPTIONS += --enable-x-accelerator-vary |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
94 |
CONFIGURE_OPTIONS += --with-aio |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
95 |
CONFIGURE_OPTIONS += --with-aufs-threads=8 |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
96 |
CONFIGURE_OPTIONS += --with-large-files |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
97 |
CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
98 |
CONFIGURE_OPTIONS += --with-pthreads |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
99 |
|
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
100 |
COMPONENT_POST_BUILD_ACTION= \ |
211
f37f16a2a99c
7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
181
diff
changeset
|
101 |
(cd $(COMPONENT_DIR) ; \ |
1295
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
102 |
$(CP) files/squid.conf.default $(@D)/src) |
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
103 |
|
1624
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
104 |
ASLR_MODE = $(ASLR_ENABLE) |
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
105 |
|
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
106 |
# common targets |
1624
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
107 |
build: $(BUILD_64) |
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
108 |
|
1624
6a885a6e48cb
18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents:
1605
diff
changeset
|
109 |
install: $(INSTALL_64) |
1295
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
110 |
|
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
111 |
# configure says it needs cppunit to test with. |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
112 |
# After some work I can get cppunit to build but it quickly |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
113 |
# falls over during test so giving up. |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
114 |
# I don't think the test suite really tests squid's functionality anyways. |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
115 |
# |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
116 |
# To test manually follow along in the book |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
117 |
# Squid Proxy Server 3.1 Beginner's Guide Page 34 |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
118 |
# |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
119 |
# Add this to the top of /etc/squid/squid.conf: |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
120 |
# cache_dir ufs /var/squid/cache/ 500 16 256 |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
121 |
# acl my_machine src 192.0.2.21 # Replace with your desktop's IP address |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
122 |
# http_access allow my_machine |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
123 |
# |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
124 |
# Make sure apache is running. |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
125 |
# # svcs apache22 |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
126 |
# Start squid: |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
127 |
# # svcadm enable squid |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
128 |
# On your desktop set your web browser to proxy through this squid: |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
129 |
# Edit -> Preferences -> Advanced -> Network -> Settings |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
130 |
# Check: Manual proxy configuration |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
131 |
# HTTP Proxy: <squid servers IP address> Port: 3128 |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
132 |
# Save |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
133 |
# Enter <squid server URL> in your web browser. You should be accessing squid |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
134 |
# and seeing files stored in the http server on that machine. |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
135 |
# Enter <squid server URL>:897 in your web browser and squid should complain. |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
136 |
# Squid is working properly. |
e4a3a0c29dc2
16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents:
1058
diff
changeset
|
137 |
|
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
163
diff
changeset
|
138 |
test: $(NO_TESTS) |
163
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
139 |
|
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
140 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
141 |
|
492ba3a66c6f
7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff
changeset
|
142 |
include ../../make-rules/depend.mk |