/[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.2 - (hide annotations) (download)
Tue Jul 26 04:09:02 2022 UTC (2 years, 4 months ago) by jpp
Branch: MAIN
Changes since 1.1: +27 -15 lines
* Mon Jul 25 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.1.19-2.sme
- update httpd 2.4 to syntax [SME: 12039]
- initial import to SME10 [SME: 11307]
  cacti-1.2.21
  dedicated php-fpm pool 74
  update event

* Wed Dec 11 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.19-1.sme
- update to cacti-1.1.19 [SME: 8434]

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

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