[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
spec file for cfengine (was: Re: '%' in filename -> parse error)
From: |
Hugo Gayosso |
Subject: |
spec file for cfengine (was: Re: '%' in filename -> parse error) |
Date: |
17 Jan 2002 14:58:58 +0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
"Ylitalo Juha. O" <juha.o.ylitalo@nokia.com> writes:
> P.S. If anyone needs specfile to generate RPM from cfengine, let me know.
I created a simple spec file (I am not a RPM expert), I would be
interested in seeing yours and see if I can improve mine from it.
Here is mine.
<cfengine.spec>
Summary: GNU cfengine
Name: cfengine
Version: 2.0.a15
Release: 1cpsnet
URL: http://www.cfengine.org
Source0: %{name}-%{version}.tar.gz
License: GNU GPL
Group: System Environment/Daemons
BuildRoot: %{_tmppath}/%{name}-root
%description
Cfengine, or the configuration engine is an agent/software robot and a
high level policy language for building expert systems to administrate
and configure large computer networks. Cfengine uses the idea of
classes and a primitive intelligence to define and automate the
configuration and maintenance of system state, for small to huge
configurations. Cfengine is designed to be a part of a computer immune
system, and can be thought of as a gaming agent.
%prep
%setup -q
%build
./configure --prefix=/usr/local --with-berkeleydb=/lib
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/var/cfengine
mkdir -p $RPM_BUILD_ROOT/var/cfengine/inputs
mkdir -p $RPM_BUILD_ROOT/var/cfengine/bin
install -s -m 755 src/cfagent $RPM_BUILD_ROOT/var/cfengine/bin
install -s -m 755 src/cfservd $RPM_BUILD_ROOT/var/cfengine/bin
install -s -m 755 src/cfexecd $RPM_BUILD_ROOT/var/cfengine/bin
install -m 644 inputs/update.conf.example
$RPM_BUILD_ROOT/var/cfengine/inputs/update.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/local/sbin/cfagent
/usr/local/sbin/cfdoc
/usr/local/sbin/cfenvd
/usr/local/sbin/cfenvgraph
/usr/local/sbin/cfexecd
/usr/local/sbin/cfkey
/usr/local/sbin/cfrun
/usr/local/sbin/cfservd
/var/cfengine
%config
%changelog
* Thu Dec 6 2001 <qztf7k@powertrain.mpg.gm.com>
- - Initial build.
</cfengine.spec>
- --
Hugo Gayosso
Support the Free Software Movement!
GNU Project <http://www.gnu.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8RqBix2JZtTN6co8RAp+UAJ0crsQDaNEgw4hb3saVuEGPoUTMcgCg11pi
CChIyDVPK3g/ht+fKUBK7Lc=
=PBrw
-----END PGP SIGNATURE-----