diff options
author | Remi Collet <fedora@famillecollet.com> | 2011-10-31 09:03:30 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2011-10-31 09:03:30 +0100 |
commit | 0be70026d569a8fea92b5901479e809c15f312aa (patch) | |
tree | b4f614e01e02ba9d3d5eaef70e0f7ad31c7aebdc /ocsinventory.spec | |
parent | e978f882d02861b45e93c3a82f67d685863ccd2e (diff) |
osinventory, improves packaging + disable snmp
Diffstat (limited to 'ocsinventory.spec')
-rw-r--r-- | ocsinventory.spec | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/ocsinventory.spec b/ocsinventory.spec index 4e76e9f..6a9ab44 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}.1 +Release: 1%{?dist}.2 Group: Applications/Internet License: GPLv2 @@ -23,7 +23,10 @@ Source0: http://launchpad.net/ocsinventory-server/stable-2.0/%{version}/+dow Source1: ocsinventory-reports.conf # Manage upgrade from 1.3.x +# http://bazaar.launchpad.net/~ocsinventory-core/ocsinventory-ocsreports/stable-2.0/revision/794 Patch0: %{name}-upgrade.patch +# Use CONF_MYSQL everywhere +Patch1: %{name}-dbconf.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -132,6 +135,7 @@ navigateur favori. %setup -q -n %{tarname}-%{version} %patch0 -p0 +%patch1 -p0 chmod -x binutils/ocs-errors @@ -194,9 +198,6 @@ mkdir -p %{buildroot}%{_sysconfdir}/ocsinventory/ocsinventory-reports mv %{buildroot}%{_datadir}/ocsinventory-reports/ocsreports/dbconfig.inc.php \ %{buildroot}%{_sysconfdir}/ocsinventory/ocsinventory-reports/dbconfig.inc.php -ln -s %{_sysconfdir}/ocsinventory/ocsinventory-reports/dbconfig.inc.php \ - %{buildroot}%{_datadir}/ocsinventory-reports/ocsreports/dbconfig.inc.php - # Not usefull for now (path is harcoded) sed -i -e '/CONF_MYSQL/s;dbconfig.inc.php;%{_sysconfdir}/ocsinventory/ocsinventory-reports/dbconfig.inc.php;' \ %{buildroot}%{_datadir}/ocsinventory-reports/ocsreports/var.php @@ -290,7 +291,7 @@ fi %defattr(-, root, root, -) %doc LICENSE.txt README %dir %{_sysconfdir}/ocsinventory -%dir %{_sysconfdir}/ocsinventory/ocsinventory-reports +%attr(750,apache,root) %dir %{_sysconfdir}/ocsinventory/ocsinventory-reports %attr(640,apache,root) %config(noreplace) %{_sysconfdir}/ocsinventory/ocsinventory-reports/dbconfig.inc.php %config(noreplace) %{_sysconfdir}/httpd/conf.d/ocsinventory-reports.conf %{_datadir}/ocsinventory-reports @@ -302,6 +303,11 @@ fi %changelog +* 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 +- give apache right to create dbconfig.php + * Thu Oct 27 2011 Remi Collet <Fedora@famillecollet.com> - 2.0.2-1.1 - add patch for upgrade from 1.3.x - restart apache |