]> git.pld-linux.org Git - packages/anubis.git/blame - anubis.spec
- openssl support is gone, enable gnutls by default
[packages/anubis.git] / anubis.spec
CommitLineData
7ad17db1 1#
5d4dfb12 2# Conditional build:
12135be2 3%bcond_without gnutls # TLS support using GnuTLS library
59575b26
JB
4%bcond_without gpgme # signing/encrypting with gnupg using gpgme library
5%bcond_without pam # PAM authentication
6%bcond_without pcre # PCRE library support
7%bcond_without tcp_wrappers # tcp_wrappers for access control
8%bcond_with mysql # MySQL support
9%bcond_with pgsql # PostgreSQL support
7ad17db1 10#
1e61514e 11Summary: An outgoing mail processor, and the SMTP tunnel
c1103ba2 12Summary(pl.UTF-8): Procesor wychodzącej poczty i tunel SMTP
1e61514e 13Name: anubis
59575b26 14Version: 4.3
cb1ed72c
JB
15Release: 1
16License: GPL v3+
1e61514e 17Group: Applications/Mail
59575b26
JB
18Source0: https://ftp.gnu.org/gnu/anubis/%{name}-%{version}.tar.bz2
19# Source0-md5: 32dc9adf1d0daa54bff70f10b4e289b5
dca5ad06 20Source1: %{name}.init
5d4dfb12 21Source2: %{name}.pamd
94b9f8a9 22Patch0: %{name}-info.patch
207a7deb 23Patch1: %{name}-nolibnsl.patch
cb1ed72c 24Patch2: %{name}-pl.po-update.patch
5d4dfb12 25URL: http://www.gnu.org/software/anubis/
59575b26
JB
26BuildRequires: autoconf >= 2.64
27BuildRequires: automake >= 1:1.16
5d4dfb12 28BuildRequires: bison
59575b26 29BuildRequires: flex
cb1ed72c 30BuildRequires: gdbm-devel
59575b26 31BuildRequires: gettext-tools >= 0.21
007f059e 32%{?with_gnutls:BuildRequires: gnutls-devel >= 1.2.5}
c851292c 33%{?with_gpgme:BuildRequires: gpgme-devel >= 1:1.0.0}
cb1ed72c 34BuildRequires: gsasl-devel >= 0.2.3
59575b26
JB
35BuildRequires: guile-devel >= 5:2.2.0
36BuildRequires: libgcrypt-devel >= 1.7.0
7ad17db1 37%{?with_tcp_wrappers:BuildRequires: libwrap-devel}
26086d60 38%{?with_mysql:BuildRequires: mysql-devel}
cb1ed72c
JB
39%{?with_pam:BuildRequires: pam-devel}
40BuildRequires: pcre-devel
4a16b6c3 41%{?with_pgsql:BuildRequires: postgresql-devel}
5d4dfb12 42BuildRequires: rpm-perlprov
95f683fb 43BuildRequires: rpmbuild(macros) >= 1.268
7ad17db1 44BuildRequires: texinfo
7ad17db1 45Requires(post,preun): /sbin/chkconfig
5d4dfb12 46Requires: identserver
59575b26 47Requires: libgcrypt >= 1.7.0
1438be45 48Requires: pam >= 0.77.3
26086d60 49Requires: rc-scripts
1e61514e 50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52%description
7ad17db1
JB
53GNU Anubis is an outgoing mail processor. It goes between the MUA
54(Mail User Agent) and the MTA (Mail Transport Agent), and can perform
55on the fly various sorts of processing and conversion on the outgoing
56mail in accord with the sender's specified rules, based on a highly
db298366 57configurable regular expressions system. It operates as a proxy
7ad17db1
JB
58server, independently from mail user agents. GNU Anubis can edit
59outgoing mail headers, encrypt and/or sign mail with the GNU Privacy
60Guard, build secure SMTP tunnels (Simple Mail Transport Protocol)
61using the TLS/SSL encryption even if your mail user agent doesn't
62support it, or tunnel a connection through a SOCKS proxy. Moreover,
63GNU Anubis supports the remailers (it allows sending mail in an
db298366 64anonymous way).
1e61514e 65
7ad17db1
JB
66Remember, that to use per-user configuration files ident server has to
67be running. Without it only system-wide configuration file is used.
5d4dfb12 68
69If you want to use GNU Anubis with mutt mail client, install msg2smtp
70package.
71
2458d51c
JR
72%description -l pl.UTF-8
73GNU Anubis zajmuje się przetwarzaniem poczty wychodzącej. Znajduje się
74on pomiędzy MUA (Mail User Agent) i MTA (Mail Transport Agent) i może
75wykonywać w locie różne rodzaje przetwarzania i konwersji poczty
76wychodzącej zależnie od podanych reguł, bazujących na wysoce
77konfigurowalnym systemie wyrażeń regularnych. GNU Anubis działa jako
78serwer proxy, niezależnie od programów pocztowych. Potrafi on zmieniać
79nagłówki listów, szyfrować lub podpisywać jest przy pomocy GNU Privacy
80Guard, tworzyć bezpieczne tunele SMTP używając szyfrowania TLS/SSL
81nawet, gdy Twój program pocztowy nie ma takich możliwości. Możliwe
82jest też tunelowanie połączeń przez SOCKS proxy. Co więcej, GNU Anubis
83wspiera także remailery (czyli pozawala na anonimowe wysyłanie
021e4435 84poczty).
5d4dfb12 85
2458d51c
JR
86Pamiętaj, że aby używać plików konfiguracyjnych użytkowników, serwer
87ident musi być aktywny. Inaczej, użyty będzie tylko główny plik
7ad17db1 88konfiguracyjny.
5d4dfb12 89
2458d51c 90Jeśli chcesz używać GNU Anubis z klientem poczty mutt, zainstaluj
7ad17db1 91pakiet msg2smtp.
5d4dfb12 92
93%package -n msg2smtp
94Summary: msg2smtp takes mail at input and relays it to an SMTP server
c1103ba2 95Summary(pl.UTF-8): msg2smtp wysyła pocztę przyjmowaną na wejściu do serwera SMTP
5d4dfb12 96Group: Applications/Mail
97
98%description -n msg2smtp
7ad17db1
JB
99The msg2smtp script is a bridge between MUA programs which use
100"sendmail" command to send mail (such as Mutt) and smtp servers. It is
101particularly useful when used in connection with GNU Anubis mail
102processor.
5d4dfb12 103
2458d51c
JR
104%description -n msg2smtp -l pl.UTF-8
105Skrypt msg2smtp jest pomostem między programami pocztowymi używającymi
106polecenia "sendmail" do wysyłania listów (np. Mutt), a serwerem smtp.
107Jest on szczególnie przydatny w połączeniu z procesorem poczty GNU
7ad17db1 108Anubis.
1e61514e 109
110%prep
111%setup -q
207a7deb
AM
112%patch0 -p1
113%patch1 -p1
cb1ed72c
JB
114%patch2 -p1
115
59575b26 116%{__rm} po/stamp-po
1e61514e 117
118%build
7ad17db1 119%{__gettextize}
59575b26 120%{__aclocal} -I m4 -I am -I gint -I doc/imprimatur
94b9f8a9 121%{__autoconf}
59575b26 122%{__autoheader}
94b9f8a9 123%{__automake}
1e61514e 124%configure \
59575b26
JB
125 --disable-dependency-tracking \
126 --disable-silent-rules \
127 %{!?with_gnutls:--without-gnutls} \
128 %{!?with_gpgme:--without-gpgme} \
129 %{?with_mysql:--with-mysql} \
59575b26
JB
130 %{?with_pam:--with-pam} \
131 %{?with_pcre:--with-pcre} \
132 %{?with_pgsql:--with-postgres} \
133 %{?with_tcp_wrappers:--with-tcp-wrappers}
5d4dfb12 134
1e61514e 135%{__make}
136
137%install
138rm -rf $RPM_BUILD_ROOT
5d4dfb12 139install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/pam.d,%{_sysconfdir},%{_bindir}}
1e61514e 140
141%{__make} install \
142 DESTDIR=$RPM_BUILD_ROOT
143
5d4dfb12 144install ./contrib/msg2smtp.pl $RPM_BUILD_ROOT%{_bindir}
dca5ad06 145install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/anubis
59575b26
JB
146cp -p ./examples/2anubisrc $RPM_BUILD_ROOT%{_sysconfdir}/anubisrc
147%{?with_pam:cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/anubis}
148cp -pf ./examples/1anubisrc examples/anubisrc
5d4dfb12 149
3a533977 150rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
1e61514e 151
59575b26
JB
152%find_lang %{name}
153
1e61514e 154%clean
3a533977 155rm -rf $RPM_BUILD_ROOT
1e61514e 156
157%post
158/sbin/chkconfig --add anubis
95f683fb 159%service anubis restart
94b9f8a9 160[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
161
1e61514e 162
163%preun
164if [ "$1" = "0" ]; then
95f683fb 165 %service anubis stop
1e61514e 166 /sbin/chkconfig --del anubis
167fi
168
1f5e570e
ER
169%postun -p /sbin/postshell
170-/usr/sbin/fix-info-dir -c %{_infodir}
94b9f8a9 171
5d4dfb12 172%files -f %{name}.lang
1e61514e 173%defattr(644,root,root,755)
cb1ed72c 174%doc AUTHORS README INSTALL NEWS ChangeLog TODO examples/anubisrc %{?with_pam:examples/pam}
94b9f8a9 175%attr(754,root,root) /etc/rc.d/init.d/anubis
021e4435 176%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/anubisrc
12135be2
JB
177%if %{with pam}
178%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/anubis
179%endif
180%if %{with gnutls}
181%attr(755,root,root) %{_bindir}/anubisusr
182%endif
94b9f8a9 183%attr(755,root,root) %{_sbindir}/anubis
cb1ed72c 184%attr(755,root,root) %{_sbindir}/anubisadm
c851292c 185%{_datadir}/anubis
cb1ed72c
JB
186%{_mandir}/man1/anubis.1*
187%{_infodir}/anubis.info*
5d4dfb12 188
189%files -n msg2smtp
190%defattr(644,root,root,755)
191%doc contrib/msg2smtp.txt
192%attr(755,root,root) %{_bindir}/msg2smtp.pl
This page took 0.133244 seconds and 4 git commands to generate.