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

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

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


Revision 1.7 - (hide annotations) (download)
Tue Sep 17 05:03:29 2013 UTC (10 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-isoqlog-2_2_1-3_el5_sme, HEAD
Changes since 1.6: +7 -1 lines
* Tue Sep 17 2013 JP Pialasse <test@pialasse.com> 2.2.1-3.sme
- added  expand template to events domain-create  [SME: 7713]

1 slords 1.1 Summary: Isoqlog on SME
2     %define name smeserver-isoqlog
3     Name: %{name}
4     %define version 2.2.1
5 unnilennium 1.7 %define release 3
6 slords 1.1 Version: %{version}
7     Release: %{release}%{?dist}
8     License: GPL
9     Group: Administration
10     Source: %{name}-%{version}.tar.gz
11 unnilennium 1.4 Patch0: %{name}-%{version}-webserver.patch
12 unnilennium 1.6 Patch1: smeserver-isoqlog-2.2.1-patch1.patch
13 unnilennium 1.7 Patch2: smeserver-isoqlog-2.2.1-domcreate.patch
14 slords 1.1 Packager: Peter Schubert <psc@@s-a-c-o.de>
15     BuildRoot: /var/tmp/%{name}-%{version}-buildroot
16     BuildArchitectures: noarch
17     Requires: e-smith-release => 7.5
18     Requires: isoqlog => 2.2.1
19 unnilennium 1.2 BuildRequires: e-smith-devtools
20    
21 slords 1.1 AutoReqProv: no
22    
23     %changelog
24 unnilennium 1.7 * Tue Sep 17 2013 JP Pialasse <test@pialasse.com> 2.2.1-3.sme
25     - added expand template to events domain-create [SME: 7713]
26    
27 unnilennium 1.6 * Thu Jun 27 2013 JP Pialasse <test@pialasse.com> 2.2.1-2.sme
28     - fix missing domain [SME: 7713]
29     - added expand template to events
30     - patch1
31    
32 unnilennium 1.5 * Fri Aug 31 2012 JP Pialasse <test@pialasse.com> 2.2.1-1.5.sme
33 unnilennium 1.3 - webserver conf path and file missing fix
34    
35     * Thu Aug 30 2012 JP Pialasse <test@pialasse.com> 2.2.1-1.2.sme
36 unnilennium 1.2 - fix BuildRequires
37    
38 slords 1.1 * Thu Aug 16 2012 JP Pialasse <test@pialasse.com> 2.2.1-1-1.sme
39     - removing isoqlog files from the rpm
40     - moving to a SME config only
41     - adding dependency to isoqlog binaries rpm
42    
43     * Mon Feb 17 2003 Peter Schubert <psc@s-a-c-o.de>
44     - some fixes in the "post" section of the SPEC
45    
46     * Fri Feb 14 2003 Peter Schubert <psc@s-a-c-o.de>
47     - initial release
48    
49     %description
50     Installs Isoqlog on SME Server.
51    
52     %prep
53    
54     %setup
55 unnilennium 1.3 %patch0 -p1
56 unnilennium 1.6 %patch1 -p1
57 unnilennium 1.7 %patch2 -p1
58    
59 slords 1.1
60     %build
61     perl createlinks
62    
63     %install
64     rm -rf $RPM_BUILD_ROOT
65     #(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
66     #rm -f %{name}-%{version}-filelist
67     #/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
68     #echo "%doc COPYING" >> %{name}-%{version}-filelist
69    
70     %{__mkdir_p} $RPM_BUILD_ROOT/var/service/httpd-isoqlog/supervise
71     %{__mkdir_p} $RPM_BUILD_ROOT/var/service/httpd-isoqlog/log/supervise
72     %{__mkdir_p} $RPM_BUILD_ROOT/var/log/httpd-isoqlog
73     %{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/isoqlog-session
74    
75    
76     (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
77     /bin/rm -f %{name}-%{version}-filelist
78     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
79     --dir /var/service/httpd-isoqlog 'attr(01755,root,root)' \
80     --file /var/service/httpd-isoqlog/run 'attr(0700,root,root)' \
81     --dir /var/service/httpd-isoqlog/supervise 'attr(0700,root,root)' \
82     --dir /var/service/httpd-isoqlog/log 'attr(0755,root,root)' \
83     --file /var/service/httpd-isoqlog/log/run 'attr(0755,root,root)' \
84     --dir /var/service/httpd-isoqlog/log/supervise 'attr(0700,root,root)' \
85     --dir /var/log/httpd-isoqlog 'attr(0750,smelog,smelog)' \
86     --dir /var/lib/php/isoqlog-session 'attr(0770,root,isoqlog)' \
87     > %{name}-%{version}-filelist
88    
89     %clean
90     rm -rf $RPM_BUILD_ROOT
91    
92     %pre
93     /sbin/e-smith/create-system-user isoqlog 545 'Isoqlog User' /var/lib/qmailtools/isoqlog/htdocs/ /bin/false >& /dev/null || :
94    
95     %preun
96     # Disable services, and stop them
97     if [ $1 = 0 ]; then # Uninstall only, not upgrade
98     db configuration setprop httpd-isoqlog status disabled >& /dev/null || :
99     /sbin/e-smith/signal-event isoqlog-conf
100     sv d /service/httpd-isoqlog
101     fi
102    
103     true
104    
105     %post
106     /sbin/e-smith/signal-event isoqlog-conf
107     /usr/bin/isoqlog -f /etc/isoqlog.conf 1>/dev/null 2>/dev/null
108    
109     %postun
110     rm -f /etc/httpd/conf.d/isoqlog.conf
111     /etc/rc.d/init.d/httpd-e-smith restart
112    
113    
114     %files -f %{name}-%{version}-filelist
115     %defattr(-,root,root)
116    

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