components/squid/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Fri, 27 Apr 2012 13:23:29 -0700
changeset 800 2ad056ed89ec
parent 625 a91e898823c4
child 1058 34d7aaa03423
child 2630 1bd7ef7e23a1
permissions -rw-r--r--
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile 7164671 BUILD_TOOLS should point to on11update-tools now
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     1
#
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     3
#
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     7
#
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    12
#
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    18
#
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    20
#
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    21
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    22
#
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 625
diff changeset
    23
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    24
#
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    25
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    27
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    28
PATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    29
211
f37f16a2a99c 7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    30
COMPONENT_NAME=         squid
625
a91e898823c4 7119933 Upgrade Squid to 3.1.18
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 609
diff changeset
    31
COMPONENT_VERSION=      3.1.18
a91e898823c4 7119933 Upgrade Squid to 3.1.18
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 609
diff changeset
    32
COMPONENT_PROJECT_URL=  http://www.squid-cache.org/
211
f37f16a2a99c 7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    33
COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f37f16a2a99c 7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    34
COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 625
diff changeset
    35
COMPONENT_ARCHIVE_HASH= \
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 625
diff changeset
    36
    sha256:6a7122514d58c3077f2b43c928864be10753d8e2c8439133dacc9eba6c45e00d
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 211
diff changeset
    37
COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)Versions/v3/3.1/$(COMPONENT_ARCHIVE)
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    38
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/prep.mk
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/configure.mk
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    41
include ../../make-rules/ips.mk
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    42
211
f37f16a2a99c 7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    43
COMPILER = gcc
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    44
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    45
CFLAGS += -I/usr/include/kerberosv5
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    46
CFLAGS += $(CPP_LARGEFILES)
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    47
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    48
# Squid has own prefix
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    49
CONFIGURE_PREFIX =	/usr/squid
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    50
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    51
CONFIGURE_OPTIONS +=   CFLAGS="$(CFLAGS)"
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    52
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    53
CONFIGURE_OPTIONS += --localstatedir=/var/squid
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    54
CONFIGURE_OPTIONS += --sharedstatedir=/var/squid
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    56
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS += --enable-arp-acl
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm'
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    59
CONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL'
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    60
CONFIGURE_OPTIONS += --enable-cache-digests
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    61
CONFIGURE_OPTIONS += --enable-carp
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    62
CONFIGURE_OPTIONS += --enable-coss-aio-ops
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    63
CONFIGURE_OPTIONS += --enable-delay-pools
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    64
CONFIGURE_OPTIONS += --enable-digest-auth-helpers='ldap,password'
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    65
CONFIGURE_OPTIONS += --enable-external-acl-helpers='ip_user,unix_group,ldap_group,wbinfo_group'
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    66
CONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    67
CONFIGURE_OPTIONS += --enable-forward-log
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    68
CONFIGURE_OPTIONS += --enable-forw-via-db
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    69
CONFIGURE_OPTIONS += --enable-htcp
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    70
CONFIGURE_OPTIONS += --enable-icmp
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --enable-large-cache-files
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    72
CONFIGURE_OPTIONS += --enable-multicast-miss
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    73
CONFIGURE_OPTIONS += --enable-negotiate-auth-helpers='squid_kerb_auth'
211
f37f16a2a99c 7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    74
CONFIGURE_OPTIONS += --enable-ntlm-auth-helpers='smb_lm,fakeauth,no_check'
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    75
CONFIGURE_OPTIONS += --enable-ntlm-fail-open
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    76
CONFIGURE_OPTIONS += --enable-referer-log
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    77
CONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    78
CONFIGURE_OPTIONS += --enable-snmp
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    79
CONFIGURE_OPTIONS += --enable-ssl
211
f37f16a2a99c 7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    80
CONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs'
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    81
CONFIGURE_OPTIONS += --enable-useragent-log
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    82
CONFIGURE_OPTIONS += --enable-x-accelerator-vary
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    83
CONFIGURE_OPTIONS += --with-aio
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    84
CONFIGURE_OPTIONS += --with-aufs-threads=8
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    85
CONFIGURE_OPTIONS += --with-large-files
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    86
CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    87
CONFIGURE_OPTIONS += --with-pthreads
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    88
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    89
COMPONENT_POST_BUILD_ACTION= \
211
f37f16a2a99c 7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    90
                (cd $(COMPONENT_DIR) ; \
f37f16a2a99c 7035372 update squid to 3.1.8
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents: 181
diff changeset
    91
                 $(CP) squid.conf.default $(@D)/src)
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    92
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    93
# common targets
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    94
build:		$(BUILD_32) 
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    95
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    96
install:	$(INSTALL_32) 
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    97
		
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 163
diff changeset
    98
test:		$(NO_TESTS)
163
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
    99
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
   100
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
   101
492ba3a66c6f 7029211 Move squid to userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
diff changeset
   102
include ../../make-rules/depend.mk