]> git.pld-linux.org Git - SPECS.git/blob - popa3d.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / popa3d.spec
1 Summary:        POP3 server
2 Summary(pl.UTF-8):      Serwer POP3
3 Name:           popa3d
4 Version:        1.0.2
5 Release:        1
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
10 Source1:        %{name}.pamd
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
22 Requires:       rc-inetd
23 Provides:       pop3daemon
24 Provides:       user(pop3)
25 Obsoletes:      imap-pop
26 Obsoletes:      imap-pop3
27 Obsoletes:      pop3daemon
28 Obsoletes:      qpopper
29 Obsoletes:      qpopper6
30 Conflicts:      courier-imap-pop3
31 Conflicts:      cyrus-imapd
32 Conflicts:      solid-pop3d
33 Conflicts:      solid-pop3d-ssl
34 Conflicts:      tpop3d
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 popa3d is a Post Office Protocol version 3 (POP3) server written by
39 Solar Designer. It supports only mailbox spool format.
40
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.
45
46 %prep
47 %setup -q
48 %patch0 -p1
49 %patch1 -p1
50
51 %build
52 %{__make} \
53         CC="%{__cc}" LD="%{__cc}" \
54         CFLAGS="%{rpmcflags} -c" \
55         LDFLAGS="%{rpmldflags}" \
56         LIBS="-lpam -lcrypt"
57
58 %install
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
62
63 %{__make} install \
64         DESTDIR=$RPM_BUILD_ROOT \
65         SBINDIR="%{_sbindir}" \
66         MANDIR="%{_mandir}"
67
68 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/popa3d
69 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/popa3d
70
71 > $RPM_BUILD_ROOT/etc/security/blacklist.pop3
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %pre
77 %useradd -u 60 -r -d /usr/share/empty -s /bin/false -c "pop3 user" -g nobody pop3
78
79 %post
80 %service -q rc-inetd reload
81
82 %postun
83 if [ "$1" = "0" ]; then
84         %service -q rc-inetd reload
85         %userremove pop3
86 fi
87
88 %triggerpostun -- popa3d < 0.6.3-2
89 if [ "$1" != "0" ]; then
90         %userremove popa3d
91 fi
92
93 %files
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
100 %{_mandir}/man8/*
This page took 0.647821 seconds and 3 git commands to generate.