Sean,
Here is what I use (comments welcome).
Been building mostly on rhel/centos 32/64/ppc AIX I have not messed
with to much. Fedora there is a copy in rawhide for 3.0.4/5 and that
has slightly different placement of the binaries and includes
start/stop scripts. Not sure if that is better or worse but for my Env
this has been mostly smooth. My move from 3.0.5 to 3.1.2 is still
ongoing but have most of it done by class triggers. This spec seems to
do ok on updates.
regards,
Gusto
%define debug_package %{nil}
%define bin_path
"/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/sbin:/opt/cfengine/bin:/opt/cfengine/bin:/opt/freeware/bin/:/usr/gnu/bin"
Name : cfengine
Summary : A tool to maintain complicated networks
Version : 3.1.2
Release : 1
URL : http://www.cfengine.org
Vendor : %{__spec_vendor}
License : GPL
Group : System Environment/Client Management
Packager : <your name> <your email address >
Distribution : %{__spec_distribution}
Source : %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%ifos linux
Requires : db4 openssl coreutils pcre
#libacl zlib libattr e2fsprogs-libs keyutils-libs
BuildRequires : db4 db4-devel openssl openssl-devel pcre-devel
#libacl libacl-devel openssl openssl-devel pcre-devel zlib zlib-devel
libattr libattr-devel e2fsprogs-libs keyutils-libs libselinux libsepol
ExclusiveArch : i386 x86_64 ppc ppc64
%endif
%description
Cfengine is the standalone, open-source datacenter management platform
run by leading enterprises since 1993. Customize your IT systems,
align to network, business and regulatory needs, monitor problems,
automatically repair and maintain systems more effectively than with
proprietary software. Cope with new and legacy systems and adopt on a
phased basis. Cfengine yields reduced costs, improved efficiency and
higher return on investment for the lowest cost of adoption in the
industry!
Authors:
--------
Mark Burgess
%prep
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot}
mkdir -p %{buildroot}
%setup -q
%build
export CFLAGS="-g -O2 -D_FORTIFY_SOURCE=0"
%configure \
--prefix=/var/cfengine \
--sbindir=/var/cfengine/bin \
--localstatedir=/var/cfengine \
--with-workdir=/var/cfengine \
--libdir=%{_libdir} \
--with-berkeleydb=%{_libdir} \
--with-openssl=/usr \
--with-pcre
make
make DESTDIR=${RPM_BUILD_ROOT} install
%files
%defattr(-,root,root)
%{_mandir}/man?/*
/var/cfengine/*
%{_libdir}/libpromises.la
%{_libdir}/libpromises.so*
%pre
export PATH=$PATH:%bin_path
%post
export PATH=$PATH:%bin_path
%changelog
* Wed Dec 10 2010 <your name> <your email address>
- Comments on this rpm build and release
On Thu, Jan 27, 2011 at 10:38 AM, Frans Lawaetz
<[email protected]> wrote:
>
>>
>> Is it possible to get the spec file that is used to create the RPM I
>> currently download from the engine room for the free version of cfengine. I
>> would rather roll my own RPM's, however i do not want to attempt to reinvent
>> the wheel creating a new spec file. Or even letting us download the src rpm
>> would work well too.
>>
>
> I don't believe cfengine makes SRPMS available. I've seen evidence of
> people creating their own on this list so you might want to dig around and
> ask for a copy.
>
>
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine
>
>
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine