|
|
@@ -31,8 +31,8 @@ Distribution: OpenPKG Community
|
|
|
Class: BASE
|
|
|
Group: System
|
|
|
License: GPL
|
|
|
-Version: 2.2.8
|
|
|
-Release: 20080805
|
|
|
+Version: 3.0.1
|
|
|
+Release: 20090430
|
|
|
|
|
|
# package options
|
|
|
%option with_fsl yes
|
|
|
@@ -41,15 +41,14 @@ Release: 20080805
|
|
|
Source0: http://www.cfengine.org/downloads/cfengine-%{version}.tar.gz
|
|
|
Source1: rc.cfengine
|
|
|
Source2: fsl.cfengine
|
|
|
-Patch0: cfengine.patch
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20060823, bison, flex, gcc
|
|
|
PreReq: OpenPKG, openpkg >= 20060823
|
|
|
-BuildPreReq: db, openssl
|
|
|
-PreReq: db, openssl
|
|
|
+BuildPreReq: db, openssl, pcre
|
|
|
+PreReq: db, openssl, pcre
|
|
|
%if "%{with_fsl}" == "yes"
|
|
|
BuildPreReq: fsl
|
|
|
PreReq: fsl
|
|
|
@@ -76,7 +75,6 @@ AutoReqProv: no
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
- %patch -p0
|
|
|
|
|
|
%build
|
|
|
# configure package
|
|
|
@@ -88,14 +86,18 @@ AutoReqProv: no
|
|
|
esac
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
- CPPLAGS="%{l_cppflags}" \
|
|
|
+ CPPFLAGS="%{l_cppflags postgresql .}" \
|
|
|
LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
|
|
|
LIBS="%{l_fsl_libs} $loclibs" \
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
+ --mandir=%{l_prefix}/man \
|
|
|
+ --infodir=%{l_prefix}/info \
|
|
|
+ --with-workdir=%{l_prefix}/var/cfengine \
|
|
|
--with-berkeleydb=%{l_prefix} \
|
|
|
--with-openssl=%{l_prefix} \
|
|
|
- --with-workdir=%{l_prefix}/var/cfengine
|
|
|
+ --with-pcre=%{l_prefix} \
|
|
|
+ --without-sql
|
|
|
|
|
|
# build package
|
|
|
%{l_make} %{l_mflags}
|
|
|
@@ -104,11 +106,13 @@ AutoReqProv: no
|
|
|
# install package
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/var/cfengine \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/man/man8
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/cfengine
|
|
|
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
|
|
|
- %{l_shtool} install -c -m 644 \
|
|
|
- doc/*.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
|
|
|
+
|
|
|
+ # strip down installation
|
|
|
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc >/dev/null 2>&1 || true
|
|
|
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/lib* >/dev/null 2>&1 || true
|
|
|
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir >/dev/null 2>&1 || true
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
|
|
|
|
|
|
# install run-command script
|