18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2015, 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 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= privoxy |
28 COMPONENT_NAME= privoxy |
29 COMPONENT_VERSION= 3.0.23 |
29 COMPONENT_VERSION= 3.0.23 |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-stable |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-stable |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz |
32 COMPONENT_PROJECT_URL= http://www.privoxy.org/ |
32 COMPONENT_PROJECT_URL= http://www.privoxy.org/ |
33 COMPONENT_ARCHIVE_HASH= \ |
33 COMPONENT_ARCHIVE_HASH= \ |
34 sha256:b75f6b8b8409ed7ac6c3a00dcd608a45180f07bfa46658c836d5c6ffc4dc25c4 |
34 sha256:b75f6b8b8409ed7ac6c3a00dcd608a45180f07bfa46658c836d5c6ffc4dc25c4 |
35 COMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/ijbswa/$(COMPONENT_ARCHIVE) |
35 COMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/ijbswa/$(COMPONENT_ARCHIVE) |
36 COMPONENT_BUGDB= utility/privoxy |
|
37 |
36 |
38 TPNO= 22977 |
37 TPNO= 22977 |
39 |
38 |
40 include $(WS_MAKE_RULES)/prep.mk |
39 TEST_TARGET= $(NO_TESTS) |
41 include $(WS_MAKE_RULES)/configure.mk |
40 include $(WS_MAKE_RULES)/common.mk |
42 include $(WS_MAKE_RULES)/ips.mk |
41 |
|
42 # Fix 64-bit linking via compiler. |
|
43 LDFLAGS += $(CC_BITS) |
43 |
44 |
44 COMPONENT_PRE_CONFIGURE_ACTION = \ |
45 COMPONENT_PRE_CONFIGURE_ACTION = \ |
45 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
46 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
46 |
47 |
47 COMPONENT_PREP_ACTION = \ |
48 COMPONENT_PREP_ACTION = \ |
48 (cd $(@D) ; \ |
49 (cd $(@D) ; \ |
49 autoheader; \ |
50 autoheader; \ |
50 autoconf ) |
51 autoconf ) |
51 |
52 |
52 CC += $(CC_BITS) |
|
53 |
|
54 # Needed to installed most of the files into the proto area. |
53 # Needed to installed most of the files into the proto area. |
55 CONFIGURE_OPTIONS += --sysconfdir=/etc |
54 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
56 CONFIGURE_OPTIONS += --localstatedir=/var |
55 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR) |
57 CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/lib |
56 CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/lib |
58 |
57 |
59 ASLR_MODE = $(ASLR_ENABLE) |
|
60 |
|
61 # common targets |
58 # common targets |
62 configure: $(CONFIGURE_64) |
59 COMPONENT_POST_INSTALL_ACTION += \ |
63 |
60 ($(CP) $(BUILD_DIR_64)/templates/* $(PROTOETCDIR)/templates) |
64 build: $(BUILD_64) |
|
65 |
|
66 install: $(INSTALL_64) |
|
67 $(CP) $(BUILD_DIR_64)/templates/* $(PROTOETCDIR)/templates |
|
68 |
61 |
69 # Regression tests exist for privoxy in tools/privoxy-regression-test.pl, |
62 # Regression tests exist for privoxy in tools/privoxy-regression-test.pl, |
70 # however these are not applicable to us since they violate the company policy |
63 # however these are not applicable to us since they violate the company policy |
71 # of not allowing third-party programs to communicate outside the company. |
64 # of not allowing third-party programs to communicate outside the company. |
72 # |
65 # |
77 # # svcs privoxy |
70 # # svcs privoxy |
78 # # svcadm enable privoxy |
71 # # svcadm enable privoxy |
79 # You may need to set the forward address in /etc/privoxy/config to the |
72 # You may need to set the forward address in /etc/privoxy/config to the |
80 # Oracle proxy to access pages in your web browser with privoxy running. |
73 # Oracle proxy to access pages in your web browser with privoxy running. |
81 |
74 |
82 test: $(NO_TESTS) |
|
83 |
|
84 system-test: $(NO_TESTS) |
|
85 |
|
86 |
|
87 REQUIRED_PACKAGES += library/pcre |
75 REQUIRED_PACKAGES += library/pcre |
88 REQUIRED_PACKAGES += library/zlib |
76 REQUIRED_PACKAGES += library/zlib |
89 REQUIRED_PACKAGES += shell/ksh93 |
77 REQUIRED_PACKAGES += shell/ksh93 |
90 REQUIRED_PACKAGES += system/core-os |
78 REQUIRED_PACKAGES += system/core-os |
91 REQUIRED_PACKAGES += system/library |
|
92 REQUIRED_PACKAGES += system/network |
79 REQUIRED_PACKAGES += system/network |