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

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

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


Revision 1.1 - (hide annotations) (download)
Mon Sep 3 14:36:49 2012 UTC (11 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-isoqlog-2_2_1-1_5_el4_sme, HEAD
Prep other contribs dir

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

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