]> git.pld-linux.org Git - SPECS.git/blob - squirrelmail-plugin-saconf.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / squirrelmail-plugin-saconf.spec
1 %define         _plugin saconf
2 %define         mversion        1.2.7
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}
6 Version:        1.0
7 Release:        1
8 License:        GPL
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
13 Requires:       php(ftp)
14 Requires:       squirrelmail >= 1.4.6-2
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _plugindir      %{_datadir}/squirrelmail/plugins/%{_plugin}
19 %define         _sysconfdir     /etc/webapps/squirrelmail
20
21 %description
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.
28
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
34 prokotołu FTP w PHP.
35
36 %prep
37 %setup -q -n %{_plugin}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_plugindir} $RPM_BUILD_ROOT%{_sysconfdir}
42
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
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc README
54 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/saconf_conf.php
55 %dir %{_plugindir}
56 %{_plugindir}/*.php
This page took 0.907407 seconds and 3 git commands to generate.