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