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

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

Revision 7600, 3.3 KB (checked in by aigoshin, 4 years ago)

nginx: milestone 4.0

Line 
1GARNAME = nginx
2GARVERSION = 0.7.64
3CATEGORIES = server
4
5DESCRIPTION = HTTP server and mail proxy server
6define BLURB
7  Nginx (pronounced "engine x") is a free, open-source, high-performance
8  HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server.
9endef
10
11MASTER_SITES = http://sysoev.ru/nginx/
12DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
13DISTFILES += $(call admfiles,CSWnginx,checkinstall postinstall preremove)
14DISTFILES += cswnginx.xml svc-cswnginx
15
16# We define upstream file regex so we can be notifed of new upstream software release
17UFILES_REGEX = -(\d+(?:\.\d+)*).tar.gz
18
19REQUIRED_PKGS = CSWosslrt CSWpcrert CSWzlib
20
21PACKAGING_PLATFORMS  = solaris8-sparc  solaris8-i386
22PACKAGING_PLATFORMS += solaris10-sparc solaris10-i386
23
24EXTRA_BUILD_ISAS_i386  = pentium_pro
25EXTRA_BUILD_ISAS_sparc = sparcv9
26
27NGINXCPU_pentium_pro = pentiumpro
28NGINXCPU_sparcv8 = sparc32
29NGINXCPU_sparcv9 = sparc64
30NGINXCPU_$(ISA) ?= $(ISA)
31NGINXCPU = $(NGINXCPU_$(ISA))
32
33CFLAGS =
34
35CONFIGURE_ARGS += --with-cpu-opt=$(NGINXCPU)
36CONFIGURE_ARGS += --with-cc-opt="-I$(includedir) -I$(includedir)/openssl"
37CONFIGURE_ARGS += --with-ld-opt="$(LDFLAGS)"
38CONFIGURE_ARGS += --prefix=$(prefix)/var/nginx
39CONFIGURE_ARGS += --conf-path=$(sysconfdir)/nginx/nginx.conf
40CONFIGURE_ARGS += --sbin-path=$(sbindir)/nginx
41CONFIGURE_ARGS += --lock-path=$(prefix)/var/run/nginx/nginx.lock
42CONFIGURE_ARGS += --pid-path=$(prefix)/var/run/nginx/nginx.pid
43CONFIGURE_ARGS += --http-client-body-temp-path=$(prefix)/var/nginx/client
44CONFIGURE_ARGS += --http-fastcgi-temp-path=$(prefix)/var/nginx/fastcgi
45CONFIGURE_ARGS += --http-proxy-temp-path=$(prefix)/var/nginx/proxy
46CONFIGURE_ARGS += --error-log-path=$(prefix)/var/nginx/logs/error.log
47CONFIGURE_ARGS += --http-log-path=$(prefix)/var/nginx/logs/access.log
48CONFIGURE_ARGS += --with-md5=YES
49CONFIGURE_ARGS += --with-sha1=YES
50CONFIGURE_ARGS += --with-http_ssl_module
51CONFIGURE_ARGS += --with-http_realip_module
52CONFIGURE_ARGS += --with-http_dav_module
53CONFIGURE_ARGS += --with-http_flv_module
54CONFIGURE_ARGS += --with-http_stub_status_module
55
56TEST_SCRIPTS =
57
58PROTOTYPE_FILTER = awk '$$$$3 ~ /\/var\/((log|run)|(svc|(svc\/(manifest|manifest\/site))))$$$$/ { $$$$6 = "sys" } $$$$3 ~ /\/var\/nginx\/(client|fastcgi|proxy)$$$$/ { $$$$4 = "700" } { print }'
59
60include gar/category.mk
61
62NGINXDOCS = CHANGES CHANGES.ru LICENSE README
63
64post-configure-modulated:
65        gsed -i s#/...ISALIST#/'$$ISALIST'# $(WORKSRC)/objs/ngx_auto_config.h
66        $(MAKECOOKIE)
67
68post-install-modulated:
69        cp $(WORKDIR)/svc-cswnginx $(WORKDIR)/cswnginx
70        ginstall -d $(DESTDIR)$(sysconfdir)/nginx/conf.d
71        ginstall -d $(DESTDIR)$(sharedstatedir)/nginx/contrib
72        ginstall -d $(DESTDIR)$(docdir)/nginx
73        ginstall -d $(DESTDIR)$(prefix)/var/nginx/client
74        ginstall -d $(DESTDIR)$(prefix)/var/nginx/fastcgi
75        ginstall -d $(DESTDIR)$(prefix)/var/nginx/logs
76        ginstall -d $(DESTDIR)$(prefix)/var/nginx/proxy
77        ginstall -d $(DESTDIR)$(prefix)/var/nginx/sites
78        mv $(DESTDIR)$(sysconfdir)/nginx/fastcgi_params $(DESTDIR)$(sysconfdir)/nginx/fastcgi_params.CSW
79        mv $(DESTDIR)$(sysconfdir)/nginx/mime.types $(DESTDIR)$(sysconfdir)/nginx/mime.types.CSW
80        mv $(DESTDIR)$(sysconfdir)/nginx/nginx.conf $(DESTDIR)$(sysconfdir)/nginx/nginx.conf.CSW
81        cd $(WORKSRC); \
82        cp -r contrib/* $(DESTDIR)$(sharedstatedir)/nginx/contrib; \
83        cp $(NGINXDOCS) $(DESTDIR)$(docdir)/nginx
84        $(MAKECOOKIE)
Note: See TracBrowser for help on using the browser.