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