Makefile revision 2283
409N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A
221N/A#
1N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
1N/A#
22N/A
22N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/APATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin
221N/A
539N/ACOMPONENT_NAME= squid
539N/ACOMPONENT_VERSION= 3.1.23
221N/ACOMPONENT_PROJECT_URL= http://www.squid-cache.org/
14N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
14N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
221N/ACOMPONENT_ARCHIVE_HASH= \
14N/A sha256:ba5f6a7000a032f2315923c1b8d0b37458d33a7f59d603facecf9e8c12470b34
14N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.1/$(COMPONENT_ARCHIVE)
22N/ACOMPONENT_BUGDB= utility/squid
22N/A
22N/Ainclude ../../make-rules/prep.mk
22N/Ainclude ../../make-rules/configure.mk
22N/Ainclude ../../make-rules/ips.mk
22N/A
14N/ACOMPILER = gcc
0N/A# Parfait doesn't work with the GNU 4.7 compilers yet.
116N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
204N/ACOMPILER = gcc3
0N/Aendif
391N/A
0N/ACXX += $(CC_BITS)
192N/A
0N/ACFLAGS += -I/usr/include/kerberosv5
0N/ACFLAGS += $(CPP_LARGEFILES)
479N/A
479N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
479N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
479N/ACONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
479N/ACONFIGURE_OPTIONS.64 += LIBS="-m64"
0N/A
576N/A# Squid has own prefix
26N/ACONFIGURE_PREFIX = /usr/squid
119N/A
235N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
539N/ACONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec
565N/ACONFIGURE_OPTIONS += --localstatedir=/var/squid
565N/ACONFIGURE_OPTIONS += --sharedstatedir=/var/squid
429N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid
296N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man
327N/ACONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/sbin
391N/ACONFIGURE_OPTIONS += --enable-arp-acl
361N/ACONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm'
551N/ACONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL'
362N/ACONFIGURE_OPTIONS += --enable-cache-digests
26N/ACONFIGURE_OPTIONS += --enable-carp
565N/ACONFIGURE_OPTIONS += --enable-coss-aio-ops
565N/ACONFIGURE_OPTIONS += --enable-delay-pools
565N/ACONFIGURE_OPTIONS += --enable-digest-auth-helpers='ldap,password'
565N/ACONFIGURE_OPTIONS += --enable-external-acl-helpers='ip_user,unix_group,ldap_group,wbinfo_group'
565N/ACONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
565N/ACONFIGURE_OPTIONS += --enable-forward-log
565N/ACONFIGURE_OPTIONS += --enable-forw-via-db
565N/ACONFIGURE_OPTIONS += --enable-htcp
565N/ACONFIGURE_OPTIONS += --enable-icmp
565N/ACONFIGURE_OPTIONS += --enable-large-cache-files
565N/ACONFIGURE_OPTIONS += --enable-multicast-miss
565N/ACONFIGURE_OPTIONS += --enable-negotiate-auth-helpers='squid_kerb_auth'
391N/ACONFIGURE_OPTIONS += --enable-ntlm-auth-helpers='smb_lm,fakeauth,no_check'
429N/ACONFIGURE_OPTIONS += --enable-ntlm-fail-open
384N/ACONFIGURE_OPTIONS += --enable-referer-log
526N/ACONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
526N/ACONFIGURE_OPTIONS += --enable-snmp
526N/ACONFIGURE_OPTIONS += --enable-ssl
497N/ACONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs'
497N/ACONFIGURE_OPTIONS += --enable-useragent-log
497N/ACONFIGURE_OPTIONS += --enable-x-accelerator-vary
497N/ACONFIGURE_OPTIONS += --with-aio
497N/ACONFIGURE_OPTIONS += --with-aufs-threads=8
384N/ACONFIGURE_OPTIONS += --with-large-files
384N/ACONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
497N/ACONFIGURE_OPTIONS += --with-pthreads
384N/A
301N/ACOMPONENT_POST_BUILD_ACTION= \
429N/A (cd $(COMPONENT_DIR) ; \
301N/A $(CP) files/squid.conf.default $(@D)/src)
301N/A
301N/AASLR_MODE = $(ASLR_ENABLE)
384N/A
301N/A# common targets
384N/Abuild: $(BUILD_64)
0N/A
0N/Ainstall: $(INSTALL_64)
0N/A
301N/A# configure says it needs cppunit to test with.
301N/A# After some work I can get cppunit to build but it quickly
301N/A# falls over during test so giving up.
575N/A# I don't think the test suite really tests squid's functionality anyways.
301N/A#
215N/A# To test manually follow along in the book
362N/A# Squid Proxy Server 3.1 Beginner's Guide Page 34
362N/A#
162N/A# Add this to the top of /etc/squid/squid.conf:
301N/A# cache_dir ufs /var/squid/cache/ 500 16 256
342N/A# acl my_machine src 192.0.2.21 # Replace with your desktop's IP address
499N/A# http_access allow my_machine
235N/A#
342N/A# Make sure apache is running.
301N/A# # svcs apache22
104N/A# Start squid:
310N/A# # svcadm enable squid
310N/A# On your desktop set your web browser to proxy through this squid:
551N/A# Edit -> Preferences -> Advanced -> Network -> Settings
551N/A# Check: Manual proxy configuration
551N/A# HTTP Proxy: <squid servers IP address> Port: 3128
551N/A# Save
551N/A# Enter <squid server URL> in your web browser. You should be accessing squid
461N/A# and seeing files stored in the http server on that machine.
461N/A# Enter <squid server URL>:897 in your web browser and squid should complain.
310N/A# Squid is working properly.
410N/A
539N/Atest: $(NO_TESTS)
539N/A
429N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
26N/A
0N/Ainclude ../../make-rules/depend.mk
362N/A