# $Id$ Name: cfengine License: GPL Group: Productivity/Networking/System Provides: cfengine Version: 2.1.14 Release: 1 Summary: A tool to maintain complicated networks URL: http://www.iu.hio.no/cfengine/ Source: cfengine-%{version}.tar.gz Source1: update.conf Source2: cfagent.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build Autoreqprov: on BuildRequires: db4-devel openssl-devel byacc flex # Require specific db4 version shipping with RHEL 3AS update 4, as # underlying db4 library changes make cfengine unhappy. Another option # would be to compile cfengine statically against db4 (requires source # patches?) Requires: db4 = 4.1.25 %description GNU cfengine is an abstract programming language for system administrators of huge heterogeneous networks. With cfengine, system administrators have an easy and elegant way to maintain complicated networks. Authors: -------- Mark Burgess %prep %setup %build ./configure \ --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir} %{__make} %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} make DESTDIR=$RPM_BUILD_ROOT install mkdir -p %{buildroot}/var/cfengine/inputs cp %{SOURCE1} %{buildroot}/var/cfengine/inputs/update.conf cp %{SOURCE2} %{buildroot}/var/cfengine/inputs/cfagent.conf %post mkdir -p %{_var}/%{name}/inputs %{_var}/%{name}/outputs # only on first cfengine RPM install if [ "$1" = 1 ]; then %{_sbindir}/cfkey || true fi %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README TODO doc %doc %{_datadir}/%{name}/* %attr(0755,root,root) %{_sbindir}/cf* %attr(0755,root,root) %{_sbindir}/vicf # TODO could always replace update.conf, and thus allow cfengine # packages updates to fix a broken update.conf via an automatic # package install. "Egg, meet chicken!" %config(noreplace) /var/cfengine/inputs/update.conf %config(noreplace) /var/cfengine/inputs/cfagent.conf %changelog -n cfengine * Sat Apr 09 2005 Jeremy Mates - Import from Genome Sciences spec file.