Makefile revision 4934
98N/A#
98N/A# CDDL HEADER START
1351N/A#
98N/A# The contents of this file are subject to the terms of the
98N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
98N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
98N/A#
493N/A
1059N/ACOMPILER = gcc
98N/A
970N/Ainclude ../../make-rules/shared-macros.mk
970N/A
970N/APATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin
970N/A
1360N/ACOMPONENT_NAME= squid
1360N/ACOMPONENT_VERSION= 3.5.5
970N/ACOMPONENT_PROJECT_URL= http://www.squid-cache.org/
970N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
970N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
970N/ACOMPONENT_ARCHIVE_HASH= \
970N/A sha256:23793da6b23871765188becae59a6f4b6c3672c256ba9be90743b46a3c7921cf
98N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.5/$(COMPONENT_ARCHIVE)
1351N/ACOMPONENT_BUGDB= utility/squid
493N/A
911N/ATPNO= 23264
1351N/A
1351N/Ainclude $(WS_MAKE_RULES)/prep.mk
98N/Ainclude $(WS_MAKE_RULES)/configure.mk
98N/Ainclude $(WS_MAKE_RULES)/ips.mk
1059N/A
156N/ACC += $(CC_BITS)
98N/ACXX += $(CC_BITS)
98N/A
1059N/ACFLAGS += -I/usr/include/kerberosv5
1059N/ACFLAGS += $(CPP_LARGEFILES)
1059N/A
98N/A# Squid has own prefix
1059N/ACONFIGURE_PREFIX = /usr/squid
1059N/A
1059N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1059N/ACONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec
1059N/ACONFIGURE_OPTIONS += --localstatedir=/var/squid
98N/ACONFIGURE_OPTIONS += --sharedstatedir=/var/squid
98N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid
1097N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man
493N/ACONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/sbin
1262N/ACONFIGURE_OPTIONS += --enable-arp-acl
1262N/ACONFIGURE_OPTIONS += --enable-auth-basic='DB,NCSA,NIS,LDAP,PAM,getpwnam,MSNT-multi-domain,POP3,SMB,SMB_LM,SASL'
231N/ACONFIGURE_OPTIONS += --enable-cache-digests
231N/ACONFIGURE_OPTIONS += --enable-carp
1097N/ACONFIGURE_OPTIONS += --enable-coss-aio-ops
493N/ACONFIGURE_OPTIONS += --enable-delay-pools
98N/ACONFIGURE_OPTIONS += --enable-auth-digest='file,LDAP'
970N/ACONFIGURE_OPTIONS += --enable-external-acl-helpers='file_userip,unix_group,LDAP_group,wbinfo_group'
970N/ACONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
970N/ACONFIGURE_OPTIONS += --enable-forward-log
98N/ACONFIGURE_OPTIONS += --enable-forw-via-db
493N/ACONFIGURE_OPTIONS += --enable-htcp
98N/ACONFIGURE_OPTIONS += --enable-icmp
98N/ACONFIGURE_OPTIONS += --enable-large-cache-files
98N/ACONFIGURE_OPTIONS += --enable-multicast-miss
98N/ACONFIGURE_OPTIONS += --enable-auth-negotiate='kerberos'
851N/ACONFIGURE_OPTIONS += --enable-auth-ntlm='smb_lm,fake'
1196N/ACONFIGURE_OPTIONS += --enable-ntlm-fail-open
659N/ACONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
378N/ACONFIGURE_OPTIONS += --enable-snmp
659N/ACONFIGURE_OPTIONS += --enable-ssl
378N/ACONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs'
98N/ACONFIGURE_OPTIONS += --enable-x-accelerator-vary
493N/ACONFIGURE_OPTIONS += --with-aio
606N/ACONFIGURE_OPTIONS += --with-aufs-threads=8
606N/ACONFIGURE_OPTIONS += --with-large-files
98N/ACONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
493N/ACONFIGURE_OPTIONS += --with-pthreads
606N/A
606N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
98N/A
98N/A# Appends the following line to the end of the squid.conf configuration
493N/A# file. This line is necessary for running squid for testing.
606N/A# This starts up squid as user webservd.
606N/ACOMPONENT_POST_INSTALL_ACTION += \
98N/A (cd $(PROTO_DIR)/etc/squid ; \
98N/A echo '\ncache_effective_user webservd' >> squid.conf)
1097N/A
98N/AASLR_MODE = $(ASLR_ENABLE)
606N/A
606N/A# common targets
1097N/Abuild: $(BUILD_32)
1097N/A
1262N/Ainstall: $(INSTALL_32)
231N/A
231N/A# configure says it needs cppunit to test with.
606N/A# After some work I can get cppunit to build but it quickly
606N/A# falls over during test so giving up.
98N/A# I don't think the test suite really tests squid's functionality anyways.
98N/A#
# To test manually follow along in the book
# Squid Proxy Server 3.1 Beginner's Guide Page 34
#
# Add this to the top of /etc/squid/squid.conf:
# cache_dir ufs /var/squid/cache/ 500 16 256
# acl my_machine src 192.0.2.21 # Replace with your desktop's IP address
# http_access allow my_machine
#
# You will probably need to remove or comment out the following lines or Squid
# will fail to start:
# # acl manager proto cache_object
#
# Make sure apache is running.
# # svcs apache22
# Start squid:
# # svcadm enable squid
# On your desktop set your web browser to proxy through this squid:
# Edit -> Preferences -> Advanced -> Network -> Settings
# Check: Manual proxy configuration
# HTTP Proxy: <squid servers IP address> Port: 3128
# Save
# Enter <squid server URL> in your web browser. You should be accessing squid
# and seeing files stored in the http server on that machine.
# Enter <squid server URL>:897 in your web browser and squid should complain.
# Squid is working properly.
test: $(NO_TESTS)
REQUIRED_PACKAGES += library/libtool/libltdl
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += runtime/perl-512
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/library/security/crypto
REQUIRED_PACKAGES += system/library/security/gss
REQUIRED_PACKAGES += system/library/security/libsasl
REQUIRED_PACKAGES += system/network
REQUIRED_PACKAGES += service/security/kerberos-5