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