18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 PATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin |
28 PATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin |
29 |
29 |
30 COMPONENT_NAME= squid |
30 COMPONENT_NAME= squid |
31 COMPONENT_VERSION= 3.1.18 |
31 COMPONENT_VERSION= 3.1.23 |
32 COMPONENT_PROJECT_URL= http://www.squid-cache.org/ |
32 COMPONENT_PROJECT_URL= http://www.squid-cache.org/ |
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
35 COMPONENT_ARCHIVE_HASH= \ |
35 COMPONENT_ARCHIVE_HASH= \ |
36 sha256:6a7122514d58c3077f2b43c928864be10753d8e2c8439133dacc9eba6c45e00d |
36 sha256:ba5f6a7000a032f2315923c1b8d0b37458d33a7f59d603facecf9e8c12470b34 |
37 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.1/$(COMPONENT_ARCHIVE) |
37 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)Versions/v3/3.1/$(COMPONENT_ARCHIVE) |
38 COMPONENT_BUGDB= utility/squid |
38 COMPONENT_BUGDB= utility/squid |
39 |
39 |
40 include ../../make-rules/prep.mk |
40 include ../../make-rules/prep.mk |
41 include ../../make-rules/configure.mk |
41 include ../../make-rules/configure.mk |
87 CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG |
87 CONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG |
88 CONFIGURE_OPTIONS += --with-pthreads |
88 CONFIGURE_OPTIONS += --with-pthreads |
89 |
89 |
90 COMPONENT_POST_BUILD_ACTION= \ |
90 COMPONENT_POST_BUILD_ACTION= \ |
91 (cd $(COMPONENT_DIR) ; \ |
91 (cd $(COMPONENT_DIR) ; \ |
92 $(CP) squid.conf.default $(@D)/src) |
92 $(CP) files/squid.conf.default $(@D)/src) |
93 |
93 |
94 # common targets |
94 # common targets |
95 build: $(BUILD_32) |
95 build: $(BUILD_32) |
96 |
96 |
97 install: $(INSTALL_32) |
97 install: $(INSTALL_32) |
98 |
98 |
|
99 # configure says it needs cppunit to test with. |
|
100 # After some work I can get cppunit to build but it quickly |
|
101 # falls over during test so giving up. |
|
102 # I don't think the test suite really tests squid's functionality anyways. |
|
103 # |
|
104 # To test manually follow along in the book |
|
105 # Squid Proxy Server 3.1 Beginner's Guide Page 34 |
|
106 # |
|
107 # Add this to the top of /etc/squid/squid.conf: |
|
108 # cache_dir ufs /var/squid/cache/ 500 16 256 |
|
109 # acl my_machine src 192.0.2.21 # Replace with your desktop's IP address |
|
110 # http_access allow my_machine |
|
111 # |
|
112 # Make sure apache is running. |
|
113 # # svcs apache22 |
|
114 # Start squid: |
|
115 # # svcadm enable squid |
|
116 # On your desktop set your web browser to proxy through this squid: |
|
117 # Edit -> Preferences -> Advanced -> Network -> Settings |
|
118 # Check: Manual proxy configuration |
|
119 # HTTP Proxy: <squid servers IP address> Port: 3128 |
|
120 # Save |
|
121 # Enter <squid server URL> in your web browser. You should be accessing squid |
|
122 # and seeing files stored in the http server on that machine. |
|
123 # Enter <squid server URL>:897 in your web browser and squid should complain. |
|
124 # Squid is working properly. |
|
125 |
99 test: $(NO_TESTS) |
126 test: $(NO_TESTS) |
100 |
127 |
101 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
128 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
102 |
129 |
103 include ../../make-rules/depend.mk |
130 include ../../make-rules/depend.mk |