|
|
|
@ -40,13 +40,16 @@ Release: 20151014 |
|
|
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
# package options |
|
|
|
%option with_fsl yes |
|
|
|
%option with_fsl yes |
|
|
|
%option with_ssl no |
|
|
|
%option with_ssl yes |
|
|
|
|
|
|
|
%option with_zlib yes |
|
|
|
|
|
|
|
%option with_lua yes |
|
|
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
# list of sources |
|
|
|
Source0: http://www.haproxy.org/download/%{V_major}/src/haproxy-%{V_major}.%{V_minor}.tar.gz |
|
|
|
Source0: http://www.haproxy.org/download/%{V_major}/src/haproxy-%{V_major}.%{V_minor}.tar.gz |
|
|
|
Source1: haproxy.cfg |
|
|
|
Source1: haproxy.cfg |
|
|
|
Source2: fsl.haproxy |
|
|
|
Source2: fsl.haproxy |
|
|
|
Source3: rc.haproxy |
|
|
|
Source3: rc.haproxy |
|
|
|
|
|
|
|
Patch0: haproxy.patch |
|
|
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
# build information |
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20100101, make |
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20100101, make |
|
|
|
@ -59,8 +62,14 @@ PreReq: fsl |
|
|
|
BuildPreReq: openssl |
|
|
|
BuildPreReq: openssl |
|
|
|
PreReq: openssl |
|
|
|
PreReq: openssl |
|
|
|
%endif |
|
|
|
%endif |
|
|
|
BuildPreReq: pcre |
|
|
|
%if "%{with_zlib}" == "yes" |
|
|
|
PreReq: pcre |
|
|
|
BuildPreReq: zlib |
|
|
|
|
|
|
|
PreReq: zlib |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
%if "%{with_lua}" == "yes" |
|
|
|
|
|
|
|
BuildPreReq: lua |
|
|
|
|
|
|
|
PreReq: lua |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
|
|
%description |
|
|
|
%description |
|
|
|
HAProxy is a free, very fast and reliable solution offering high |
|
|
|
HAProxy is a free, very fast and reliable solution offering high |
|
|
|
@ -79,6 +88,7 @@ PreReq: pcre |
|
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
%prep |
|
|
|
%setup -q -n haproxy-%{V_major}.%{V_minor} |
|
|
|
%setup -q -n haproxy-%{V_major}.%{V_minor} |
|
|
|
|
|
|
|
%patch -p0 |
|
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
%build |
|
|
|
# build program |
|
|
|
# build program |
|
|
|
@ -97,6 +107,16 @@ PreReq: pcre |
|
|
|
ADDLIB="%{l_fsl_ldflags} %{l_fsl_libs}" \ |
|
|
|
ADDLIB="%{l_fsl_ldflags} %{l_fsl_libs}" \ |
|
|
|
%if "%{with_ssl}" == "yes" |
|
|
|
%if "%{with_ssl}" == "yes" |
|
|
|
USE_OPENSSL=1 \ |
|
|
|
USE_OPENSSL=1 \ |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
%if "%{with_zlib}" == "yes" |
|
|
|
|
|
|
|
USE_ZLIB=1 \ |
|
|
|
|
|
|
|
ZLIB_INC=%{l_prefix}/include \ |
|
|
|
|
|
|
|
ZLIB_LIB=%{l_prefix}/lib \ |
|
|
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
%if "%{with_lua}" == "yes" |
|
|
|
|
|
|
|
USE_LUA=1 \ |
|
|
|
|
|
|
|
LUA_INC=%{l_prefix}/include/lua \ |
|
|
|
|
|
|
|
LUA_LIB=%{l_prefix}/lib \ |
|
|
|
%endif |
|
|
|
%endif |
|
|
|
USE_STATIC_PCRE=1 |
|
|
|
USE_STATIC_PCRE=1 |
|
|
|
|
|
|
|
|
|
|
|
|