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

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

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


Revision 1.10 - (hide annotations) (download)
Thu Nov 21 17:03:18 2013 UTC (10 years, 11 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-cacti-0_8_8b-11_el5_sme
Changes since 1.9: +11 -2 lines
* Thu Nov 21 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-11.sme
- fixed poller not running in cron , added to crontab
- fixed wrong ownership for db.php, now cacti:www
- added status enabled by default

1 unnilennium 1.10 # $Id: smeserver-cacti.spec,v 1.9 2013/11/14 16:47:28 unnilennium Exp $
2 unnilennium 1.1 # Authority: nocvs
3     # Name: Michel Van hees
4    
5     Summary: Cacti for smeserver
6     %define name smeserver-cacti
7     Name: %{name}
8 unnilennium 1.2 %define version 0.8.8b
9 unnilennium 1.10 %define release 11
10 unnilennium 1.1 Version: %{version}
11     Release: %{release}%{?dist}
12     License: Freely distributable
13     Group: Apache
14     Source: %{name}-%{version}.tar.gz
15 unnilennium 1.5 Patch0: smeserver-cacti-0.8.8b-patch0.patch
16     Patch1: smeserver-cacti-0.8.8b-patch1.patch
17     Patch2: smeserver-cacti-0.8.8b-patch2.patch
18     Patch3: smeserver-cacti-0.8.8b-patch3.patch
19 unnilennium 1.6 Patch4: smeserver-cacti-0.8.8b-patch4.patch
20     Patch5: smeserver-cacti-0.8.8b-patch5.patch
21 unnilennium 1.7 Patch6: smeserver-cacti-0.8.8b-patch6.patch
22 unnilennium 1.8 Patch7: smeserver-cacti-0.8.8b-patch7.patch
23 unnilennium 1.10 Patch8: smeserver-cacti-0.8.8b-poller.patch
24     Patch9: smeserver-cacti-0.8.8b-disenabled.patch
25 unnilennium 1.5 #Patch:%{name}-%{version}.patch.yyyymmddnn
26 unnilennium 1.1 BuildRoot: /var/tmp/e-smith-buildroot
27     BuildRequires: e-smith-devtools
28     BuildArchitectures: noarch
29 unnilennium 1.3 Requires: smeserver-release >= 8 , rrdtool >= 1
30 unnilennium 1.4 Requires: cacti = 0.8.8b-2.el5
31 unnilennium 1.1 AutoReqProv: no
32    
33     %changelog
34 unnilennium 1.10 * Thu Nov 21 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-11.sme
35     - fixed poller not running in cron , added to crontab
36     - fixed wrong ownership for db.php, now cacti:www
37     - added status enabled by default
38    
39 unnilennium 1.9 * Tue Nov 14 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-10.sme
40     - typo fix in last patch (7)
41    
42 unnilennium 1.8 * Sun Nov 10 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-9.sme
43     - fix paths in sql dump [SME: 7419]
44    
45 unnilennium 1.7 * Mon Oct 21 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-8.sme
46     - fixing last template path error in createlinks
47    
48 unnilennium 1.6 * Fri Oct 18 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-7.sme
49 unnilennium 1.5 - fix missing type
50     - fix wrong path in Virtualhost template
51     - fix DB not creating
52     - fix extra file in template
53 unnilennium 1.6 - updated db mysql default
54 unnilennium 1.5
55     * Tue Oct 15 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-3.sme
56 unnilennium 1.2 - initial release for SME 8
57     - use el5 repo cacti
58 unnilennium 1.4 - fix dependencies
59 unnilennium 1.2
60 unnilennium 1.1 * Tue Dec 4 2007 Michel Van hees <michel@vanhees.cc>
61     - Update contrib to 0.8.7a version
62     - Adding access limitation
63     - Adding automatic redirection to https
64     - Automatic Update process from 0.8.6j
65    
66     * Mon Jan 29 2007 Michel Van hees <michel@vanhees.cc>
67     - Based on cacti 0.8.6j
68     - Initial release
69    
70     %description
71     SME server - Cacti
72    
73     %prep
74     %setup
75 unnilennium 1.5 %patch0 -p1
76     %patch1 -p1
77     %patch2 -p1
78     %patch3 -p1
79 unnilennium 1.6 %patch4 -p1
80     %patch5 -p1
81 unnilennium 1.7 %patch6 -p1
82 unnilennium 1.8 %patch7 -p1
83 unnilennium 1.10 %patch8 -p1
84     %patch9 -p1
85 unnilennium 1.1
86     %build
87     perl createlinks
88    
89     %install
90     rm -rf $RPM_BUILD_ROOT
91     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
92     rm -f %{name}-%{version}-filelist
93     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
94     echo "%doc COPYING" >> %{name}-%{version}-filelist
95    
96     %clean
97     rm -rf $RPM_BUILD_ROOT
98    
99     %pre
100 unnilennium 1.2 #/sbin/e-smith/db accounts set cacti reserved
101 unnilennium 1.1
102     %preun
103    
104     %post
105 unnilennium 1.2 #/sbin/e-smith/db configuration set cacti service
106     #/sbin/e-smith/db configuration setprop cacti access private
107 unnilennium 1.1
108 unnilennium 1.2 #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
109     #/sbin/e-smith/expand-template /opt/cacti/include/config.php
110     #service httpd-e-smith sigusr1
111    
112    
113     #cactiVersion=`mysql cacti_sme -N -s -e"select * from version"`
114     #case "$cactiVersion" in
115     # 0.8.6j)
116     # echo ""
117     # echo "Upgrade process !!!!!!"
118     # mysql cacti_sme < /opt/cacti/cacti_upg086j.sql
119     # rm -f /opt/cacti/cacti_sme.sql
120     # rm -f /opt/cacti/cacti_upg086j.sql
121     # echo "Upgrade complete ..."
122     # echo ""
123     # ;;
124     # 0.8.7a)
125     # # Shoul not be here for the moment
126     # ;;
127     # *)
128     # # Fresh install
129     # echo ""
130     # echo "fresh install..."
131     # mysqladmin create cacti_sme
132     # mysql cacti_sme < /opt/cacti/cacti_sme.sql
133     # rm -Rf /opt/cacti/install
134     # rm -f /opt/cacti/cacti_sme.sql
135     # rm -f /opt/cacti/cacti_upg086j.sql
136     # echo "Install complete ..."
137     # echo ""
138     #esac
139 unnilennium 1.1
140    
141     %postun
142    
143     %files -f %{name}-%{version}-filelist
144     %defattr(-,root,root)

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