]>
Commit | Line | Data |
---|---|---|
dace038e | 1 | # |
2 | # Conditional build: | |
762ddada | 3 | %bcond_without authother # without auth other support |
4 | %bcond_without mysql # without MySQL support | |
5 | %bcond_without ldap # without LDAP support | |
6 | %bcond_without perl # without perl support | |
7 | %bcond_without pam # without pam support | |
45b9197a | 8 | %bcond_without pgsql # without PostgreSQL support |
762ddada | 9 | %bcond_without ssl # without ssl support |
10 | %bcond_without whoson # without WHOSON protocol support | |
dc35a5bc | 11 | %bcond_without gdbm # without gdbm auth db |
6eeee93a | 12 | %bcond_without snide # without snide server responses |
93c339a9 | 13 | %bcond_with skipgetpwcheck # with getpwuid returned struct check ommited (see patch for details) |
dace038e | 14 | # |
11e6ee39 | 15 | Summary: POP3 server |
14a2681c | 16 | Summary(pl.UTF-8): Serwer POP3 |
11e6ee39 | 17 | Name: tpop3d |
60b9fdf0 | 18 | Version: 1.5.5 |
8ec75739 | 19 | Release: 22 |
11e6ee39 | 20 | License: GPL |
6471a6cb | 21 | Group: Networking/Daemons/POP3 |
45faa3af | 22 | Source0: http://download.savannah.nongnu.org/releases/tpop3d/%{name}-%{version}.tar.gz |
60b9fdf0 | 23 | # Source0-md5: febe9ca46b575fcf99fd410caff98f47 |
11e6ee39 | 24 | Source1: %{name}.pamd |
25 | Source2: %{name}.init | |
98af2b42 | 26 | Source3: %{name}.conf |
69131d2f | 27 | Source4: %{name}.sysconfig |
45faa3af AM |
28 | Patch1: %{name}-pam-vdomain.patch |
29 | Patch2: %{name}-sql-getpwuid-optional.patch | |
e085f454 | 30 | Patch3: %{name}-lib.patch |
5ac8323f | 31 | Patch4: %{name}-ssl-chain.patch |
02c7f34b | 32 | Patch5: %{name}-bug-33413.patch |
45faa3af | 33 | URL: https://savannah.nongnu.org/projects/tpop3d |
831f493e | 34 | BuildRequires: autoconf |
35 | BuildRequires: automake | |
da932a62 | 36 | %{?with_gdbm:BuildRequires: gdbm-devel} |
0b017180 | 37 | %{?with_libevent:BuildRequires: libevent-devel} |
762ddada | 38 | %{?with_mysql:BuildRequires: mysql-devel} |
d722ed39 | 39 | %{?with_ldap:BuildRequires: openldap-devel >= 2.4.6} |
34c9b5c0 | 40 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} |
762ddada | 41 | %{?with_pam:BuildRequires: pam-devel} |
45b9197a | 42 | %{?with_pgsql:BuildRequires: postgresql-devel} |
34c9b5c0 | 43 | BuildRequires: rpmbuild(macros) >= 1.268 |
762ddada | 44 | %{?with_whoson:BuildRequires: whoson-devel} |
9a75066a | 45 | Requires(post,preun): /sbin/chkconfig |
e5886b4b | 46 | Requires: pam >= 0.79.0 |
da932a62 | 47 | Requires: rc-scripts |
306bed07 | 48 | %if %{with perl} |
49 | BuildRequires: perl-devel | |
306bed07 | 50 | %endif |
90fb8069 | 51 | Provides: pop3daemon |
5490798a JB |
52 | Obsoletes: courier-imap-pop3 |
53 | Obsoletes: imap-pop | |
54 | Obsoletes: imap-pop3 | |
a0d3b30a | 55 | Obsoletes: pop3daemon |
11e6ee39 | 56 | Obsoletes: qpopper |
57 | Obsoletes: qpopper6 | |
762ddada | 58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
11e6ee39 | 59 | |
11e6ee39 | 60 | %description |
831f493e | 61 | tpop3d is yet-another-pop3-server. The intention has been to write a |
62 | server which is fast, extensible, and secure. `Extensible' is used | |
63 | specifically in the context of new authentication mechanisms and | |
64 | mailbox formats. Presently the distribution supports the following | |
65 | authentication mechanisms: | |
66 | - auth_pam - uses Pluggable Authentication Modules | |
67 | - auth_passwd - /etc/passwd (and optionally /etc/shadow) | |
68 | - auth_mysql - a vmail-sql style MySQL database; see | |
69 | http://www.ex-parrot.com/~chris/vmail-sql/ | |
45b9197a | 70 | - auth_pgsql - uses PostgreSQL database |
831f493e | 71 | - auth_other - an external program |
72 | - auth_perl - embedded perl subroutines | |
73 | ||
45b9197a | 74 | The latter four options provide virtual domain support; the first two |
831f493e | 75 | are designed to authenticate local (Unix) users. |
76 | ||
77 | The following mailbox formats are supported: | |
78 | - bsd - for BSD (`Unix') mailspools | |
79 | - maildir - Qmail-style maildirs | |
80 | - empty - null driver | |
81 | ||
82 | tpop3d implements an optional metadata caching scheme for BSD | |
83 | mailspools, which offers improved performance in cases where many | |
84 | users leave large numbers of messages on the server between sessions. | |
11e6ee39 | 85 | |
14cc442b JR |
86 | %description -l pl.UTF-8 |
87 | tpop3d to jeszcze-jeden-serwer-pop3. Intencją było napisanie serwera, | |
88 | który jest szybki, rozszerzalny i bezpieczny. `Rozszerzalny' jest tu | |
89 | użyte w kontekście formatów skrzynek. Obecnie pakiet dystrybucyjny | |
90 | wspiera następujące mechanizmy autentykacji: | |
64fd138a | 91 | |
14cc442b | 92 | - auth_pam - używa Wymiennych Modułów Autentykacji (PAM) |
64fd138a | 93 | - auth_passwd - /etc/passwd (i opcjonalnie /etc/shadow) |
94 | - auth_mysql - baza MySQL w stylu vmail-sql ; obejrzyj | |
95 | http://www.ex-parrot.com/~chris/vmail-sql/ | |
45b9197a | 96 | - auth_pgsql - baza PostgreSQL |
14cc442b | 97 | - auth_other - zewnętrzny program |
64fd138a | 98 | - auth_perl - zakorzenione podprogramy Perla |
99 | ||
14cc442b JR |
100 | Ostatnie cztery opcje pozwalają wspierać wirtualne domeny; pierwsze |
101 | dwie zaś są stworzone by autentykować lokalnych (uniksowych) | |
102 | użytkowników. | |
64fd138a | 103 | |
14cc442b | 104 | Wspierane są następujące formaty skrzynek: |
3648ccda | 105 | - bsd - dla kolejkowych skrzynek w stylu BSD (`Unix') |
64fd138a | 106 | - maildir - format maildir znany z Qmail |
107 | - empty - pusty sterownik | |
108 | ||
14cc442b JR |
109 | tpop3d implementuje opcjonalne zapamiętywanie (caching) meta-danych |
110 | dla skrzynek BSD, które znacznie poprawia wydajność w przypadku, gdy | |
111 | wielu użytkowników zostawia dużą liczbę wiadomości na serwerze | |
112 | pomiędzy sesjami. | |
64fd138a | 113 | |
11e6ee39 | 114 | %prep |
115 | %setup -q | |
789605ea | 116 | %patch1 -p1 |
93c339a9 | 117 | %if %{with skipgetpwcheck} |
45faa3af | 118 | %patch2 -p0 |
93c339a9 | 119 | %endif |
e085f454 | 120 | %patch3 -p1 |
5ac8323f | 121 | %patch4 -p1 |
02c7f34b | 122 | %patch5 -p1 |
831f493e | 123 | |
11e6ee39 | 124 | %build |
0bae5f8d | 125 | %{__aclocal} |
895d0519 | 126 | %{__autoconf} |
0bae5f8d | 127 | %{__autoheader} |
895d0519 | 128 | %{__automake} |
831f493e | 129 | %configure \ |
110fad14 | 130 | --enable-mbox-bsd-save-indices \ |
11e6ee39 | 131 | --with-mailspool-directory=/var/mail \ |
64fd138a | 132 | --enable-shadow-passwords \ |
762ddada | 133 | %{!?with_pam: --disable-auth-pam} \ |
134 | %{?with_ldap: --enable-auth-ldap} \ | |
135 | %{?with_mysql: --enable-auth-mysql} \ | |
136 | %{?with_whoson: --enable-whoson} \ | |
137 | %{?with_perl: --enable-auth-perl} \ | |
45b9197a | 138 | %{?with_pgsql: --enable-auth-pgsql} \ |
dc35a5bc | 139 | %{?with_gdbm: --enable-gdbm} \ |
762ddada | 140 | %{?with_authother: --enable-auth-other} \ |
93ced0e6 | 141 | --enable-mbox-maildir \ |
762ddada | 142 | %{?with_ssl: --enable-tls} \ |
6eeee93a | 143 | %{!?with_snide: --disable-snide-comments} \ |
77a4e87e | 144 | --enable-auth-flatfile |
11e6ee39 | 145 | |
146 | %{__make} | |
147 | ||
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
69131d2f | 150 | install -d $RPM_BUILD_ROOT{/etc/{pam.d,security,rc.d/init.d,sysconfig},%{_sysconfdir}} |
11e6ee39 | 151 | |
59566fc4 JB |
152 | %{__make} install \ |
153 | DESTDIR=$RPM_BUILD_ROOT | |
11e6ee39 | 154 | |
69131d2f PG |
155 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/%{name} |
156 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
66fd762c | 157 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir} |
69131d2f | 158 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
11e6ee39 | 159 | |
87a6c6c4 | 160 | touch $RPM_BUILD_ROOT/etc/security/blacklist.pop3 |
11e6ee39 | 161 | |
162 | %clean | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
64fd138a | 165 | %post |
64fd138a | 166 | /sbin/chkconfig --add %{name} |
34c9b5c0 | 167 | %service %{name} restart "%{name} daemon" |
64fd138a | 168 | |
169 | %preun | |
170 | if [ "$1" = "0" ]; then | |
34c9b5c0 | 171 | %service %{name} stop |
64fd138a | 172 | /sbin/chkconfig --del %{name} |
173 | fi | |
174 | ||
11e6ee39 | 175 | %files |
176 | %defattr(644,root,root,755) | |
55dc1c0a | 177 | %doc README* TPOP3D-AuthDriver scripts FAQ CHANGES CREDITS TODO PORTABILITY |
69131d2f | 178 | %{?with_pam:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/%{name}} |
da932a62 | 179 | %{?with_pam:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.pop3} |
69131d2f | 180 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
da932a62 | 181 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tpop3d.conf |
69131d2f | 182 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
11e6ee39 | 183 | %attr(755,root,root) %{_sbindir}/* |
184 | %{_mandir}/man*/* |