1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/nginx/trunk/Makefile

Revision 16916, 4.0 KB (checked in by dmichelsen, 4 months ago)

WHOLE TREE: Explicitly set GARTYPE to current default 'v2'

Line 
1NAME       = nginx
2VERSION    = 1.1.8
3CATEGORIES = server
4GARTYPE = v2
5
6GARCOMPILER = SOS11
7
8DESCRIPTION = HTTP server and mail proxy server
9define 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.
12endef
13
14MASTER_SITES = http://nginx.org/download/
15DISTFILES    = $(NAME)-$(VERSION).tar.gz
16DISTFILES   += cswnginx
17
18LICENSE      = LICENSE
19
20# We define upstream file regex so we can be notifed of new upstream software release
21UFILES_REGEX = -(\d+(?:\.\d+)*).tar.gz
22
23BUILD_DEP_PKGS = CSWlibz-dev
24RUNTIME_DEP_PKGS = CSWosslrt CSWlibpcre0 CSWlibz1 CSWperl
25
26PACKAGING_PLATFORMS  = solaris9-sparc  solaris9-i386
27PACKAGING_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
39ISAEXEC                = 1
40ISA_DEFAULT_sparc      = sparcv8plus
41EXTRA_BUILD_ISAS_i386  = amd64
42EXTRA_BUILD_ISAS_sparc = sparcv9
43
44NGINXCPU_i386          = pentium3
45NGINXCPU_pentium_pro   = pentium3
46NGINXCPU_sparcv8plus   = sparc32
47NGINXCPU_sparcv9       = sparc64
48NGINXCPU_$(ISA)       ?= $(ISA)
49NGINXCPU               = $(NGINXCPU_$(ISA))
50
51CFLAGS =
52
53sysconfdir=/etc/opt/csw
54localstatedir=/var/opt/csw
55
56#CONFIGURE_ARGS += --with-debug
57CONFIGURE_ARGS += --with-cpu-opt=$(NGINXCPU)
58CONFIGURE_ARGS += --with-cc-opt="-I$(includedir) -I$(includedir)/openssl"
59CONFIGURE_ARGS += --with-ld-opt="$(LDFLAGS)"
60CONFIGURE_ARGS += --lock-path=/var/run/nginx/nginx.lock
61CONFIGURE_ARGS += --pid-path=/var/run/nginx/nginx.pid
62CONFIGURE_ARGS += --conf-path=$(sysconfdir)/nginx/nginx.conf
63CONFIGURE_ARGS += --sbin-path=$(sbindir)/nginx
64CONFIGURE_ARGS += --prefix=$(localstatedir)/nginx
65CONFIGURE_ARGS += --http-client-body-temp-path=$(localstatedir)/nginx/client
66CONFIGURE_ARGS += --http-fastcgi-temp-path=$(localstatedir)/nginx/fastcgi
67CONFIGURE_ARGS += --http-scgi-temp-path=$(localstatedir)/nginx/scgi
68CONFIGURE_ARGS += --http-uwsgi-temp-path=$(localstatedir)/nginx/uwsgi
69CONFIGURE_ARGS += --http-proxy-temp-path=$(localstatedir)/nginx/proxy
70CONFIGURE_ARGS += --error-log-path=$(localstatedir)/nginx/logs/error.log
71CONFIGURE_ARGS += --http-log-path=$(localstatedir)/nginx/logs/access.log
72CONFIGURE_ARGS += --with-ipv6
73CONFIGURE_ARGS += --with-http_addition_module
74CONFIGURE_ARGS += --with-http_dav_module
75CONFIGURE_ARGS += --with-http_flv_module
76CONFIGURE_ARGS += --with-http_realip_module
77CONFIGURE_ARGS += --with-http_secure_link_module
78CONFIGURE_ARGS += --with-http_ssl_module
79CONFIGURE_ARGS += --with-http_stub_status_module
80
81TEST_SCRIPTS =
82
83INITSMF      = $(sysconfdir)/init.d/cswnginx
84PRESERVECONF = $(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
86NGINXDOCS    = CHANGES CHANGES.ru LICENSE README
87
88
89include gar/category.mk
90
91post-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
96post-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)
Note: See TracBrowser for help on using the browser.