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

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

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


Revision 1.6 - (show annotations) (download)
Thu Jun 27 23:31:29 2013 UTC (11 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-isoqlog-2_2_1-2_el5_sme
Changes since 1.5: +8 -1 lines
* Thu Jun 27 2013 JP Pialasse <test@pialasse.com> 2.2.1-2.sme
- fix missing domain [SME: 7713]
- added expand template to events
- patch1

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

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