]> git.pld-linux.org Git - packages/anubis.git/blob - anubis.spec
ca368d5afc8edd565facb5a878af293958ef7a70
[packages/anubis.git] / anubis.spec
1 Summary:        An outgoing mail processor, and the SMTP tunnel
2 Summary(pl):    Preprocesor wychodz±cej poczty i tunel SMTP
3 Name:           anubis
4 Version:        3.4.6
5 Release:        2
6 License:        GPL
7 Group:          Applications/Mail
8 Source0:        http://cesnet.dl.sourceforge.net/sourceforge/anubis/%{name}-%{version}.tar.gz
9 Source1:        %{name}.init
10 Patch0:         %{name}-info.patch
11 URL:            http://anubis.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  gpgme-devel
15 BuildRequires:  openssl-devel
16 BuildRequires:  pcre-devel
17 BuildRequires:  texinfo
18 PreReq:         /sbin/chkconfig
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Anubis is an outgoing mail processor. It goes between the MUA (Mail User Agent)
23 and the MTA (Mail Transport Agent), and can perform on the fly various sorts of
24 processing and conversion on the outgoing mail in accord with the sender's
25 specified rules, based on a highly configurable regular expressions system.
26 It operates as a proxy server, independently from mail user agents.
27 Anubis can edit outgoing mail headers, encrypt and/or sign mail with the
28 GNU Privacy Guard, build secure SMTP tunnels (Simple Mail Transport Protocol)
29 using the TLS/SSL encryption even if your mail user agent doesn't support it,
30 or tunnel a connection through a SOCKS proxy or WinGate proxy server. Moreover,
31 Anubis supports the remailers (it allows sending mail in an anonymous way).
32
33 %description -l pl
34 Anubis jest preprocesorem wychodz±cej poczty i tunelem miêdzy MUA and
35 the MTA. Anubis wspiera rozszerzone wyra¿enia regularne, szyfrowanie
36 TLS/SSL, GnuPG, SOCKS Proxy oraz WinGates, remailery i nie tylko.
37
38 %prep
39 %setup -q
40
41 %build
42 rm -f missing
43 %{__aclocal}
44 %{__autoconf}
45 %{__automake}
46 %configure \
47         --with-pcre \
48         --disable-dependency-tracking
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}}
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/anubis
59 install ./examples/defaultrc $RPM_BUILD_ROOT%{_sysconfdir}/anubisrc
60
61 %clean
62 rm -fr $RPM_BUILD_ROOT
63
64 %post
65 /sbin/chkconfig --add anubis
66 if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
67         /etc/rc.d/init.d/anubis restart >&2
68 else
69         echo "Run \"/etc/rc.d/init.d/anubis start\" to start anubis." >&2
70 fi
71 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
72
73
74 %preun
75 if [ "$1" = "0" ]; then
76         if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
77                 /etc/rc.d/init.d/anubis stop
78         fi
79         /sbin/chkconfig --del anubis
80 fi
81
82 %postun
83 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
84
85 %files
86 %defattr(644,root,root,755)
87 %doc AUTHORS README INSTALL NEWS ChangeLog TODO examples
88 %attr(754,root,root) /etc/rc.d/init.d/anubis
89 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/anubisrc
90 %attr(755,root,root) %{_sbindir}/anubis
91 %{_mandir}/man1/*
92 %{_infodir}/*info*
This page took 0.064485 seconds and 3 git commands to generate.