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

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

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


Revision 1.3 - (show annotations) (download)
Fri Jul 29 05:44:21 2022 UTC (2 years, 4 months ago) by jpp
Branch: MAIN
Changes since 1.2: +3 -0 lines
* Fri Jul 29 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.2.1-5.sme
- add to core backup [SME: 12010]
- use httpd 2.4 access syntax [SME: 12049]

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

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