dovecot i managesieve

Pawel Dlugosz pawel w dlugosz.eu
Pią, 5 Wrz 2008, 09:28:36 CEST


Jakub Bogusz pisze:
> dovecot-sieve jest pakietowany osobno (dovecot-sieve.spec).
> Samego managesieve się tak nie da?

No właśnie nie wiem jak to obejść. Managesieve wymaga
obecności skompilowanych źródeł dovecot'a i sieve.

>> +# Managesieve daemon patch variables
>> +%define		_ms		managesieve
>> +%define 	mpver 		1.1.2
>> +%define		mpsubver	0.10.3
>> +%define		_ds		dovecot-sieve
>> +%define		dsver		1.1.5
> 
> Makra _ds i _ms są zbędne, tylko zaciemniają speca.

Jasne, nie ma problemu.

>> +%description managesieve
>> +The Sieve plugin for Dovecot's deliver LDA expects a user's Sieve script to reside somewhere in the user's directory (~/.dovecot.sieve by default). If the user is to be able to change his sieve script, he needs shell or FTP access to his home directory, which is not always desirable. This is especially applicable to mail servers with virtual users. As a solution, the ManageSieve protocol was proposed to manage sieve scripts on the server without the need for direct file system access by the users. Additionally, the Sieve scripts are compiled before they are installed, making sure that the uploaded script is valid. This prevents a user from inadvertently installing a broken Sieve script. The protocol specification still has a draft status, but it is already supported by quite a few (web)mail clients. Dovecot now supports ManageSieve by means of an external patch and package.
> 
> Formatowanie (tw=70)

Ok., poprawię.

>> -%setup -q
>> +%setup -q -T -b 0
>> +
>> +%if %{with managesieve}
>> +%setup -q -b 4
>> +%setup -q -b 5
>> +%endif
> 
> Jakieś dziwne kombinacje, do tego:
> - w przypadku with_managesieve główne źródła są rozpakowywane 3 razy,
>   efekt pierwszego %setup jest usuwany
> - źródła 4 i 5 są rozpakowywane poza %{_buildsubdir}, czyli po
>   zbudowaniu pakietu zostają śmieci

A jak to Twoim zdaniem zrobić lepiej?
To że źródła 4 i 5 są poza subdir było zamierzone, ale
zdaję się, że można to wszystko władować do jednego worka.
Sprawdzę.

>> +%{_datadir}/doc/%{name}/*
> 
> Bezpański katalog %{_datadir}/doc/%{name}

Poprawię.

Dzięki za pomoc i zainteresowanie.

-- 
Pozdrawiam,
Paweł 'duddits' Długosz
.::http://dlugosz.eu::.


Więcej informacji o liście dyskusyjnej pld-devel-pl