|
|
|
@ -31,8 +31,8 @@ Distribution: OpenPKG Community
|
|
|
|
|
Class: EVAL |
|
|
|
|
Group: Web |
|
|
|
|
License: GPL |
|
|
|
|
Version: 0.7.1 |
|
|
|
|
Release: 20100402 |
|
|
|
|
Version: 0.7.2 |
|
|
|
|
Release: 20150117 |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%option with_suphp_caller %{l_nusr} |
|
|
|
@ -46,8 +46,8 @@ Source2: suphp.conf
|
|
|
|
|
Patch0: apache-suphp.patch |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20100101 |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20140101, gcc, gcc::with_cxx = yes, autoconf, automake, libtool |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20140101 |
|
|
|
|
BuildPreReq: apache, apr, php |
|
|
|
|
PreReq: apache, apr, php |
|
|
|
|
|
|
|
|
@ -70,26 +70,23 @@ PreReq: apache, apr, php
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -n suphp-%{version} |
|
|
|
|
%{l_sed} <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b |
|
|
|
|
chmod a+x config/install-sh |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
aclocal |
|
|
|
|
automake --add-missing |
|
|
|
|
libtoolize |
|
|
|
|
autoconf |
|
|
|
|
CC="%{l_cc}" \ |
|
|
|
|
CFLAGS="%{l_cflags -O}" \ |
|
|
|
|
AUTOCONF="true" \ |
|
|
|
|
AUTOHEADER="true" \ |
|
|
|
|
AUTOMAKE="true" \ |
|
|
|
|
ACLOCAL="true" \ |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=%{l_prefix} \ |
|
|
|
|
--sysconfdir=%{l_prefix}/etc/apache \ |
|
|
|
|
--with-apr="%{l_prefix}/bin/apr-1-config" \ |
|
|
|
|
--with-apxs="%{l_prefix}/sbin/apxs" \ |
|
|
|
|
--with-apache-user=%{with_suphp_caller} \ |
|
|
|
|
--with-php=%{with_suphp_phpcgi} \ |
|
|
|
|
--with-logfile=%{l_prefix}/var/apache/log/apache-suphp.log \ |
|
|
|
|
--with-setid-mode=%{with_suphp_ugid_mode} \ |
|
|
|
|
--enable-shared |
|
|
|
|
|
|
|
|
|
%{l_make} %{l_mflags -O} |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|