gtk+3: fix dependencies for new gnome/accessibility/at-spi2-core
[oi-userland.git] / components / web / nginx / Makefile
blob8d09d0e19dd96762f50b2540596e52db3606fc68
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2012-2013, EveryCity Ltd. All rights reserved.
15 BUILD_BITS= 64
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= nginx
19 COMPONENT_VERSION= 1.25.5
20 COMPONENT_SUMMARY= Nginx Webserver
21 COMPONENT_PROJECT_URL= https://nginx.org/
22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
24 COMPONENT_ARCHIVE_HASH= sha256:2fe2294f8af4144e7e842eaea884182a84ee7970e11046ba98194400902bbec0
25 COMPONENT_ARCHIVE_URL= https://nginx.org/download/$(COMPONENT_ARCHIVE)
26 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
27 COMPONENT_FMRI= web/server/nginx
28 COMPONENT_CLASSIFICATION= Web Services/Application and Web Servers
29 COMPONENT_LICENSE= BSD
30 COMPONENT_LICENSE_FILE= LICENSE
31 COMPONENT_REVISION= 1
33 NGX_FANCYINDEX_VERSION= 0.5.2
35 TEST_TARGET= $(NO_TESTS)
36 include $(WS_MAKE_RULES)/common.mk
38 CPPFLAGS += -I$(OPENSSL_INCDIR)
39 LDFLAGS += -L$(OPENSSL_LIBDIR)
41 CONFIGURE_OPTIONS = --prefix=$(ETCDIR)/nginx
42 CONFIGURE_OPTIONS += --add-module=$(@D)/ngx-fancyindex
43 CONFIGURE_OPTIONS += --conf-path=$(ETCDIR)/nginx/nginx.conf
44 CONFIGURE_OPTIONS += --error-log-path=$(VARDIR)/nginx/logs/error_log
45 CONFIGURE_OPTIONS += --group=webservd
46 CONFIGURE_OPTIONS += --http-log-path=$(VARDIR)/nginx/logs/access_log
47 CONFIGURE_OPTIONS += --lock-path=$(VARDIR)/run/nginx
48 CONFIGURE_OPTIONS += --pid-path=$(VARDIR)/run/nginx
49 CONFIGURE_OPTIONS += --sbin-path=$(USRDIR)/sbin/nginx
50 CONFIGURE_OPTIONS += --user=webservd
51 CONFIGURE_OPTIONS += --with-cc-opt="-I$(OPENSSL_INCDIR)"
52 CONFIGURE_OPTIONS += --with-cc="$(CC) $(CC_BITS)"
53 CONFIGURE_OPTIONS += --with-http_addition_module
54 CONFIGURE_OPTIONS += --with-http_dav_module
55 CONFIGURE_OPTIONS += --with-http_flv_module
56 CONFIGURE_OPTIONS += --with-http_geoip_module
57 CONFIGURE_OPTIONS += --with-http_gunzip_module
58 CONFIGURE_OPTIONS += --with-http_gzip_static_module
59 CONFIGURE_OPTIONS += --with-http_mp4_module
60 CONFIGURE_OPTIONS += --with-http_realip_module
61 CONFIGURE_OPTIONS += --with-http_secure_link_module
62 CONFIGURE_OPTIONS += --with-http_ssl_module
63 CONFIGURE_OPTIONS += --with-http_stub_status_module
64 CONFIGURE_OPTIONS += --with-http_sub_module
65 CONFIGURE_OPTIONS += --with-http_v2_module
66 CONFIGURE_OPTIONS += --with-http_xslt_module
67 CONFIGURE_OPTIONS += --with-ld-opt="$(LD_BITS) -L$(OPENSSL_LIBDIR)"
68 CONFIGURE_OPTIONS += --with-mail
69 CONFIGURE_OPTIONS += --with-mail_ssl_module
70 CONFIGURE_OPTIONS += --with-stream
71 CONFIGURE_OPTIONS += --with-stream_ssl_module
72 CONFIGURE_OPTIONS += --with-threads
74 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D) && \
75 git clone https://github.com/aperezdc/ngx-fancyindex.git $(@D)/ngx-fancyindex && \
76 cd $(@D)/ngx-fancyindex && \
77 git checkout v$(NGX_FANCYINDEX_VERSION))
79 COMPONENT_POST_INSTALL_ACTION+= \
80 ( $(MKDIR) $(PROTO_DIR)/var/nginx/logs )
82 # Auto-generated dependencies
83 REQUIRED_PACKAGES += SUNWcs
84 REQUIRED_PACKAGES += database/geoip
85 REQUIRED_PACKAGES += library/libxml2
86 REQUIRED_PACKAGES += library/libxslt
87 REQUIRED_PACKAGES += library/pcre2
88 REQUIRED_PACKAGES += library/security/openssl-31
89 REQUIRED_PACKAGES += library/zlib
90 REQUIRED_PACKAGES += shell/ksh93
91 REQUIRED_PACKAGES += system/library