3 Summary: SquirrelMail plugin that allows to configure the behavior of the SpamAssassin
4 Summary(pl.UTF-8): Wtyczka dla SquirrelMaila pozwalająca kontrolować zachowanie SpamAssassina
5 Name: squirrelmail-plugin-%{_plugin}
9 Group: Applications/Mail
10 Source0: http://www.squirrelmail.org/plugins/%{_plugin}.%{version}-%{mversion}.tar.gz
11 # Source0-md5: cd5dc5d89fa6827a5b662525b16afc89
12 URL: http://www.squirrelmail.org/plugin_view.php?id=111
14 Requires: squirrelmail >= 1.4.6-2
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _plugindir %{_datadir}/squirrelmail/plugins/%{_plugin}
19 %define _sysconfdir /etc/webapps/squirrelmail
22 SAConf is a SquirrelMail plugin that allows users to configure the
23 behavior of the SpamAssassin mail filter. Specifically SAConf can
24 modify a user's spam threshold value, whitelist contents, and
25 destination folder for spam. SAConf connects to the mail server via
26 FTP and modifies the user's .procmailrc and .spamassassin/user_prefs
27 files. FTP support in PHP is required to use SAConf.
29 %description -l pl.UTF-8
30 SAConf to wtyczka SquirrelMaila umożliwiająca kontrolowanie zachowania
31 SpamAssassina (w szczególności wartości progowej, zawartości białej
32 listy i folderu na spam) poprzez modyfikację plików .procmailrc i
33 .spamassassin/user_prefs w katalogu użytkownika. Wymagana jest obsługa
37 %setup -q -n %{_plugin}
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_plugindir} $RPM_BUILD_ROOT%{_sysconfdir}
43 install *.php $RPM_BUILD_ROOT%{_plugindir}
44 rm -rf saconf_options.php~
45 mv $RPM_BUILD_ROOT%{_plugindir}/saconf_conf.php $RPM_BUILD_ROOT%{_sysconfdir}/saconf_conf.php
46 ln -s %{_sysconfdir}/saconf_conf.php $RPM_BUILD_ROOT%{_plugindir}/saconf_conf.php
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/saconf_conf.php