/[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.4 - (show annotations) (download)
Fri Aug 31 05:05:47 2012 UTC (11 years, 9 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-isoqlog-2_2_1-1_4_el5_sme
Changes since 1.3: +5 -2 lines
* Fri Aug 31 2012 JP Pialasse <test@pialasse.com> 2.2.1-1.4.sme
- builderror patch not found on buildsys

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

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