Makefile revision 636
409N/A#
409N/A# CDDL HEADER START
409N/A#
409N/A# The contents of this file are subject to the terms of the
409N/A# Common Development and Distribution License (the "License").
409N/A# You may not use this file except in compliance with the License.
409N/A#
409N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
409N/A# or http://www.opensolaris.org/os/licensing.
409N/A# See the License for the specific language governing permissions
409N/A# and limitations under the License.
409N/A#
409N/A# When distributing Covered Code, include this CDDL HEADER in each
409N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
409N/A# If applicable, add the following below this CDDL HEADER, with the
409N/A# fields enclosed by brackets "[]" replaced with your own identifying
409N/A# information: Portions Copyright [yyyy] [name of copyright owner]
409N/A#
409N/A# CDDL HEADER END
409N/A#
409N/A
409N/A#
3996N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
409N/A#
409N/A
409N/Ainclude ../../make-rules/shared-macros.mk
409N/A
409N/APATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin
409N/A
409N/ACOMPONENT_NAME= squid
409N/ACOMPONENT_VERSION= 3.1.18
409N/ACOMPONENT_PROJECT_URL= http://www.squid-cache.org/
844N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
844N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
409N/ACOMPONENT_ARCHIVE_HASH= sha1:6ae3a7d75acea94e8af333a7086d6467416ff5ac
1273N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.1/$(COMPONENT_ARCHIVE)
409N/A
3661N/Ainclude ../../make-rules/prep.mk
3661N/Ainclude ../../make-rules/configure.mk
3996N/Ainclude ../../make-rules/ips.mk
3996N/A
3996N/ACOMPILER = gcc
409N/A
409N/ACFLAGS += -I/usr/include/kerberosv5
409N/ACFLAGS += $(CPP_LARGEFILES)
409N/A
409N/A# Squid has own prefix
409N/ACONFIGURE_PREFIX = /usr/squid
409N/A
409N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
409N/ACONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec
409N/ACONFIGURE_OPTIONS += --localstatedir=/var/squid
409N/ACONFIGURE_OPTIONS += --sharedstatedir=/var/squid
409N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid
409N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man
409N/ACONFIGURE_OPTIONS += --enable-arp-acl
409N/ACONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm'
409N/ACONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL'
409N/ACONFIGURE_OPTIONS += --enable-cache-digests
409N/ACONFIGURE_OPTIONS += --enable-carp
409N/ACONFIGURE_OPTIONS += --enable-coss-aio-ops
409N/ACONFIGURE_OPTIONS += --enable-delay-pools
409N/ACONFIGURE_OPTIONS += --enable-digest-auth-helpers='ldap,password'
409N/ACONFIGURE_OPTIONS += --enable-external-acl-helpers='ip_user,unix_group,ldap_group,wbinfo_group'
409N/ACONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
409N/ACONFIGURE_OPTIONS += --enable-forward-log
409N/ACONFIGURE_OPTIONS += --enable-forw-via-db
3996N/ACONFIGURE_OPTIONS += --enable-htcp
3996N/ACONFIGURE_OPTIONS += --enable-icmp
3996N/ACONFIGURE_OPTIONS += --enable-large-cache-files
CONFIGURE_OPTIONS += --enable-multicast-miss
CONFIGURE_OPTIONS += --enable-negotiate-auth-helpers='squid_kerb_auth'
CONFIGURE_OPTIONS += --enable-ntlm-auth-helpers='smb_lm,fakeauth,no_check'
CONFIGURE_OPTIONS += --enable-ntlm-fail-open
CONFIGURE_OPTIONS += --enable-referer-log
CONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
CONFIGURE_OPTIONS += --enable-snmp
CONFIGURE_OPTIONS += --enable-ssl
CONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs'
CONFIGURE_OPTIONS += --enable-useragent-log
CONFIGURE_OPTIONS += --enable-x-accelerator-vary
CONFIGURE_OPTIONS += --with-aio
CONFIGURE_OPTIONS += --with-aufs-threads=8
CONFIGURE_OPTIONS += --with-large-files
CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
CONFIGURE_OPTIONS += --with-pthreads
COMPONENT_POST_BUILD_ACTION= \
(cd $(COMPONENT_DIR) ; \
$(CP) squid.conf.default $(@D)/src)
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk