-
+#
+# TODO: update patches
+#
# Conditional build:
-# --with gnutls use GnuTLS library instead of OpenSSL
-# --without tcp_wrappers disable using tcp_wrappers for access control
-# --without pam disable using of PAM authentcation
-# --without gpgme disable using gpgme library for signing/encrypting with gnupg
-# --without pcre disable using pcre library
-
+%bcond_with gnutls # use GnuTLS library instead of OpenSSL
+%bcond_without tcp_wrappers # disable using tcp_wrappers for access control
+%bcond_without pam # disable using of PAM authentcation
+%bcond_without gpgme # disable using gpgme library for signing/encrypting with gnupg
+%bcond_without pcre # disable using pcre library
+%bcond_with mysql # enable MySQL support
+%bcond_with postgres # enable PostgreSQL support
+#
%include /usr/lib/rpm/macros.perl
Summary: An outgoing mail processor, and the SMTP tunnel
Summary(pl): Procesor wychodz±cej poczty i tunel SMTP
Name: anubis
-Version: 3.6.2
-Release: 1
+Version: 3.9.96
+Release: 0.1
License: GPL
Group: Applications/Mail
-Source0: ftp://ftp.gnu.org/gnu/anubis/%{name}-%{version}.tar.gz
+Source0: ftp://mirddin.farlep.net/pub/alpha/anubis/%{name}-%{version}.tar.gz
+# Source0-md5: 7c2dd4cf1c3632acd2fe86f1a604b047
Source1: %{name}.init
Source2: %{name}.pamd
Patch0: %{name}-info.patch
Patch1: %{name}-configure_gpgme.patch
+Patch2: %{name}-boundary.patch
+Patch3: %{name}-nolibnsl.patch
+Patch4: %{name}-securityfixes.patch
URL: http://www.gnu.org/software/anubis/
-#BuildRequires: gettext-devel
-BuildRequires: autoconf >= 2.54
-BuildRequires: automake >= 1.7
-BuildRequires: texinfo
+BuildRequires: gettext-devel >= 0.12.1
+BuildRequires: autoconf >= 2.54
+BuildRequires: automake >= 1.7
BuildRequires: bison
+%{?with_gnutls:BuildRequires: gnutls-devel}
+%{?with_gpgme:BuildRequires: gpgme-devel >= 0.3.12}
+%{?with_tcp_wrappers:BuildRequires: libwrap-devel}
+%{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7d}
+%{?with_postgres:BuildRequires: postgres-devel}
+%{?with_mysql:BuildRequires: mysql-devel}
BuildRequires: rpm-perlprov
-%{?_with_gnutls:BuildRequires: gnutls-devel}
-%{!?_with_gnutls:BuildRequires: openssl-devel}
-%{!?_without_pam:BuildRequires: pam-devel}
-%{!?_without_tcp_wrappers:BuildRequires:libwrap-devel}
-%{!?_without_pcre:BuildRequires: pcre-devel}
-%{!?_without_gpgme:BuildRequires: gpgme-devel >= 0.3.12}
+BuildRequires: texinfo
+PreReq: rc-scripts
+Requires(post,preun): /sbin/chkconfig
Requires: identserver
-PreReq: /sbin/chkconfig
+Requires: pam >= 0.77.3
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-GNU Anubis is an outgoing mail processor. It goes between the MUA (Mail
-User Agent) and the MTA (Mail Transport Agent), and can perform on the
-fly various sorts of processing and conversion on the outgoing mail in
-accord with the sender's specified rules, based on a highly
+GNU Anubis is an outgoing mail processor. It goes between the MUA
+(Mail User Agent) and the MTA (Mail Transport Agent), and can perform
+on the fly various sorts of processing and conversion on the outgoing
+mail in accord with the sender's specified rules, based on a highly
configurable regular expressions system. It operates as a proxy
-server, independently from mail user agents. GNU Anubis can edit outgoing
-mail headers, encrypt and/or sign mail with the GNU Privacy Guard,
-build secure SMTP tunnels (Simple Mail Transport Protocol) using the
-TLS/SSL encryption even if your mail user agent doesn't support it, or
-tunnel a connection through a SOCKS proxy.
-Moreover, GNU Anubis supports the remailers (it allows sending mail in an
+server, independently from mail user agents. GNU Anubis can edit
+outgoing mail headers, encrypt and/or sign mail with the GNU Privacy
+Guard, build secure SMTP tunnels (Simple Mail Transport Protocol)
+using the TLS/SSL encryption even if your mail user agent doesn't
+support it, or tunnel a connection through a SOCKS proxy. Moreover,
+GNU Anubis supports the remailers (it allows sending mail in an
anonymous way).
-Remember, that to use per-user configuration files ident server has to be
-running. Without it only system-wide configuration file is used.
+Remember, that to use per-user configuration files ident server has to
+be running. Without it only system-wide configuration file is used.
If you want to use GNU Anubis with mutt mail client, install msg2smtp
package.
%description -l pl
-GNU Anubis zajmuje siê przetwarzaniem poczty wychodz±cej. Znajduje siê on
-pomiêdzy MUA (Mail User Agent) i MTA (Mail Transport Agent) i mo¿e
-wykonywaæ w locie rózne rodzaje przetwarzania i konwersji poczty
+GNU Anubis zajmuje siê przetwarzaniem poczty wychodz±cej. Znajduje siê
+on pomiêdzy MUA (Mail User Agent) i MTA (Mail Transport Agent) i mo¿e
+wykonywaæ w locie ró¿ne rodzaje przetwarzania i konwersji poczty
wychodz±cej zale¿nie od podanych regu³, bazuj±cych na wysoce
konfigurowalnym systemie wyra¿eñ regularnych. GNU Anubis dzia³a jako
serwer proxy, niezale¿nie od programów pocztowych. Potrafi on zmieniaæ
Guard, tworzyæ bezpieczne tunele SMTP u¿ywaj±c szyfrowania TLS/SSL
nawet, gdy Twój program pocztowy nie ma takich mo¿liwo¶ci. Mo¿liwe
jest te¿ tunelowanie po³±czeñ przez SOCKS proxy.
-Co wiêcej, GNU Anubis wspiera tak¿e remailery (czyli pozawala na anonimowe
-wysy³anie poczty).
+Co wiêcej, GNU Anubis wspiera tak¿e remailery (czyli pozawala na
+anonimowe wysy³anie poczty).
-Pamiêtaj, ¿e aby u¿ywaæ plików konfiguracyjnuch u¿ytkowników, serwer ident
-musi byæ aktywny. Inaczej, u¿yty bêdzie tylko g³owny plik konfiguracyjny.
+Pamiêtaj, ¿e aby u¿ywaæ plików konfiguracyjnych u¿ytkowników, serwer
+ident musi byæ aktywny. Inaczej, u¿yty bêdzie tylko g³ówny plik
+konfiguracyjny.
-Je¶li chcesz u¿ywaæ GNU Anubis z klientem poczty mutt, zainstaluj pakiet
-msg2smtp.
+Je¶li chcesz u¿ywaæ GNU Anubis z klientem poczty mutt, zainstaluj
+pakiet msg2smtp.
%package -n msg2smtp
Summary: msg2smtp takes mail at input and relays it to an SMTP server
Group: Applications/Mail
%description -n msg2smtp
-The msg2smtp script is a bridge between MUA programs which use "sendmail"
-command to send mail (such as Mutt) and smtp servers. It is particularly
-useful when used in connection with GNU Anubis mail processor.
+The msg2smtp script is a bridge between MUA programs which use
+"sendmail" command to send mail (such as Mutt) and smtp servers. It is
+particularly useful when used in connection with GNU Anubis mail
+processor.
%description -n msg2smtp -l pl
Skrypt msg2smtp jest pomostem miêdzy programami pocztowymi u¿ywaj±cymi
polecenia "sendmail" do wysy³ania listów (np. Mutt), a serwerem smtp.
-Jest on szczególnie przydatny w po³±czeniu z procesorem poczty GNU Anubis.
+Jest on szczególnie przydatny w po³±czeniu z procesorem poczty GNU
+Anubis.
%prep
%setup -q
-%patch0 -p1
-%patch1 -p1
+#%patch0 -p1
+#%patch1 -p1
+#%patch2 -p1
+#%patch3 -p1
+#%patch4 -p1
%build
-rm -f missing
-#%{__gettextize}
+%{__gettextize}
%{__aclocal} -I m4
%{__autoconf}
%{__automake}
%configure \
-%{?_with_gnutls: --with-gnutls} \
-%{!?_with_gnutls: --with-openssl} \
-%{!?_without_pam: --with-pam} \
-%{?_without_pam: --without-pam} \
-%{!?_without_pcre: --with-pcre} \
-%{?_without_pcre: --without-pcre} \
-%{!?_without_gpgme: --with-gpgme} \
-%{?_without_gpgme: --without-gpgme} \
-%{!?_without_tcp_wrappers: --with-tcp-wrappers} \
-%{?_without_tcp_wrappers: --without-tcp-wrappers} \
+%{!?with_gnutls: --without-gnutls} \
+%{!?with_gnutls: --with-openssl} \
+%{?with_pam: --with-pam} \
+%{?with_pcre: --with-pcre} \
+%{!?with_gpgme: --without-gpgme} \
+%{?with_mysql: --with-mysql} \
+%{?with_postgres: --with-postgres} \
+%{?with_tcp_wrappers: --with-tcp-wrappers} \
--disable-dependency-tracking
%{__make}
install ./contrib/msg2smtp.pl $RPM_BUILD_ROOT%{_bindir}
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/anubis
install ./examples/2anubisrc $RPM_BUILD_ROOT%{_sysconfdir}/anubisrc
-%{!?_without_pam:install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/anubis}
+%{?with_pam:install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/anubis}
cp -f ./examples/1anubisrc examples/anubisrc
%find_lang %{name}
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS README INSTALL NEWS ChangeLog TODO examples/anubisrc
-%{!?_without_pam:%doc examples/pam}
+%{?with_pam:%doc examples/pam}
%attr(754,root,root) /etc/rc.d/init.d/anubis
%attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/anubisrc
-%{!?_without_pam:%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/anubis}
+%{?with_pam:%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/anubis}
%attr(755,root,root) %{_sbindir}/anubis
%{_mandir}/man1/*
%{_infodir}/*info*