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

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

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


Revision 1.3 - (show annotations) (download)
Wed Feb 7 16:17:08 2018 UTC (6 years, 9 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-isoqlog-2_2_1-4_el6_sme, HEAD
Changes since 1.2: +1 -1 lines
* Wed Feb 07 2018 Jean-Philipe Pialasse <tests@pialasse.com> 2.2.1-4.sme
- new tkt options [SME: 1509]

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

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