20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 BUILD_BITS= 64 |
26 COMPILER = gcc |
26 COMPILER= gcc |
27 |
|
28 include ../../make-rules/shared-macros.mk |
27 include ../../make-rules/shared-macros.mk |
29 |
28 |
30 PATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin |
29 PATH=$(USRBINDIR):$(GNUBIN):$(USRSBINDIR):$(USRDIR)/perl5/bin |
31 |
30 |
32 COMPONENT_NAME= squid |
31 COMPONENT_NAME= squid |
33 COMPONENT_VERSION= 3.5.5 |
32 COMPONENT_VERSION= 3.5.5 |
34 COMPONENT_PROJECT_URL= http://www.squid-cache.org/ |
33 COMPONENT_PROJECT_URL= http://www.squid-cache.org/ |
35 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
37 COMPONENT_ARCHIVE_HASH= \ |
35 COMPONENT_ARCHIVE_HASH= \ |
38 sha256:23793da6b23871765188becae59a6f4b6c3672c256ba9be90743b46a3c7921cf |
36 sha256:23793da6b23871765188becae59a6f4b6c3672c256ba9be90743b46a3c7921cf |
39 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.5/$(COMPONENT_ARCHIVE) |
37 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.5/$(COMPONENT_ARCHIVE) |
40 COMPONENT_BUGDB= utility/squid |
|
41 |
38 |
42 TPNO= 23264 |
39 TPNO= 23264 |
43 |
40 |
44 include $(WS_MAKE_RULES)/prep.mk |
41 TEST_TARGET= $(NO_TESTS) |
45 include $(WS_MAKE_RULES)/configure.mk |
42 include $(WS_MAKE_RULES)/common.mk |
46 include $(WS_MAKE_RULES)/ips.mk |
|
47 |
43 |
48 CC += $(CC_BITS) |
44 CFLAGS += -I$(USRINCDIR)/kerberosv5 |
49 CXX += $(CC_BITS) |
|
50 |
|
51 CFLAGS += -I/usr/include/kerberosv5 |
|
52 CFLAGS += $(CPP_LARGEFILES) |
45 CFLAGS += $(CPP_LARGEFILES) |
53 |
46 |
54 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
|
55 CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib |
47 CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib |
56 CONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64" |
|
57 CONFIGURE_OPTIONS.64 += LIBS="-m64" |
|
58 |
48 |
59 # Squid has own prefix |
49 # Squid has own prefix |
60 CONFIGURE_PREFIX = /usr/squid |
50 CONFIGURE_PREFIX = $(USRDIR)/squid |
61 |
51 |
62 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
63 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec |
52 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec |
64 CONFIGURE_OPTIONS += --localstatedir=/var/squid |
53 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/squid |
65 CONFIGURE_OPTIONS += --sharedstatedir=/var/squid |
54 CONFIGURE_OPTIONS += --sharedstatedir=$(VARDIR)/squid |
66 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid |
55 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid |
67 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man |
56 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man |
68 CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/sbin |
57 CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/sbin |
69 CONFIGURE_OPTIONS += --enable-arp-acl |
58 CONFIGURE_OPTIONS += --enable-arp-acl |
70 CONFIGURE_OPTIONS += --enable-auth-basic='DB,NCSA,NIS,LDAP,PAM,getpwnam,MSNT-multi-domain,POP3,SMB,SMB_LM,SASL' |
59 CONFIGURE_OPTIONS += --enable-auth-basic='DB,NCSA,NIS,LDAP,PAM,getpwnam,MSNT-multi-domain,POP3,SMB,SMB_LM,SASL' |
94 CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG |
83 CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG |
95 CONFIGURE_OPTIONS += --with-pthreads |
84 CONFIGURE_OPTIONS += --with-pthreads |
96 CONFIGURE_OPTIONS += --without-nettle |
85 CONFIGURE_OPTIONS += --without-nettle |
97 CONFIGURE_OPTIONS += --disable-arch-native |
86 CONFIGURE_OPTIONS += --disable-arch-native |
98 |
87 |
99 COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" |
|
100 |
|
101 # Appends the following line to the end of the squid.conf configuration |
88 # Appends the following line to the end of the squid.conf configuration |
102 # file. This line is necessary for running squid for testing. |
89 # file. This line is necessary for running squid for testing. |
103 # This starts up squid as user webservd. |
90 # This starts up squid as user webservd. |
104 COMPONENT_POST_INSTALL_ACTION += \ |
91 COMPONENT_POST_INSTALL_ACTION += \ |
105 (cd $(PROTO_DIR)/etc/squid ; \ |
92 (cd $(PROTO_DIR)/etc/squid ; \ |
106 echo '\ncache_effective_user webservd' >> squid.conf) |
93 echo '\ncache_effective_user webservd' >> squid.conf) |
107 |
|
108 ASLR_MODE = $(ASLR_ENABLE) |
|
109 |
|
110 # common targets |
|
111 configure: $(CONFIGURE_64) |
|
112 |
|
113 build: $(BUILD_64) |
|
114 |
|
115 install: $(INSTALL_64) |
|
116 |
94 |
117 # configure says it needs cppunit to test with. |
95 # configure says it needs cppunit to test with. |
118 # After some work I can get cppunit to build but it quickly |
96 # After some work I can get cppunit to build but it quickly |
119 # falls over during test so giving up. |
97 # falls over during test so giving up. |
120 # I don't think the test suite really tests squid's functionality anyways. |
98 # I don't think the test suite really tests squid's functionality anyways. |
143 # Enter <squid server URL> in your web browser. You should be accessing squid |
121 # Enter <squid server URL> in your web browser. You should be accessing squid |
144 # and seeing files stored in the http server on that machine. |
122 # and seeing files stored in the http server on that machine. |
145 # Enter <squid server URL>:897 in your web browser and squid should complain. |
123 # Enter <squid server URL>:897 in your web browser and squid should complain. |
146 # Squid is working properly. |
124 # Squid is working properly. |
147 |
125 |
148 test: $(NO_TESTS) |
|
149 |
|
150 system-test: $(NO_TESTS) |
|
151 |
|
152 |
|
153 REQUIRED_PACKAGES += library/libtool/libltdl |
126 REQUIRED_PACKAGES += library/libtool/libltdl |
154 REQUIRED_PACKAGES += library/security/openssl |
127 REQUIRED_PACKAGES += library/security/openssl |
155 REQUIRED_PACKAGES += runtime/perl-512 |
128 REQUIRED_PACKAGES += runtime/perl-512 |
156 REQUIRED_PACKAGES += runtime/perl-520 |
129 REQUIRED_PACKAGES += runtime/perl-520 |
157 REQUIRED_PACKAGES += shell/ksh93 |
130 REQUIRED_PACKAGES += shell/ksh93 |
158 REQUIRED_PACKAGES += system/core-os |
131 REQUIRED_PACKAGES += system/core-os |
159 REQUIRED_PACKAGES += system/library |
|
160 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
132 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
161 REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |
133 REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |
162 REQUIRED_PACKAGES += system/library/math |
134 REQUIRED_PACKAGES += system/library/math |
163 REQUIRED_PACKAGES += system/library/security/crypto |
135 REQUIRED_PACKAGES += system/library/security/crypto |
164 REQUIRED_PACKAGES += system/library/security/gss |
136 REQUIRED_PACKAGES += system/library/security/gss |