1 |
# $Id: e-smith-pop3.spec,v 1.3 2010/09/22 17:57:00 vip-ire Exp $ |
2 |
|
3 |
Summary: startup scripts for pop3 package |
4 |
%define name e-smith-pop3 |
5 |
Name: %{name} |
6 |
%define version 2.2.0 |
7 |
%define release 3 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.gz |
13 |
Patch1: e-smith-pop3-2.2.0-checkpassword_pam.patch |
14 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
BuildRequires: e-smith-devtools >= 1.13.0-04 |
16 |
BuildArchitectures: noarch |
17 |
Requires: e-smith-email |
18 |
Requires: runit |
19 |
Requires: qmail |
20 |
Requires: checkpassword-pam |
21 |
Obsoletes: e-smith-ssl-popd |
22 |
Obsoletes: checkpassword |
23 |
AutoReqProv: no |
24 |
|
25 |
%changelog |
26 |
* Wed Sep 22 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-3.sme |
27 |
- Add symlink for template-begin of pop3 pam config [SME: 6218] |
28 |
|
29 |
* Wed Sep 22 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-2.sme |
30 |
- Shift auth from passwd/shadow files to the pam database [SME: 6218] |
31 |
|
32 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
33 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
34 |
|
35 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
36 |
- Clean up spec so package can be built by koji/plague |
37 |
|
38 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
39 |
- Update to new release naming. No functional changes. |
40 |
- Make Packager generic |
41 |
|
42 |
* Fri Mar 24 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-02 |
43 |
- Ensure that pop3 and pop3s are started or stopped if required, |
44 |
during email-update event. [SME: 1125] |
45 |
|
46 |
* Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-01 |
47 |
- Roll stable stream version. [SME: 1016] |
48 |
|
49 |
* Mon Mar 13 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-04 |
50 |
- Move pop3[s] defaults from e-smith-email [SME: 561] |
51 |
|
52 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-03 |
53 |
- Bump release number only |
54 |
|
55 |
* Thu Sep 15 2005 Charlie Brady <charlieb@e-smith.com> |
56 |
- [1.1.0-02] |
57 |
- Fix port name pop->pop3 (to match change in /etc/services). |
58 |
[SF: 1291836] |
59 |
|
60 |
* Wed Aug 10 2001 Shad L. Lords <slords@mail.com> |
61 |
- [1.1.0-01] |
62 |
- initial release (split from e-smith-email-4.15.2-27). |
63 |
|
64 |
%description |
65 |
Startup scripts for pop3 package. |
66 |
|
67 |
%prep |
68 |
%setup |
69 |
%patch1 -p1 |
70 |
|
71 |
%build |
72 |
perl createlinks |
73 |
|
74 |
mkdir -p root/service |
75 |
for i in pop3 pop3s |
76 |
do |
77 |
mkdir -p root/var/service/$i/peers |
78 |
mkdir -p root/etc/e-smith/templates/var/service/$i/peers |
79 |
mkdir -p root/etc/e-smith/templates/var/service/$i/peers/{0,local} |
80 |
touch root/etc/e-smith/templates/var/service/$i/peers/{0,local}/template-begin |
81 |
touch root/var/service/$i/down |
82 |
ln -s /var/service/$i root/service/$i |
83 |
done |
84 |
mkdir -p root/var/log/pop3 |
85 |
mkdir -p root/var/log/pop3s |
86 |
|
87 |
mkdir -p root/etc/e-smith/templates/etc/pam.d/pop3 |
88 |
ln -s /etc/e-smith/templates-default/template-begin-pam \ |
89 |
root/etc/e-smith/templates/etc/pam.d/pop3/template-begin |
90 |
|
91 |
|
92 |
%install |
93 |
rm -rf $RPM_BUILD_ROOT |
94 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
95 |
rm -f %{name}-%{version}-%{release}-filelist |
96 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
97 |
--dir /var/log/pop3 'attr(0750,smelog,smelog)' \ |
98 |
--dir /var/service/pop3 'attr(01755,root,root)' \ |
99 |
--dir /var/service/pop3/control 'attr(01755,root,root)' \ |
100 |
--file /var/service/pop3/control/1 'attr(0750,root,root)' \ |
101 |
--file /var/service/pop3s/run 'attr(0750,root,root)' \ |
102 |
--file /var/service/pop3s/log/run 'attr(0750,root,root)' \ |
103 |
--dir '/var/log/pop3s' 'attr(2750,smelog,smelog)' \ |
104 |
--file /var/service/pop3/run 'attr(0750,root,root)' \ |
105 |
--file /var/service/pop3/log/run 'attr(0750,root,root)' \ |
106 |
> %{name}-%{version}-%{release}-filelist |
107 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
108 |
|
109 |
%clean |
110 |
rm -rf $RPM_BUILD_ROOT |
111 |
|
112 |
%pre |
113 |
%preun |
114 |
%post |
115 |
%postun |
116 |
|
117 |
%files -f %{name}-%{version}-%{release}-filelist |
118 |
%defattr(-,root,root) |