]>
Commit | Line | Data |
---|---|---|
9724e602 BS |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
27 | VER = 1.3.11 | |
28 | ||
29 | THISAPP = nginx-$(VER) | |
30 | DL_FILE = $(THISAPP).tar.gz | |
31 | DL_FROM = $(URL_IPFIRE) | |
32 | DIR_APP = $(DIR_SRC)/$(THISAPP) | |
33 | TARGET = $(DIR_INFO)/$(THISAPP) | |
34 | PROG = nginx | |
35 | PAK_VER = 1 | |
36 | ||
37 | ############################################################################### | |
38 | # Top-level Rules | |
39 | ############################################################################### | |
40 | ||
41 | objects = $(DL_FILE) | |
42 | ||
43 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
44 | ||
45 | $(DL_FILE)_MD5 = 4d299999bca4d2cecfbe48e51684a345 | |
46 | ||
e2db294b BS |
47 | objects += nginx_tcp_proxy_module.tar.bz2 |
48 | nginx_tcp_proxy_module.tar.bz2 = $(DL_FROM)/nginx_tcp_proxy_module.tar.bz2 | |
49 | nginx_tcp_proxy_module.tar.bz2_MD5 = f07898b5b783ef65d416019b51cb1de8 | |
50 | ||
9724e602 BS |
51 | install : $(TARGET) |
52 | ||
53 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
54 | ||
55 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
56 | ||
57 | md5 : $(subst %,%_MD5,$(objects)) | |
58 | ||
59 | dist: | |
60 | $(PAK) | |
61 | ||
62 | ############################################################################### | |
63 | # Downloading, checking, md5sum | |
64 | ############################################################################### | |
65 | ||
66 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
67 | @$(CHECK) | |
68 | ||
69 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
70 | @$(LOAD) | |
71 | ||
72 | $(subst %,%_MD5,$(objects)) : | |
73 | @$(MD5) | |
74 | ||
75 | ############################################################################### | |
76 | # Installation Details | |
77 | ############################################################################### | |
78 | ||
79 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
80 | @$(PREBUILD) | |
81 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) | |
82 | cd $(DIR_APP) && tar xvf $(DIR_SRC)/cache/nginx_tcp_proxy_module.tar.bz2 -C $(DIR_APP) | |
83 | cd $(DIR_APP) && patch -p1 < nginx_tcp_proxy_module/tcp.patch | |
84 | cd $(DIR_APP) && ./configure \ | |
01d65373 | 85 | --prefix=/usr/share/nginx/ \ |
9724e602 BS |
86 | --conf-path=/etc/nginx/nginx.conf \ |
87 | --sbin-path=/usr/sbin/nginx \ | |
88 | --pid-path=/var/run/nginx.pid \ | |
89 | --lock-path=/var/lock/nginx.lock \ | |
90 | --http-client-body-temp-path=/var/spool/nginx/client_body_temp \ | |
91 | --http-proxy-temp-path=/var/spool/nginx/proxy_temp \ | |
92 | --http-fastcgi-temp-path=/var/spool/nginx/fastcgi_temp \ | |
93 | --http-log-path=/var/log/nginx/access.log \ | |
94 | --error-log-path=/var/log/nginx/error.log \ | |
7a7465d6 BS |
95 | --user=nobody \ |
96 | --group=nobody \ | |
9724e602 BS |
97 | --with-imap --with-imap_ssl_module --with-http_ssl_module \ |
98 | --with-http_stub_status_module \ | |
99 | --with-http_dav_module \ | |
100 | --with-http_sub_module \ | |
101 | --add-module=nginx_tcp_proxy_module/ | |
102 | cd $(DIR_APP) && make $(MAKETUNING) | |
103 | cd $(DIR_APP) && make install | |
104 | mkdir -p /var/log/nginx /var/spool/nginx | |
105 | cp /usr/src/config/nginx/nginx /etc/init.d/ | |
106 | # chown http:http /var/log/nginx | |
107 | # @rm -rf $(DIR_APP) | |
108 | @$(POSTBUILD) |