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

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

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


Revision 1.2 - (hide annotations) (download)
Fri Jul 29 05:38:25 2022 UTC (2 years, 4 months ago) by jpp
Branch: MAIN
Changes since 1.1: +7 -1 lines
* Fri Jul 29 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.2.1-5.sme
- add to core backup [SME: 12010]

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

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