/[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.7 - (hide annotations) (download)
Mon Oct 21 20:24:41 2013 UTC (11 years, 1 month ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-cacti-0_8_8b-8_el5_sme
Changes since 1.6: +7 -2 lines
* Mon Oct 21 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-8.sme
- fixing last template path error in createlinks

1 unnilennium 1.7 # $Id: smeserver-cacti.spec,v 1.6 2013/10/18 22:04:51 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.7 %define release 8
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.5 #Patch:%{name}-%{version}.patch.yyyymmddnn
23 unnilennium 1.1 BuildRoot: /var/tmp/e-smith-buildroot
24     BuildRequires: e-smith-devtools
25     BuildArchitectures: noarch
26 unnilennium 1.3 Requires: smeserver-release >= 8 , rrdtool >= 1
27 unnilennium 1.4 Requires: cacti = 0.8.8b-2.el5
28 unnilennium 1.1 AutoReqProv: no
29    
30     %changelog
31 unnilennium 1.7 * Mon Oct 21 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-8.sme
32     - fixing last template path error in createlinks
33    
34 unnilennium 1.6 * Fri Oct 18 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-7.sme
35 unnilennium 1.5 - fix missing type
36     - fix wrong path in Virtualhost template
37     - fix DB not creating
38     - fix extra file in template
39 unnilennium 1.6 - updated db mysql default
40 unnilennium 1.5
41     * Tue Oct 15 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-3.sme
42 unnilennium 1.2 - initial release for SME 8
43     - use el5 repo cacti
44 unnilennium 1.4 - fix dependencies
45 unnilennium 1.2
46 unnilennium 1.1 * Tue Dec 4 2007 Michel Van hees <michel@vanhees.cc>
47     - Update contrib to 0.8.7a version
48     - Adding access limitation
49     - Adding automatic redirection to https
50     - Automatic Update process from 0.8.6j
51    
52     * Mon Jan 29 2007 Michel Van hees <michel@vanhees.cc>
53     - Based on cacti 0.8.6j
54     - Initial release
55    
56     %description
57     SME server - Cacti
58    
59     %prep
60     %setup
61 unnilennium 1.5 %patch0 -p1
62     %patch1 -p1
63     %patch2 -p1
64     %patch3 -p1
65 unnilennium 1.6 %patch4 -p1
66     %patch5 -p1
67 unnilennium 1.7 %patch6 -p1
68 unnilennium 1.6
69 unnilennium 1.1
70     %build
71     perl createlinks
72    
73     %install
74     rm -rf $RPM_BUILD_ROOT
75     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
76     rm -f %{name}-%{version}-filelist
77     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
78     echo "%doc COPYING" >> %{name}-%{version}-filelist
79    
80     %clean
81     rm -rf $RPM_BUILD_ROOT
82    
83     %pre
84 unnilennium 1.2 #/sbin/e-smith/db accounts set cacti reserved
85 unnilennium 1.1
86     %preun
87    
88     %post
89 unnilennium 1.2 #/sbin/e-smith/db configuration set cacti service
90     #/sbin/e-smith/db configuration setprop cacti access private
91 unnilennium 1.1
92 unnilennium 1.2 #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
93     #/sbin/e-smith/expand-template /opt/cacti/include/config.php
94     #service httpd-e-smith sigusr1
95    
96    
97     #cactiVersion=`mysql cacti_sme -N -s -e"select * from version"`
98     #case "$cactiVersion" in
99     # 0.8.6j)
100     # echo ""
101     # echo "Upgrade process !!!!!!"
102     # mysql cacti_sme < /opt/cacti/cacti_upg086j.sql
103     # rm -f /opt/cacti/cacti_sme.sql
104     # rm -f /opt/cacti/cacti_upg086j.sql
105     # echo "Upgrade complete ..."
106     # echo ""
107     # ;;
108     # 0.8.7a)
109     # # Shoul not be here for the moment
110     # ;;
111     # *)
112     # # Fresh install
113     # echo ""
114     # echo "fresh install..."
115     # mysqladmin create cacti_sme
116     # mysql cacti_sme < /opt/cacti/cacti_sme.sql
117     # rm -Rf /opt/cacti/install
118     # rm -f /opt/cacti/cacti_sme.sql
119     # rm -f /opt/cacti/cacti_upg086j.sql
120     # echo "Install complete ..."
121     # echo ""
122     #esac
123 unnilennium 1.1
124    
125     %postun
126    
127     %files -f %{name}-%{version}-filelist
128     %defattr(-,root,root)

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