2 Summary(pl.UTF-8): Serwer POP3
6 License: distributable (see LICENSE for details)
7 Group: Networking/Daemons/POP3
8 Source0: http://www.openwall.com/popa3d/%{name}-%{version}.tar.gz
9 # Source0-md5: cebdc56b6fa0655a5688c89cb7703b66
11 Source2: %{name}.inetd
12 Patch0: %{name}-params.patch
13 Patch1: %{name}-user.patch
14 URL: http://www.openwall.com/popa3d/
15 BuildRequires: pam-devel
16 BuildRequires: rpmbuild(macros) >= 1.268
17 Requires(postun): /usr/sbin/userdel
18 Requires(pre): /bin/id
19 Requires(pre): /usr/sbin/useradd
20 Requires: filesystem >= 3.0-11
21 Requires: pam >= 0.79.0
30 Conflicts: courier-imap-pop3
31 Conflicts: cyrus-imapd
32 Conflicts: solid-pop3d
33 Conflicts: solid-pop3d-ssl
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 popa3d is a Post Office Protocol version 3 (POP3) server written by
39 Solar Designer. It supports only mailbox spool format.
41 %description -l pl.UTF-8
42 popa3d to serwer protokołu Post Office Protocol w wersji 3
43 (powszechnie znanego jako POP3), napisany przez Solar Designera.
44 Obsługuje tylko skrzynki w formacie mailbox.
53 CC="%{__cc}" LD="%{__cc}" \
54 CFLAGS="%{rpmcflags} -c" \
55 LDFLAGS="%{rpmldflags}" \
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT/etc/{pam.d,sysconfig/rc-inetd,security} \
61 $RPM_BUILD_ROOT/var/lib/popa3d-empty
64 DESTDIR=$RPM_BUILD_ROOT \
65 SBINDIR="%{_sbindir}" \
68 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/popa3d
69 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/popa3d
71 > $RPM_BUILD_ROOT/etc/security/blacklist.pop3
74 rm -rf $RPM_BUILD_ROOT
77 %useradd -u 60 -r -d /usr/share/empty -s /bin/false -c "pop3 user" -g nobody pop3
80 %service -q rc-inetd reload
83 if [ "$1" = "0" ]; then
84 %service -q rc-inetd reload
88 %triggerpostun -- popa3d < 0.6.3-2
89 if [ "$1" != "0" ]; then
94 %defattr(644,root,root,755)
95 %doc DESIGN LICENSE VIRTUAL
96 %attr(755,root,root) %{_sbindir}/*
97 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/popa3d
98 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.pop3
99 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/popa3d