Makefile revision 6066
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# CDDL HEADER START
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# The contents of this file are subject to the terms of the
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Common Development and Distribution License (the "License").
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# You may not use this file except in compliance with the License.
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# See the License for the specific language governing permissions
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# and limitations under the License.
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# When distributing Covered Code, include this CDDL HEADER in each
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# If applicable, add the following below this CDDL HEADER, with the
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# fields enclosed by brackets "[]" replaced with your own identifying
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# information: Portions Copyright [yyyy] [name of copyright owner]
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# CDDL HEADER END
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenPATH=$(USRBINDIR):$(GNUBIN):$(USRSBINDIR):$(USRDIR)/perl5/bin
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCOMPONENT_PROJECT_URL= http://www.squid-cache.org/
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen sha256:812ba5ec74ebdc1bea1b3013b636f9dfcb7a6f5271b2783961009c215879af82
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.5/$(COMPONENT_ARCHIVE)
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# <getopt.h> changed between 11 & 12.
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Squid has own prefix
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/squid
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --sharedstatedir=$(VARDIR)/squid
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/sbin
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --enable-auth-basic='DB,NCSA,NIS,LDAP,PAM,getpwnam,MSNT-multi-domain,POP3,SMB,SMB_LM,SASL'
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --enable-auth-digest='file,LDAP'
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --enable-external-acl-helpers='file_userip,unix_group,LDAP_group,wbinfo_group'
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --enable-large-cache-files
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --enable-auth-negotiate='kerberos'
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --enable-auth-ntlm='smb_lm,fake'
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs'
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --enable-x-accelerator-vary
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenCONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Appends the following line to the end of the squid.conf configuration
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# file. This line is necessary for running squid for testing.
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# This starts up squid as user webservd.
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen echo '\ncache_effective_user webservd' >> squid.conf)
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Adjust '#!/usr/bin/perl'
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenPERL_SCRIPTS= $(PROTOUSRDIR)/squid/libexec/helper-mux.pl
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# To test manually follow along in the book
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Squid Proxy Server 3.1 Beginner's Guide Page 34
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Add this to the top of /etc/squid/squid.conf:
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# cache_dir ufs /var/squid/cache/ 500 16 256
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# acl my_machine src 192.0.2.21 # Replace with your desktop's IP address
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# http_access allow my_machine
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# You will probably need to remove or comment out the following lines or Squid
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# will fail to start:
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# # acl manager proto cache_object
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Make sure apache is running.
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# # svcs apache22
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Start squid:
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# # svcadm enable squid
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# On your desktop set your web browser to proxy through this squid:
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Edit -> Preferences -> Advanced -> Network -> Settings
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Check: Manual proxy configuration
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# HTTP Proxy: <squid servers IP address> Port: 3128
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Enter <squid server URL> in your web browser. You should be accessing squid
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# and seeing files stored in the http server on that machine.
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Enter <squid server URL>:897 in your web browser and squid should complain.
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# Squid is working properly.
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# squid tests use cppunit. Currently this requires a version of cppunit
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen# installed that have been built with the GNU version 5.3 compilers.
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen '-e "/=====/p" ' \
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen '-e "/TOTAL/p" ' \
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen '-e "/SKIP/p" ' \
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen '-e "/PASS/p" ' \
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen '-e "/FAIL/p" ' \
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen '-e "/Can not open file/d" ' \
d2218db71152598971a13b08777cc0589d7f2592Johan Engelen '-e "/ERROR/p" '
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenREQUIRED_PACKAGES += service/security/kerberos-5
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenREQUIRED_PACKAGES += system/library/security/crypto
d2218db71152598971a13b08777cc0589d7f2592Johan EngelenREQUIRED_PACKAGES += system/library/security/gss