]> git.pld-linux.org Git - packages/dspam.git/blame - dspam.spec
- migrate to apache 2.4
[packages/dspam.git] / dspam.spec
CommitLineData
229005d4 1# TODO:
db5b0be0 2# - support for libdclassify
526e9159 3# - oracle driver
15cf3cba 4# - messages from default install of cron with mysql driver Memory fault
8bd618c3 5# - remove versioned sonames from drivers
c66382e4
PS
6#
7# Conditional build:
f8aabeb4
JB
8%bcond_without mysql # disable MySQL storage driver
9%bcond_without pgsql # disable PostgreSQL storage driver
10%bcond_without sqlite # disable SQLite3 storage driver
5fe98dd6 11%bcond_with mysql40 # use with mysql 4.0
7f1b3cae 12
15cf3cba 13%include /usr/lib/rpm/macros.perl
782a8c09 14Summary: A library and Mail Delivery Agent for Bayesian spam filtering
598ee430 15Summary(pl.UTF-8): Biblioteka i MDA do bayesowskiego filtrowania spamu
782a8c09 16Name: dspam
d554cb42 17Version: 3.9.0
b3ac7ed9 18Release: 7
004c5caf 19License: GPL v2+
782a8c09 20Group: Applications/Mail
004c5caf 21Source0: http://downloads.sourceforge.net/project/dspam/dspam/%{name}-%{version}/%{name}-%{version}.tar.gz
d554cb42 22# Source0-md5: 10d092b57d628d8c91655fee5dc0d0cd
8f52b9af
JR
23Source1: %{name}.init
24Source2: %{name}-apache.conf
25Source3: %{name}.tmpfiles
b3ac7ed9 26Source4: %{name}-httpd.conf
15cf3cba 27Patch0: %{name}-webui.patch
e087d69c 28Patch1: %{name}-config.patch
3857584b 29Patch2: %{name}-speedup.patch
46529756 30Patch3: %{name}-autotools.patch
ea9c5ab2 31Patch4: %{name}-single-char-usernames.patch
4a7592fa 32URL: http://dspam.nuclearelephant.com/
6d23db82
AM
33BuildRequires: autoconf
34BuildRequires: automake
db5b0be0 35BuildRequires: clamav-devel
786a7fbe 36BuildRequires: libtool
526e9159 37%{?with_mysql:BuildRequires: mysql-devel}
8d4dab95 38BuildRequires: openldap-devel >= 2.4.6
526e9159 39%{?with_pgsql:BuildRequires: postgresql-devel}
15cf3cba 40BuildRequires: rpm-perlprov >= 4.1-13
cc754752 41BuildRequires: rpmbuild(macros) >= 1.268
f8aabeb4 42BuildRequires: sed >= 4.0
526e9159 43%{?with_sqlite:BuildRequires: sqlite3-devel}
db5b0be0 44BuildRequires: zlib-devel
786a7fbe 45Requires(post,preun): /sbin/chkconfig
5a3e1b1e 46Requires: %{name}-common = %{version}-%{release}
8b918ab1 47Requires: %{name}-driver = %{version}-%{release}
786a7fbe 48Requires: rc-scripts
7f1b3cae 49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
782a8c09 50
15cf3cba
ER
51%define _webapps /etc/webapps
52%define _webapp %{name}
53
f220ab73
MB
54# symbols are provided by dspam executable
55%define skip_post_check_so libdspam.so.7.0.0 lib(hash\|mysql\|pgsql\|sqlite3)_drv.so.7.0.0
56
782a8c09
AM
57%description
58DSPAM (as in De-Spam) is an open-source project to create a new kind
59of anti-spam mechanism, and is currently effective as both a
60server-side agent for UNIX email servers and a developer's library for
61mail clients, other anti-spam tools, and similar projects requiring
62drop-in spam filtering.
63
64The DSPAM agent masquerades as the email server's local delivery agent
65and filters/learns spams using an advanced Bayesian statistical
be22be94 66approach (based on Bayes's theorem of combined probabilities) which
782a8c09
AM
67provides an administratively maintenance-free, easy-learning Anti-Spam
68service custom tailored to each individual user's behavior. Advanced
69because on top of standard Bayesian filtering is also incorporated the
70use of Chained Tokens, de-obfuscation, and other enhancements. DSPAM
71works great with Sendmail and Exim, and should work well with any
72other MTA that supports an external local delivery agent (postfix,
73qmail, etc.)
74
8e90da8a
JR
75%description -l pl.UTF-8
76DSPAM (czyli De-Spam) to projekt o otwartych źródłach mający na celu
be22be94 77stworzenie nowego rodzaju mechanizmu antyspamowego. Aktualnie jest
8e90da8a
JR
78efektywny zarówno jako działający po stronie serwera agent dla
79uniksowych serwerów pocztowych jak i biblioteka dla programistów
80klientów pocztowych, innych narzędzi antyspamowych i innych projektów
81wymagających filtrowania spamu w locie.
82
83Agent DSPAM zachowuje się jak lokalny agent dostarczania poczty (MDA)
84i filtruje/uczy się spamu przy użyciu zaawansowanego bayesowskiego
85przybliżenia statystycznego (opartego na twierdzeniu Bayesa o
86połączonych prawdopodobieństwach), dając nie wymagającą obsługi
87administracyjnej, łatwo uczącą się usługę antyspamową dostosowaną do
88zachowania każdego użytkownika. Metoda jest zaawansowana ponieważ na
89podstawie standardowego filtrowania bayesowskiego wprowadzono użycie
90tokenów łańcuchowych, eliminowanie ukrywanie i inne rozszerzenia.
91DSPAM działa wspaniale z Sendmailem i Eximem, powinien działać dobrze
92z każdym innym MTA obsługującym zewnętrznego agenta MDA (postfiksem,
be22be94
JB
93qmailem itd.).
94
6d23db82 95%package client
a109c72f 96Summary: dspam client
598ee430 97Summary(pl.UTF-8): Klient dspam
a109c72f 98Group: Applications/Mail
14841820 99Requires: %{name}-common
6d23db82
AM
100
101%description client
102dspam client.
103
8e90da8a 104%description client -l pl.UTF-8
6d23db82
AM
105Klient dspam.
106
5a3e1b1e 107%package common
108Summary: Common files for dspam packages
109Summary(pl.UTF-8): Wspólne pliki dla pakietów z dspamem
110Group: Applications/Mail
111
112%description common
113Common files for dspam and dspam-client packages.
114
8abc107a 115%description common -l pl.UTF-8
5a3e1b1e 116Wspólne pliki dla pakietów dspam i dspam-client.
117
782a8c09 118%package libs
be22be94 119Summary: A library for Bayesian spam filtering
598ee430 120Summary(pl.UTF-8): Biblioteka do bayesowskiego filtrowania spamu
782a8c09 121Group: Libraries
bcb1bcd3 122Obsoletes: dspam-driver-db
782a8c09
AM
123
124%description libs
125DSPAM (as in De-Spam) is an open-source project to create a new kind
126of anti-spam mechanism, and is currently effective as both a
127server-side agent for UNIX email servers and a developer's library for
128mail clients, other anti-spam tools, and similar projects requiring
129drop-in spam filtering.
130
be22be94
JB
131This package contains the library.
132
8e90da8a
JR
133%description libs -l pl.UTF-8
134DSPAM (czyli De-Spam) to projekt o otwartych źródłach mający na celu
be22be94 135stworzenie nowego rodzaju mechanizmu antyspamowego. Aktualnie jest
8e90da8a
JR
136efektywny zarówno jako działający po stronie serwera agent dla
137uniksowych serwerów pocztowych jak i biblioteka dla programistów
138klientów pocztowych, innych narzędzi antyspamowych i innych projektów
139wymagających filtrowania spamu w locie.
be22be94 140
8e90da8a 141Ten pakiet zawiera wspomnianą bibliotekę.
782a8c09
AM
142
143%package devel
be22be94 144Summary: Header files for the DSPAM library
598ee430 145Summary(pl.UTF-8): Pliki nagłówkowe biblioteki DSPAM
782a8c09
AM
146Group: Development/Libraries
147Requires: %{name}-libs = %{version}-%{release}
148
149%description devel
150DSPAM has had its core engine moved into a separate library, libdspam.
151This library can be used by developers to provide 'drop-in' spam
152filtering for their mail client applications, other anti-spam tools,
153or similar projects.
154
8e90da8a
JR
155%description devel -l pl.UTF-8
156Główny silnik DSPAM został przeniesiony do oddzielnej biblioteki
157libdspam, która może być używana przez programistów do zapewnienia
158filtrowania spamu w locie dla aplikacji klientów pocztowych, innych
159narzędzi antyspamowych i podobnych projektów.
be22be94
JB
160
161%package static
162Summary: Static DSPAM library
598ee430 163Summary(pl.UTF-8): Statyczna biblioteka DSPAM
be22be94
JB
164Group: Development/Libraries
165Requires: %{name}-devel = %{version}-%{release}
166
167%description static
168Static DSPAM library.
169
8e90da8a 170%description static -l pl.UTF-8
be22be94
JB
171Statyczna biblioteka DSPAM.
172
db5b0be0
AM
173%package driver-hash
174Summary: HASH driver for DSPAM
598ee430 175Summary(pl.UTF-8): Sterownik HASH dla DSPAM-a
db5b0be0 176Group: Libraries
f0445c01 177Requires(post): sed >= 4.0
8b918ab1 178Requires: %{name} = %{version}-%{release}
db5b0be0
AM
179Provides: %{name}-driver = %{version}-%{release}
180
181%description driver-hash
182HASH driver for DSPAM.
183
8e90da8a 184%description driver-hash -l pl.UTF-8
f8aabeb4
JB
185Sterownik HASH dla DSPAM-a.
186
db5b0be0
AM
187%package driver-mysql
188Summary: MySQL driver for DSPAM
598ee430 189Summary(pl.UTF-8): Sterownik MySQL dla DSPAM-a
db5b0be0 190Group: Libraries
f0445c01 191Requires(post): sed >= 4.0
8b918ab1 192Requires: %{name} = %{version}-%{release}
db5b0be0
AM
193Provides: %{name}-driver = %{version}-%{release}
194
195%description driver-mysql
196MySQL driver for DSPAM.
197
8e90da8a 198%description driver-mysql -l pl.UTF-8
f8aabeb4
JB
199Sterownik MySQL dla DSPAM-a.
200
db5b0be0
AM
201%package driver-pgsql
202Summary: PostgreSQL driver for DSPAM
598ee430 203Summary(pl.UTF-8): Sterownik PostgreSQL dla DSPAM-a
db5b0be0 204Group: Libraries
f0445c01 205Requires(post): sed >= 4.0
8b918ab1 206Requires: %{name} = %{version}-%{release}
db5b0be0
AM
207Provides: %{name}-driver = %{version}-%{release}
208
209%description driver-pgsql
210PostgreSQL driver for DSPAM.
211
8e90da8a 212%description driver-pgsql -l pl.UTF-8
f8aabeb4
JB
213Sterownik PostgreSQL dla DSPAM-a.
214
14841820 215%package driver-sqlite3
db5b0be0 216Summary: SQLite driver for DSPAM
598ee430 217Summary(pl.UTF-8): Sterownik SQLite dla DSPAM-a
db5b0be0 218Group: Libraries
f0445c01 219Requires(post): sed >= 4.0
8b918ab1 220Requires: %{name} = %{version}-%{release}
db5b0be0 221Provides: %{name}-driver = %{version}-%{release}
14841820 222Obsoletes: dspam-driver-sqlite
db5b0be0 223
14841820 224%description driver-sqlite3
db5b0be0
AM
225SQLite driver for DSPAM.
226
14841820 227%description driver-sqlite3 -l pl.UTF-8
f8aabeb4
JB
228Sterownik SQLite dla DSPAM-a.
229
15cf3cba 230%package webui
0fdbb95f 231Summary: DSPAM Web UI
598ee430 232Summary(pl.UTF-8): Interfejs WWW do programu DSPAM
15cf3cba
ER
233Group: Applications/WWW
234Requires: webapps
0fdbb95f
ER
235# needs dspam binary
236Requires: %{name} = %{version}-%{release}
b3ac7ed9 237Conflicts: apache-base < 2.4.0-1
15cf3cba
ER
238
239%description webui
240The Web UI (CGI client) can be run from any executable location on a
241web server, and detects its user's identity from the REMOTE_USER
242environment variable. This means you'll need to use HTTP password
243authentication to access the CGI (Any type of authentication will
244work, so long as Apache supports the module). This is also convenient
245in that you can set up authentication using almost any existing system
246you have. The only catch is that you'll need the usernames to match
247the actual DSPAM usernames used the system. A copy of the shadow
248password file will suffice for most common installs.
249
8e90da8a
JR
250%description webui -l pl.UTF-8
251Interfejs użytkownika WWW (klient CGI) może być uruchamiany z
252dowolnego wykonywalnego miejsca na serwerze WWW i rozpoznaje tożsamość
253użytkownika ze zmiennej środowiskowej REMOTE_USER. Oznacza to, że
254trzeba użyć uwietrzytelnienia HTTP z hasłem do dostępu do CGI (działać
255będzie dowolny rodzaj uwierzytelnienia obsługiwany przez moduły
256Apache'a). Jest to o tyle wygodne, że można skonfigurować
257uwierzytelnianie dla prawie każdego istniejącego systemu. Jedynym
258wymogiem jest, żeby nazwy użytkowników pokrywały się z nazwami
259użytkowników DSPAM-a używanymi w systemie. Kopia pliku shadow
260wystarczy dla większości popularnych instalacji.
70a25296 261
782a8c09
AM
262%prep
263%setup -q
15cf3cba 264%patch0 -p1
e087d69c 265%patch1 -p1
3857584b 266%patch2 -p1
46529756 267%patch3 -p1
ea9c5ab2 268%patch4 -p1
6d23db82 269sed -i -e 's#\-static##g' src/Makefile* src/*/Makefile*
5fe98dd6 270%{?with_mysql40:sed -i -e 's#40100#99999#g' src/mysql_drv.c}
1e8d0a98 271sed -i -e 's,/usr/local/dspam/bin,/usr/bin,' ./scripts/train.pl
782a8c09
AM
272
273%build
6d23db82
AM
274%{__libtoolize}
275%{__aclocal} -I m4
276%{__autoconf}
900e7086 277%{__autoheader}
6d23db82 278%{__automake}
f0445c01
ER
279
280DRIVERS="
281hash_drv
f0445c01
ER
282%{?with_mysql:mysql_drv}
283%{?with_pgsql:pgsql_drv}
46529756 284%{?with_sqlite:sqlite3_drv}
f0445c01 285"
c66382e4 286%configure \
0fdbb95f 287 --disable-dependency-tracking \
994bfba1 288 %{?debug: --enable-debug --enable-bnr-debug --enable-verbose-debug} \
be22be94 289 --enable-trusted-user-security \
be22be94 290 --enable-large-scale \
f0445c01
ER
291 --with-dspam-home=/var/lib/%{name} \
292 --with-dspam-home-owner=none \
293 --with-dspam-home-group=none \
be22be94
JB
294 --with-dspam-owner=none \
295 --with-dspam-group=none \
900e7086 296 --with-logdir=/var/log/%{name} \
db5b0be0
AM
297 --enable-ldap \
298 --enable-clamav \
299 --enable-preferences-extension \
300 --enable-long-usernames \
f0445c01
ER
301 --enable-virtual-users \
302 --with-storage-driver=$(echo $DRIVERS | tr ' ' ',') \
db5b0be0 303%if %{with mysql}
be22be94 304 --with-mysql-includes=%{_includedir}/mysql \
db5b0be0 305 --with-mysql-libraries=%{_libdir} \
526e9159 306%endif
ad84258d 307%if %{with pgsql}
2dd25777 308 --with-pgsql-includes=%{_includedir}/postgresql \
db5b0be0 309 --with-pgsql-libraries=%{_libdir} \
526e9159 310%endif
46529756 311%if 0
6d23db82 312%if %{with sqlite}
46529756 313 --with-sqlite-includes=%{_includedir} \
314 --with-sqlite-libraries=%{_libdir} \
315%endif
c66382e4 316%endif
db5b0be0
AM
317 --enable-daemon
318
319# --enable-dclassify-extension needs libdclassify
320
9128325e 321%{__make} -j1
782a8c09
AM
322
323%install
324rm -rf $RPM_BUILD_ROOT
1e8d0a98 325install -d $RPM_BUILD_ROOT{/var/run/dspam,/etc/{rc.d/init.d,sysconfig}} \
8f52b9af
JR
326 $RPM_BUILD_ROOT/var/lib/%{name}/{txt,data} \
327 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
782a8c09 328
f220ab73 329%{__make} -j1 install \
b68e9706 330 DESTDIR=$RPM_BUILD_ROOT
782a8c09 331
6d23db82
AM
332install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dspam
333
3857584b
ER
334cp -a txt/*.txt $RPM_BUILD_ROOT/var/lib/%{name}/txt
335
782a8c09 336# install devel files
3a63f112 337install -d $RPM_BUILD_ROOT{%{_includedir}/%{name},/var/{log,lib}/%{name}}
c8020429 338install src/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
782a8c09
AM
339
340# provide maintenance scripts
e087d69c 341install -d $RPM_BUILD_ROOT/etc/cron.{daily,weekly}
43a9bb3e 342cat > $RPM_BUILD_ROOT/etc/cron.daily/%{name} <<EOF
782a8c09 343#!/bin/sh
db3f75b1 344exec %{_bindir}/%{name}_clean -s -p
782a8c09
AM
345EOF
346
be22be94 347chmod 755 $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/%{name}
782a8c09 348
782a8c09 349# fix purge stuff
c8020429 350#install dspam-cron.weekly $RPM_BUILD_ROOT%{_sysconfdir}/cron.weekly/%{name}
b266c73e
PS
351
352%if %{with mysql}
be22be94 353cat > $RPM_BUILD_ROOT/var/lib/%{name}/mysql.data <<EOF
782a8c09
AM
354_UNCONFIGURED_
355
356Note!
357
358This file can only contain 5 lines with the following values:
359
360HOSTNAME
361PORT
362USERNAME
363PASSWORD
364DATABASE
365EOF
b266c73e 366%endif
782a8c09 367
2dd25777 368%if %{with pgsql}
2dd25777
SP
369cat > $RPM_BUILD_ROOT/var/lib/%{name}/pgsql.data <<EOF
370_UNCONFIGURED_
371
372Note!
373
374This file can only contain 5 lines with the following values:
375
376HOSTNAME
377PORT
378USERNAME
379PASSWORD
380DATABASE
381EOF
382%endif
383
15cf3cba
ER
384install -d $RPM_BUILD_ROOT%{_webapps}/%{_webapp}
385install %{SOURCE2} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
b3ac7ed9 386install %{SOURCE4} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
15cf3cba
ER
387touch $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/htpasswd
388
8f52b9af
JR
389install %{SOURCE3} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
390
f220ab73
MB
391# cleanup
392%{__rm} $RPM_BUILD_ROOT%{_libdir}/dspam/*.{a,la}
393
6d23db82
AM
394%post
395/sbin/chkconfig --add dspam
cc754752 396%service dspam restart "dspam daemon"
6d23db82
AM
397
398%preun
399if [ "$1" = "0" ]; then
cc754752 400 %service dspam stop
526e9159 401 /sbin/chkconfig --del dspam
6d23db82
AM
402fi
403
782a8c09 404%clean
be22be94
JB
405rm -rf $RPM_BUILD_ROOT
406
407%post libs -p /sbin/ldconfig
408%postun libs -p /sbin/ldconfig
782a8c09 409
f0445c01 410%post driver-hash
e7eb5bbf 411%{__sed} -i -e '/^StorageDriver/s,/.*\.so,%{_libdir}/dspam/libhash_drv.so,' /etc/dspam.conf
f0445c01
ER
412
413%post driver-mysql
e7eb5bbf 414%{__sed} -i -e '/^StorageDriver/s,/.*\.so,%{_libdir}/dspam/libmysql_drv.so,' /etc/dspam.conf
f0445c01
ER
415
416%post driver-pgsql
e7eb5bbf 417%{__sed} -i -e '/^StorageDriver/s,/.*\.so,%{_libdir}/dspam/libpgsql_drv.so,' /etc/dspam.conf
f0445c01 418
14841820 419%post driver-sqlite3
e7eb5bbf 420%{__sed} -i -e '/^StorageDriver/s,/.*\.so,%{_libdir}/dspam/libsqlite3_drv.so,' /etc/dspam.conf
f0445c01 421
769bc997 422%triggerin webui -- apache1 < 1.3.37-3, apache1-base
15cf3cba
ER
423%webapp_register apache %{_webapp}
424
769bc997 425%triggerun webui -- apache1 < 1.3.37-3, apache1-base
15cf3cba
ER
426%webapp_unregister apache %{_webapp}
427
b3ac7ed9 428%triggerin webui -- apache-base
15cf3cba
ER
429%webapp_register httpd %{_webapp}
430
b3ac7ed9 431%triggerun webui -- apache-base
15cf3cba
ER
432%webapp_unregister httpd %{_webapp}
433
782a8c09
AM
434%files
435%defattr(644,root,root,755)
6c5841c4 436%doc README CHANGELOG RELEASE.NOTES UPGRADING
db5b0be0 437%doc doc/{courier,exim,markov,pop3filter,postfix,qmail,relay,sendmail}.txt
1e8d0a98 438%doc scripts/train.pl
8f52b9af 439/usr/lib/tmpfiles.d/%{name}.conf
e087d69c 440%dir %attr(775,root,mail) /var/run/dspam
1e8d0a98
ER
441%dir %attr(750,root,mail) /var/lib/%{name}
442%dir %attr(770,root,mail) /var/lib/%{name}/data
3857584b 443%dir /var/lib/%{name}/txt
59a71e8c 444%dir %{_libdir}/dspam
3857584b 445%config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/txt/*.txt
3a63f112 446%dir %attr(770,root,mail) /var/log/dspam
e087d69c 447%attr(754,root,root) /etc/rc.d/init.d/dspam
43a9bb3e 448%attr(755,root,root) %config(noreplace) /etc/cron.daily/%{name}
9c99041b
AM
449%attr(755,root,root) %{_bindir}/%{name}
450%attr(755,root,root) %{_bindir}/%{name}_logrotate
be22be94 451%attr(755,root,root) %{_bindir}/%{name}_clean
be22be94
JB
452%attr(755,root,root) %{_bindir}/%{name}_crc
453%attr(755,root,root) %{_bindir}/%{name}_dump
be22be94
JB
454%attr(755,root,root) %{_bindir}/%{name}_stats
455%attr(755,root,root) %{_bindir}/%{name}_merge
ca8f3468 456%attr(755,root,root) %{_bindir}/%{name}_2sql
6c5841c4 457%attr(755,root,root) %{_bindir}/%{name}_admin
afb1dbdc 458%attr(755,root,root) %{_bindir}/%{name}_train
dcc5a193 459%{_mandir}/man?/%{name}*
782a8c09 460
6d23db82
AM
461%files client
462%defattr(644,root,root,755)
9c99041b 463%attr(755,root,root) %{_bindir}/%{name}c
6d23db82 464
5a3e1b1e 465%files common
466%defattr(644,root,root,755)
467%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dspam.conf
468
782a8c09
AM
469%files libs
470%defattr(644,root,root,755)
46529756 471%attr(755,root,root) %{_libdir}/libdspam.so.7.0.0
472%attr(755,root,root) %ghost %{_libdir}/libdspam.so.7
782a8c09
AM
473
474%files devel
475%defattr(644,root,root,755)
46529756 476%attr(755,root,root) %{_libdir}/libdspam.so
46529756 477%{_libdir}/libdspam.la
be22be94 478%{_includedir}/%{name}
46529756 479%{_mandir}/man3/libdspam.3*
8bd618c3 480%{_pkgconfigdir}/dspam.pc
be22be94
JB
481
482%files static
483%defattr(644,root,root,755)
46529756 484%{_libdir}/libdspam.a
db5b0be0
AM
485
486%files driver-hash
487%defattr(644,root,root,755)
488%attr(755,root,root) %{_bindir}/css*
f220ab73 489%attr(755,root,root) %{_libdir}/dspam/libhash_drv.so*
db5b0be0 490
db5b0be0
AM
491%if %{with mysql}
492%files driver-mysql
493%defattr(644,root,root,755)
494%doc doc/mysql_drv.txt src/tools.mysql_drv/*.sql
495%attr(640,root,mail) %config(noreplace) /var/lib/%{name}/mysql.data
f220ab73 496%attr(755,root,root) %{_libdir}/dspam/libmysql_drv.so*
db5b0be0
AM
497%endif
498
499%if %{with pgsql}
500%files driver-pgsql
501%defattr(644,root,root,755)
502%doc doc/pgsql_drv.txt src/tools.pgsql_drv/*.sql
503%attr(640,root,mail) %config(noreplace) /var/lib/%{name}/pgsql.data
504%attr(755,root,root) %{_bindir}/%{name}_pg2int8
f220ab73 505%attr(755,root,root) %{_libdir}/dspam/libpgsql_drv.so*
db5b0be0
AM
506%endif
507
508%if %{with sqlite}
14841820 509%files driver-sqlite3
db5b0be0
AM
510%defattr(644,root,root,755)
511%doc doc/sqlite_drv.txt
f220ab73 512%attr(755,root,root) %{_libdir}/dspam/libsqlite3_drv.so*
db5b0be0 513%endif
15cf3cba
ER
514
515%files webui
516%defattr(644,root,root,755)
517%dir %attr(750,root,http) %{_webapps}/%{_webapp}
518%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/apache.conf
519%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf
0fdbb95f
ER
520%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/htpasswd
521%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/admins
522%attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/default.prefs
523%config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/configure.pl
15cf3cba
ER
524
525%dir %{_datadir}/dspam
526%dir %{_datadir}/dspam/cgi
527%attr(755,root,root) %{_datadir}/dspam/cgi/*.cgi
528%{_datadir}/dspam/cgi/templates
529%{_datadir}/dspam/htdocs
This page took 0.138817 seconds and 4 git commands to generate.