Revisión | 23813d2c8272de9ce7c0c38854a04bf07256ce24 (tree) |
---|---|
Tiempo | 2013-11-29 16:29:20 |
Autor | Hiroaki Nakano <nakano.hiroaki@nttc...> |
Commiter | Hiroaki Nakano |
Merge branch 'master' of file:///var/www/html/ultramonkey-l7-v3.git
Conflicts:
README
doc/man/l7directord.8
doc/man/l7vsadm.8
l7directord/Makefile.am
l7directord/l7directord
l7vsd/init.d/Makefile.am
l7vsd/module/protocol/protocol_module_ip.cpp
l7vsd/module/protocol/protocol_module_sessionless.cpp
l7vsd/src/l7vsd.cpp
l7vsd/src/session_thread_control.cpp
l7vsd/src/virtualservice_tcp.cpp
ultramonkeyl7.spec
Signed-off-by: Hiroaki Nakano <nakano.hiroaki@nttcom.co.jp>
@@ -14,7 +14,7 @@ System requirements | ||
14 | 14 | |
15 | 15 | CPU : Intel x86 and x86_64 or compatible architecture processors |
16 | 16 | |
17 | - Memory : 2 GB(recommended) | |
17 | + Memory : 4 GB(recommended) | |
18 | 18 | |
19 | 19 | Libraries : log4cxx(C++ Logging Libraries) boost(C++ Template Libraries) |
20 | 20 |
@@ -327,13 +327,11 @@ check if a server is alive. They override the request-receive pair in the | ||
327 | 327 | virtual server section. These two strings must be quoted. If the request |
328 | 328 | string starts with \fIhttp://...\fR the IP-address and port of the real server |
329 | 329 | is overridden, otherwise the IP-address and port of the real server is used. |
330 | -.IP "\fBmodule =\fR \fIproto-module module-args [opt\-module\-args]\fR" 4 | |
331 | -.IX Item "module = proto-module module-args [opt-module-args]" | |
330 | +.IP "\fBmodule =\fR \fIproto-module [opt\-module\-args]\fR" 4 | |
331 | +.IX Item "module = proto-module [opt-module-args]" | |
332 | 332 | Indicates the module parameter of \fBl7directord\fR. Here \fBproto-module\fR |
333 | -denotes the protocol module name (For example, pfilter). \fBmodule-args\fR denotes the | |
334 | -arguments for the protocol module (For example, \-\-pattern\-match '*.html*'). | |
335 | -\&\fBmodule-args\fR is optional only when set \fBsessionless\fR, \fBip\fR and \fBsslid\fR module to \fBproto-module\fR. | |
336 | -The last argument is optional (For example, \-\-reschedule). | |
333 | +denotes the protocol module name (For example, sessionless). | |
334 | +The last argument \&\fBopt-module-args\fR is optional (For example, \-\-reschedule). | |
337 | 335 | .Sh "More than one of these entries may be inside a virtual section:" |
338 | 336 | .IX Subsection "More than one of these entries may be inside a virtual section:" |
339 | 337 | .IP "\fBmaxconn =\fR \fIn\fR" 4 |
@@ -145,7 +145,7 @@ Create the TCP service. | ||
145 | 145 | Specify the protocol module. |
146 | 146 | |
147 | 147 | .br |
148 | -\fIproto\-module\fR := { url | sslid | sessionless | pfilter | ip } | |
148 | +\fIproto\-module\fR := { sslid | sessionless | ip } | |
149 | 149 | |
150 | 150 | .br |
151 | 151 | \fImodule\-args\fR := see the operation manual. |
@@ -4,5 +4,5 @@ SBINDIR = @sbindir@ | ||
4 | 4 | |
5 | 5 | install: |
6 | 6 | $(INSTALL) -m 755 -D ./l7directord $(SBINDIR)/l7directord |
7 | - $(INSTALL) -m 755 -D ./init.d/l7directord ${sysconfdir}/init.d/l7directord | |
7 | + $(INSTALL) -m 755 -D ./init.d/l7directord ${sysconfdir}/rc.d/init.d/l7directord | |
8 | 8 |
@@ -4745,13 +4745,11 @@ virtual server section. These two strings must be quoted. If the request | ||
4745 | 4745 | string starts with I<http://...> the IP-address and port of the real server |
4746 | 4746 | is overridden, otherwise the IP-address and port of the real server is used. |
4747 | 4747 | |
4748 | -=item B<module => I<proto-module module-args [opt-module-args]> | |
4748 | +=item B<module => I<proto-module [opt-module-args]> | |
4749 | 4749 | |
4750 | 4750 | Indicates the module parameter of B<l7directord>. Here B<proto-module> |
4751 | -denotes the protocol module name (For example, pfilter). B<module-args> denotes the | |
4752 | -arguments for the protocol module (For example, --pattern-match '*.html*'). | |
4753 | -B<module-args> is optional only when set B<sessionless>, B<ip> and B<sslid> module to B<proto-module>. | |
4754 | -The last argument is optional (For example, --reschedule). | |
4751 | +denotes the protocol module name (For example, sessionless). | |
4752 | +The last argument B<opt-module-args> is optional (For example, --reschedule). | |
4755 | 4753 | |
4756 | 4754 | =back |
4757 | 4755 |
@@ -1,4 +1,4 @@ | ||
1 | 1 | AUTOMAKE_OPTIONS = foreign |
2 | 2 | |
3 | 3 | install: |
4 | - $(INSTALL) -m 755 -D ./l7vsd ${sysconfdir}/init.d/l7vsd | |
4 | + $(INSTALL) -m 755 -D ./l7vsd ${sysconfdir}/rc.d/init.d/l7vsd |
@@ -446,6 +446,12 @@ protocol_module_base::check_message_result protocol_module_ip::check_parameter(c | ||
446 | 446 | break; |
447 | 447 | } |
448 | 448 | } |
449 | + //option string = "-F" | |
450 | + else if (*it == "-F" || *it == "--forwarded-for") { | |
451 | + //set forward flag ON | |
452 | + ++it; | |
453 | + continue; | |
454 | + } | |
449 | 455 | //option string = "-S" |
450 | 456 | else if (*it == "-S" || *it == "--sorry-uri") { |
451 | 457 | //set sorryURI flag OFF |
@@ -404,8 +404,13 @@ protocol_module_base::check_message_result protocol_module_sessionless::check_pa | ||
404 | 404 | vec_str_it it_end = args.end(); |
405 | 405 | //loop option strings |
406 | 406 | for (; it != it_end; ++it) { |
407 | + //option string = "-F" | |
408 | + if (*it == "-F" || *it == "--forwarded-for") { | |
409 | + //set forward flag ON | |
410 | + continue; | |
411 | + } | |
407 | 412 | //option string = "-S" |
408 | - if (*it == "-S" || *it == "--sorry-uri") { | |
413 | + else if (*it == "-S" || *it == "--sorry-uri") { | |
409 | 414 | //set sorryURI flag OFF |
410 | 415 | if (!sorryuri_checked) { |
411 | 416 | //next item exist |
@@ -1,4 +1,4 @@ | ||
1 | -%define l7vs_moddir %{_libdir}/l7vs | |
1 | +Name: %define l7vs_moddir %{_libdir}/l7vs | |
2 | 2 | %define l7vs_logdir %{_localstatedir}/log/l7vs |
3 | 3 | %define l7vs_includedir %{_includedir}/l7vs |
4 | 4 | %define l7vsadm_sockdir %{_localstatedir}/run/l7vs |
@@ -7,7 +7,7 @@ | ||
7 | 7 | Summary: The Layer-7 Virtual Server |
8 | 8 | Name: ultramonkeyl7 |
9 | 9 | Version: 3.1.0 |
10 | -Release: devel%{?dist} | |
10 | +Release: 1%{?dist} | |
11 | 11 | License: LGPLv2.1 |
12 | 12 | Group: System Environment/Daemons |
13 | 13 | URL: http://sourceforge.jp/projects/ultramonkey-l7/ |
@@ -96,7 +96,7 @@ fi | ||
96 | 96 | %defattr(-, root, root, 0755) |
97 | 97 | %{_sbindir}/* |
98 | 98 | %{l7vs_moddir}/* |
99 | -%{_sysconfdir}/init.d/* | |
99 | +%{_sysconfdir}/rc.d/init.d/* | |
100 | 100 | %dir %{l7vs_moddir} |
101 | 101 | %dir %{l7vs_logdir} |
102 | 102 | %dir %{_sysconfdir}/l7vs |
@@ -163,3 +163,45 @@ fi | ||
163 | 163 | |
164 | 164 | * Thu Aug 6 2009 TATEISHI Katsuyuki <kt@wheel.jp> 2.1.2-2atfix |
165 | 165 | - rpmlint free |
166 | + | |
167 | +Version: | |
168 | +Release: 1%{?dist} | |
169 | +Summary: | |
170 | + | |
171 | +Group: | |
172 | +License: | |
173 | +URL: | |
174 | +Source0: | |
175 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
176 | + | |
177 | +BuildRequires: | |
178 | +Requires: | |
179 | + | |
180 | +%description | |
181 | + | |
182 | + | |
183 | +%prep | |
184 | +%setup -q | |
185 | + | |
186 | + | |
187 | +%build | |
188 | +%configure | |
189 | +make %{?_smp_mflags} | |
190 | + | |
191 | + | |
192 | +%install | |
193 | +rm -rf $RPM_BUILD_ROOT | |
194 | +make install DESTDIR=$RPM_BUILD_ROOT | |
195 | + | |
196 | + | |
197 | +%clean | |
198 | +rm -rf $RPM_BUILD_ROOT | |
199 | + | |
200 | + | |
201 | +%files | |
202 | +%defattr(-,root,root,-) | |
203 | +%doc | |
204 | + | |
205 | + | |
206 | + | |
207 | +%changelog |