/[smecontribs]/rpms/smeserver-cacti/contribs10/smeserver-cacti.spec
ViewVC logotype

Annotation of /rpms/smeserver-cacti/contribs10/smeserver-cacti.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (hide annotations) (download)
Sun Jul 31 19:59:08 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-cacti-1_1_19-3_el7_sme, HEAD
Changes since 1.6: +7 -2 lines
* Sun Jul 31 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.1.19-3.sme
- fix cacti prevents mariadb105 to start

1 jpp 1.7 # $Id: smeserver-cacti.spec,v 1.6 2022/07/27 21:43:39 jpp Exp $
2 brianr 1.1 # Authority: nocvs
3     # Name: Michel Van hees
4    
5     Summary: Cacti for smeserver
6     %define name smeserver-cacti
7     Name: %{name}
8     %define version 1.1.19
9 jpp 1.7 %define release 3
10 brianr 1.1 Version: %{version}
11     Release: %{release}%{?dist}
12     License: Freely distributable
13     Group: Apache
14     Source: %{name}-%{version}.tar.gz
15 jpp 1.2 Patch0: smeserver-cacti-1.1.19-sme10.patch
16 jpp 1.7 Patch1: smeserver-cacti-1.1.19-mariadb55.patch
17 jpp 1.2
18 brianr 1.1 BuildRoot: /var/tmp/e-smith-buildroot
19     BuildRequires: e-smith-devtools
20     BuildArchitectures: noarch
21 jpp 1.2 Requires: smeserver-release >= 10 , rrdtool >= 1
22     Requires: cacti >= 1.2.21
23 jpp 1.5 Requires: cacti-spine
24 jpp 1.2 Requires: e-smith-apache >= 2.6.0-19
25     Requires: smeserver-php >= 3.0.0-43
26 jpp 1.6 Requires: php74-php-gmp
27     Requires: php-gmp
28    
29 brianr 1.1 AutoReqProv: no
30    
31     %changelog
32 jpp 1.7 * Sun Jul 31 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.1.19-3.sme
33     - fix cacti prevents mariadb105 to start
34    
35 jpp 1.2 * Mon Jul 25 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.1.19-2.sme
36     - update httpd 2.4 to syntax [SME: 12039]
37     - initial import to SME10 [SME: 11307]
38     cacti-1.2.21
39     dedicated php-fpm pool 74
40     update event
41 jpp 1.5 ldap available
42     auto install install_cacti.php --accept-eula --install
43 jpp 1.4 - fix sql init [SME: 10972]
44 jpp 1.2
45 brianr 1.1 * Wed Dec 11 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.19-1.sme
46     - update to cacti-1.1.19 [SME: 8434]
47    
48     * Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.8.8h1-2.sme
49     - new version for cacti-0.8.8h-1 [SME: 8434]
50    
51     * Thu Jun 09 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.8.8b1-2.sme
52     - update version Required
53    
54     * Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 0.8.8b1-1.sme
55     - initial import to SME9 contribs
56    
57     * Thu Nov 21 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-12.sme
58     - fixed poller not running in cron , added to crontab
59     - fixed wrong ownership for db.php, now cacti:www
60     - added status enabled by default
61     - user cacti to run in cron
62    
63 jpp 1.4 * Thu Nov 14 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-10.sme
64     Tue Nov 14 2013 --> Tue Nov 12 2013 or Thu Nov 14 2013 or Tue Nov 19 2013 or ....
65 brianr 1.1 - typo fix in last patch (7)
66    
67     * Sun Nov 10 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-9.sme
68     - fix paths in sql dump [SME: 7419]
69    
70     * Mon Oct 21 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-8.sme
71     - fixing last template path error in createlinks
72    
73     * Fri Oct 18 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-7.sme
74     - fix missing type
75     - fix wrong path in Virtualhost template
76     - fix DB not creating
77     - fix extra file in template
78     - updated db mysql default
79    
80     * Tue Oct 15 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-3.sme
81     - initial release for SME 8
82     - use el5 repo cacti
83     - fix dependencies
84    
85     * Tue Dec 4 2007 Michel Van hees <michel@vanhees.cc>
86     - Update contrib to 0.8.7a version
87     - Adding access limitation
88     - Adding automatic redirection to https
89     - Automatic Update process from 0.8.6j
90    
91     * Mon Jan 29 2007 Michel Van hees <michel@vanhees.cc>
92     - Based on cacti 0.8.6j
93     - Initial release
94    
95     %description
96     SME server - Cacti
97    
98     %prep
99     %setup
100 jpp 1.5 mkdir -p root/var/log/php/cacti
101 jpp 1.2 mkdir -p root/var/lib/php/cacti/{opcache,session,tmp}
102     %patch0 -p1
103 jpp 1.5 rm root/etc/e-smith/db/configuration/migrate/80cacti_sme.sql
104 jpp 1.6 rm root/etc/e-smith/templates/etc/cacti/db.php/40DB
105 jpp 1.7 %patch1 -p1
106 brianr 1.1
107     %build
108     perl createlinks
109 jpp 1.2
110 brianr 1.1
111     %install
112     rm -rf $RPM_BUILD_ROOT
113     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
114     rm -f %{name}-%{version}-filelist
115 jpp 1.2 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
116     --dir /var/log/php/cacti 'attr(0755,www,www)' \
117     --dir /var/lib/php/cacti 'attr(0755,www,www)' \
118     --dir /var/lib/php/cacti/tmp 'attr(0755,www,www)' \
119     --dir /var/lib/php/cacti/opcache 'attr(0755,www,www)' \
120     --dir /var/lib/php/cacti/session 'attr(0755,www,www)' \
121     > %{name}-%{version}-filelist
122 brianr 1.1 echo "%doc COPYING" >> %{name}-%{version}-filelist
123    
124     %clean
125     rm -rf $RPM_BUILD_ROOT
126    
127     %pre
128     #/sbin/e-smith/db accounts set cacti reserved
129    
130     %preun
131    
132     %post
133     #/sbin/e-smith/db configuration set cacti service
134     #/sbin/e-smith/db configuration setprop cacti access private
135    
136     #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
137     #/sbin/e-smith/expand-template /opt/cacti/include/config.php
138     #service httpd-e-smith sigusr1
139    
140    
141     #cactiVersion=`mysql cacti_sme -N -s -e"select * from version"`
142     #case "$cactiVersion" in
143     # 0.8.6j)
144     # echo ""
145     # echo "Upgrade process !!!!!!"
146     # mysql cacti_sme < /opt/cacti/cacti_upg086j.sql
147     # rm -f /opt/cacti/cacti_sme.sql
148     # rm -f /opt/cacti/cacti_upg086j.sql
149     # echo "Upgrade complete ..."
150     # echo ""
151     # ;;
152     # 0.8.7a)
153     # # Shoul not be here for the moment
154     # ;;
155     # *)
156     # # Fresh install
157     # echo ""
158     # echo "fresh install..."
159     # mysqladmin create cacti_sme
160     # mysql cacti_sme < /opt/cacti/cacti_sme.sql
161     # rm -Rf /opt/cacti/install
162     # rm -f /opt/cacti/cacti_sme.sql
163     # rm -f /opt/cacti/cacti_upg086j.sql
164     # echo "Install complete ..."
165     # echo ""
166     #esac
167    
168    
169     %postun
170    
171     %files -f %{name}-%{version}-filelist
172     %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed