[packages/cacti] - install cache, formats dirs, too.

arekm arekm at pld-linux.org
Tue Dec 5 11:08:54 CET 2017


commit b2c7c665b1bde1801698eb517a1688989e7f2bc6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Dec 5 11:08:46 2017 +0100

    - install cache, formats dirs, too.

 cacti.spec | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/cacti.spec b/cacti.spec
index 642652f..0b3133b 100644
--- a/cacti.spec
+++ b/cacti.spec
@@ -171,11 +171,13 @@ find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_appdir}/{docs,plugins},/etc/{cron.d,logrotate.d},%{_sbindir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_appdir}/docs,/etc/{cron.d,logrotate.d},%{_sbindir}}
 install -d $RPM_BUILD_ROOT/var/{log,{lib,cache}/%{name}}
 
 cp -p *.php $RPM_BUILD_ROOT%{_appdir}
-cp -a cli images include install lib mibs resource scripts sql $RPM_BUILD_ROOT%{_appdir}
+# dirs that contain index.php are likely to be installed
+# ls -1d */index.php | cut -d"/" -f1 | xargs
+cp -a cache cli formats images include install lib mibs plugins resource scripts sql $RPM_BUILD_ROOT%{_appdir}
 cp -a docs/html $RPM_BUILD_ROOT%{_appdir}/docs/html
 mv $RPM_BUILD_ROOT{%{_appdir}/poller.php,%{_sbindir}/cacti-poller}
 
@@ -253,13 +255,15 @@ fi
 %dir %{_appdir}
 %exclude %{_appdir}/install
 %exclude %{_appdir}/docs
-%{_appdir}/resource
-%{_appdir}/sql
-%{_appdir}/lib
-%{_appdir}/include
+%{_appdir}/cache
+%{_appdir}/formats
 %{_appdir}/images
+%{_appdir}/include
+%{_appdir}/lib
 %{_appdir}/mibs
 %{_appdir}/plugins
+%{_appdir}/resource
+%{_appdir}/sql
 %{_appdir}/*.php
 
 %dir %{_appdir}/cli
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cacti.git/commitdiff/b2c7c665b1bde1801698eb517a1688989e7f2bc6



More information about the pld-cvs-commit mailing list