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