3 # --with gnutls use GnuTLS library instead of OpenSSL
4 # --without tcp_wrappers disable using tcp_wrappers for access control
5 # --without pam disable using of PAM authentcation
6 # --without gpgme disable using gpgme library for signing/encrypting with gnupg
7 # --without pcre disable using pcre library
9 %include /usr/lib/rpm/macros.perl
10 Summary: An outgoing mail processor, and the SMTP tunnel
11 Summary(pl): Procesor wychodz±cej poczty i tunel SMTP
16 Group: Applications/Mail
17 Source0: ftp://ftp.gnu.org/gnu/anubis/%{name}-%{version}.tar.gz
18 # Source0-md5: 9e705e38cafe4a57025a6ad89fd73226
21 Patch0: %{name}-info.patch
22 Patch1: %{name}-configure_gpgme.patch
23 URL: http://www.gnu.org/software/anubis/
24 #BuildRequires: gettext-devel
25 BuildRequires: autoconf >= 2.54
26 BuildRequires: automake >= 1.7
27 BuildRequires: texinfo
29 BuildRequires: rpm-perlprov
30 %{?_with_gnutls:BuildRequires: gnutls-devel}
31 %{!?_with_gnutls:BuildRequires: openssl-devel >= 0.9.7}
32 %{!?_without_pam:BuildRequires: pam-devel}
33 %{!?_without_tcp_wrappers:BuildRequires:libwrap-devel}
34 %{!?_without_pcre:BuildRequires: pcre-devel}
35 %{!?_without_gpgme:BuildRequires: gpgme-devel >= 0.3.12}
37 PreReq: /sbin/chkconfig
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 GNU Anubis is an outgoing mail processor. It goes between the MUA (Mail
42 User Agent) and the MTA (Mail Transport Agent), and can perform on the
43 fly various sorts of processing and conversion on the outgoing mail in
44 accord with the sender's specified rules, based on a highly
45 configurable regular expressions system. It operates as a proxy
46 server, independently from mail user agents. GNU Anubis can edit outgoing
47 mail headers, encrypt and/or sign mail with the GNU Privacy Guard,
48 build secure SMTP tunnels (Simple Mail Transport Protocol) using the
49 TLS/SSL encryption even if your mail user agent doesn't support it, or
50 tunnel a connection through a SOCKS proxy.
51 Moreover, GNU Anubis supports the remailers (it allows sending mail in an
54 Remember, that to use per-user configuration files ident server has to be
55 running. Without it only system-wide configuration file is used.
57 If you want to use GNU Anubis with mutt mail client, install msg2smtp
61 GNU Anubis zajmuje siê przetwarzaniem poczty wychodz±cej. Znajduje siê on
62 pomiêdzy MUA (Mail User Agent) i MTA (Mail Transport Agent) i mo¿e
63 wykonywaæ w locie ró¿ne rodzaje przetwarzania i konwersji poczty
64 wychodz±cej zale¿nie od podanych regu³, bazuj±cych na wysoce
65 konfigurowalnym systemie wyra¿eñ regularnych. GNU Anubis dzia³a jako
66 serwer proxy, niezale¿nie od programów pocztowych. Potrafi on zmieniaæ
67 nag³ówki listów, szyfrowaæ lub podpisywaæ jest przy pomocy GNU Privacy
68 Guard, tworzyæ bezpieczne tunele SMTP u¿ywaj±c szyfrowania TLS/SSL
69 nawet, gdy Twój program pocztowy nie ma takich mo¿liwo¶ci. Mo¿liwe
70 jest te¿ tunelowanie po³±czeñ przez SOCKS proxy.
71 Co wiêcej, GNU Anubis wspiera tak¿e remailery (czyli pozawala na anonimowe
74 Pamiêtaj, ¿e aby u¿ywaæ plików konfiguracyjnych u¿ytkowników, serwer ident
75 musi byæ aktywny. Inaczej, u¿yty bêdzie tylko g³ówny plik konfiguracyjny.
77 Je¶li chcesz u¿ywaæ GNU Anubis z klientem poczty mutt, zainstaluj pakiet
81 Summary: msg2smtp takes mail at input and relays it to an SMTP server
82 Summary(pl): msg2smtp wysy³a pocztê przyjmowan± na wej¶ciu do serwera SMTP
83 Group: Applications/Mail
85 %description -n msg2smtp
86 The msg2smtp script is a bridge between MUA programs which use "sendmail"
87 command to send mail (such as Mutt) and smtp servers. It is particularly
88 useful when used in connection with GNU Anubis mail processor.
90 %description -n msg2smtp -l pl
91 Skrypt msg2smtp jest pomostem miêdzy programami pocztowymi u¿ywaj±cymi
92 polecenia "sendmail" do wysy³ania listów (np. Mutt), a serwerem smtp.
93 Jest on szczególnie przydatny w po³±czeniu z procesorem poczty GNU Anubis.
107 %{?_with_gnutls: --with-gnutls} \
108 %{!?_with_gnutls: --with-openssl} \
109 %{!?_without_pam: --with-pam} \
110 %{?_without_pam: --without-pam} \
111 %{!?_without_pcre: --with-pcre} \
112 %{?_without_pcre: --without-pcre} \
113 %{!?_without_gpgme: --with-gpgme} \
114 %{?_without_gpgme: --without-gpgme} \
115 %{!?_without_tcp_wrappers: --with-tcp-wrappers} \
116 %{?_without_tcp_wrappers: --without-tcp-wrappers} \
117 --disable-dependency-tracking
122 rm -rf $RPM_BUILD_ROOT
123 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/pam.d,%{_sysconfdir},%{_bindir}}
126 DESTDIR=$RPM_BUILD_ROOT
128 install ./contrib/msg2smtp.pl $RPM_BUILD_ROOT%{_bindir}
129 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/anubis
130 install ./examples/2anubisrc $RPM_BUILD_ROOT%{_sysconfdir}/anubisrc
131 %{!?_without_pam:install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/anubis}
132 cp -f ./examples/1anubisrc examples/anubisrc
137 rm -fr $RPM_BUILD_ROOT
140 /sbin/chkconfig --add anubis
141 if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
142 /etc/rc.d/init.d/anubis restart >&2
144 echo "Run \"/etc/rc.d/init.d/anubis start\" to start anubis." >&2
146 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
150 if [ "$1" = "0" ]; then
151 if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
152 /etc/rc.d/init.d/anubis stop
154 /sbin/chkconfig --del anubis
158 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
160 %files -f %{name}.lang
161 %defattr(644,root,root,755)
162 %doc AUTHORS README INSTALL NEWS ChangeLog TODO examples/anubisrc
163 %{!?_without_pam:%doc examples/pam}
164 %attr(754,root,root) /etc/rc.d/init.d/anubis
165 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/anubisrc
166 %{!?_without_pam:%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/anubis}
167 %attr(755,root,root) %{_sbindir}/anubis
172 %defattr(644,root,root,755)
173 %doc contrib/msg2smtp.txt
174 %attr(755,root,root) %{_bindir}/msg2smtp.pl