]> git.pld-linux.org Git - packages/tpop3d.git/blame - tpop3d.spec
- rebuild with perl 5.28.0
[packages/tpop3d.git] / tpop3d.spec
CommitLineData
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 15Summary: POP3 server
14a2681c 16Summary(pl.UTF-8): Serwer POP3
11e6ee39 17Name: tpop3d
60b9fdf0 18Version: 1.5.5
8ec75739 19Release: 22
11e6ee39 20License: GPL
6471a6cb 21Group: Networking/Daemons/POP3
45faa3af 22Source0: http://download.savannah.nongnu.org/releases/tpop3d/%{name}-%{version}.tar.gz
60b9fdf0 23# Source0-md5: febe9ca46b575fcf99fd410caff98f47
11e6ee39 24Source1: %{name}.pamd
25Source2: %{name}.init
98af2b42 26Source3: %{name}.conf
69131d2f 27Source4: %{name}.sysconfig
45faa3af
AM
28Patch1: %{name}-pam-vdomain.patch
29Patch2: %{name}-sql-getpwuid-optional.patch
e085f454 30Patch3: %{name}-lib.patch
5ac8323f 31Patch4: %{name}-ssl-chain.patch
02c7f34b 32Patch5: %{name}-bug-33413.patch
45faa3af 33URL: https://savannah.nongnu.org/projects/tpop3d
831f493e 34BuildRequires: autoconf
35BuildRequires: 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 43BuildRequires: rpmbuild(macros) >= 1.268
762ddada 44%{?with_whoson:BuildRequires: whoson-devel}
9a75066a 45Requires(post,preun): /sbin/chkconfig
e5886b4b 46Requires: pam >= 0.79.0
da932a62 47Requires: rc-scripts
306bed07 48%if %{with perl}
49BuildRequires: perl-devel
306bed07 50%endif
90fb8069 51Provides: pop3daemon
5490798a
JB
52Obsoletes: courier-imap-pop3
53Obsoletes: imap-pop
54Obsoletes: imap-pop3
a0d3b30a 55Obsoletes: pop3daemon
11e6ee39 56Obsoletes: qpopper
57Obsoletes: qpopper6
762ddada 58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11e6ee39 59
11e6ee39 60%description
831f493e 61tpop3d is yet-another-pop3-server. The intention has been to write a
62server which is fast, extensible, and secure. `Extensible' is used
63specifically in the context of new authentication mechanisms and
64mailbox formats. Presently the distribution supports the following
65authentication 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 74The latter four options provide virtual domain support; the first two
831f493e 75are designed to authenticate local (Unix) users.
76
77The following mailbox formats are supported:
78- bsd - for BSD (`Unix') mailspools
79- maildir - Qmail-style maildirs
80- empty - null driver
81
82tpop3d implements an optional metadata caching scheme for BSD
83mailspools, which offers improved performance in cases where many
84users leave large numbers of messages on the server between sessions.
11e6ee39 85
14cc442b
JR
86%description -l pl.UTF-8
87tpop3d to jeszcze-jeden-serwer-pop3. Intencją było napisanie serwera,
88który jest szybki, rozszerzalny i bezpieczny. `Rozszerzalny' jest tu
89użyte w kontekście formatów skrzynek. Obecnie pakiet dystrybucyjny
90wspiera 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
100Ostatnie cztery opcje pozwalają wspierać wirtualne domeny; pierwsze
101dwie zaś są stworzone by autentykować lokalnych (uniksowych)
102użytkowników.
64fd138a 103
14cc442b 104Wspierane 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
109tpop3d implementuje opcjonalne zapamiętywanie (caching) meta-danych
110dla skrzynek BSD, które znacznie poprawia wydajność w przypadku, gdy
111wielu użytkowników zostawia dużą liczbę wiadomości na serwerze
112pomię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
149rm -rf $RPM_BUILD_ROOT
69131d2f 150install -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
155install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/%{name}
156install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
66fd762c 157install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
69131d2f 158install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
11e6ee39 159
87a6c6c4 160touch $RPM_BUILD_ROOT/etc/security/blacklist.pop3
11e6ee39 161
162%clean
163rm -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
170if [ "$1" = "0" ]; then
34c9b5c0 171 %service %{name} stop
64fd138a 172 /sbin/chkconfig --del %{name}
173fi
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*/*
This page took 0.120746 seconds and 4 git commands to generate.