diff options
author | Remi Collet <fedora@famillecollet.com> | 2011-10-31 19:07:37 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2011-10-31 19:07:37 +0100 |
commit | 932f7a9d2e6c9675c4774e36a76e83d8f0ee10b3 (patch) | |
tree | 2973631b8f7fce07b48728357f7381f63a126adf /ocsinventory.spec | |
parent | 8dba4ae042907bdb3e35044883607f5906bf0c72 (diff) |
ocsinventory, provides external-agents.conf (OCS_OPT_EXT_USERAGENTS_FILE_PATH)
Diffstat (limited to 'ocsinventory.spec')
-rw-r--r-- | ocsinventory.spec | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/ocsinventory.spec b/ocsinventory.spec index 2befa04..9bded84 100644 --- a/ocsinventory.spec +++ b/ocsinventory.spec @@ -12,7 +12,7 @@ Name: ocsinventory Summary: Open Computer and Software Inventory Next Generation Version: 2.0.2 -Release: 1%{?dist}.2 +Release: 1%{?dist}.3 Group: Applications/Internet License: GPLv2 @@ -140,6 +140,16 @@ navigateur favori. chmod -x binutils/ocs-errors +cat >external-agents.conf <<EOF +# allowed external useragents list +# WARNING may not be supported by OCS NG Community ! +# 1 line per agent, with full name (including version) + +# Ex, to allow fusioninventory_agent, uncomment next line +#FusionInventory-Agent_v2.1.9 +EOF + + %build cd Apache %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -184,9 +194,13 @@ mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d -e "s;VERSION_MP;2;g" \ %endif -e "s;PATH_TO_LOG_DIRECTORY;%{_localstatedir}/log/ocsinventory-server;g" \ - ./etc/ocsinventory/ocsinventory-server.conf | \ + -e '/OCS_OPT_EXT_USERAGENTS_FILE_PATH/s;^.*$; PerlSetEnv OCS_OPT_EXT_USERAGENTS_FILE_PATH %{_sysconfdir}/ocsinventory/ocsinventory-server/external-agents.conf;' \ + etc/ocsinventory/ocsinventory-server.conf | \ grep -v IfModule >%{buildroot}%{_sysconfdir}/httpd/conf.d/ocsinventory-server.conf +install -Dm 644 external-agents.conf \ + %{buildroot}%{_sysconfdir}/ocsinventory/ocsinventory-server/external-agents.conf + # --- ocsinventory-reports --- administration console mkdir -p %{buildroot}%{_datadir}/ocsinventory-reports @@ -280,6 +294,8 @@ fi %doc LICENSE.txt README Apache/Changes %doc binutils/*.README %doc binutils/{ocs-errors,soap-client.pl} +%dir %{_sysconfdir}/ocsinventory/ocsinventory-server +%config(noreplace) %{_sysconfdir}/ocsinventory/ocsinventory-server/external-agents.conf %config(noreplace) %{_sysconfdir}/logrotate.d/ocsinventory-server %config(noreplace) %{_sysconfdir}/httpd/conf.d/ocsinventory-server.conf %attr(755,apache,root) %{_localstatedir}/log/ocsinventory-server @@ -304,6 +320,9 @@ fi %changelog +* Mon Oct 31 2011 Remi Collet <Fedora@famillecollet.com> - 2.0.2-1.3 +- provides external-agents.conf (OCS_OPT_EXT_USERAGENTS_FILE_PATH) + * Mon Oct 31 2011 Remi Collet <Fedora@famillecollet.com> - 2.0.2-1.2 - add patch to use CONF_MYSQL (and avoid link to dbconfig) - comment /snmp alias for security |