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