]> git.pld-linux.org Git - packages/dovecot.git/blame - dovecot.spec
- 1.0.2
[packages/dovecot.git] / dovecot.spec
CommitLineData
6865becd
JB
1#
2# Conditional build:
f4230487
JB
3%bcond_without ldap # without LDAP auth
4%bcond_without mysql # without MySQL auth
5%bcond_without pgsql # without PostgreSQL auth
b60b3e8a 6%bcond_without sqlite # without SQLite3 auth
f4230487 7%bcond_without sasl # without SASL auth
6865becd 8#
b8f6d56a 9Summary: IMAP and POP3 server written with security primarily in mind
7ad305a6 10Summary(pl.UTF-8): Serwer IMAP i POP3 pisany głównie z myślą o bezpieczeństwie
b8f6d56a 11Name: dovecot
ad378b53 12Version: 1.0.2
13Release: 1
b798e3ac 14License: LGPL v2.1 and MIT
b8f6d56a 15Group: Networking/Daemons
8df3fdc2 16Source0: http://dovecot.org/releases/%{name}-%{version}.tar.gz
ad378b53 17# Source0-md5: 769f0dd2750e7de521de3396999a09e5
8d47df47
TO
18Source1: %{name}.pamd
19Source2: %{name}.init
20Source3: %{name}.sysconfig
21Patch0: %{name}-config.patch
ad378b53 22#Patch1: %{name}-branch.diff
23Patch2: %{name}-dspam-plugin.patch
027cb77c 24URL: http://dovecot.org/
0928494a
JB
25BuildRequires: autoconf
26BuildRequires: automake
f4230487 27%{?with_sasl:BuildRequires: cyrus-sasl-devel >= 2.0}
684bdb24 28BuildRequires: krb5-devel
b7e03084 29BuildRequires: gettext-devel
0928494a 30BuildRequires: libtool
f4230487 31%{?with_mysql:BuildRequires: mysql-devel}
c06c1041 32%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
6ceb4d17 33BuildRequires: openssl-devel >= 0.9.7d
6865becd 34BuildRequires: pam-devel
b7e03084 35BuildRequires: pkgconfig
f4230487 36%{?with_pgsql:BuildRequires: postgresql-devel}
930a78ad 37BuildRequires: sed >= 4.0
a0260ad9 38%{?with_sqlite:BuildRequires: sqlite3-devel}
8d47df47 39Requires(post,preun): /sbin/chkconfig
c1df1ed1
KK
40Requires(postun): /usr/sbin/groupdel
41Requires(postun): /usr/sbin/userdel
42Requires(pre): /bin/id
43Requires(pre): /usr/bin/getgid
44Requires(pre): /usr/sbin/groupadd
45Requires(pre): /usr/sbin/useradd
50c4e802 46Requires: pam >= 0.79.0
c1df1ed1
KK
47Provides: group(dovecot)
48Provides: user(dovecot)
8d47df47 49Provides: imapdaemon
b8f6d56a
JB
50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52%description
53Dovecot is an IMAP and POP3 server for Linux/UNIX-like systems,
54written with security primarily in mind. Although it's written with C,
55it uses several coding techniques to avoid most of the common
56pitfalls.
57
58Dovecot can work with standard mbox and maildir formats and it's fully
59compatible with UW-IMAP and Courier IMAP servers as well as mail
60clients accessing the mailboxes directly. It's also planned to support
61storing mails in SQL databases.
62
63Dovecot is easy to set up and doesn't require special maintenance.
64Only thing you need is to get the authentication working properly - if
65your users are in /etc/passwd there's hardly anything you have to do.
66
67Dovecot should be pretty fast, mostly because of index files that
68Dovecot maintains; instead of having to scan through all the data in
8d47df47
TO
69mailbox, Dovecot can get most of the wanted information from index
70with little effort.
b8f6d56a
JB
71
72Status:
ddfebb5d 73- should be quite ready for use with normal IMAP clients
3fcc147b
KK
74- complete IMAP4rev1 and POP3 support
75- supports THREAD, SORT and IDLE extensions, required by many IMAP
76 webmails
77- complete TLS/SSL support
ddfebb5d 78- IPv6 ready
79- shared mailboxes aren't yet supported
3fcc147b
KK
80- Maildir++ quota is supported, bad hard filesystem quota can be
81 problematic
b8f6d56a 82
db6f7644
JR
83%description -l pl.UTF-8
84Dovecot to serwer IMAP i POP3 dla systemów linuksowych/uniksowych,
85pisany głównie z myślą o bezpieczeństwie. Chociaż jest pisany w C,
86używa kilku technik kodowania zapobiegających większości popularnych
87pułapek.
0928494a 88
db6f7644
JR
89Dovecot może działać ze standardowymi formatami mbox i maildir, jest
90całkowicie kompatybilny z serwerami UW-IMAP i Courier IMAP, a także z
91klientami pocztowymi bezpośrednio dostającymi się do skrzynek.
92Planowana jest także obsługa przechowywania listów w bazach SQL.
0928494a 93
db6f7644
JR
94Dovecot jest łatwy do skonfigurowania i nie wymaga specjalnego
95nadzoru. Wystarczy tylko doprowadzić do działania uwierzytelnianie -
96jeśli użytkownicy są w /etc/passwd, to właściwie nie trzeba nic
97zmieniać.
0928494a 98
db6f7644 99Dovecot powinien być w miarę szybki, głównie z powodu plików
0928494a 100indeksowych utrzymywanych przez serwer; zamiast potrzeby skanowania
db6f7644
JR
101wszystkich danych w skrzynce, Dovecot może małym kosztem uzyskać
102większość potrzebnych informacji z indeksu.
0928494a
JB
103
104Stan:
db6f7644
JR
105- powinien być gotowy do użycia ze zwykłymi klientami IMAP
106- pełna obsługa IMAP4rev1 i POP3
107- obsługa rozszerzeń THREAD, SORT i IDLE, wymaganych przez wiele
3fcc147b 108 webmaili IMAP
db6f7644
JR
109- obsługa IPv6
110- pełna obsługa TLS/SSL
111- quota Maildir++ jest obsługiwana, ale twarda quota na systemach
112 plików może być problematyczna
0928494a 113
b8f6d56a
JB
114%prep
115%setup -q
8d47df47 116%patch0 -p1
ad378b53 117#%patch1 -p1
118%patch2 -p1
77217d94 119
3fcc147b 120%{__sed} -i 's,/usr/lib/dovecot,%{_libdir}/dovecot,g' dovecot-example.conf
b8f6d56a
JB
121
122%build
06cf0ac5 123touch config.rpath
b8f6d56a
JB
124%{__libtoolize}
125%{__aclocal}
126%{__autoconf}
127%{__autoheader}
128%{__automake}
6865becd
JB
129%configure \
130 %{?debug:--enable-debug} \
f4230487
JB
131 %{?with_ldap:--with-ldap} \
132 %{?with_mysql:--with-mysql} \
133 %{?with_pgsql:--with-pgsql} \
134 %{?with_sasl:--with-cyrus-sasl2} \
a0260ad9 135 %{?with_sqlite:--with-sqlite} \
e7291b43 136 --with-gssapi \
6865becd 137 --with-ssl=openssl \
c19c6ee3
AM
138 --with-ssl-dir=/var/lib/openssl \
139 --sysconfdir=/etc/%{name}
b8f6d56a
JB
140
141%{__make}
142
143%install
144rm -rf $RPM_BUILD_ROOT
8d47df47 145install -d $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,sysconfig,security}
e7291b43
KK
146install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir}}
147install -d $RPM_BUILD_ROOT{/var/lib/dovecot,/var/run/dovecot/login}
b8f6d56a
JB
148
149%{__make} install \
442c32c1 150 moduledir=%{_libdir}/%{name}/plugins \
b8f6d56a
JB
151 DESTDIR=$RPM_BUILD_ROOT
152
c19c6ee3 153mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{dovecot-example.conf,dovecot.conf}
b8f6d56a 154
8d47df47
TO
155install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/%{name}
156install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
157install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
158
159touch $RPM_BUILD_ROOT/etc/security/blacklist.imap
160
b8f6d56a
JB
161%clean
162rm -rf $RPM_BUILD_ROOT
163
c1df1ed1
KK
164%pre
165%groupadd -g 172 dovecot
166%useradd -u 172 -d /usr/share/empty -s /bin/false -c "Dovecot server" -g dovecot dovecot
167
8d47df47
TO
168%post
169/sbin/chkconfig --add dovecot
170if [ -f /var/lock/subsys/dovecot ]; then
171 /etc/rc.d/init.d/dovecot restart >&2
172else
173 echo "Run \"/etc/rc.d/init.d/dovecot start\" to start dovecot daemon."
174fi
175
176%preun
177if [ "$1" = "0" ]; then
178 if [ -f /var/lock/subsys/dovecot ]; then
179 /etc/rc.d/init.d/dovecot stop >&2
180 fi
181 /sbin/chkconfig --del dovecot
182fi
183
c1df1ed1
KK
184%postun
185if [ "$1" = "0" ]; then
186 %userremove dovecot
187 %groupremove dovecot
188fi
189
b8f6d56a
JB
190%files
191%defattr(644,root,root,755)
192# COPYING contains some notes, not actual LGPL text
caf88cd1 193%doc AUTHORS COPYING ChangeLog NEWS README TODO doc/*.txt doc/*.c*f doc/wiki/*.txt
8d47df47 194%attr(755,root,root) %{_sbindir}/%{name}
442c32c1 195%attr(755,root,root) %{_sbindir}/%{name}pw
c19c6ee3
AM
196%attr(750,root,root) %dir %{_sysconfdir}/%{name}
197%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
c5c6a170 198%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/%{name}
199%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.imap
200%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
8d47df47
TO
201%attr(754,root,root) /etc/rc.d/init.d/%{name}
202%attr(755,root,root) %{_libdir}/%{name}
e7291b43 203%dir /var/lib/dovecot
c1df1ed1
KK
204%dir /var/run/dovecot
205%attr(750,root,dovecot) %dir /var/run/dovecot/login
This page took 0.059139 seconds and 4 git commands to generate.