2007-01-16 00:06:50 +01:00
#
2011-10-06 17:21:12 +02:00
# spec file for package cfengine
2007-01-16 00:06:50 +01:00
#
2015-01-28 08:44:22 +01:00
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-16 00:06:50 +01:00
#
2008-09-12 23:31:39 +02:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2007-01-16 00:06:50 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2014-07-03 15:41:44 +02:00
%if 0%{?suse_version} >= 1210
%define have_systemd 1
%else
%define have_systemd 0
%endif
# set to 1 to enable adapter, leave 0 for minimal cfengine
%define with_mysql 0
%define with_postgresql 0
%define with_libvirt 0
2007-01-16 00:06:50 +01:00
Name : cfengine
2015-01-28 08:44:22 +01:00
Version : 3.6.4
- Update to 3.6.1
New features:
- Introduced Solaris and AIX support into the 3.6 series, with
many associated build and bug fixes.
Changes:
- Short-circuit evaluation of classes promises if class is already
set (Redmine #5241)
- fix to assume all non-specified return codes are failed in
commands promises (Redmine #5986)
- cf-serverd logs reconfiguration message to NOTICE (was INFO)
so that it's always logged in syslog
Bug fixes:
- File monitoring has been completely rewritten (changes attribute
in files promise), which eliminates many bugs, particularly
regarding files that are deleted. Upgrading will keep all
monitoring data, but downgrading again will reinitialize the DB,
so all files will be reported as if they were new. (Redmine #2917)
- $(this.promiser) expands in files promises for 'transformer',
'edit_template', 'copy_from.source', 'file_select.exec_program',
'classes' and 'action' bodies (Redmine #1554, #1496, #3530, #1563)
- 'body changes' notifies about disappeared files in file monitoring
(Redmine #2917)
- Set not-kept classes when files or commands promise should be
repaired, but is warn-only (Redmine #2359)
- Fixed CFEngine template producing a zero-sized file (Redmine #6088)
- Add 0-9 A-Z _ to allowed context of module protocol (Redmine #6063)
- Extend ps command column width on Solaris and filter on zone
rather than adding it to the ps output.
- Fixed strftime() function on Solaris when called with certain
specifiers.
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=101
2014-07-29 11:09:25 +02:00
Release : 0
2014-12-06 13:29:11 +01:00
%define srcname core-%{version}
2011-10-06 17:21:12 +02:00
%define libname libpromises
2013-12-11 08:28:27 +01:00
%define libsoname %{libname}3
2012-10-08 15:04:19 +02:00
# Yes, its not FHS conformant but in sync with cfengine documentation
2012-12-14 09:31:14 +01:00
# reported upstream as https://cfengine.com/dev/issues/1896
2012-10-08 15:04:19 +02:00
%define basedir /var/%{name}
%define workdir %{basedir}
2014-02-21 01:13:10 +01:00
# This is the place where workdir should be
#define basedir /var/lib/%{name}
#define workdir %{basedir}/work
2011-10-06 17:21:12 +02:00
2012-10-04 10:52:41 +02:00
Summary : CFEngine automates large-scale IT computing infrastructure
2012-01-24 15:32:07 +01:00
License : GPL-3.0
2007-01-16 00:06:50 +01:00
Group : Productivity/Networking/System
2007-11-21 22:09:52 +01:00
Url : http://www.cfengine.org/
2014-05-30 09:50:42 +02:00
Source : %{srcname} .tar.gz
2014-04-03 15:11:06 +02:00
Source1 : %{name} .SuSEfirewall2
2014-03-19 19:23:19 +01:00
2013-05-16 09:52:54 +02:00
# wtf? SLE_11 does not honor rpmlintrc
%if 0%{?suse_version} <= 1130
BuildRequires : -post-build-checks
%endif
2014-07-03 15:41:44 +02:00
%if %have_systemd
2012-10-04 10:52:41 +02:00
Source7 : cf-execd.service
Source8 : cf-monitord.service
Source9 : cf-serverd.service
%else
Source7 : cf-monitord
Source8 : cf-execd
Source9 : cf-serverd
%endif
2012-01-30 20:10:38 +01:00
Source10 : %{name} .cron
2013-05-15 13:58:34 +02:00
Source11 : %{name} -rpmlintrc
2014-03-19 19:23:19 +01:00
2014-02-21 01:13:10 +01:00
# docs
Source101 : http://www.cfengine.org/manuals/cf3-Reference.pdf
Source102 : http://www.cfengine.org/manuals/cf3-conceptguide.pdf
Source103 : http://www.cfengine.org/manuals/cf3-glossary.pdf
Source104 : http://www.cfengine.org/manuals/cf3-quickstart.pdf
Source105 : http://www.cfengine.org/manuals/cf3-solutions.pdf
Source106 : http://www.cfengine.org/manuals/cf3-tutorial.pdf
Source107 : http://www.verticalsysadmin.com/cfengine/primer.pdf
# SLE 11 or RHEL5 autoconf does not support AM_SUBST_NOTMAKE, kkaempf@suse.de
Patch2 : remove-am_subst_notmake.patch
2014-02-03 19:31:18 +01:00
2014-04-10 16:31:27 +02:00
# PATCH-FIX-UPSTREAM add 'suse' class for consistency with other vendor classes
# PATCH-FEATURE-UPSTREAM better /etc/SuSE-release parsing, upstream #5423
2014-05-02 14:07:23 +02:00
# kkaempf@suse.de
2014-04-11 09:32:56 +02:00
Patch5 : 0001-Simplify-and-fix-parsing-of-etc-SuSE-release-fixes-i.patch
2014-04-04 22:08:15 +02:00
2014-05-02 14:07:23 +02:00
# PATCH-FIX-SUSE
# set cfengine's notion of bindir to /usr/sbin instead of /var/cfengine/bin
# kkaempf@suse.de
2014-10-09 09:24:21 +02:00
Patch6 : 0001-Set-sys.bindir-to-usr-sbin-expect-cf-components-ther.patch
2014-05-02 14:07:23 +02:00
2007-01-16 00:06:50 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2011-10-06 17:21:12 +02:00
BuildRequires : bison
BuildRequires : db-devel
BuildRequires : flex
BuildRequires : libtool
2012-10-05 14:21:25 +02:00
BuildRequires : libxml2-devel
2014-02-03 19:31:18 +01:00
BuildRequires : lmdb-devel
BuildRequires : pam-devel
2013-07-09 09:37:13 +02:00
#
2012-10-05 14:43:48 +02:00
# Disable mysql for SLE_11:
2013-07-09 09:37:13 +02:00
#
2012-10-05 14:43:48 +02:00
# configure: error: MySQL client library exports symbols clashing with
# OpenSSL. Get the update from distribution provider, recompile MySQL
# library or disable MySQL connector. See
# http://bugs.mysql.com/bug.php?id=65055 for details.
2013-07-09 09:37:13 +02:00
#
2014-07-03 15:41:44 +02:00
%if %with_mysql
2014-03-19 15:06:37 +01:00
%if 0%{?suse_version} != 1110 && 0%{?rhel_version} == 0
2011-10-06 17:21:12 +02:00
BuildRequires : mysql-devel
2012-10-05 14:43:48 +02:00
%endif
2014-07-03 15:41:44 +02:00
%endif
2013-07-09 09:37:13 +02:00
BuildRequires : libacl-devel
2014-07-03 15:41:44 +02:00
%if %with_libvirt
2013-04-26 11:21:54 +02:00
BuildRequires : libvirt-devel
2014-07-03 15:41:44 +02:00
%endif
2011-10-06 17:21:12 +02:00
BuildRequires : openssl-devel
BuildRequires : pcre-devel
2014-07-03 15:41:44 +02:00
%if %with_postgresql
2011-10-06 17:21:12 +02:00
BuildRequires : postgresql-devel
2014-07-03 15:41:44 +02:00
%endif
%if !%have_systemd
# no systemd -> use cron
2012-02-07 13:27:12 +01:00
%if 0%{?centos_version} || 0%{?rhel_version}
Requires : vixie-cron
%else
2012-01-30 20:10:38 +01:00
Requires : cron
2012-02-07 13:27:12 +01:00
%endif
2014-07-03 15:41:44 +02:00
%endif
2011-10-06 17:21:12 +02:00
%if 0%{?suse_version}
2008-09-12 23:31:39 +02:00
PreReq : %install_info_prereq
2011-10-06 17:21:12 +02:00
BuildRequires : texlive
%endif
2007-01-16 00:06:50 +01:00
2014-07-03 15:41:44 +02:00
%if %have_systemd
2012-10-04 10:52:41 +02:00
BuildRequires : systemd
%{?systemd_requires}
%endif
2013-08-30 15:02:48 +02:00
%if 0%{?suse_version} > 01020
BuildRequires : fdupes
%endif
2014-02-09 13:07:50 +01:00
Requires : %{libsoname} = %{version}
2007-01-16 00:06:50 +01:00
%description
2012-12-14 09:30:38 +01:00
CFEngine is the core of a configuration management system: ensuring
2012-10-04 10:52:41 +02:00
the availability, security and compliance of mission-critical
applications and services. Based on popular and flexible open source
configuration management software, CFEngine configuration management
products are highly scalable through decentralized, autonomous agents
that can continuously monitor, self-repair, and update the IT
infrastructure of a global multi-site enterprise - with negligible
impact on system resources or performance.
2007-01-16 00:06:50 +01:00
2011-10-06 17:21:12 +02:00
%package -n %{libsoname}
Summary : Shared library of cfengine
Group : System/Libraries
2014-03-19 19:23:19 +01:00
Provides : %{libname} 1 = %{version}
Obsoletes : %{libname} 1 < %{version}
2012-02-15 16:14:26 +01:00
%if 0%{?suse_version} == 1010
Requires : glibc
%endif
2011-10-06 17:21:12 +02:00
%description -n %{libsoname}
This package contains the shared libpromises (cfengine) library.
2013-12-11 08:28:27 +01:00
%package -n %{libname}-devel
Summary : Development package for libpromises
2011-10-06 17:21:12 +02:00
Group : Development/Libraries/C and C++
2014-03-19 19:23:19 +01:00
Provides : %{name} -devel = %{version}
2013-12-11 08:28:27 +01:00
Obsoletes : %{name} -devel < %{version}
2011-10-06 17:21:12 +02:00
Requires : %{libsoname} = %{version}
Requires : glibc-devel
2007-01-16 00:06:50 +01:00
2013-12-11 08:28:27 +01:00
%description -n %{libname}-devel
2011-10-06 17:21:12 +02:00
A high-speed character set detection library
This package contains the files needed to compile programs that use the
2013-12-11 08:28:27 +01:00
libpromises library.
2011-10-06 17:21:12 +02:00
%package doc
2012-10-04 10:52:41 +02:00
Summary : CFEngine automates large-scale IT computing infrastructure - documentation
2014-02-04 08:10:43 +01:00
Group : Documentation/Other
2011-10-06 17:21:12 +02:00
%if 0%{?rhel_version} || 0%{?centos_version}
2012-01-24 15:32:07 +01:00
BuildRequires : tetex
BuildRequires : tetex-dvips
BuildRequires : tetex-latex
2012-10-04 10:52:41 +02:00
BuildRequires : texinfo
2011-10-06 17:21:12 +02:00
%endif
%description doc
Full documentation for cfengine
2007-01-16 00:06:50 +01:00
2014-02-04 08:10:43 +01:00
%package examples
Summary : CFEngine example promises
Group : Documentation/Other
%description examples
Lots of examples promises for CFEngine.
2007-01-16 00:06:50 +01:00
%prep
2014-05-30 09:50:42 +02:00
%setup -q -n %{srcname}
2014-08-08 10:38:47 +02:00
%if 0%{?suse_version} > 0 && 0%{?suse_version} <= 1110
2013-08-02 09:14:58 +02:00
%patch2 -p1
%endif
2013-08-02 10:46:05 +02:00
%if 0%{?rhel_version} >= 500 && 0%{?rhel_version} < 600
%patch2 -p1
2013-07-09 09:37:13 +02:00
%endif
2014-04-04 22:08:15 +02:00
%patch5 -p1
2014-05-02 14:07:23 +02:00
%patch6 -p1
2013-08-02 10:46:05 +02:00
2011-10-06 17:21:12 +02:00
##### rpmlint
#### wrong-file-end-of-line-encoding
#### incorrect-fsf-address
### http://www.fsf.org/about/contact/
find ./examples -type f -name " * . c f " -exec perl -p -i -e 's|\r\n|\n|,s|^# Foundation.*|# Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA|' {} \;
2007-01-16 00:06:50 +01:00
2014-02-21 01:13:10 +01:00
### install extra docs
%{__install} -d docs
cp -a $RPM_SOURCE_DIR /*pdf docs/
2007-01-16 00:06:50 +01:00
%build
2014-03-19 19:23:19 +01:00
autoreconf -fi -I m4
2013-07-09 09:37:13 +02:00
# /usr/include/sys for acl.h
2011-10-06 17:21:12 +02:00
CC=gcc CFLAGS=" $RPM_OPT_FLAGS - f n o - s t r i c t - a l i a s i n g " \
%configure \
2012-01-24 15:32:07 +01:00
--disable-static \
2012-10-05 14:21:25 +02:00
--enable-fhs \
2012-10-08 15:04:19 +02:00
--datadir=/var \
2013-07-09 09:37:13 +02:00
--with-workdir=%{workdir} \
2014-07-03 15:41:44 +02:00
%if %with_postgresql
2013-07-09 09:37:13 +02:00
--with-postgresql \
2014-07-03 15:41:44 +02:00
%endif
%if %with_mysql
2014-04-10 16:31:27 +02:00
%if 0%{?suse_version} != 1110 && 0%{?rhel_version} == 0 && 0%{?fedora_version} != 20
2014-02-09 13:02:43 +01:00
--with-mysql \
2014-07-03 15:41:44 +02:00
%endif
2014-02-21 01:13:10 +01:00
%endif
2014-02-09 13:02:43 +01:00
--without-qdbm \
--without-tokyocabinet \
--with-lmdb \
2013-07-09 09:37:13 +02:00
--with-pthreads \
--with-openssl \
--with-pcre \
2014-07-03 15:41:44 +02:00
%if %with_libvirt
2013-07-09 09:37:13 +02:00
--with-libvirt \
2014-07-03 15:41:44 +02:00
%endif
2013-07-09 09:37:13 +02:00
--with-libacl \
2013-08-02 10:46:05 +02:00
--with-libxml2 \
2014-03-19 15:06:37 +01:00
%if 0%{?suse_version} >= 1110
2013-08-02 10:46:05 +02:00
--docdir=%{_docdir} /%{name}
2014-03-19 15:06:37 +01:00
%else if 0%{?rhel_version} >= 600
--docdir=%{_docdir} /%{name} -%{version}
2013-08-02 10:46:05 +02:00
%endif
# SLE 10 and RHEL5 don't recognize --docdir
2011-10-06 17:21:12 +02:00
%{__make} %{?_smp_mflags}
2012-12-14 09:30:38 +01:00
# --datadir=/var/lib/%%{name}/inputs \
2007-01-16 00:06:50 +01:00
%install
2012-12-14 09:30:38 +01:00
chmod -x ChangeLog
2011-10-06 17:21:12 +02:00
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
[ -d %{buildroot} ] && [ " %{buildroot} " != " / " ] && %{__rm} -rf %{buildroot}
%endif
%{__make} " D E S T D I R = %{buildroot} " install
2014-03-19 19:23:19 +01:00
%if 0%{?suse_version} >= 1110 || 0%{?rhel_version} >= 600
# will appear in cfengine-examples
rm -rf %{buildroot} /%{_docdir} /%{name} /examples
%endif
2012-10-08 15:04:19 +02:00
%{__install} -d %{buildroot} /{usr/sbin,%{workdir} /{bin,inputs,reports}}
2011-10-06 17:21:12 +02:00
2012-01-30 20:10:38 +01:00
# create dirs needed for better organizing dirs and files
2014-04-04 21:37:14 +02:00
%{__install} -d %{buildroot} /%{basedir} /{backup,failsafe,config,plugins}
2012-12-14 09:30:38 +01:00
#%%{__install} -d %{buildroot}/%%{basedir}/config/{development,production}
2012-01-30 20:10:38 +01:00
2014-07-03 15:41:44 +02:00
%if %have_systemd
# systemd: install sample cron file in docdir
%if 0%{?suse_version}
%{__install} -D -m0644 %{S:10} %{buildroot} /%{_docdir} /%{name}
%else
%{__install} -D -m0644 %{S:10} %{buildroot} /%{_docdir} /%{name} -%{version}
%endif
%else
# no systemd -> use cron
2012-01-30 20:10:38 +01:00
# install cron file
%{__install} -D -m0644 %{S:10} %{buildroot} /%{_sysconfdir} /cron.d/%{name}
2014-07-03 15:41:44 +02:00
%endif
2012-01-30 20:10:38 +01:00
2014-07-03 15:41:44 +02:00
%if %have_systemd
2012-10-04 10:52:41 +02:00
# install systemd scripts
%{__install} -D -m 0644 %{S:7} %{buildroot} /%_unitdir /cf-execd.service
%{__install} -D -m 0644 %{S:8} %{buildroot} /%_unitdir /cf-monitord.service
%{__install} -D -m 0644 %{S:9} %{buildroot} /%_unitdir /cf-serverd.service
%else
2011-10-06 17:21:12 +02:00
# install init scripts
2012-10-05 14:21:25 +02:00
%{__install} -d %{buildroot} /etc/init.d
2012-10-04 10:52:41 +02:00
%{__install} -m 0755 %{S:7} %{S:8} %{S:9} %{buildroot} /etc/init.d/
2011-10-06 17:21:12 +02:00
%{__ln_s} -f ../../etc/init.d/cf-monitord %{buildroot} /%{_sbindir} /rccf-monitord
%{__ln_s} -f ../../etc/init.d/cf-execd %{buildroot} /%{_sbindir} /rccf-execd
%{__ln_s} -f ../../etc/init.d/cf-serverd %{buildroot} /%{_sbindir} /rccf-serverd
2012-01-30 20:10:38 +01:00
# sed @workdir@ in initscripts/cron.d
sed -i\
-e " s , @ w o r k d i r @ , %{workdir} , g " \
-e " s , @ b a s e d i r @ , %{basedir} , g " \
%{buildroot} /etc/init.d/cf-* %{buildroot} /etc/cron.d/%{name}
2012-10-04 10:52:41 +02:00
%endif
2012-01-24 15:32:07 +01:00
# create symlinks for sbin_PROGRAMS
2012-10-08 15:04:19 +02:00
# because: cf-promises needs to be installed in /var/cfengine/work/bin for pre-validation of full configuration
2014-04-04 21:37:14 +02:00
for i in cf-agent cf-execd cf-key cf-monitord cf-promises cf-runagent cf-serverd cf-upgrade; do
2012-10-08 15:04:19 +02:00
%{__ln_s} -f ../../..%{_sbindir} /${i} %{buildroot} %{workdir} /bin/${i}
done
2012-10-05 14:21:25 +02:00
rm -rf %{buildroot} /%{_libdir} /%{name} /libpromises.la
2011-10-06 17:21:12 +02:00
2012-12-14 09:30:38 +01:00
# will appear in %%docdir
2012-10-05 14:21:25 +02:00
rm -rf %{buildroot} /%{_datadir} /%{name} /ChangeLog
rm -rf %{buildroot} /%{_datadir} /%{name} /README
2014-03-19 19:23:19 +01:00
# 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
2014-04-03 15:11:06 +02:00
%if 0%{?suse_version} > 1010
install -D -m 644 %{S:1} $RPM_BUILD_ROOT %{_sysconfdir} /sysconfig/SuSEfirewall2.d/services/cfengine
%endif
2013-08-30 15:02:48 +02:00
%if 0%{?suse_version} > 01020
%fdupes %{buildroot} /usr/share/cfengine
%endif
2012-10-04 10:52:41 +02:00
# systemd
2014-07-03 15:41:44 +02:00
%if %have_systemd
2012-10-04 10:52:41 +02:00
2014-04-04 21:37:14 +02:00
####################################################################
# Systemd
####################################################################
2012-10-04 10:52:41 +02:00
%pre
2014-04-04 21:37:14 +02:00
%service_add_pre cf-execd.service cf-monitord.service cf-serverd.service
2012-10-04 10:52:41 +02:00
%post
2014-04-04 21:37:14 +02:00
%service_add_post cf-execd.service cf-monitord.service cf-serverd.service
2012-10-04 10:52:41 +02:00
%if 0%{?suse_version} > 1010
%install _info --name=%{name} --info-dir=%{_infodir} %{_infodir}/cf3-reference.info.gz
%endif
/sbin/ldconfig
2013-04-26 11:21:54 +02:00
if [ $1 -lt 2 ]; then
2014-04-04 21:37:14 +02:00
# first install, generate key pair
2013-04-16 12:12:34 +02:00
cf-key
2013-04-26 11:21:54 +02:00
fi
2012-10-04 10:52:41 +02:00
%preun
2014-04-04 21:37:14 +02:00
%service_del_preun cf-execd.service cf-monitord.service cf-serverd.service
2012-10-04 10:52:41 +02:00
%postun
2014-04-04 21:37:14 +02:00
%service_del_postun cf-execd.service cf-monitord.service cf-serverd.service
2012-10-04 10:52:41 +02:00
%if 0%{?suse_version} > 1010
%install _info_delete --name=%{name} --info-dir=%{_infodir} %{_infodir}/cf3-reference.info.gz
%endif
2014-04-04 21:37:14 +02:00
if [ $1 -eq 0 ]; then
# clean up inputs cache dir on removal
rm -rf %{basedir} /inputs/*
fi
2012-10-04 10:52:41 +02:00
/sbin/ldconfig
%else # !systemd
2014-04-04 21:37:14 +02:00
####################################################################
# Non-systemd
####################################################################
2011-10-06 17:21:12 +02:00
%preun
2012-02-08 13:40:10 +01:00
%if 0%{?suse_version}
2011-10-06 17:21:12 +02:00
%stop_on_removal cf-monitord
%stop_on_removal cf-execd
2014-04-04 21:37:14 +02:00
%stop_on_removal cf-serverd
2012-02-08 13:40:10 +01:00
%else
/etc/init.d/cf-execd stop
/etc/init.d/cf-monitord stop
2014-04-04 21:37:14 +02:00
/etc/init.d/cf-serverd stop
2012-02-08 13:40:10 +01:00
%endif
2007-01-16 00:06:50 +01:00
2008-09-12 23:31:39 +02:00
%post
2012-02-15 16:14:26 +01:00
%if 0%{?suse_version} > 1010
2011-10-06 17:21:12 +02:00
%install _info --name=%{name} --info-dir=%{_infodir} %{_infodir}/cf3-reference.info.gz
%endif
/sbin/ldconfig
2008-09-12 23:31:39 +02:00
2007-01-16 00:06:50 +01:00
%postun
2012-02-15 16:14:26 +01:00
%if 0%{?suse_version} > 1010
2011-10-06 17:21:12 +02:00
%install _info_delete --name=%{name} --info-dir=%{_infodir} %{_infodir}/cf3-reference.info.gz
2012-02-08 16:13:48 +01:00
%insserv_cleanup
2014-04-04 21:37:14 +02:00
for i in execd monitord serverd; do
2012-02-08 16:13:48 +01:00
%restart_on_update cf-${i}
done
2011-10-06 17:21:12 +02:00
%else
2012-02-08 16:13:48 +01:00
# Update ?
if [ ${1:-0} -eq 1 ]; then
2014-04-04 21:37:14 +02:00
for i in execd monitord serverd; do
2012-02-08 16:13:48 +01:00
/etc/init.d/cf-${i} restart
done
else
2011-10-06 17:21:12 +02:00
:
2012-02-08 16:13:48 +01:00
fi
2011-10-06 17:21:12 +02:00
%endif
/sbin/ldconfig
2007-01-16 00:06:50 +01:00
2012-10-04 10:52:41 +02:00
%endif # !systemd
2011-10-06 17:21:12 +02:00
%post -n %{libsoname} -p /sbin/ldconfig
%postun -n %{libsoname} -p /sbin/ldconfig
2007-11-21 22:09:52 +01:00
2007-01-16 00:06:50 +01:00
%files
%defattr (-,root,root)
2014-02-21 01:13:10 +01:00
%doc ChangeLog LICENSE README.md
2012-10-05 14:21:25 +02:00
%{_sbindir} /cf-agent
%{_sbindir} /cf-execd
%{_sbindir} /cf-key
%{_sbindir} /cf-monitord
%{_sbindir} /cf-promises
2014-04-04 21:37:14 +02:00
%{_sbindir} /cf-serverd
2014-02-03 19:31:18 +01:00
%{_sbindir} /cf-upgrade
2014-04-10 16:31:27 +02:00
%{_sbindir} /cf-runagent
2012-11-29 09:18:22 +01:00
%{_sbindir} /rpmvercmp
2014-07-03 15:41:44 +02:00
%if %have_systemd
2012-10-04 10:52:41 +02:00
%_unitdir /cf-execd.service
%_unitdir /cf-monitord.service
2014-04-04 21:37:14 +02:00
%_unitdir /cf-serverd.service
2012-10-04 10:52:41 +02:00
%else
%config %attr (0755,root,root) /etc/init.d/*
2012-10-05 14:43:48 +02:00
%{_sbindir} /rccf-execd
%{_sbindir} /rccf-monitord
2014-04-04 21:37:14 +02:00
%{_sbindir} /rccf-serverd
%endif
%if 0%{?suse_version} > 1010
%config %{_sysconfdir} /sysconfig/SuSEfirewall2.d/services/cfengine
2012-10-04 10:52:41 +02:00
%endif
2014-03-19 19:23:19 +01:00
%{_mandir} /man8/*
2012-01-30 20:10:38 +01:00
%dir %{basedir}
2012-10-08 15:04:19 +02:00
%dir %{workdir}
%{workdir} /*
2014-07-03 15:41:44 +02:00
%if !%have_systemd
2012-01-30 20:10:38 +01:00
%config (noreplace) /etc/cron.d/%{name}
2014-07-03 15:41:44 +02:00
%endif
2011-10-06 17:21:12 +02:00
%files -n %{libsoname}
%defattr (-,root,root)
2012-10-05 14:21:25 +02:00
%dir %{_libdir} /%{name}
%{_libdir} /%{name} /%{libname} .so.*
2011-10-06 17:21:12 +02:00
2013-12-11 08:28:27 +01:00
%files -n %{libname}-devel
2011-10-06 17:21:12 +02:00
%defattr (-,root,root)
2012-10-05 14:21:25 +02:00
%{_libdir} /%{name} /%{libname} .so
2011-10-06 17:21:12 +02:00
%files doc
%defattr (-,root,root)
2014-02-21 01:13:10 +01:00
%doc docs/*.pdf
2014-02-04 08:10:43 +01:00
%files examples
%defattr (-,root,root)
2014-02-21 01:13:10 +01:00
%doc examples/*cf
2007-11-26 20:28:30 +01:00
2007-04-01 12:04:29 +02:00
%changelog