components/squid/Makefile
author John Beck <John.Beck@Oracle.COM>
Tue, 04 Apr 2017 16:12:22 -0700
changeset 7829 2de4f4ace09c
parent 7687 1093e2a9adbd
child 7898 b6036d22c840
permissions -rw-r--r--
25766761 prepare Userland for 11.4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7527
diff changeset
    23
# Copyright (c) 2011, 2017, 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
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    25
BUILD_BITS= 64
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    26
COMPILER= gcc
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    28
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    29
PATH=$(USRBINDIR):$(GNUBIN):$(USRSBINDIR):$(USRDIR)/perl5/bin
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    30
211
f37f16a2a99c 7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    31
COMPONENT_NAME=         squid
7517
42ae3923b8fe 25287744 Update squid to version 3.5.23
Rich Burridge <rich.burridge@oracle.com>
parents: 7312
diff changeset
    32
COMPONENT_VERSION=      3.5.23
625
a91e898823c4 7119933 Upgrade Squid to 3.1.18
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 609
diff changeset
    33
COMPONENT_PROJECT_URL=  http://www.squid-cache.org/
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= \
7517
42ae3923b8fe 25287744 Update squid to version 3.5.23
Rich Burridge <rich.burridge@oracle.com>
parents: 7312
diff changeset
    36
    sha256:fa4c0c99f41e92fe1330bed3968d176c6f47ef2e3aea2f83977d5501afa40bdb
4539
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
    37
COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)Versions/v3/3.5/$(COMPONENT_ARCHIVE)
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7527
diff changeset
    38
COMPONENT_ANITYA_ID=	4880
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    39
7517
42ae3923b8fe 25287744 Update squid to version 3.5.23
Rich Burridge <rich.burridge@oracle.com>
parents: 7312
diff changeset
    40
TPNO=			33098
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1645
diff changeset
    41
7245
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6125
diff changeset
    42
# Enable adiheap and adistack security extensions
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6125
diff changeset
    43
ADIHEAP_MODE =	$(ADIHEAP_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6125
diff changeset
    44
ADISTACK_MODE =	$(ADISTACK_ENABLE)
934578b959f0 20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk
Enrico Perla <enrico.perla@oracle.com>
parents: 6125
diff changeset
    45
5760
ae78071b3cad 20217383 squid should have its tests hooked up in the Makefile
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    46
TEST_TARGET= $(TEST_64)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    47
include $(WS_MAKE_RULES)/common.mk
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    48
7312
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
    49
# Look for gnutls-3 pkg-config & libraries before the defaults
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
    50
PKG_CONFIG_PATH.64 := $(PKG_CONFIG_PATH.64)/gnutls-3:$(PKG_CONFIG_PATH.64)
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
    51
LDFLAGS += -L$(USRLIBDIR64)/gnutls-3
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
    52
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    53
CFLAGS += -I$(USRINCDIR)/kerberosv5
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    54
CFLAGS += $(CPP_LARGEFILES)
7829
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
    55
# <getopt.h> changed after 11.3.
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
    56
ifeq ($(OS_VERSION), 11.3)
6001
bfad5cf58f0f 23293885 Squid needs help building on 11.3
John Beck <John.Beck@Oracle.COM>
parents: 5967
diff changeset
    57
CXXFLAGS +=	-Wno-write-strings
bfad5cf58f0f 23293885 Squid needs help building on 11.3
John Beck <John.Beck@Oracle.COM>
parents: 5967
diff changeset
    58
endif
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    59
1624
6a885a6e48cb 18043627 squid should enable ASLR and be built 64-bit.
Rich Burridge <rich.burridge@oracle.com>
parents: 1605
diff changeset
    60
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
    61
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    62
# Squid has own prefix
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    63
CONFIGURE_PREFIX =	$(USRDIR)/squid
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    64
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    65
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    66
CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/squid
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5616
diff changeset
    67
CONFIGURE_OPTIONS += --sharedstatedir=$(VARDIR)/squid
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    68
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    69
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
    70
CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/sbin
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --enable-arp-acl
4872
d803761ae12d 21843191 squid upgrade in 21305852 dropped password by accident
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4746
diff changeset
    72
CONFIGURE_OPTIONS += --enable-auth-basic='DB,NCSA,NIS,LDAP,PAM,getpwnam,MSNT-multi-domain,POP3,SMB,SMB_LM,SASL'
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    73
CONFIGURE_OPTIONS += --enable-cache-digests
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    74
CONFIGURE_OPTIONS += --enable-carp
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    75
CONFIGURE_OPTIONS += --enable-coss-aio-ops
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    76
CONFIGURE_OPTIONS += --enable-delay-pools
4872
d803761ae12d 21843191 squid upgrade in 21305852 dropped password by accident
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4746
diff changeset
    77
CONFIGURE_OPTIONS += --enable-auth-digest='file,LDAP'
4539
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
    78
CONFIGURE_OPTIONS += --enable-external-acl-helpers='file_userip,unix_group,LDAP_group,wbinfo_group'
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    79
CONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    80
CONFIGURE_OPTIONS += --enable-forward-log
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    81
CONFIGURE_OPTIONS += --enable-forw-via-db
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    82
CONFIGURE_OPTIONS += --enable-htcp
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    83
CONFIGURE_OPTIONS += --enable-icmp
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    84
CONFIGURE_OPTIONS += --enable-large-cache-files
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    85
CONFIGURE_OPTIONS += --enable-multicast-miss
4539
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
    86
CONFIGURE_OPTIONS += --enable-auth-negotiate='kerberos'
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
    87
CONFIGURE_OPTIONS += --enable-auth-ntlm='smb_lm,fake'
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    88
CONFIGURE_OPTIONS += --enable-ntlm-fail-open
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    89
CONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    90
CONFIGURE_OPTIONS += --enable-snmp
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-x-accelerator-vary
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    93
CONFIGURE_OPTIONS += --with-aio
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    94
CONFIGURE_OPTIONS += --with-aufs-threads=8
7312
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
    95
CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_LP64_OFF64
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
    96
# Due to the current licensing of squid and openssl, gnutls/nettle
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
    97
# must be enabled and used instead of openssl for tls and/or other
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
    98
# crypto support.
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
    99
CONFIGURE_OPTIONS += --with-gnutls
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
   100
CONFIGURE_OPTIONS += --with-nettle
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
   101
CONFIGURE_OPTIONS += --with-pthreads
5122
b7fb00a04a81 22051233 squid falls over immediately on AMD processor
Michael Nestler <Michael.Nestler@Oracle.COM>
parents: 4872
diff changeset
   102
CONFIGURE_OPTIONS += --disable-arch-native
5797
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5760
diff changeset
   103
CONFIGURE_OPTIONS += PERL=$(PERL)
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
   104
4562
43ef811d0422 21305852 update to squid 3.5.5 (squid.conf fix)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4539
diff changeset
   105
# Appends the following line to the end of the squid.conf configuration
43ef811d0422 21305852 update to squid 3.5.5 (squid.conf fix)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4539
diff changeset
   106
# file. This line is necessary for running squid for testing. 
43ef811d0422 21305852 update to squid 3.5.5 (squid.conf fix)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4539
diff changeset
   107
# This starts up squid as user webservd. 
43ef811d0422 21305852 update to squid 3.5.5 (squid.conf fix)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4539
diff changeset
   108
COMPONENT_POST_INSTALL_ACTION += \
43ef811d0422 21305852 update to squid 3.5.5 (squid.conf fix)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4539
diff changeset
   109
	(cd $(PROTO_DIR)/etc/squid ; \
43ef811d0422 21305852 update to squid 3.5.5 (squid.conf fix)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4539
diff changeset
   110
 	echo '\ncache_effective_user webservd' >> squid.conf)
43ef811d0422 21305852 update to squid 3.5.5 (squid.conf fix)
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4539
diff changeset
   111
5797
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5760
diff changeset
   112
# Adjust '#!/usr/bin/perl'
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5760
diff changeset
   113
PERL_SCRIPTS= $(PROTOUSRDIR)/squid/libexec/helper-mux.pl
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5760
diff changeset
   114
1295
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   115
# To test manually follow along in the book
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   116
# 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
   117
#
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   118
# 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
   119
# 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
   120
# 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
   121
# http_access allow my_machine
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   122
#
4539
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
   123
# You will probably need to remove or comment out the following lines or Squid
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
   124
# will fail to start:
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
   125
#	# acl manager proto cache_object
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4339
diff changeset
   126
#
1295
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   127
# Make sure apache is running.
7517
42ae3923b8fe 25287744 Update squid to version 3.5.23
Rich Burridge <rich.burridge@oracle.com>
parents: 7312
diff changeset
   128
#	# svcs apache24
1295
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   129
# Start squid:
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   130
#	# svcadm enable squid
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   131
# 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
   132
# Edit -> Preferences -> Advanced -> Network -> Settings
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   133
#	Check: Manual proxy configuration
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   134
#	HTTP Proxy: <squid servers IP address>    Port: 3128
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   135
#   Save
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   136
# 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
   137
# 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
   138
# 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
   139
# Squid is working properly.
e4a3a0c29dc2 16404206 problem in UTILITY/SQUID
Craig Mohrman <craig.mohrman@oracle.com>
parents: 1058
diff changeset
   140
5809
e7e79a0d8c4a 22758816 Update squid to 3.5.16
Rich Burridge <rich.burridge@oracle.com>
parents: 5797
diff changeset
   141
# squid tests use cppunit. Currently this requires a version of cppunit
e7e79a0d8c4a 22758816 Update squid to 3.5.16
Rich Burridge <rich.burridge@oracle.com>
parents: 5797
diff changeset
   142
# installed that have been built with the GNU version 5.3 compilers.
e7e79a0d8c4a 22758816 Update squid to 3.5.16
Rich Burridge <rich.burridge@oracle.com>
parents: 5797
diff changeset
   143
5760
ae78071b3cad 20217383 squid should have its tests hooked up in the Makefile
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
   144
COMPONENT_TEST_TRANSFORMS += \
ae78071b3cad 20217383 squid should have its tests hooked up in the Makefile
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
   145
	'-n ' \
ae78071b3cad 20217383 squid should have its tests hooked up in the Makefile
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
   146
	'-e "/=====/p" ' \
ae78071b3cad 20217383 squid should have its tests hooked up in the Makefile
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
   147
	'-e "/TOTAL/p" ' \
ae78071b3cad 20217383 squid should have its tests hooked up in the Makefile
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
   148
	'-e "/SKIP/p" ' \
ae78071b3cad 20217383 squid should have its tests hooked up in the Makefile
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
   149
	'-e "/PASS/p" ' \
ae78071b3cad 20217383 squid should have its tests hooked up in the Makefile
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
   150
	'-e "/FAIL/p" ' \
ae78071b3cad 20217383 squid should have its tests hooked up in the Makefile
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
   151
	'-e "/Can not open file/d" ' \
ae78071b3cad 20217383 squid should have its tests hooked up in the Makefile
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
   152
	'-e "/ERROR/p" '
ae78071b3cad 20217383 squid should have its tests hooked up in the Makefile
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
   153
7312
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
   154
REQUIRED_PACKAGES += library/gnutls-3
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   155
REQUIRED_PACKAGES += library/libtool/libltdl
7312
6b323adaf9e7 24938162 squid is 64-bit but enables a 32-bit build environment
Esha Wang <esha.wang@oracle.com>
parents: 7279
diff changeset
   156
REQUIRED_PACKAGES += library/security/nettle
5797
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5760
diff changeset
   157
REQUIRED_PACKAGES += $(PERL_PKG)
6068
70fb2ebe42b2 23347413 tweak squid REQUIRED_PACKAGES so we can build on 11.3 and 12
John Beck <John.Beck@Oracle.COM>
parents: 6049
diff changeset
   158
REQUIRED_PACKAGES += security/kerberos-5
7829
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
   159
$(SOLARIS_11_3_ONLY)REQUIRED_PACKAGES += service/security/kerberos-5
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   160
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   161
REQUIRED_PACKAGES += system/core-os
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   162
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   163
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   164
REQUIRED_PACKAGES += system/library/math
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   165
REQUIRED_PACKAGES += system/library/security/crypto
7829
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
   166
$(SOLARIS_11_3_ONLY)REQUIRED_PACKAGES += system/library/security/gss
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
   167
$(SOLARIS_11_3_ONLY)REQUIRED_PACKAGES += system/library/security/libsasl
5454
1efad1afb469 PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents: 5122
diff changeset
   168
REQUIRED_PACKAGES += system/library/security/libsasl2
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   169
REQUIRED_PACKAGES += system/network
6125
84f511e8836f 23491056 cups does not build (work?) on s12-100
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6068
diff changeset
   170
REQUIRED_PACKAGES += system/network/ldap/openldap