1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
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)
37 ###############################################################################
39 ###############################################################################
43 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
45 $(DL_FILE)_MD5 = 4d299999bca4d2cecfbe48e51684a345
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
53 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
55 download :$(patsubst %,$(DIR_DL)/%,$(objects))
57 md5 : $(subst %,%_MD5,$(objects))
62 ###############################################################################
63 # Downloading, checking, md5sum
64 ###############################################################################
66 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
69 $(patsubst %,$(DIR_DL)/%,$(objects)) :
72 $(subst %,%_MD5,$(objects)) :
75 ###############################################################################
76 # Installation Details
77 ###############################################################################
79 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
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 \
85 --prefix=/usr/share/nginx/ \
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 \
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