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