You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
60 lines
1.4 KiB
%define version 0.1
|
|
%define release 2
|
|
%define name smeserver-fusioninventory-agent
|
|
|
|
|
|
Summary: FusionInventory-Agent integration on SME Server
|
|
Name: %{name}
|
|
Version: %{version}
|
|
Release: %{release}%{?dist}
|
|
License: GPL
|
|
Group: Networking/Daemons
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
Patch0: smeserver-fusioninventory-agent-0.1-disable_deploy.patch
|
|
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
|
|
BuildArchitectures: noarch
|
|
BuildRequires: e-smith-devtools
|
|
|
|
Requires: e-smith-base >= 5.2.0
|
|
Requires: fusioninventory-agent
|
|
|
|
%description
|
|
Configure FusdionInventory daemon on SME Server
|
|
|
|
%changelog
|
|
* Mon Dec 19 2011 Daniel Berteaud <daniel@firewall-services.com> - 0.2.sme
|
|
- disable deploy and ocsdeply in the default config
|
|
|
|
* Tue Nov 29 2011 Daniel Berteaud <daniel@firewall-services.com> - 0.1.sme
|
|
- initial release
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%{__mkdir_p} root/var/log/inventory
|
|
perl createlinks
|
|
|
|
%install
|
|
/bin/rm -rf $RPM_BUILD_ROOT
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
|
|
/bin/rm -f %{name}-%{version}-filelist
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
|
--file /var/service/fusioninventory-agent/run 'attr(0755,root,root)' \
|
|
--file /var/service/fusioninventory-agent/log/run 'attr(0755,root,root)' \
|
|
--dir /var/log/inventory 'attr(0750,smelog,smelog)' \
|
|
> %{name}-%{version}-filelist
|
|
|
|
%files -f %{name}-%{version}-filelist
|
|
%defattr(-,root,root)
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
|
|
%preun
|
|
|
|
|