]> git.pld-linux.org Git - SPECS.git/blob - omta.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / omta.spec
1 Summary:        Small queueing SMTP relayer
2 Summary(pl.UTF-8):      Mały agent SMTP relay kolejkujący pocztę
3 Name:           omta
4 Version:        0.51
5 Release:        15
6 License:        GPL
7 Group:          Networking/Daemons
8 #Source0:       ftp://omta.runlevel.net/pub/omta/%{name}-%{version}.tar.gz
9 Source0:        %{name}-%{version}.tar.gz
10 # Source0-md5:  5a07f592292dce29b584d9745beb30ce
11 Source1:        %{name}.inetd
12 Patch0:         %{name}-FHS.patch
13 Patch1:         %{name}-config.patch
14 Patch2:         %{name}-%{name}.conf_path.patch
15 Patch3:         %{name}-configure.patch
16 # Homepage/domain no longer exists
17 #URL:           http://omta.runlevel.net/
18 BuildRequires:  autoconf >= 2.53
19 BuildRequires:  automake
20 Provides:       smtpdaemon
21 Obsoletes:      smtpdaemon
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _spooldir       /var/spool/omtaqueue
25
26 %description
27 OMTA is an SMTP server tool wich allows people who have a dialup
28 connection to queue their mail on their hard disk, and send it to
29 their SMTP server whenever they are online.
30
31 OMTA has the following features:
32 - Works transparently by simulating SENDMAIL.
33 - Can relay messages to another SMTP server.
34 - It can also deliver local mail (trough procmail or similar).
35 - Has built-in SMTP server for the local machine.
36 - Users can (safely!) set their own private configuration, including
37   From address.
38 - Built around the K.I.S.S. principle ("Keep It Simple, Stupid!")
39
40 %description -l pl.UTF-8
41 OMTA jest narzędziem SMTP który umożliwia ludziom bez stałego dostępu
42 do sieci kolejkować pocztę na dysku i wysyłać ją do swojego serwera
43 SMTP kiedy tylko są online.
44
45 OMTA ma następujące cechy:
46 - Pracuje "przezroczyście", udając SENDMAILa
47 - Może przesyłać listy do innego serwera SMTP
48 - Może też dostarczać lokalnie pocztę (przez procmaila lub podobne)
49 - Ma wbudowany serwer SMTP dla lokalnej maszyny
50 - Użytkownicy mogą (bezpiecznie!) ustawiać ich własną konfigurację,
51   włączając w to adresy From
52 - Zbudowany w oparciu o zasadę K.I.S.S ("Keep It Simple, Stupid!")
53
54 %package smtp
55 Summary:        Omta SMTP local server
56 Summary(pl.UTF-8):      Lokalny serwer SMTP omta
57 Group:          Networking/Daemons
58 Requires:       %{name} = %{version}-%{release}
59 Requires:       rc-inetd
60
61 %description smtp
62 Setup tcp/25 on localhost with omta-smtp.
63
64 %description smtp -l pl.UTF-8
65 Pakiet włączający omta-smtp na porcie tcp/25 dla tej maszyny.
66
67 %prep
68 %setup -q
69 %patch0 -p1
70 %patch1 -p1
71 %patch2 -p1
72 %patch3 -p1
73
74 %build
75 %{__aclocal}
76 %{__autoheader}
77 %{__autoconf}
78 %{__automake}
79 cd libgetconf
80 %{__aclocal}
81 %{__autoconf}
82 %{__automake}
83 cd ..
84 %configure \
85         --with-queuepath=%{_spooldir}
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT{%{_spooldir},/usr/lib,%{_sbindir},%{_sysconfdir}/{mail,sysconfig/rc-inetd}}
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 ln -sf %{_bindir}/omta $RPM_BUILD_ROOT/usr/lib/sendmail
96 ln -sf %{_bindir}/omta $RPM_BUILD_ROOT%{_sbindir}/sendmail
97 ln -sf %{_bindir}/omta $RPM_BUILD_ROOT%{_sbindir}/in.smtpd
98 mv -f omta.conf.dist $RPM_BUILD_ROOT%{_sysconfdir}/mail/omta.conf
99
100 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rc-inetd/smtpd
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %files
106 %defattr(644,root,root,755)
107 %doc FAQ README AUTHORS CHANGES
108 %dir %attr(770,root,mail) %{_spooldir}
109 %dir %{_sysconfdir}/mail
110 %attr(2755,root,mail) %{_bindir}/omta
111 %attr(755,root,root) %{_bindir}/mailq
112 %attr(755,root,root) /usr/lib/sendmail
113 %attr(755,root,root) %{_sbindir}/sendmail
114 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/omta.conf
115 %{_mandir}/man*/*
116
117 %files smtp
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_sbindir}/in.smtpd
120 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/smtpd
This page took 1.048026 seconds and 3 git commands to generate.