0
|
1 |
#
|
|
2 |
#
|
|
3 |
# CDDL HEADER START
|
|
4 |
#
|
|
5 |
# The contents of this file are subject to the terms of the
|
|
6 |
# Common Development and Distribution License (the "License").
|
|
7 |
# You may not use this file except in compliance with the License.
|
|
8 |
#
|
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10 |
# or http://www.opensolaris.org/os/licensing.
|
|
11 |
# See the License for the specific language governing permissions
|
|
12 |
# and limitations under the License.
|
|
13 |
#
|
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19 |
#
|
|
20 |
# CDDL HEADER END
|
|
21 |
#
|
14
|
22 |
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
|
0
|
23 |
#
|
14
|
24 |
# ident "@(#)Makefile.sfw 1.9 10/04/30 SMI"
|
0
|
25 |
#
|
|
26 |
|
14
|
27 |
include ../Makefile.cmd
|
|
28 |
|
|
29 |
VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
|
|
30 |
TARBALL = $(COMPONENT_ARCHIVE:sh)
|
|
31 |
PATCHES:sh = echo Patches/*.patch
|
0
|
32 |
|
14
|
33 |
# Squid has own prefix
|
|
34 |
CONFIGURE_OPTIONS = --prefix=$(CFGPREFIX)/squid
|
|
35 |
CONFIGURE_OPTIONS += --libexecdir=$(CFGPREFIX)/squid/libexec
|
|
36 |
CONFIGURE_OPTIONS += --localstatedir=/var/squid
|
|
37 |
CONFIGURE_OPTIONS += --sharedstatedir=/var/squid
|
|
38 |
CONFIGURE_OPTIONS += --sysconfdir=$(CFGETC)/squid
|
|
39 |
CONFIGURE_OPTIONS += --enable-arp-acl
|
|
40 |
CONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm'
|
|
41 |
CONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL'
|
|
42 |
CONFIGURE_OPTIONS += --enable-cache-digests
|
|
43 |
CONFIGURE_OPTIONS += --enable-carp
|
|
44 |
CONFIGURE_OPTIONS += --enable-coss-aio-ops
|
|
45 |
CONFIGURE_OPTIONS += --enable-delay-pools
|
|
46 |
CONFIGURE_OPTIONS += --enable-digest-auth-helpers='ldap,password'
|
|
47 |
CONFIGURE_OPTIONS += --enable-external-acl-helpers='ip_user,unix_group,ldap_group,wbinfo_group'
|
|
48 |
CONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
|
|
49 |
CONFIGURE_OPTIONS += --enable-forward-log
|
|
50 |
CONFIGURE_OPTIONS += --enable-forw-via-db
|
|
51 |
CONFIGURE_OPTIONS += --enable-htcp
|
|
52 |
CONFIGURE_OPTIONS += --enable-icmp
|
|
53 |
CONFIGURE_OPTIONS += --enable-large-cache-files
|
|
54 |
CONFIGURE_OPTIONS += --enable-multicast-miss
|
|
55 |
CONFIGURE_OPTIONS += --enable-negotiate-auth-helpers='squid_kerb_auth'
|
|
56 |
CONFIGURE_OPTIONS += --enable-ntlm-auth-helpers='SMB,fakeauth,no_check'
|
|
57 |
CONFIGURE_OPTIONS += --enable-ntlm-fail-open
|
|
58 |
CONFIGURE_OPTIONS += --enable-referer-log
|
|
59 |
CONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
|
|
60 |
CONFIGURE_OPTIONS += --enable-snmp
|
|
61 |
CONFIGURE_OPTIONS += --enable-ssl
|
|
62 |
CONFIGURE_OPTIONS += --enable-storeio='aufs,coss,diskd,ufs,null'
|
|
63 |
CONFIGURE_OPTIONS += --enable-useragent-log
|
|
64 |
CONFIGURE_OPTIONS += --enable-x-accelerator-vary
|
|
65 |
CONFIGURE_OPTIONS += --with-aio
|
|
66 |
CONFIGURE_OPTIONS += --with-aufs-threads=8
|
|
67 |
CONFIGURE_OPTIONS += --with-large-files
|
|
68 |
CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
|
|
69 |
CONFIGURE_OPTIONS += --with-pthreads
|
0
|
70 |
|
|
71 |
SFW_PATH="/usr/perl5/bin:/usr/sfw/bin:$(PATH)"
|
|
72 |
|
|
73 |
all: $(VER)/config.status
|
|
74 |
(cd $(VER); env - \
|
|
75 |
PATH=$(SFW_PATH) \
|
|
76 |
MAKE=$(CCSMAKE) \
|
|
77 |
$(CCSMAKE) 2>&1 ; \
|
|
78 |
perl -pi \
|
|
79 |
-e 'print q{visible_hostname localhost} if $$. == 1;' \
|
|
80 |
-e 's/^\# +cache_effective_user.*/cache_effective_user webservd/g;' \
|
|
81 |
-e 's/^\# +dns_testnames.*/dns_testnames localhost/g' \
|
|
82 |
src/squid.conf.default )
|
|
83 |
|
|
84 |
install: all
|
|
85 |
$(SHELL) ./install-squid $(VER)
|
|
86 |
|
|
87 |
$(VER)/config.status: $(VER)/configure
|
|
88 |
(cd $(VER); \
|
|
89 |
/usr/perl5/bin/perl -pi -e 's/^KERBLIBS =.*/KERBLIBS =-R \/usr\/lib\/gss -L\/usr\/lib\/gss -lgss \/usr\/lib\/gss\/mech_krb5.so -lkrb5 -lsocket /g' \
|
|
90 |
helpers/negotiate_auth/squid_kerb_auth/Makefile.*; \
|
|
91 |
env - \
|
|
92 |
PATH=$(SFW_PATH) \
|
|
93 |
"CC=$(CC)" \
|
|
94 |
"CXX=$(CCC)" \
|
|
95 |
"CFLAGS= $(CFLAGS) -D__BIG_ENDIAN__ -DSOLARIS_11 -I /usr/include/kerberosv5 " \
|
|
96 |
"LDFLAGS=-R/usr/sfw/lib -L/usr/sfw/lib " \
|
|
97 |
MAKE=$(CCSMAKE) \
|
14
|
98 |
$(SHELL) ./configure $(CONFIGURE_OPTIONS); \
|
0
|
99 |
/usr/perl5/bin/perl -pi -e 's/-lsasl2/-lsasl/g' \
|
|
100 |
helpers/basic_auth/SASL/Makefile )
|
|
101 |
|
14
|
102 |
$(VER)/configure: $(VER)/$(SFW_STAMP_PATCHED)
|
|
103 |
$(TOUCH) $@
|
0
|
104 |
|
|
105 |
clean:
|
|
106 |
-rm -rf $(VER)
|
|
107 |
|
|
108 |
include ../Makefile.targ
|
|
109 |
|
|
110 |
FRC:
|