21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 |
26 COMPILER = gcc3 |
26 COMPILER = gcc |
27 |
27 |
28 include ../../make-rules/shared-macros.mk |
28 include ../../make-rules/shared-macros.mk |
29 |
29 |
30 PATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin |
30 PATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin |
31 |
31 |
32 COMPONENT_NAME= squid |
32 COMPONENT_NAME= squid |
33 COMPONENT_VERSION= 3.1.23 |
33 COMPONENT_VERSION= 3.5.5 |
34 COMPONENT_PROJECT_URL= http://www.squid-cache.org/ |
34 COMPONENT_PROJECT_URL= http://www.squid-cache.org/ |
35 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
35 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
37 COMPONENT_ARCHIVE_HASH= \ |
37 COMPONENT_ARCHIVE_HASH= \ |
38 sha256:ba5f6a7000a032f2315923c1b8d0b37458d33a7f59d603facecf9e8c12470b34 |
38 sha256:23793da6b23871765188becae59a6f4b6c3672c256ba9be90743b46a3c7921cf |
39 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.1/$(COMPONENT_ARCHIVE) |
39 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.5/$(COMPONENT_ARCHIVE) |
40 COMPONENT_BUGDB= utility/squid |
40 COMPONENT_BUGDB= utility/squid |
41 |
41 |
42 TPNO= 13323 |
42 TPNO= 23264 |
43 |
43 |
44 include $(WS_MAKE_RULES)/prep.mk |
44 include $(WS_MAKE_RULES)/prep.mk |
45 include $(WS_MAKE_RULES)/configure.mk |
45 include $(WS_MAKE_RULES)/configure.mk |
46 include $(WS_MAKE_RULES)/ips.mk |
46 include $(WS_MAKE_RULES)/ips.mk |
|
47 |
|
48 CC += $(CC_BITS) |
|
49 CXX += $(CC_BITS) |
47 |
50 |
48 CFLAGS += -I/usr/include/kerberosv5 |
51 CFLAGS += -I/usr/include/kerberosv5 |
49 CFLAGS += $(CPP_LARGEFILES) |
52 CFLAGS += $(CPP_LARGEFILES) |
50 |
53 |
51 # Squid has own prefix |
54 # Squid has own prefix |
55 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec |
58 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec |
56 CONFIGURE_OPTIONS += --localstatedir=/var/squid |
59 CONFIGURE_OPTIONS += --localstatedir=/var/squid |
57 CONFIGURE_OPTIONS += --sharedstatedir=/var/squid |
60 CONFIGURE_OPTIONS += --sharedstatedir=/var/squid |
58 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid |
61 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid |
59 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man |
62 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man |
|
63 CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/sbin |
60 CONFIGURE_OPTIONS += --enable-arp-acl |
64 CONFIGURE_OPTIONS += --enable-arp-acl |
61 CONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm' |
65 CONFIGURE_OPTIONS += --enable-auth-basic='DB,NCSA,LDAP,PAM,getpwnam,MSNT-multi-domain,POP3,SMB,SASL' |
62 CONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL' |
|
63 CONFIGURE_OPTIONS += --enable-cache-digests |
66 CONFIGURE_OPTIONS += --enable-cache-digests |
64 CONFIGURE_OPTIONS += --enable-carp |
67 CONFIGURE_OPTIONS += --enable-carp |
65 CONFIGURE_OPTIONS += --enable-coss-aio-ops |
68 CONFIGURE_OPTIONS += --enable-coss-aio-ops |
66 CONFIGURE_OPTIONS += --enable-delay-pools |
69 CONFIGURE_OPTIONS += --enable-delay-pools |
67 CONFIGURE_OPTIONS += --enable-digest-auth-helpers='ldap,password' |
70 CONFIGURE_OPTIONS += --enable-auth-digest='LDAP' |
68 CONFIGURE_OPTIONS += --enable-external-acl-helpers='ip_user,unix_group,ldap_group,wbinfo_group' |
71 CONFIGURE_OPTIONS += --enable-external-acl-helpers='file_userip,unix_group,LDAP_group,wbinfo_group' |
69 CONFIGURE_OPTIONS += --enable-follow-x-forwarded-for |
72 CONFIGURE_OPTIONS += --enable-follow-x-forwarded-for |
70 CONFIGURE_OPTIONS += --enable-forward-log |
73 CONFIGURE_OPTIONS += --enable-forward-log |
71 CONFIGURE_OPTIONS += --enable-forw-via-db |
74 CONFIGURE_OPTIONS += --enable-forw-via-db |
72 CONFIGURE_OPTIONS += --enable-htcp |
75 CONFIGURE_OPTIONS += --enable-htcp |
73 CONFIGURE_OPTIONS += --enable-icmp |
76 CONFIGURE_OPTIONS += --enable-icmp |
74 CONFIGURE_OPTIONS += --enable-large-cache-files |
77 CONFIGURE_OPTIONS += --enable-large-cache-files |
75 CONFIGURE_OPTIONS += --enable-multicast-miss |
78 CONFIGURE_OPTIONS += --enable-multicast-miss |
76 CONFIGURE_OPTIONS += --enable-negotiate-auth-helpers='squid_kerb_auth' |
79 CONFIGURE_OPTIONS += --enable-auth-negotiate='kerberos' |
77 CONFIGURE_OPTIONS += --enable-ntlm-auth-helpers='smb_lm,fakeauth,no_check' |
80 CONFIGURE_OPTIONS += --enable-auth-ntlm='smb_lm,fake' |
78 CONFIGURE_OPTIONS += --enable-ntlm-fail-open |
81 CONFIGURE_OPTIONS += --enable-ntlm-fail-open |
79 CONFIGURE_OPTIONS += --enable-referer-log |
|
80 CONFIGURE_OPTIONS += --enable-removal-policies='heap,lru' |
82 CONFIGURE_OPTIONS += --enable-removal-policies='heap,lru' |
81 CONFIGURE_OPTIONS += --enable-snmp |
83 CONFIGURE_OPTIONS += --enable-snmp |
82 CONFIGURE_OPTIONS += --enable-ssl |
84 CONFIGURE_OPTIONS += --enable-ssl |
83 CONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs' |
85 CONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs' |
84 CONFIGURE_OPTIONS += --enable-useragent-log |
|
85 CONFIGURE_OPTIONS += --enable-x-accelerator-vary |
86 CONFIGURE_OPTIONS += --enable-x-accelerator-vary |
86 CONFIGURE_OPTIONS += --with-aio |
87 CONFIGURE_OPTIONS += --with-aio |
87 CONFIGURE_OPTIONS += --with-aufs-threads=8 |
88 CONFIGURE_OPTIONS += --with-aufs-threads=8 |
88 CONFIGURE_OPTIONS += --with-large-files |
89 CONFIGURE_OPTIONS += --with-large-files |
89 CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG |
90 CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG |
90 CONFIGURE_OPTIONS += --with-pthreads |
91 CONFIGURE_OPTIONS += --with-pthreads |
91 |
92 |
92 COMPONENT_POST_BUILD_ACTION= \ |
93 COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" |
93 (cd $(COMPONENT_DIR) ; \ |
94 |
94 $(CP) files/squid.conf.default $(@D)/src) |
95 # Appends the following line to the end of the squid.conf configuration |
|
96 # file. This line is necessary for running squid for testing. |
|
97 # This starts up squid as user webservd. |
|
98 COMPONENT_POST_INSTALL_ACTION += \ |
|
99 (cd $(PROTO_DIR)/etc/squid ; \ |
|
100 echo '\ncache_effective_user webservd' >> squid.conf) |
|
101 |
|
102 ASLR_MODE = $(ASLR_ENABLE) |
95 |
103 |
96 # common targets |
104 # common targets |
97 build: $(BUILD_32) |
105 build: $(BUILD_32) |
98 |
106 |
99 install: $(INSTALL_32) |
107 install: $(INSTALL_32) |
129 |
141 |
130 |
142 |
131 REQUIRED_PACKAGES += library/libtool/libltdl |
143 REQUIRED_PACKAGES += library/libtool/libltdl |
132 REQUIRED_PACKAGES += library/security/openssl |
144 REQUIRED_PACKAGES += library/security/openssl |
133 REQUIRED_PACKAGES += runtime/perl-512 |
145 REQUIRED_PACKAGES += runtime/perl-512 |
|
146 REQUIRED_PACKAGES += runtime/perl-516 |
134 REQUIRED_PACKAGES += shell/ksh93 |
147 REQUIRED_PACKAGES += shell/ksh93 |
135 REQUIRED_PACKAGES += system/core-os |
148 REQUIRED_PACKAGES += system/core-os |
136 REQUIRED_PACKAGES += system/library |
149 REQUIRED_PACKAGES += system/library |
137 REQUIRED_PACKAGES += system/library/gcc-3-runtime |
150 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
|
151 REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |
138 REQUIRED_PACKAGES += system/library/math |
152 REQUIRED_PACKAGES += system/library/math |
|
153 REQUIRED_PACKAGES += system/library/security/crypto |
139 REQUIRED_PACKAGES += system/library/security/gss |
154 REQUIRED_PACKAGES += system/library/security/gss |
140 REQUIRED_PACKAGES += system/library/security/libsasl |
155 REQUIRED_PACKAGES += system/library/security/libsasl |
141 REQUIRED_PACKAGES += system/network |
156 REQUIRED_PACKAGES += system/network |
|
157 REQUIRED_PACKAGES += service/security/kerberos-5 |