]> git.pld-linux.org Git - packages/dcc-dccd.git/blob - dcc-dccd.spec
- updated to 1.2.32
[packages/dcc-dccd.git] / dcc-dccd.spec
1 Summary:        Distributed Checksum Clearinghouse, anti-spam tool
2 Summary(pl):    Narzêdzie anty-spamowe bazuj±ce na sumach kontrolnych (DCC)
3 Name:           dcc-dccd
4 Version:        1.2.32
5 Release:        1
6 License:        BSD-like
7 Group:          Networking
8 Source0:        http://www.dcc-servers.net/dcc/source/%{name}-%{version}.tar.Z
9 # Source0-md5:  7cb772a9f128ce79c23f5961e1954698
10 URL:            http://www.dcc-servers.net/
11 Requires(pre):  /usr/sbin/useradd
12 Requires(postun):       /usr/sbin/userdel
13 Requires(post,preun):   /sbin/chkconfig
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         dccdir  /var/lib/dcc
17 %define         cgidir  /srv/httpd/cgi-bin
18
19 %description
20 Distributed Checksum Clearinghouse or DCC is a cooperative,
21 distributed system intended to detect "bulk" mail or mail sent to many
22 people. It allows individuals receiving a single mail message to
23 determine that many other people have been sent essentially identical
24 copies of the message and so reject the message. It can identify some
25 unsolicited bulk mail using "spam traps" and other detectors, but that
26 is not its focus.
27
28 The DCC can be viewed as a tool for end users to enforce their right
29 to "opt-in" to streams of bulk mail by refusing all bulk mail except
30 from sources in a "white list." White lists are generally the
31 responsibility of DCC clients, since only they know which bulk mail
32 they solicited.
33
34 %description -l pl
35 DCC (Distributed Checksum Clearinghouse) jest kooperatywnym,
36 rozproszonym systemem maj±cym na celu wykrywanie masowej poczty lub
37 poczty wys³anej do wielu ludzi. Pozwala jednostkom otrzymuj±cym
38 pojedynczy list okre¶liæ, jak wielu innych otrzyma³o dok³adnie
39 identyczne kopie tej wiadomo¶ci i na tej podstawie odrzuciæ j±. Mo¿e
40 zidentyfikowaæ niechcian± masow± pocztê przy u¿yciu "pu³apek
41 antyspamowych" i innych wykrywaczy, ale to nie jest podstawowym celem.
42
43 DCC mo¿na odbieraæ jako narzêdzie dla u¿ytkowników koñcowych,
44 zapewniaj±ce im prawo do przeciwstawienia siê zalewowi masowej poczty
45 przez odrzucenie wszystkich ¶mieci oprócz ¼róde³ z "bia³ej listy".
46 Za bia³e listy odpowiadaj± klienci DCC, jako ¿e tylko oni wiedz±,
47 jak± masow± pocztê zamawiali.
48
49 %package client
50 Summary:        Tools to access a DCC server
51 Summary(pl):    Narzêdzia dostêpowe dla serwera DCC
52 Group:          Networking
53 Requires:       %{name} = %{version}
54
55 %description client
56 Distributed Checksum Clearinghouse or DCC is a cooperative,
57 distributed system intended to detect "bulk" mail or mail sent to many
58 people. It allows individuals receiving a single mail message to
59 determine that many other people have been sent essentially identical
60 copies of the message and so reject the message. It can identify some
61 unsolicited bulk mail using "spam traps" and other detectors, but that
62 is not its focus.
63
64 The DCC can be viewed as a tool for end users to enforce their right
65 to "opt-in" to streams of bulk mail by refusing all bulk mail except
66 from sources in a "white list." White lists are generally the
67 responsibility of DCC clients, since only they know which bulk mail
68 they solicited.
69
70 %description -l pl client
71 DCC (Distributed Checksum Clearinghouse) jest kooperatywnym,
72 rozproszonym systemem maj±cym na celu wykrywanie masowej poczty lub
73 poczty wys³anej do wielu ludzi. Pozwala jednostkom otrzymuj±cym
74 pojedynczy list okre¶liæ, jak wielu innych otrzyma³o dok³adnie
75 identyczne kopie tej wiadomo¶ci i na tej podstawie odrzuciæ j±. Mo¿e
76 zidentyfikowaæ niechcian± masow± pocztê przy u¿yciu "pu³apek
77 antyspamowych" i innych wykrywaczy, ale to nie jest podstawowym celem.
78
79 DCC mo¿na odbieraæ jako narzêdzie dla u¿ytkowników koñcowych,
80 zapewniaj±ce im prawo do przeciwstawienia siê zalewowi masowej poczty
81 przez odrzucenie wszystkich ¶mieci oprócz ¼róde³ z "bia³ej listy".
82 Za bia³e listy odpowiadaj± klienci DCC, jako ¿e tylko oni wiedz±,
83 jak± masow± pocztê zamawiali.
84
85 %package server
86 Summary:        DCC Server
87 Summary(pl):    Serwer DCC
88 Group:          Networking
89 Requires:       %{name} = %{version}
90
91 %description server
92 Distributed Checksum Clearinghouse or DCC is a cooperative,
93 distributed system intended to detect "bulk" mail or mail sent to many
94 people. It allows individuals receiving a single mail message to
95 determine that many other people have been sent essentially identical
96 copies of the message and so reject the message. It can identify some
97 unsolicited bulk mail using "spam traps" and other detectors, but that
98 is not its focus.
99
100 The DCC can be viewed as a tool for end users to enforce their right
101 to "opt-in" to streams of bulk mail by refusing all bulk mail except
102 from sources in a "white list." White lists are generally the
103 responsibility of DCC clients, since only they know which bulk mail
104 they solicited.
105
106 %description -l pl server
107 DCC (Distributed Checksum Clearinghouse) jest kooperatywnym,
108 rozproszonym systemem maj±cym na celu wykrywanie masowej poczty lub
109 poczty wys³anej do wielu ludzi. Pozwala jednostkom otrzymuj±cym
110 pojedynczy list okre¶liæ, jak wielu innych otrzyma³o dok³adnie
111 identyczne kopie tej wiadomo¶ci i na tej podstawie odrzuciæ j±. Mo¿e
112 zidentyfikowaæ niechcian± masow± pocztê przy u¿yciu "pu³apek
113 antyspamowych" i innych wykrywaczy, ale to nie jest podstawowym celem.
114
115 DCC mo¿na odbieraæ jako narzêdzie dla u¿ytkowników koñcowych,
116 zapewniaj±ce im prawo do przeciwstawienia siê zalewowi masowej poczty
117 przez odrzucenie wszystkich ¶mieci oprócz ¼róde³ z "bia³ej listy".
118 Za bia³e listy odpowiadaj± klienci DCC, jako ¿e tylko oni wiedz±,
119 jak± masow± pocztê zamawiali.
120
121 %package cgi
122 Summary:        cgi-scripts for managing mail delivery on a DCC enabled server
123 Summary(pl):    Skrypty cgi do obs³ugi dostarczania poczty na serwerze DCC
124 Group:          Networking
125 Requires:       %{name} = %{version}
126
127 %description cgi
128 Example set of cgi-scripts to allow users to point-and-click manage
129 their own DCC whitelists and thus what is delivered to them. Allows
130 overriding of site level lists. The scripts give controlled access to
131 the whitelists which are otherwise in protected directory space (owned
132 by dcc).
133
134 NB these scripts need configured after installation.
135
136 %description cgi -l pl
137 Przyk³adowy zestaw skryptów pozwalaj±cych u¿ytkownikom na klikane
138 zarz±dzenie ich bia³ymi listami DCC, a wiêc i tym, co dostaj±. Pozwala
139 przykrywaæ listy dotycz±ce serwera. Skrypty daj± dostêp do bia³ych
140 list, które normalnie s± w zabezpieczonym katalogu (którego
141 w³a¶cicielem jest DCC).
142
143 Te skrypty wymagaj± konfiguracji po zainstalowaniu.
144
145 %prep
146 %setup -q
147
148 %build
149 %configure2_13 \
150         --prefix=%{dccdir} \
151         --with-uid=99 \
152         --with-cgibin=%{cgidir} \
153         --with-rundir=%{_var}/run \
154         --with-db-memory=32
155
156 %{__make}
157 %{__make} -C dccifd/dccif-test
158
159 %install
160 rm -rf $RPM_BUILD_ROOT
161
162 install -d $RPM_BUILD_ROOT%{_initrddir}
163 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cron.daily,httpd}
164 install -d $RPM_BUILD_ROOT/var/run/dcc
165 install -d $RPM_BUILD_ROOT%{dccdir}/{log,userdirs/{local,esmtp,cyrus,procmail}}
166 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir},%{_libdir}}
167 install -d $RPM_BUILD_ROOT%{_includedir}/dcc
168
169 INST_UID="$( id -u )" INST_GID="$( id -g )"; export INST_UID INST_GID
170
171 %{makeinstall} \
172         MANOWN=$INST_UID \
173         MANGRP=$INST_GID \
174         DCC_SUID=$INST_UID \
175         DCC_OWN=$INST_UID \
176         DCC_GRP=$INST_GID \
177         BINOWN=$INST_UID \
178         GRP=$INST_GID \
179         INSTALL="install -C" \
180         DCC_PROTO_HOMEDIR=$RPM_BUILD_ROOT%{dccdir} \
181         DCC_CGIBINDIR=$RPM_BUILD_ROOT%{cgidir} \
182         DCC_LIBEXECDIR=$RPM_BUILD_ROOT%{_sbindir} \
183         DCC_BINDIR=$RPM_BUILD_ROOT%{_sbindir} \
184         BINDIR=$RPM_BUILD_ROOT%{_bindir} \
185         MANDIR=$RPM_BUILD_ROOT%{_mandir}/man
186
187 install misc/cron-dccd $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/dccd
188 install misc/rcDCC $RPM_BUILD_ROOT%{_initrddir}/dccd
189 install homedir/flod $RPM_BUILD_ROOT%{dccdir}/flod
190
191 # move some binaries in place, wierd stuff...
192 for i in dbclean dblist dccd dccifd dccsight wlist; do
193         mv -f $RPM_BUILD_ROOT%{_bindir}/$i $RPM_BUILD_ROOT%{_sbindir}
194 done
195
196 # install extras
197 install dccifd/dccif-test/dccif-test $RPM_BUILD_ROOT%{_sbindir}
198 install dccifd/dccif-test/dccif-test.pl $RPM_BUILD_ROOT%{_sbindir}
199 install dccifd/dccif.pl $RPM_BUILD_ROOT%{_sbindir}
200
201 # Set some initial logging, but no rejections
202 perl -p -i -e "s/BRAND=\$/BRAND=%{version}-%{release}/ ; s/DCCM_LOG_AT=\$/\$&10/ ; " \
203         $RPM_BUILD_ROOT%{dccdir}/dcc_conf
204
205 # prepare for docs inclusion
206 cp misc/README README.misc
207 cp homedir/README README.homedir
208 cp cgi-bin/README README.cgi-bin
209
210 # install devel files
211 install dccd/*.h $RPM_BUILD_ROOT%{_includedir}/dcc
212 install dcclib/*.h $RPM_BUILD_ROOT%{_includedir}/dcc
213 install include/*.h $RPM_BUILD_ROOT%{_includedir}/dcc
214 install srvrlib/*.h $RPM_BUILD_ROOT%{_includedir}/dcc
215 install dcclib/libdcc.a $RPM_BUILD_ROOT%{_libdir}
216 install srvrlib/libsrvr.a $RPM_BUILD_ROOT%{_libdir}
217 install thrlib/libthr.a $RPM_BUILD_ROOT%{_libdir}
218
219 # house cleaning
220 rm -f $RPM_BUILD_ROOT/var/www/dcc-bin/README
221 rm -f $RPM_BUILD_ROOT%{_sbindir}/rcDCC
222 rm -f $RPM_BUILD_ROOT%{_sbindir}/cron-dccd
223 rm -f $RPM_BUILD_ROOT%{_sbindir}/logger
224 rm -f $RPM_BUILD_ROOT%{_sbindir}/updatedcc
225
226 %clean
227 rm -rf $RPM_BUILD_ROOT
228
229 %pre
230 /usr/sbin/useradd -d /var/dcc -r dcc >/dev/null 2>&1 || :
231
232 %postun
233 if [ $1 = 0 ]; then
234         /usr/sbin/userdel -r dcc > /dev/null 2>&1 || :
235 fi
236
237 %post
238 /sbin/chkconfig --add dccd || :
239 /sbin/chkconfig --level 016 dccd off || :
240 umask 022
241 /usr/bin/cdcc info > %{dccdir}/map.txt || :
242
243 %post cgi
244 echo The scripts need configured and added into your web configuration.
245 echo see %{dccdir}/cgi-bin/README
246
247 %preun
248 if [ $1 = 0 ]; then
249         /sbin/chkconfig --del dccd || :
250         /etc/rc.d/init.d/dccd stop || :
251 fi
252
253 %files
254 %defattr(644,root,root,755)
255 %doc CHANGES FAQ.html FAQ.txt INSTALL.html INSTALL.txt LICENSE cdcc.html
256 %doc dbclean.html dblist.html dccd.html dcc.html dccproc.html
257 %doc dccsight.html homedir/flod homedir/ids homedir/map.txt homedir/README
258 %doc misc/dcc.m4 misc/dccdnsbl.m4 misc/hackmc misc/na-spam misc/ng-spam
259 #%doc dccm.html 
260 %dir %{dccdir}
261 %dir %{dccdir}/log
262 %dir %{dccdir}/userdirs/local
263 %dir %{dccdir}/userdirs/cyrus
264 %dir %{dccdir}/userdirs/procmail
265 %dir %{dccdir}/userdirs/esmtp
266 %dir /var/run/dcc
267 %config(noreplace) %verify(not size mtime md5) %{dccdir}/dcc_conf
268 %config(noreplace) %verify(not size mtime md5) %{dccdir}/whiteclnt
269 %config(noreplace) %verify(not size mtime md5) %{dccdir}/whitecommon
270 %config(noreplace) %verify(not size mtime md5) %{dccdir}/whitelist
271 %config(noreplace) %verify(not size mtime md5) %{dccdir}/ids
272 %config(noreplace) %verify(not size mtime md5) %{dccdir}/flod
273 %attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{dccdir}/map
274 #%config(noreplace) %verify(not size mtime md5) %{dccdir}/dcc_db
275 #%config(noreplace) %verify(not size mtime md5) %{dccdir}/dcc_db.hash
276 %{dccdir}/map.txt
277 %{dccdir}/grey_flod
278 %{dccdir}/grey_whitelist
279
280 %files client
281 %defattr(644,root,root,755)
282 %attr(4755,root,root) %{_bindir}/cdcc
283 %attr(4755,root,root) %{_bindir}/dccproc
284 %{_mandir}/man8/cdcc.8*
285 %{_mandir}/man8/dccproc.8*
286
287 %files server
288 %defattr(644,root,root,755)
289 %attr(754,root,root) /etc/rc.d/init.d/dccd
290 %attr(750,root,root) /etc/cron.daily/dccd
291 %attr(4755,root,root) %{_sbindir}/dccsight
292 %attr(755,root,root) %{_sbindir}/dbclean
293 %attr(755,root,root) %{_sbindir}/dblist
294 %attr(755,root,root) %{_sbindir}/dcc-stats-collect
295 %attr(755,root,root) %{_sbindir}/dcc-stats-graph
296 %attr(755,root,root) %{_sbindir}/dcc-stats-init
297 %attr(755,root,root) %{_sbindir}/dccd
298 %attr(755,root,root) %{_sbindir}/dccif-test
299 %attr(755,root,root) %{_sbindir}/dccif-test.pl
300 %attr(755,root,root) %{_sbindir}/dccif.pl
301 %attr(755,root,root) %{_sbindir}/dccifd
302 %attr(755,root,root) %{_sbindir}/fetch-testmsg-whitelist
303 %attr(755,root,root) %{_sbindir}/hackmc
304 %attr(755,root,root) %{_sbindir}/na-spam
305 %attr(755,root,root) %{_sbindir}/newwebuser
306 %attr(755,root,root) %{_sbindir}/ng-spam
307 %attr(755,root,root) %{_sbindir}/refeed
308 %attr(755,root,root) %{_sbindir}/wlist
309 # sendmail stuff
310 #%attr(755,root,root) %{_sbindir}/dccm
311 #%{_datadir}/sendmail-cf/feature/dcc.m4
312 #%{_datadir}/sendmail-cf/feature/dccdnsbl.m4
313 %attr(755,root,root) %{_sbindir}/start-dccd
314 %attr(755,root,root) %{_sbindir}/start-dccifd
315 %attr(755,root,root) %{_sbindir}/start-dccm
316 %attr(755,root,root) %{_sbindir}/start-grey
317 %attr(755,root,root) %{_sbindir}/stats-get
318 %attr(755,root,root) %{_sbindir}/stop-dccd
319 %{_mandir}/man8/dbclean.8*
320 %{_mandir}/man8/dblist.8*
321 %{_mandir}/man8/dcc.8*
322 %{_mandir}/man8/dccd.8*
323 %{_mandir}/man8/dccifd.8*
324 %{_mandir}/man8/dccm.8*
325 %{_mandir}/man8/dccsight.8*
326
327 %files cgi
328 %defattr(644,root,root,755)
329 %{cgidir}/chgpasswd
330 %{cgidir}/common
331 %{cgidir}/edit-whiteclnt
332 %{cgidir}/http2https
333 %{cgidir}/list-log
334 %{cgidir}/list-msg
335 %{cgidir}/README
336 %{cgidir}/webuser-notify
This page took 0.365809 seconds and 3 git commands to generate.