- Update to 3.6.0b2
- performance has been significantly improved, with a 10-20% speed increase over 3.5 when using the default masterfiles - agents support the legacy protocol without TLS envelope This allows upgrading of an agent before the policy server. - several general improvements and bug fixes too numerous to list here. - remove cfengine-bootstrap.patch, included upstream - split masterfiles off as cfengine-masterfiles package OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=76
This commit is contained in:
parent
5bb1965c97
commit
ead513fd57
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:597c47bfebf7b6b25e65a790ab2782efc624fc7aa727066ffa7f68e37bd11bdd
|
|
||||||
size 1787137
|
|
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 18 11:30:23 UTC 2014 - kkaempf@suse.com
|
||||||
|
|
||||||
|
- Update to 3.6.0b2
|
||||||
|
- performance has been significantly improved, with a 10-20% speed
|
||||||
|
increase over 3.5 when using the default masterfiles
|
||||||
|
- agents support the legacy protocol without TLS envelope
|
||||||
|
This allows upgrading of an agent before the policy server.
|
||||||
|
- several general improvements and bug fixes too numerous to list
|
||||||
|
here.
|
||||||
|
|
||||||
|
- remove cfengine-bootstrap.patch, included upstream
|
||||||
|
|
||||||
|
- split masterfiles off as cfengine-masterfiles package
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 18 10:20:55 UTC 2014 - aeszter@gwdg.de
|
Tue Mar 18 10:20:55 UTC 2014 - aeszter@gwdg.de
|
||||||
|
|
||||||
|
@ -17,9 +17,10 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: cfengine
|
Name: cfengine
|
||||||
%define srcname %{name}
|
%define srcname core
|
||||||
%define libname libpromises
|
%define libname libpromises
|
||||||
%define libsoname %{libname}3
|
%define libsoname %{libname}3
|
||||||
|
%define masterdirname masterfiles-%{version}
|
||||||
|
|
||||||
# Yes, its not FHS conformant but in sync with cfengine documentation
|
# Yes, its not FHS conformant but in sync with cfengine documentation
|
||||||
# reported upstream as https://cfengine.com/dev/issues/1896
|
# reported upstream as https://cfengine.com/dev/issues/1896
|
||||||
@ -32,10 +33,13 @@ Name: cfengine
|
|||||||
Summary: CFEngine automates large-scale IT computing infrastructure
|
Summary: CFEngine automates large-scale IT computing infrastructure
|
||||||
License: GPL-3.0
|
License: GPL-3.0
|
||||||
Group: Productivity/Networking/System
|
Group: Productivity/Networking/System
|
||||||
Version: 3.6.0b1
|
Version: 3.6.0b2
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://www.cfengine.org/
|
Url: http://www.cfengine.org/
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source: %{srcname}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: %{name}-masterfiles = %{version}
|
||||||
|
Requires: %{name}-masterfiles = %{version}
|
||||||
|
|
||||||
# wtf? SLE_11 does not honor rpmlintrc
|
# wtf? SLE_11 does not honor rpmlintrc
|
||||||
%if 0%{?suse_version} <= 1130
|
%if 0%{?suse_version} <= 1130
|
||||||
@ -52,7 +56,7 @@ Source9: cf-serverd
|
|||||||
%endif
|
%endif
|
||||||
Source10: %{name}.cron
|
Source10: %{name}.cron
|
||||||
Source11: %{name}-rpmlintrc
|
Source11: %{name}-rpmlintrc
|
||||||
Source12: masterfiles-%{version}.tar.gz
|
|
||||||
# docs
|
# docs
|
||||||
Source101: http://www.cfengine.org/manuals/cf3-Reference.pdf
|
Source101: http://www.cfengine.org/manuals/cf3-Reference.pdf
|
||||||
Source102: http://www.cfengine.org/manuals/cf3-conceptguide.pdf
|
Source102: http://www.cfengine.org/manuals/cf3-conceptguide.pdf
|
||||||
@ -62,8 +66,6 @@ Source105: http://www.cfengine.org/manuals/cf3-solutions.pdf
|
|||||||
Source106: http://www.cfengine.org/manuals/cf3-tutorial.pdf
|
Source106: http://www.cfengine.org/manuals/cf3-tutorial.pdf
|
||||||
Source107: http://www.verticalsysadmin.com/cfengine/primer.pdf
|
Source107: http://www.verticalsysadmin.com/cfengine/primer.pdf
|
||||||
|
|
||||||
# FIX-4-UPSTREAM: fix workdir while bootstrapping
|
|
||||||
Patch0: %{name}-bootstrap.patch
|
|
||||||
# there's no /usr/include/acl.h in SUSE or Fedora, kkaempf@suse.de
|
# there's no /usr/include/acl.h in SUSE or Fedora, kkaempf@suse.de
|
||||||
Patch1: libacl-headers.patch
|
Patch1: libacl-headers.patch
|
||||||
# SLE 11 or RHEL5 autoconf does not support AM_SUBST_NOTMAKE, kkaempf@suse.de
|
# SLE 11 or RHEL5 autoconf does not support AM_SUBST_NOTMAKE, kkaempf@suse.de
|
||||||
@ -128,8 +130,8 @@ impact on system resources or performance.
|
|||||||
%package -n %{libsoname}
|
%package -n %{libsoname}
|
||||||
Summary: Shared library of cfengine
|
Summary: Shared library of cfengine
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Provides: %{libname}1
|
Provides: %{libname}1 = %{version}
|
||||||
Obsoletes: %{libname}1
|
Obsoletes: %{libname}1 < %{version}
|
||||||
%if 0%{?suse_version} == 1010
|
%if 0%{?suse_version} == 1010
|
||||||
Requires: glibc
|
Requires: glibc
|
||||||
%endif
|
%endif
|
||||||
@ -140,7 +142,7 @@ This package contains the shared libpromises (cfengine) library.
|
|||||||
%package -n %{libname}-devel
|
%package -n %{libname}-devel
|
||||||
Summary: Development package for libpromises
|
Summary: Development package for libpromises
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Provides: %{name}-devel < %{version}
|
Provides: %{name}-devel = %{version}
|
||||||
Obsoletes: %{name}-devel < %{version}
|
Obsoletes: %{name}-devel < %{version}
|
||||||
Requires: %{libsoname} = %{version}
|
Requires: %{libsoname} = %{version}
|
||||||
Requires: glibc-devel
|
Requires: glibc-devel
|
||||||
@ -182,7 +184,6 @@ This package contains the files of the cfengine server.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{srcname}-%{version}
|
%setup -q -n %{srcname}-%{version}
|
||||||
%patch0
|
|
||||||
%if 0%{?suse_version} || 0%{?fedora_version} || 0%{?rhel_version}
|
%if 0%{?suse_version} || 0%{?fedora_version} || 0%{?rhel_version}
|
||||||
%patch1
|
%patch1
|
||||||
%endif
|
%endif
|
||||||
@ -204,7 +205,7 @@ find ./examples -type f -name "*.cf" -exec perl -p -i -e 's|\r\n|\n|,s|^# Founda
|
|||||||
cp -a $RPM_SOURCE_DIR/*pdf docs/
|
cp -a $RPM_SOURCE_DIR/*pdf docs/
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi
|
autoreconf -fi -I m4
|
||||||
# /usr/include/sys for acl.h
|
# /usr/include/sys for acl.h
|
||||||
CC=gcc CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
CC=gcc CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
||||||
%configure \
|
%configure \
|
||||||
@ -244,6 +245,12 @@ chmod -x ChangeLog
|
|||||||
[ -d %{buildroot} ] && [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
[ -d %{buildroot} ] && [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
||||||
%endif
|
%endif
|
||||||
%{__make} "DESTDIR=%{buildroot}" install
|
%{__make} "DESTDIR=%{buildroot}" install
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1110 || 0%{?rhel_version} >= 600
|
||||||
|
# will appear in cfengine-examples
|
||||||
|
rm -rf %{buildroot}/%{_docdir}/%{name}/examples
|
||||||
|
%endif
|
||||||
|
|
||||||
%{__install} -d %{buildroot}/{usr/sbin,%{workdir}/{bin,inputs,reports}}
|
%{__install} -d %{buildroot}/{usr/sbin,%{workdir}/{bin,inputs,reports}}
|
||||||
|
|
||||||
# create dirs needed for better organizing dirs and files
|
# create dirs needed for better organizing dirs and files
|
||||||
@ -278,21 +285,22 @@ for i in cf-agent cf-execd cf-key cf-monitord cf-promises cf-runagent cf-serverd
|
|||||||
%{__ln_s} -f ../../..%{_sbindir}/${i} %{buildroot}%{workdir}/bin/${i}
|
%{__ln_s} -f ../../..%{_sbindir}/${i} %{buildroot}%{workdir}/bin/${i}
|
||||||
done
|
done
|
||||||
|
|
||||||
# Install masterfiles (as %%config(noreplace) )
|
|
||||||
%{__install} -d %{buildroot}/%{basedir}/masterfiles
|
|
||||||
tar xf %{S:12}
|
|
||||||
cd masterfiles-%{version}
|
|
||||||
make install DESTDIR=%{buildroot}/%{basedir}/masterfiles
|
|
||||||
# %{__install} -m 0644 masterfiles/def.cf %{buildroot}/%{basedir}/masterfiles
|
|
||||||
# %{__install} -m 0644 masterfiles/promises.cf %{buildroot}/%{basedir}/masterfiles
|
|
||||||
# %{__install} -m 0644 masterfiles/libraries/cfengine_stdlib.cf %{buildroot}/%{basedir}/masterfiles
|
|
||||||
|
|
||||||
rm -rf %{buildroot}/%{_libdir}/%{name}/libpromises.la
|
rm -rf %{buildroot}/%{_libdir}/%{name}/libpromises.la
|
||||||
|
|
||||||
# will appear in %%docdir
|
# will appear in %%docdir
|
||||||
rm -rf %{buildroot}/%{_datadir}/%{name}/ChangeLog
|
rm -rf %{buildroot}/%{_datadir}/%{name}/ChangeLog
|
||||||
rm -rf %{buildroot}/%{_datadir}/%{name}/README
|
rm -rf %{buildroot}/%{_datadir}/%{name}/README
|
||||||
|
|
||||||
|
# create man pages, see https://cfengine.com/dev/issues/2989
|
||||||
|
%{__install} -d %{buildroot}/%{_mandir}/man8
|
||||||
|
for i in cf-agent cf-execd cf-key cf-monitord cf-promises cf-runagent cf-serverd
|
||||||
|
do
|
||||||
|
LD_LIBRARY_PATH=%{buildroot}%{_libdir}/%{name} %{buildroot}%{_sbindir}/$i -M > %{buildroot}%{_mandir}/man8/$i.8
|
||||||
|
gzip %{buildroot}%{_mandir}/man8/$i.8
|
||||||
|
done
|
||||||
|
|
||||||
|
# populate inputs for %ghost
|
||||||
|
cp -a %{basedir}/masterfiles/* %{buildroot}%{basedir}/inputs
|
||||||
%if 0%{?suse_version} > 01020
|
%if 0%{?suse_version} > 01020
|
||||||
%fdupes %{buildroot}/usr/share/cfengine
|
%fdupes %{buildroot}/usr/share/cfengine
|
||||||
%endif
|
%endif
|
||||||
@ -312,6 +320,10 @@ rm -rf %{buildroot}/%{_datadir}/%{name}/README
|
|||||||
if [ $1 -lt 2 ]; then
|
if [ $1 -lt 2 ]; then
|
||||||
cf-key
|
cf-key
|
||||||
fi
|
fi
|
||||||
|
# only populate /var/cfengine/inputs on install, not on upgrade
|
||||||
|
if [ ${1:-0} -ne 1 ]; then
|
||||||
|
cp -a %{basedir}/masterfiles/* %{basedir}/inputs
|
||||||
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun cf-execd.service cf-monitord.service
|
%service_del_preun cf-execd.service cf-monitord.service
|
||||||
@ -327,11 +339,6 @@ fi
|
|||||||
%service_add_pre cf-serverd.service
|
%service_add_pre cf-serverd.service
|
||||||
|
|
||||||
%post server
|
%post server
|
||||||
#if [ ${1:-0} -ne 1 ]; then
|
|
||||||
# cp -a /usr/share/cfengine/CoreBase/controls /var/cfengine/inputs
|
|
||||||
# cp -a /usr/share/cfengine/CoreBase/libraries /var/cfengine/inputs
|
|
||||||
# cp -a /usr/share/cfengine/CoreBase/services /var/cfengine/inputs
|
|
||||||
#fi
|
|
||||||
%service_add_post cf-serverd.service
|
%service_add_post cf-serverd.service
|
||||||
|
|
||||||
%preun server
|
%preun server
|
||||||
@ -422,25 +429,22 @@ fi
|
|||||||
%{_sbindir}/rccf-monitord
|
%{_sbindir}/rccf-monitord
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# %{_mandir}/man?/*
|
%{_mandir}/man8/*
|
||||||
|
%exclude %{_mandir}/man8/cf-serverd.8.*
|
||||||
%dir %{basedir}
|
%dir %{basedir}
|
||||||
/var/%{name}
|
%config %ghost %{basedir}/inputs/*.cf
|
||||||
|
%config %ghost %{basedir}/inputs/*/*.cf
|
||||||
|
%config %ghost %{basedir}/inputs/*/*/*.cf
|
||||||
%exclude %{basedir}/backup
|
%exclude %{basedir}/backup
|
||||||
%exclude %{basedir}/config
|
%exclude %{basedir}/config
|
||||||
#%%exclude %%{basedir}/failsafe
|
#%%exclude %%{basedir}/failsafe
|
||||||
|
|
||||||
# %dir %{_datadir}/%{name}
|
|
||||||
# %{_datadir}/%{name}/*
|
|
||||||
|
|
||||||
%dir %{workdir}
|
%dir %{workdir}
|
||||||
%{workdir}/*
|
%{workdir}/*
|
||||||
%exclude %{workdir}/bin/cf-serverd
|
%exclude %{workdir}/bin/cf-serverd
|
||||||
|
|
||||||
%config(noreplace) /etc/cron.d/%{name}
|
%config(noreplace) /etc/cron.d/%{name}
|
||||||
|
|
||||||
%dir %{basedir}/masterfiles
|
|
||||||
%config(noreplace) %{basedir}/masterfiles/*.cf
|
|
||||||
|
|
||||||
%files -n %{libsoname}
|
%files -n %{libsoname}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_libdir}/%{name}
|
%dir %{_libdir}/%{name}
|
||||||
@ -470,5 +474,6 @@ fi
|
|||||||
/etc/init.d/cf-serverd
|
/etc/init.d/cf-serverd
|
||||||
%{_sbindir}/rccf-serverd
|
%{_sbindir}/rccf-serverd
|
||||||
%endif
|
%endif
|
||||||
|
%{_mandir}/man8/cf-serverd.8.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
3
core-3.6.0b2.tar.gz
Normal file
3
core-3.6.0b2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:79915acb1e43a24fe8bb5bbe98b875f3dc71dc0fbae88c47818ddec1c3bc99ec
|
||||||
|
size 1376269
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:276b760241cd722801f79db163f2d4c7477a89af2338e03509c0005629c4f9d2
|
|
||||||
size 167598
|
|
Loading…
Reference in New Issue
Block a user