Makefile revision 163
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose#
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# CDDL HEADER START
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose#
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# The contents of this file are subject to the terms of the
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# Common Development and Distribution License (the "License").
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# You may not use this file except in compliance with the License.
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose#
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# or http://www.opensolaris.org/os/licensing.
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# See the License for the specific language governing permissions
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# and limitations under the License.
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose#
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# When distributing Covered Code, include this CDDL HEADER in each
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# If applicable, add the following below this CDDL HEADER, with the
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# fields enclosed by brackets "[]" replaced with your own identifying
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# information: Portions Copyright [yyyy] [name of copyright owner]
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose#
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# CDDL HEADER END
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose#
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose#
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose#
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Boseinclude ../../make-rules/shared-macros.mk
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
f64296c40e07614668c4ac4c978bc8980fb6a7dbLukas SlebodnikPATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin
f64296c40e07614668c4ac4c978bc8980fb6a7dbLukas Slebodnik
f64296c40e07614668c4ac4c978bc8980fb6a7dbLukas SlebodnikCOMPONENT_NAME= squid
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCOMPONENT_VERSION= 2.7.STABLE9
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCOMPONENT_ARCHIVE_HASH= sha1:6d90fe06468b662b2eefd7ffeb47b9a78f0a871d
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCOMPONENT_ARCHIVE_URL= http://www.squid-cache.org/Versions/v2/2.7/$(COMPONENT_ARCHIVE)
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Boseinclude ../../make-rules/prep.mk
939246537b0b9a4af6862c513d3919501ad57d92Sumit Boseinclude ../../make-rules/configure.mk
939246537b0b9a4af6862c513d3919501ad57d92Sumit Boseinclude ../../make-rules/ips.mk
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseIPS_COMPONENT_VERSION= 2.7.9
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCFLAGS += -I/usr/include/kerberosv5
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCFLAGS += -DSOLARIS_11
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCFLAGS += -D__BIG_ENDIAN__
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCFLAGS += $(CPP_LARGEFILES)
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCFLAGS += $(studio_FEATURES_EXTENSIONS)
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# Squid has own prefix
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_PREFIX = /usr/squid
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --localstatedir=/var/squid
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --sharedstatedir=/var/squid
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-arp-acl
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm'
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL'
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-cache-digests
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-carp
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-coss-aio-ops
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-delay-pools
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-digest-auth-helpers='ldap,password'
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-external-acl-helpers='ip_user,unix_group,ldap_group,wbinfo_group'
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-forward-log
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-forw-via-db
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-htcp
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-icmp
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-large-cache-files
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-multicast-miss
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-negotiate-auth-helpers='squid_kerb_auth'
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-ntlm-auth-helpers='SMB,fakeauth,no_check'
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-ntlm-fail-open
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-referer-log
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-snmp
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-ssl
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-storeio='aufs,coss,diskd,ufs,null'
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-useragent-log
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --enable-x-accelerator-vary
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --with-aio
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --with-aufs-threads=8
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --with-large-files
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCONFIGURE_OPTIONS += --with-pthreads
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseCOMPONENT_POST_BUILD_ACTION= \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose (cd $(@D) ; $(PERL) -pi \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose -e 'print q{visible_hostname localhost} if $$. == 1;' \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose -e 's/^\# +cache_effective_user.*/cache_effective_user webservd/g;' \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose -e 's/^\# +dns_testnames.*/dns_testnames localhost/g' \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose src/squid.conf.default )
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit BosePKG_PROTO_DIRS += $(SOURCE_DIR)
939246537b0b9a4af6862c513d3919501ad57d92Sumit BosePKG_PROTO_DIRS += $(COMPONENT_DIR)
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Boseinclude ../../make-rules/shared-targets.mk
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose# common targets
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bosebuild: $(BUILD_32)
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Boseinstall: $(INSTALL_32)
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose sed -f oracleman-stability $(BUILD_DIR_32)/doc/squid.8 \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose > $(PROTOUSRDIR)/squid/man/man8/squid.8
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose sed -f oracleman-stability $(BUILD_DIR_32)/doc/cachemgr.cgi.8 \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose > $(PROTOUSRDIR)/squid/man/man8/cachemgr.cgi.8
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose sed -f oracleman-stability $(SOURCE_DIR)/helpers/basic_auth/NCSA/ncsa_auth.8 \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose > $(PROTOUSRDIR)/squid/man/man8/ncsa_auth.8
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose sed -f oracleman-stability $(SOURCE_DIR)/helpers/basic_auth/PAM/pam_auth.8 \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose > $(PROTOUSRDIR)/squid/man/man8/pam_auth.8
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose sed -f oracleman-stability $(BUILD_DIR_32)/helpers/basic_auth/DB/squid_db_auth.8 \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose > $(PROTOUSRDIR)/squid/man/man8/squid_db_auth.8
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose sed -f oracleman-stability $(SOURCE_DIR)/helpers/basic_auth/LDAP/squid_ldap_auth.8 \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose > $(PROTOUSRDIR)/squid/man/man8/squid_ldap_auth.8
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose sed -f oracleman-stability $(SOURCE_DIR)/helpers/external_acl/ldap_group/squid_ldap_group.8 \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose > $(PROTOUSRDIR)/squid/man/man8/squid_ldap_group.8
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose sed -f oracleman-stability $(SOURCE_DIR)/helpers/external_acl/unix_group/squid_unix_group.8 \
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose > $(PROTOUSRDIR)/squid/man/man8/squid_unix_group.8
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bosetest:
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose @echo "no tests available"
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit BoseBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose
939246537b0b9a4af6862c513d3919501ad57d92Sumit Boseinclude ../../make-rules/depend.mk
939246537b0b9a4af6862c513d3919501ad57d92Sumit Bose