| 1 | NAME = nginx |
|---|
| 2 | VERSION = 1.1.8 |
|---|
| 3 | CATEGORIES = server |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | GARCOMPILER = SOS11 |
|---|
| 7 | |
|---|
| 8 | DESCRIPTION = HTTP server and mail proxy server |
|---|
| 9 | define BLURB |
|---|
| 10 | Nginx (pronounced "engine x") is a free, open-source, high-performance |
|---|
| 11 | HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. |
|---|
| 12 | endef |
|---|
| 13 | |
|---|
| 14 | MASTER_SITES = http://nginx.org/download/ |
|---|
| 15 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 16 | DISTFILES += cswnginx |
|---|
| 17 | |
|---|
| 18 | LICENSE = LICENSE |
|---|
| 19 | |
|---|
| 20 | # We define upstream file regex so we can be notifed of new upstream software release |
|---|
| 21 | UFILES_REGEX = -(\d+(?:\.\d+)*).tar.gz |
|---|
| 22 | |
|---|
| 23 | BUILD_DEP_PKGS = CSWlibz-dev |
|---|
| 24 | RUNTIME_DEP_PKGS = CSWosslrt CSWlibpcre0 CSWlibz1 CSWperl |
|---|
| 25 | |
|---|
| 26 | PACKAGING_PLATFORMS = solaris9-sparc solaris9-i386 |
|---|
| 27 | PACKAGING_PLATFORMS += solaris10-sparc solaris10-i386 |
|---|
| 28 | |
|---|
| 29 | # default sparc arch is set to sparcv8plus because nginx contains |
|---|
| 30 | # assembler parts specific to v8plus and v9 arches: |
|---|
| 31 | # .inline ngx_casa,0 |
|---|
| 32 | # casa [%o2] 0x80, %o1, %o0 |
|---|
| 33 | # .end |
|---|
| 34 | # |
|---|
| 35 | # .inline ngx_casxa,0 |
|---|
| 36 | # casxa [%o2] 0x80, %o1, %o0 |
|---|
| 37 | # .end |
|---|
| 38 | |
|---|
| 39 | ISAEXEC = 1 |
|---|
| 40 | ISA_DEFAULT_sparc = sparcv8plus |
|---|
| 41 | EXTRA_BUILD_ISAS_i386 = amd64 |
|---|
| 42 | EXTRA_BUILD_ISAS_sparc = sparcv9 |
|---|
| 43 | |
|---|
| 44 | NGINXCPU_i386 = pentium3 |
|---|
| 45 | NGINXCPU_pentium_pro = pentium3 |
|---|
| 46 | NGINXCPU_sparcv8plus = sparc32 |
|---|
| 47 | NGINXCPU_sparcv9 = sparc64 |
|---|
| 48 | NGINXCPU_$(ISA) ?= $(ISA) |
|---|
| 49 | NGINXCPU = $(NGINXCPU_$(ISA)) |
|---|
| 50 | |
|---|
| 51 | CFLAGS = |
|---|
| 52 | |
|---|
| 53 | sysconfdir=/etc/opt/csw |
|---|
| 54 | localstatedir=/var/opt/csw |
|---|
| 55 | |
|---|
| 56 | #CONFIGURE_ARGS += --with-debug |
|---|
| 57 | CONFIGURE_ARGS += --with-cpu-opt=$(NGINXCPU) |
|---|
| 58 | CONFIGURE_ARGS += --with-cc-opt="-I$(includedir) -I$(includedir)/openssl" |
|---|
| 59 | CONFIGURE_ARGS += --with-ld-opt="$(LDFLAGS)" |
|---|
| 60 | CONFIGURE_ARGS += --lock-path=/var/run/nginx/nginx.lock |
|---|
| 61 | CONFIGURE_ARGS += --pid-path=/var/run/nginx/nginx.pid |
|---|
| 62 | CONFIGURE_ARGS += --conf-path=$(sysconfdir)/nginx/nginx.conf |
|---|
| 63 | CONFIGURE_ARGS += --sbin-path=$(sbindir)/nginx |
|---|
| 64 | CONFIGURE_ARGS += --prefix=$(localstatedir)/nginx |
|---|
| 65 | CONFIGURE_ARGS += --http-client-body-temp-path=$(localstatedir)/nginx/client |
|---|
| 66 | CONFIGURE_ARGS += --http-fastcgi-temp-path=$(localstatedir)/nginx/fastcgi |
|---|
| 67 | CONFIGURE_ARGS += --http-scgi-temp-path=$(localstatedir)/nginx/scgi |
|---|
| 68 | CONFIGURE_ARGS += --http-uwsgi-temp-path=$(localstatedir)/nginx/uwsgi |
|---|
| 69 | CONFIGURE_ARGS += --http-proxy-temp-path=$(localstatedir)/nginx/proxy |
|---|
| 70 | CONFIGURE_ARGS += --error-log-path=$(localstatedir)/nginx/logs/error.log |
|---|
| 71 | CONFIGURE_ARGS += --http-log-path=$(localstatedir)/nginx/logs/access.log |
|---|
| 72 | CONFIGURE_ARGS += --with-ipv6 |
|---|
| 73 | CONFIGURE_ARGS += --with-http_addition_module |
|---|
| 74 | CONFIGURE_ARGS += --with-http_dav_module |
|---|
| 75 | CONFIGURE_ARGS += --with-http_flv_module |
|---|
| 76 | CONFIGURE_ARGS += --with-http_realip_module |
|---|
| 77 | CONFIGURE_ARGS += --with-http_secure_link_module |
|---|
| 78 | CONFIGURE_ARGS += --with-http_ssl_module |
|---|
| 79 | CONFIGURE_ARGS += --with-http_stub_status_module |
|---|
| 80 | |
|---|
| 81 | TEST_SCRIPTS = |
|---|
| 82 | |
|---|
| 83 | INITSMF = $(sysconfdir)/init.d/cswnginx |
|---|
| 84 | PRESERVECONF = $(sysconfdir)/nginx/fastcgi.conf $(sysconfdir)/nginx/fastcgi_params $(sysconfdir)/nginx/mime.types $(sysconfdir)/nginx/nginx.conf $(sysconfdir)/nginx/scgi_params $(sysconfdir)/nginx/uwsgi_params $(localstatedir)/nginx/html/50x.html $(localstatedir)/nginx/html/index.html |
|---|
| 85 | |
|---|
| 86 | NGINXDOCS = CHANGES CHANGES.ru LICENSE README |
|---|
| 87 | |
|---|
| 88 | |
|---|
| 89 | include gar/category.mk |
|---|
| 90 | |
|---|
| 91 | post-configure-modulated: |
|---|
| 92 | gsed -i s#/...ISALIST#/'$$ISALIST'# $(WORKSRC)/objs/ngx_auto_config.h |
|---|
| 93 | gsed -i 's# pause# rep; nop#' $(WORKSRC)/src/os/unix/ngx_sunpro_amd64.il |
|---|
| 94 | $(MAKECOOKIE) |
|---|
| 95 | |
|---|
| 96 | post-install-modulated: |
|---|
| 97 | ginstall -d $(DESTDIR)$(sysconfdir)/init.d |
|---|
| 98 | ginstall -d $(DESTDIR)$(sysconfdir)/nginx/conf.d |
|---|
| 99 | ginstall -d $(DESTDIR)$(sharedstatedir)/nginx/contrib |
|---|
| 100 | ginstall -d $(DESTDIR)$(docdir)/nginx |
|---|
| 101 | ginstall -d $(DESTDIR)$(localstatedir)/nginx/client |
|---|
| 102 | ginstall -d $(DESTDIR)$(localstatedir)/nginx/fastcgi |
|---|
| 103 | ginstall -d $(DESTDIR)$(localstatedir)/nginx/logs |
|---|
| 104 | ginstall -d $(DESTDIR)$(localstatedir)/nginx/proxy |
|---|
| 105 | ginstall -d $(DESTDIR)$(localstatedir)/nginx/scgi |
|---|
| 106 | ginstall -d $(DESTDIR)$(localstatedir)/nginx/sites |
|---|
| 107 | ginstall -d $(DESTDIR)$(localstatedir)/nginx/uwsgi |
|---|
| 108 | cp $(WORKDIR)/cswnginx $(DESTDIR)$(sysconfdir)/init.d/ |
|---|
| 109 | cd $(WORKSRC); \ |
|---|
| 110 | cp -r contrib/* $(DESTDIR)$(sharedstatedir)/nginx/contrib; \ |
|---|
| 111 | cp $(NGINXDOCS) $(DESTDIR)$(docdir)/nginx |
|---|
| 112 | rm -rf $(DESTDIR)/var/run/nginx |
|---|
| 113 | $(MAKECOOKIE) |
|---|