Name: ocsinventory-agent Version: 1.02 Release: %mkrel 1 Summary: Unified client for OCS-Inventory License: GPLv2+ Group: System/Servers URL: http://www.ocsinventory-ng.org/ Source0: http://downloads.sourceforge.net/ocsinventory/OCSNG_UNIX_AGENT-%{version}.tar.gz Requires: net-tools Requires: pciutils Requires: nmap Requires: monitor-edid Requires: dmidecode >= 2.6 Obsoletes: ocsng-linux-agent Obsoletes: perl-Ocsinventory BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description Linux agent for ocs-inventory. Dialog between client computers and management server is based on actual standards, HTTP protocol and XML data formatting. %prep %setup -q -n Ocsinventory-Agent-1.0.1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %install rm -rf %{buildroot} rm -f run-postinst %makeinstall_std install -d %{buildroot}%{_sbindir} mv %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir}/ install -d -m 755 %{buildroot}%{_sysconfdir}/ocsinventory cat > %{buildroot}%{_sysconfdir}/ocsinventory/ocsinventory-agent.cfg<<EOF basevardir = %{_localstatedir}/lib/ocsinventory-agent logger = File logfile = %{_localstatedir}/log/ocsinventory-agent/ocsinventory-agent.log EOF install -d -m 755 %{buildroot}%{_sysconfdir}/cron.daily cat > %{buildroot}%{_sysconfdir}/cron.daily/ocsinventory-agent<<EOF %{_bindir}/ocsinventory-agent --lazy > /dev/null 2>&1 EOF install -d %{buildroot}%{_sysconfdir}/logrotate.d cat > %{buildroot}%{_sysconfdir}/logrotate.d/ocsinventory-agent<<EOF /var/log/ocsinventory-agent/*.log { missingok } EOF install -d %{buildroot}%{_localstatedir}/lib/ocsinventory-agent install -d %{buildroot}%{_localstatedir}/log/ocsinventory-agent # cleanup rm -f %{buildroot}%{perl_vendorlib}/Ocsinventory/postinst.pl %clean rm -rf %{buildroot} %files %defattr(-,root, root) %doc AUTHORS Changes LICENSE README THANKS %{_sbindir}/%{name} %{_mandir}/man1/%{name}.* %{perl_vendorlib}/Ocsinventory %config(noreplace) %{_sysconfdir}/cron.daily/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/ocsinventory %{_localstatedir}/log/%{name} %{_localstatedir}/lib/%{name} %changelog * Sat Jun 06 2009 Guillaume Rousse <guillomovitch@mandriva.org> 1.02-1mdv2009.0 + Revision: 383255 - new version - merge perl package, no need for a distinct one - use herein document whenever possible - switch to a daily cron job, as per default installation * Sun May 10 2009 Guillaume Rousse <guillomovitch@mandriva.org> 1.0.1-1mdv2010.0 + Revision: 373950 - new version - drop patches, not needed anymore * Fri Aug 08 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.0.9.2-2mdv2009.0 + Revision: 268323 - rebuild early 2009.0 package (before pixel changes) + Pixel <pixel@mandriva.com> - adapt to %%_localstatedir now being /var instead of /var/lib (#22312) * Thu May 15 2008 Oden Eriksson <oeriksson@mandriva.com> 0.0.9.2-1mdv2009.0 + Revision: 207628 - remove versioned deps * Wed May 14 2008 Oden Eriksson <oeriksson@mandriva.com> 0.0.9.2-0.1mdv2009.0 + Revision: 207254 - import ocsinventory-agent * Wed May 14 2008 Oden Eriksson <oeriksson@mandriva.com> 0.0.9.2-0.1mdv2009.0 - initial Mandriva package (requested by psycocat) - used the fedora package as a start