/[smecontribs]/rpms/smeserver-altqmail/contribs10/smeserver-altqmail.spec
ViewVC logotype

Contents of /rpms/smeserver-altqmail/contribs10/smeserver-altqmail.spec

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


Revision 1.3 - (show annotations) (download)
Fri Mar 24 03:58:43 2023 UTC (19 months, 1 week ago) by jpp
Branch: MAIN
CVS Tags: smeserver-altqmail-0_1_2-2_el7_sme, HEAD
Changes since 1.2: +1 -1 lines
* Thu Mar 23 2023 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.2-2.sme
- import to SME10 [SME: 12344]
  adapt for systemd and add update event
  add throttle capability

1 Summary: Second qmail instance
2 Name: smeserver-altqmail
3 Version: 0.1.2
4 Release: 2%{?dist}
5 License: GPL
6 Group: Networking/Daemons
7 Source: %{name}-%{version}.tar.gz
8 Patch0: smeserver-altqmail-0.1.2-sme10-throttle.patch
9
10 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
11 BuildArchitectures: noarch
12 BuildRequires: e-smith-devtools
13
14 Requires: e-smith-base >= 5.2.0
15 Requires: qmail
16
17 %description
18 Provides a second qmail instance, with its own configuration
19 Usefull if you want to reduce the ConcurrencyRemote option
20 only for some domains
21
22 %changelog
23 * Thu Mar 23 2023 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.2-2.sme
24 - import to SME10 [SME: 12344]
25 adapt for systemd and add update event
26 add throttle capability
27
28 * Sun Nov 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.1.2-1
29 - Fixes in spec file (daniel@firewall-services.com)
30 - Add tito's global lib_dir (daniel@firewall-services.com)
31
32 * Sun Nov 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.1.1-1
33 - new package built with tito
34
35 * Wed Dec 3 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1.sme
36 - Works on x86_64 and SME9
37
38 * Fri Sep 19 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-3.sme
39 - Yet another permission fix on remote/19 and local/19
40
41 * Mon May 19 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-2.sme
42 - Fix permissions on info/19 subdir
43
44 * Wed May 7 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-1.sme
45 - Initial release
46
47 %prep
48 %setup -q -n %{name}-%{version}
49 %patch0 -p1
50
51 %build
52 %{__mkdir_p} root/var/log/{altqmail,altqmail-smtpd}
53 perl createlinks
54 mkdir -p root/var/service/altqmail/root/var/qmail/{queue,control,bin}
55 mkdir -p root/var/service/altqmail/root/tmp
56 mkdir -p root/var/service/altqmail/root/var/qmail/control/
57 echo "20/3600" > root/var/service/altqmail/root/var/qmail/control/outratelimit
58 touch root/var/service/altqmail/root/var/qmail/control/qmail-remote-semaphore
59 touch root/var/service/altqmail/root/var/qmail/control/outlog
60
61 # Create the chrooted qmail queue
62 pushd root/var/service/altqmail/root/var/qmail/queue
63 mkdir pid
64 mkdir mess
65 mkdir todo
66 mkdir bounce
67 for i in `seq 0 22`; do
68 mkdir -p mess/$i
69 done
70 cp -r mess info
71 cp -r mess intd
72 cp -r mess local
73 cp -r mess remote
74 mkdir lock
75 dd bs=1024 count=1 if=/dev/zero of=lock/tcpto
76 mkfifo lock/trigger
77 touch lock/sendmutex
78 popd
79
80
81 %install
82 /bin/rm -rf $RPM_BUILD_ROOT
83 (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
84 /bin/rm -f %{name}-%{version}-filelist
85 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
86 --file /var/service/altqmail/run 'attr(0755,root,root)' \
87 --file /var/service/altqmail/finish 'attr(0755,root,root)' \
88 --file /var/service/altqmail/log/run 'attr(0755,root,root)' \
89 --file /var/service/altqmail-smtpd/run 'attr(0755,root,root)' \
90 --file /var/service/altqmail/qmail-remote-throttle 'attr(0755,root,qmail)' \
91 --file /var/service/altqmail-smtpd/log/run 'attr(0755,root,root)' \
92 --dir /var/log/altqmail 'attr(0750,qmaill,root)' \
93 --dir /var/log/altqmail-smtpd 'attr(0750,qmaill,root)' \
94 --dir /var/service/altqmail/root/tmp 'attr(0777,root,root)' \
95 --file /var/service/altqmail/root/var/qmail/control/outratelimit 'attr(0644,root,root)' \
96 --file /var/service/altqmail/root/var/qmail/control/qmail-remote-semaphore 'attr(0554,root,qmail)' \
97 --file /var/service/altqmail/root/var/qmail/control/outlog 'attr(0554,root,qmail)' \
98 --dir /var/service/altqmail/root/var/qmail/queue 'attr(0750,qmailq,qmail)' \
99 --dir /var/service/altqmail/root/var/qmail/queue/bounce 'attr(0755,qmails,qmail)' \
100 --dir /var/service/altqmail/root/var/qmail/queue/lock 'attr(0750,qmailq,qmail)' \
101 --file /var/service/altqmail/root/var/qmail/queue/lock/tcpto 'attr(0644,qmailr,qmail)' \
102 --file /var/service/altqmail/root/var/qmail/queue/lock/sendmutex 'attr(0600,qmails,qmail)' \
103 --dir /var/service/altqmail/root/var/qmail/queue/intd 'attr(0700,qmailq,qmail)' \
104 --dir /var/service/altqmail/root/var/qmail/queue/intd/0 'attr(0700,qmailq,qmail)' \
105 --dir /var/service/altqmail/root/var/qmail/queue/intd/1 'attr(0700,qmailq,qmail)' \
106 --dir /var/service/altqmail/root/var/qmail/queue/intd/2 'attr(0700,qmailq,qmail)' \
107 --dir /var/service/altqmail/root/var/qmail/queue/intd/3 'attr(0700,qmailq,qmail)' \
108 --dir /var/service/altqmail/root/var/qmail/queue/intd/4 'attr(0700,qmailq,qmail)' \
109 --dir /var/service/altqmail/root/var/qmail/queue/intd/5 'attr(0700,qmailq,qmail)' \
110 --dir /var/service/altqmail/root/var/qmail/queue/intd/6 'attr(0700,qmailq,qmail)' \
111 --dir /var/service/altqmail/root/var/qmail/queue/intd/7 'attr(0700,qmailq,qmail)' \
112 --dir /var/service/altqmail/root/var/qmail/queue/intd/8 'attr(0700,qmailq,qmail)' \
113 --dir /var/service/altqmail/root/var/qmail/queue/intd/9 'attr(0700,qmailq,qmail)' \
114 --dir /var/service/altqmail/root/var/qmail/queue/intd/10 'attr(0700,qmailq,qmail)' \
115 --dir /var/service/altqmail/root/var/qmail/queue/intd/11 'attr(0700,qmailq,qmail)' \
116 --dir /var/service/altqmail/root/var/qmail/queue/intd/12 'attr(0700,qmailq,qmail)' \
117 --dir /var/service/altqmail/root/var/qmail/queue/intd/13 'attr(0700,qmailq,qmail)' \
118 --dir /var/service/altqmail/root/var/qmail/queue/intd/14 'attr(0700,qmailq,qmail)' \
119 --dir /var/service/altqmail/root/var/qmail/queue/intd/15 'attr(0700,qmailq,qmail)' \
120 --dir /var/service/altqmail/root/var/qmail/queue/intd/16 'attr(0700,qmailq,qmail)' \
121 --dir /var/service/altqmail/root/var/qmail/queue/intd/17 'attr(0700,qmailq,qmail)' \
122 --dir /var/service/altqmail/root/var/qmail/queue/intd/18 'attr(0700,qmailq,qmail)' \
123 --dir /var/service/altqmail/root/var/qmail/queue/intd/19 'attr(0700,qmailq,qmail)' \
124 --dir /var/service/altqmail/root/var/qmail/queue/intd/20 'attr(0700,qmailq,qmail)' \
125 --dir /var/service/altqmail/root/var/qmail/queue/intd/21 'attr(0700,qmailq,qmail)' \
126 --dir /var/service/altqmail/root/var/qmail/queue/intd/22 'attr(0700,qmailq,qmail)' \
127 --dir /var/service/altqmail/root/var/qmail/queue/local 'attr(0700,qmails,qmail)' \
128 --dir /var/service/altqmail/root/var/qmail/queue/local/0 'attr(0700,qmails,qmail)' \
129 --dir /var/service/altqmail/root/var/qmail/queue/local/1 'attr(0700,qmails,qmail)' \
130 --dir /var/service/altqmail/root/var/qmail/queue/local/2 'attr(0700,qmails,qmail)' \
131 --dir /var/service/altqmail/root/var/qmail/queue/local/3 'attr(0700,qmails,qmail)' \
132 --dir /var/service/altqmail/root/var/qmail/queue/local/4 'attr(0700,qmails,qmail)' \
133 --dir /var/service/altqmail/root/var/qmail/queue/local/5 'attr(0700,qmails,qmail)' \
134 --dir /var/service/altqmail/root/var/qmail/queue/local/6 'attr(0700,qmails,qmail)' \
135 --dir /var/service/altqmail/root/var/qmail/queue/local/7 'attr(0700,qmails,qmail)' \
136 --dir /var/service/altqmail/root/var/qmail/queue/local/8 'attr(0700,qmails,qmail)' \
137 --dir /var/service/altqmail/root/var/qmail/queue/local/9 'attr(0700,qmails,qmail)' \
138 --dir /var/service/altqmail/root/var/qmail/queue/local/10 'attr(0700,qmails,qmail)' \
139 --dir /var/service/altqmail/root/var/qmail/queue/local/11 'attr(0700,qmails,qmail)' \
140 --dir /var/service/altqmail/root/var/qmail/queue/local/12 'attr(0700,qmails,qmail)' \
141 --dir /var/service/altqmail/root/var/qmail/queue/local/13 'attr(0700,qmails,qmail)' \
142 --dir /var/service/altqmail/root/var/qmail/queue/local/14 'attr(0700,qmails,qmail)' \
143 --dir /var/service/altqmail/root/var/qmail/queue/local/15 'attr(0700,qmails,qmail)' \
144 --dir /var/service/altqmail/root/var/qmail/queue/local/16 'attr(0700,qmails,qmail)' \
145 --dir /var/service/altqmail/root/var/qmail/queue/local/17 'attr(0700,qmails,qmail)' \
146 --dir /var/service/altqmail/root/var/qmail/queue/local/18 'attr(0700,qmails,qmail)' \
147 --dir /var/service/altqmail/root/var/qmail/queue/local/19 'attr(0700,qmails,qmail)' \
148 --dir /var/service/altqmail/root/var/qmail/queue/local/20 'attr(0700,qmails,qmail)' \
149 --dir /var/service/altqmail/root/var/qmail/queue/local/21 'attr(0700,qmails,qmail)' \
150 --dir /var/service/altqmail/root/var/qmail/queue/local/22 'attr(0700,qmails,qmail)' \
151 --dir /var/service/altqmail/root/var/qmail/queue/info 'attr(0700,qmails,qmail)' \
152 --dir /var/service/altqmail/root/var/qmail/queue/info/0 'attr(0700,qmails,qmail)' \
153 --dir /var/service/altqmail/root/var/qmail/queue/info/1 'attr(0700,qmails,qmail)' \
154 --dir /var/service/altqmail/root/var/qmail/queue/info/2 'attr(0700,qmails,qmail)' \
155 --dir /var/service/altqmail/root/var/qmail/queue/info/3 'attr(0700,qmails,qmail)' \
156 --dir /var/service/altqmail/root/var/qmail/queue/info/4 'attr(0700,qmails,qmail)' \
157 --dir /var/service/altqmail/root/var/qmail/queue/info/5 'attr(0700,qmails,qmail)' \
158 --dir /var/service/altqmail/root/var/qmail/queue/info/6 'attr(0700,qmails,qmail)' \
159 --dir /var/service/altqmail/root/var/qmail/queue/info/7 'attr(0700,qmails,qmail)' \
160 --dir /var/service/altqmail/root/var/qmail/queue/info/8 'attr(0700,qmails,qmail)' \
161 --dir /var/service/altqmail/root/var/qmail/queue/info/9 'attr(0700,qmails,qmail)' \
162 --dir /var/service/altqmail/root/var/qmail/queue/info/10 'attr(0700,qmails,qmail)' \
163 --dir /var/service/altqmail/root/var/qmail/queue/info/11 'attr(0700,qmails,qmail)' \
164 --dir /var/service/altqmail/root/var/qmail/queue/info/12 'attr(0700,qmails,qmail)' \
165 --dir /var/service/altqmail/root/var/qmail/queue/info/13 'attr(0700,qmails,qmail)' \
166 --dir /var/service/altqmail/root/var/qmail/queue/info/14 'attr(0700,qmails,qmail)' \
167 --dir /var/service/altqmail/root/var/qmail/queue/info/15 'attr(0700,qmails,qmail)' \
168 --dir /var/service/altqmail/root/var/qmail/queue/info/16 'attr(0700,qmails,qmail)' \
169 --dir /var/service/altqmail/root/var/qmail/queue/info/17 'attr(0700,qmails,qmail)' \
170 --dir /var/service/altqmail/root/var/qmail/queue/info/18 'attr(0700,qmails,qmail)' \
171 --dir /var/service/altqmail/root/var/qmail/queue/info/19 'attr(0700,qmails,qmail)' \
172 --dir /var/service/altqmail/root/var/qmail/queue/info/20 'attr(0700,qmails,qmail)' \
173 --dir /var/service/altqmail/root/var/qmail/queue/info/21 'attr(0700,qmails,qmail)' \
174 --dir /var/service/altqmail/root/var/qmail/queue/info/22 'attr(0700,qmails,qmail)' \
175 --dir /var/service/altqmail/root/var/qmail/queue/pid 'attr(0700,qmailq,qmail)' \
176 --dir /var/service/altqmail/root/var/qmail/queue/remote 'attr(0700,qmails,qmail)' \
177 --dir /var/service/altqmail/root/var/qmail/queue/remote/0 'attr(0700,qmails,qmail)' \
178 --dir /var/service/altqmail/root/var/qmail/queue/remote/1 'attr(0700,qmails,qmail)' \
179 --dir /var/service/altqmail/root/var/qmail/queue/remote/2 'attr(0700,qmails,qmail)' \
180 --dir /var/service/altqmail/root/var/qmail/queue/remote/3 'attr(0700,qmails,qmail)' \
181 --dir /var/service/altqmail/root/var/qmail/queue/remote/4 'attr(0700,qmails,qmail)' \
182 --dir /var/service/altqmail/root/var/qmail/queue/remote/5 'attr(0700,qmails,qmail)' \
183 --dir /var/service/altqmail/root/var/qmail/queue/remote/6 'attr(0700,qmails,qmail)' \
184 --dir /var/service/altqmail/root/var/qmail/queue/remote/7 'attr(0700,qmails,qmail)' \
185 --dir /var/service/altqmail/root/var/qmail/queue/remote/8 'attr(0700,qmails,qmail)' \
186 --dir /var/service/altqmail/root/var/qmail/queue/remote/9 'attr(0700,qmails,qmail)' \
187 --dir /var/service/altqmail/root/var/qmail/queue/remote/10 'attr(0700,qmails,qmail)' \
188 --dir /var/service/altqmail/root/var/qmail/queue/remote/11 'attr(0700,qmails,qmail)' \
189 --dir /var/service/altqmail/root/var/qmail/queue/remote/12 'attr(0700,qmails,qmail)' \
190 --dir /var/service/altqmail/root/var/qmail/queue/remote/13 'attr(0700,qmails,qmail)' \
191 --dir /var/service/altqmail/root/var/qmail/queue/remote/14 'attr(0700,qmails,qmail)' \
192 --dir /var/service/altqmail/root/var/qmail/queue/remote/15 'attr(0700,qmails,qmail)' \
193 --dir /var/service/altqmail/root/var/qmail/queue/remote/16 'attr(0700,qmails,qmail)' \
194 --dir /var/service/altqmail/root/var/qmail/queue/remote/17 'attr(0700,qmails,qmail)' \
195 --dir /var/service/altqmail/root/var/qmail/queue/remote/18 'attr(0700,qmails,qmail)' \
196 --dir /var/service/altqmail/root/var/qmail/queue/remote/19 'attr(0700,qmails,qmail)' \
197 --dir /var/service/altqmail/root/var/qmail/queue/remote/20 'attr(0700,qmails,qmail)' \
198 --dir /var/service/altqmail/root/var/qmail/queue/remote/21 'attr(0700,qmails,qmail)' \
199 --dir /var/service/altqmail/root/var/qmail/queue/remote/22 'attr(0700,qmails,qmail)' \
200 --dir /var/service/altqmail/root/var/qmail/queue/mess 'attr(0750,qmailq,qmail)' \
201 --dir /var/service/altqmail/root/var/qmail/queue/mess/0 'attr(0750,qmailq,qmail)' \
202 --dir /var/service/altqmail/root/var/qmail/queue/mess/1 'attr(0750,qmailq,qmail)' \
203 --dir /var/service/altqmail/root/var/qmail/queue/mess/2 'attr(0750,qmailq,qmail)' \
204 --dir /var/service/altqmail/root/var/qmail/queue/mess/3 'attr(0750,qmailq,qmail)' \
205 --dir /var/service/altqmail/root/var/qmail/queue/mess/4 'attr(0750,qmailq,qmail)' \
206 --dir /var/service/altqmail/root/var/qmail/queue/mess/5 'attr(0750,qmailq,qmail)' \
207 --dir /var/service/altqmail/root/var/qmail/queue/mess/6 'attr(0750,qmailq,qmail)' \
208 --dir /var/service/altqmail/root/var/qmail/queue/mess/7 'attr(0750,qmailq,qmail)' \
209 --dir /var/service/altqmail/root/var/qmail/queue/mess/8 'attr(0750,qmailq,qmail)' \
210 --dir /var/service/altqmail/root/var/qmail/queue/mess/9 'attr(0750,qmailq,qmail)' \
211 --dir /var/service/altqmail/root/var/qmail/queue/mess/10 'attr(0750,qmailq,qmail)' \
212 --dir /var/service/altqmail/root/var/qmail/queue/mess/11 'attr(0750,qmailq,qmail)' \
213 --dir /var/service/altqmail/root/var/qmail/queue/mess/12 'attr(0750,qmailq,qmail)' \
214 --dir /var/service/altqmail/root/var/qmail/queue/mess/13 'attr(0750,qmailq,qmail)' \
215 --dir /var/service/altqmail/root/var/qmail/queue/mess/14 'attr(0750,qmailq,qmail)' \
216 --dir /var/service/altqmail/root/var/qmail/queue/mess/15 'attr(0750,qmailq,qmail)' \
217 --dir /var/service/altqmail/root/var/qmail/queue/mess/16 'attr(0750,qmailq,qmail)' \
218 --dir /var/service/altqmail/root/var/qmail/queue/mess/17 'attr(0750,qmailq,qmail)' \
219 --dir /var/service/altqmail/root/var/qmail/queue/mess/18 'attr(0750,qmailq,qmail)' \
220 --dir /var/service/altqmail/root/var/qmail/queue/mess/19 'attr(0750,qmailq,qmail)' \
221 --dir /var/service/altqmail/root/var/qmail/queue/mess/20 'attr(0750,qmailq,qmail)' \
222 --dir /var/service/altqmail/root/var/qmail/queue/mess/21 'attr(0750,qmailq,qmail)' \
223 --dir /var/service/altqmail/root/var/qmail/queue/mess/22 'attr(0750,qmailq,qmail)' \
224 --dir /var/service/altqmail/root/var/qmail/queue/todo 'attr(0750,qmailq,qmail)' \
225 > %{name}-%{version}-filelist
226
227 %files -f %{name}-%{version}-filelist
228 %defattr(-,root,root)
229
230 %clean
231 rm -rf $RPM_BUILD_ROOT
232
233 %pre
234
235 %post
236
237 %preun
238

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