1 |
# $Id: e-smith-pop3.spec,v 1.8 2014/12/04 22:37:30 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 8 |
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 |
Patch2: e-smith-pop3-2.2.0-PopSoftlimit.patch |
15 |
Patch3: e-smith-pop3-2.2.0-PopSoftlimit2.patch |
16 |
Patch4: e-smith-pop3-2.2.0-sslio2stunnel.patch |
17 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
18 |
BuildRequires: e-smith-devtools >= 1.13.0-04 |
19 |
BuildArchitectures: noarch |
20 |
Requires: e-smith-email |
21 |
Requires: runit |
22 |
Requires: qmail |
23 |
Requires: checkpassword-pam |
24 |
Requires: stunnel |
25 |
Obsoletes: e-smith-ssl-popd |
26 |
Obsoletes: checkpassword |
27 |
AutoReqProv: no |
28 |
|
29 |
%changelog |
30 |
* Fri Dec 5 2014 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-8.sme |
31 |
- Fix stunnel path [SME: 8707] |
32 |
|
33 |
* Thu Dec 4 2014 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-7.sme |
34 |
- Use stunnel instead of sslio to support TLS [SME: 8707] |
35 |
|
36 |
* Fri Jul 06 2012 Ian Wells <esmith@wellsi.com> 2.2.0-6.sme |
37 |
- Easier to read version of softlimit patch [SME: 6994] |
38 |
|
39 |
* Thu Jul 05 2012 Ian Wells <esmith@wellsi.com> 2.2.0-5.sme |
40 |
- More robust version of softlimit patch [SME: 6994] |
41 |
|
42 |
* Mon Jul 02 2012 Ian Wells <esmith@wellsi.com> 2.2.0-4.sme |
43 |
- Softlimit is now a database variable for pop3 and pop3s [SME: 6994] |
44 |
|
45 |
* Wed Sep 22 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-3.sme |
46 |
- Add symlink for template-begin of pop3 pam config [SME: 6218] |
47 |
|
48 |
* Wed Sep 22 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-2.sme |
49 |
- Shift auth from passwd/shadow files to the pam database [SME: 6218] |
50 |
|
51 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
52 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
53 |
|
54 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
55 |
- Clean up spec so package can be built by koji/plague |
56 |
|
57 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
58 |
- Update to new release naming. No functional changes. |
59 |
- Make Packager generic |
60 |
|
61 |
* Fri Mar 24 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-02 |
62 |
- Ensure that pop3 and pop3s are started or stopped if required, |
63 |
during email-update event. [SME: 1125] |
64 |
|
65 |
* Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-01 |
66 |
- Roll stable stream version. [SME: 1016] |
67 |
|
68 |
* Mon Mar 13 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-04 |
69 |
- Move pop3[s] defaults from e-smith-email [SME: 561] |
70 |
|
71 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-03 |
72 |
- Bump release number only |
73 |
|
74 |
* Thu Sep 15 2005 Charlie Brady <charlieb@e-smith.com> |
75 |
- [1.1.0-02] |
76 |
- Fix port name pop->pop3 (to match change in /etc/services). |
77 |
[SF: 1291836] |
78 |
|
79 |
* Wed Aug 10 2001 Shad L. Lords <slords@mail.com> |
80 |
- [1.1.0-01] |
81 |
- initial release (split from e-smith-email-4.15.2-27). |
82 |
|
83 |
%description |
84 |
Startup scripts for pop3 package. |
85 |
|
86 |
%prep |
87 |
%setup |
88 |
%patch1 -p1 |
89 |
%patch2 -p1 |
90 |
%patch3 -p1 |
91 |
%patch4 -p1 |
92 |
|
93 |
%build |
94 |
perl createlinks |
95 |
|
96 |
mkdir -p root/service |
97 |
for i in pop3 pop3s |
98 |
do |
99 |
mkdir -p root/var/service/$i/peers |
100 |
mkdir -p root/etc/e-smith/templates/var/service/$i/peers |
101 |
mkdir -p root/etc/e-smith/templates/var/service/$i/peers/{0,local} |
102 |
touch root/etc/e-smith/templates/var/service/$i/peers/{0,local}/template-begin |
103 |
touch root/var/service/$i/down |
104 |
ln -s /var/service/$i root/service/$i |
105 |
done |
106 |
mkdir -p root/var/log/pop3 |
107 |
mkdir -p root/var/log/pop3s |
108 |
|
109 |
mkdir -p root/etc/e-smith/templates/etc/pam.d/pop3 |
110 |
ln -s /etc/e-smith/templates-default/template-begin-pam \ |
111 |
root/etc/e-smith/templates/etc/pam.d/pop3/template-begin |
112 |
mkdir -p root/var/service/pop3/env |
113 |
mkdir -p root/var/service/pop3s/env |
114 |
|
115 |
%install |
116 |
rm -rf $RPM_BUILD_ROOT |
117 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
118 |
rm -f %{name}-%{version}-%{release}-filelist |
119 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
120 |
--dir /var/log/pop3 'attr(0750,smelog,smelog)' \ |
121 |
--dir /var/service/pop3 'attr(01755,root,root)' \ |
122 |
--dir /var/service/pop3/control 'attr(01755,root,root)' \ |
123 |
--file /var/service/pop3/control/1 'attr(0750,root,root)' \ |
124 |
--file /var/service/pop3s/run 'attr(0750,root,root)' \ |
125 |
--file /var/service/pop3s/log/run 'attr(0750,root,root)' \ |
126 |
--dir '/var/log/pop3s' 'attr(2750,smelog,smelog)' \ |
127 |
--file /var/service/pop3/run 'attr(0750,root,root)' \ |
128 |
--file /var/service/pop3/log/run 'attr(0750,root,root)' \ |
129 |
> %{name}-%{version}-%{release}-filelist |
130 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
131 |
|
132 |
%clean |
133 |
rm -rf $RPM_BUILD_ROOT |
134 |
|
135 |
%pre |
136 |
%preun |
137 |
%post |
138 |
%postun |
139 |
|
140 |
%files -f %{name}-%{version}-%{release}-filelist |
141 |
%defattr(-,root,root) |