Makefile revision 3817
163N/A#
163N/A# CDDL HEADER START
163N/A#
163N/A# The contents of this file are subject to the terms of the
163N/A# Common Development and Distribution License (the "License").
163N/A# You may not use this file except in compliance with the License.
163N/A#
163N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
163N/A# or http://www.opensolaris.org/os/licensing.
163N/A# See the License for the specific language governing permissions
163N/A# and limitations under the License.
163N/A#
163N/A# When distributing Covered Code, include this CDDL HEADER in each
163N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
163N/A# If applicable, add the following below this CDDL HEADER, with the
163N/A# fields enclosed by brackets "[]" replaced with your own identifying
163N/A# information: Portions Copyright [yyyy] [name of copyright owner]
163N/A#
163N/A# CDDL HEADER END
163N/A#
163N/A
163N/A#
5452N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
163N/A#
5680N/A
5680N/ACOMPILER = gcc
163N/A
163N/Ainclude ../../make-rules/shared-macros.mk
5680N/A
163N/APATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin
211N/A
5965N/ACOMPONENT_NAME= squid
636N/ACOMPONENT_VERSION= 3.1.23
1689N/ACOMPONENT_PROJECT_URL= http://www.squid-cache.org/
844N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5965N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
4537N/ACOMPONENT_ARCHIVE_HASH= \
163N/A sha256:ba5f6a7000a032f2315923c1b8d0b37458d33a7f59d603facecf9e8c12470b34
5965N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.1/$(COMPONENT_ARCHIVE)
2899N/ACOMPONENT_BUGDB= utility/squid
5758N/A
5680N/ATPNO= 13323
163N/A
5680N/Ainclude $(WS_MAKE_RULES)/prep.mk
163N/Ainclude $(WS_MAKE_RULES)/configure.mk
5999N/Ainclude $(WS_MAKE_RULES)/ips.mk
5999N/A
5999N/ACXX += $(CC_BITS)
5999N/A
163N/ACFLAGS += -I/usr/include/kerberosv5
2283N/ACFLAGS += $(CPP_LARGEFILES)
2283N/A
163N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
5680N/ACONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
163N/ACONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
163N/ACONFIGURE_OPTIONS.64 += LIBS="-m64"
5680N/A
5680N/A# Squid has own prefix
163N/ACONFIGURE_PREFIX = /usr/squid
163N/A
2283N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
163N/ACONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec
4870N/ACONFIGURE_OPTIONS += --localstatedir=/var/squid
163N/ACONFIGURE_OPTIONS += --sharedstatedir=/var/squid
163N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid
163N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man
163N/ACONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/sbin
4870N/ACONFIGURE_OPTIONS += --enable-arp-acl
4537N/ACONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm'
163N/ACONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL'
163N/ACONFIGURE_OPTIONS += --enable-cache-digests
163N/ACONFIGURE_OPTIONS += --enable-carp
163N/ACONFIGURE_OPTIONS += --enable-coss-aio-ops
163N/ACONFIGURE_OPTIONS += --enable-delay-pools
163N/ACONFIGURE_OPTIONS += --enable-digest-auth-helpers='ldap,password'
163N/ACONFIGURE_OPTIONS += --enable-external-acl-helpers='ip_user,unix_group,ldap_group,wbinfo_group'
4537N/ACONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
4537N/ACONFIGURE_OPTIONS += --enable-forward-log
163N/ACONFIGURE_OPTIONS += --enable-forw-via-db
163N/ACONFIGURE_OPTIONS += --enable-htcp
163N/ACONFIGURE_OPTIONS += --enable-icmp
163N/ACONFIGURE_OPTIONS += --enable-large-cache-files
211N/ACONFIGURE_OPTIONS += --enable-multicast-miss
163N/ACONFIGURE_OPTIONS += --enable-negotiate-auth-helpers='squid_kerb_auth'
163N/ACONFIGURE_OPTIONS += --enable-ntlm-auth-helpers='smb_lm,fakeauth,no_check'
163N/ACONFIGURE_OPTIONS += --enable-ntlm-fail-open
163N/ACONFIGURE_OPTIONS += --enable-referer-log
163N/ACONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
4688N/ACONFIGURE_OPTIONS += --enable-snmp
5120N/ACONFIGURE_OPTIONS += --enable-ssl
5795N/ACONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs'
163N/ACONFIGURE_OPTIONS += --enable-useragent-log
4560N/ACONFIGURE_OPTIONS += --enable-x-accelerator-vary
4560N/ACONFIGURE_OPTIONS += --with-aio
4560N/ACONFIGURE_OPTIONS += --with-aufs-threads=8
4560N/ACONFIGURE_OPTIONS += --with-large-files
4560N/ACONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
4560N/ACONFIGURE_OPTIONS += --with-pthreads
4560N/A
5795N/ACOMPONENT_POST_BUILD_ACTION= \
5795N/A (cd $(COMPONENT_DIR) ; \
5795N/A $(CP) files/squid.conf.default $(@D)/src)
1689N/A
1689N/AASLR_MODE = $(ASLR_ENABLE)
1689N/A
1689N/A# common targets
1689N/Aconfigure: $(CONFIGURE_64)
1689N/A
1689N/Abuild: $(BUILD_64)
1689N/A
4537N/Ainstall: $(INSTALL_64)
4537N/A
4537N/A# configure says it needs cppunit to test with.
4537N/A# After some work I can get cppunit to build but it quickly
1689N/A# falls over during test so giving up.
1689N/A# I don't think the test suite really tests squid's functionality anyways.
1689N/A#
1689N/A# To test manually follow along in the book
1689N/A# Squid Proxy Server 3.1 Beginner's Guide Page 34
1689N/A#
1689N/A# Add this to the top of /etc/squid/squid.conf:
1689N/A# cache_dir ufs /var/squid/cache/ 500 16 256
1689N/A# acl my_machine src 192.0.2.21 # Replace with your desktop's IP address
1689N/A# http_access allow my_machine
1689N/A#
1689N/A# Make sure apache is running.
1689N/A# # svcs apache22
1689N/A# Start squid:
5807N/A# # svcadm enable squid
5807N/A# On your desktop set your web browser to proxy through this squid:
5807N/A# Edit -> Preferences -> Advanced -> Network -> Settings
5758N/A# Check: Manual proxy configuration
5758N/A# HTTP Proxy: <squid servers IP address> Port: 3128
5758N/A# Save
5758N/A# Enter <squid server URL> in your web browser. You should be accessing squid
5758N/A# and seeing files stored in the http server on that machine.
5758N/A# Enter <squid server URL>:897 in your web browser and squid should complain.
5758N/A# Squid is working properly.
5758N/A
5758N/Atest: $(NO_TESTS)
5758N/A
3817N/A
3817N/AREQUIRED_PACKAGES += library/libtool/libltdl
5795N/AREQUIRED_PACKAGES += library/security/openssl
6066N/AREQUIRED_PACKAGES += runtime/perl-512
6066N/AREQUIRED_PACKAGES += runtime/perl-516
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/core-os
3817N/AREQUIRED_PACKAGES += system/library
3817N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
3817N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
3817N/AREQUIRED_PACKAGES += system/library/math
6066N/AREQUIRED_PACKAGES += system/library/security/crypto
3817N/AREQUIRED_PACKAGES += system/library/security/gss
5452N/AREQUIRED_PACKAGES += system/library/security/libsasl
3817N/AREQUIRED_PACKAGES += system/network
6123N/A