Makefile revision 163
561N/A#
561N/A# CDDL HEADER START
911N/A#
837N/A# The contents of this file are subject to the terms of the
561N/A# Common Development and Distribution License (the "License").
561N/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#
919N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
561N/A#
561N/A
561N/Ainclude ../../make-rules/shared-macros.mk
561N/A
561N/APATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin
561N/A
561N/ACOMPONENT_NAME= squid
837N/ACOMPONENT_VERSION= 2.7.STABLE9
561N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
911N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
911N/ACOMPONENT_ARCHIVE_HASH= sha1:6d90fe06468b662b2eefd7ffeb47b9a78f0a871d
911N/ACOMPONENT_ARCHIVE_URL= http://www.squid-cache.org/Versions/v2/2.7/$(COMPONENT_ARCHIVE)
911N/A
561N/Ainclude ../../make-rules/prep.mk
561N/Ainclude ../../make-rules/configure.mk
include ../../make-rules/ips.mk
IPS_COMPONENT_VERSION= 2.7.9
CFLAGS += -I/usr/include/kerberosv5
CFLAGS += -DSOLARIS_11
CFLAGS += -D__BIG_ENDIAN__
CFLAGS += $(CPP_LARGEFILES)
CFLAGS += $(studio_FEATURES_EXTENSIONS)
# Squid has own prefix
CONFIGURE_PREFIX = /usr/squid
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec
CONFIGURE_OPTIONS += --localstatedir=/var/squid
CONFIGURE_OPTIONS += --sharedstatedir=/var/squid
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man
CONFIGURE_OPTIONS += --enable-arp-acl
CONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm'
CONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL'
CONFIGURE_OPTIONS += --enable-cache-digests
CONFIGURE_OPTIONS += --enable-carp
CONFIGURE_OPTIONS += --enable-coss-aio-ops
CONFIGURE_OPTIONS += --enable-delay-pools
CONFIGURE_OPTIONS += --enable-digest-auth-helpers='ldap,password'
CONFIGURE_OPTIONS += --enable-external-acl-helpers='ip_user,unix_group,ldap_group,wbinfo_group'
CONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
CONFIGURE_OPTIONS += --enable-forward-log
CONFIGURE_OPTIONS += --enable-forw-via-db
CONFIGURE_OPTIONS += --enable-htcp
CONFIGURE_OPTIONS += --enable-icmp
CONFIGURE_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,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,coss,diskd,ufs,null'
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 $(@D) ; $(PERL) -pi \
-e 'print q{visible_hostname localhost} if $$. == 1;' \
-e 's/^\# +cache_effective_user.*/cache_effective_user webservd/g;' \
-e 's/^\# +dns_testnames.*/dns_testnames localhost/g' \
src/squid.conf.default )
PKG_PROTO_DIRS += $(SOURCE_DIR)
PKG_PROTO_DIRS += $(COMPONENT_DIR)
include ../../make-rules/shared-targets.mk
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
sed -f oracleman-stability $(BUILD_DIR_32)/doc/squid.8 \
> $(PROTOUSRDIR)/squid/man/man8/squid.8
sed -f oracleman-stability $(BUILD_DIR_32)/doc/cachemgr.cgi.8 \
> $(PROTOUSRDIR)/squid/man/man8/cachemgr.cgi.8
sed -f oracleman-stability $(SOURCE_DIR)/helpers/basic_auth/NCSA/ncsa_auth.8 \
> $(PROTOUSRDIR)/squid/man/man8/ncsa_auth.8
sed -f oracleman-stability $(SOURCE_DIR)/helpers/basic_auth/PAM/pam_auth.8 \
> $(PROTOUSRDIR)/squid/man/man8/pam_auth.8
sed -f oracleman-stability $(BUILD_DIR_32)/helpers/basic_auth/DB/squid_db_auth.8 \
> $(PROTOUSRDIR)/squid/man/man8/squid_db_auth.8
sed -f oracleman-stability $(SOURCE_DIR)/helpers/basic_auth/LDAP/squid_ldap_auth.8 \
> $(PROTOUSRDIR)/squid/man/man8/squid_ldap_auth.8
sed -f oracleman-stability $(SOURCE_DIR)/helpers/external_acl/ldap_group/squid_ldap_group.8 \
> $(PROTOUSRDIR)/squid/man/man8/squid_ldap_group.8
sed -f oracleman-stability $(SOURCE_DIR)/helpers/external_acl/unix_group/squid_unix_group.8 \
> $(PROTOUSRDIR)/squid/man/man8/squid_unix_group.8
test:
@echo "no tests available"
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk