]> git.pld-linux.org Git - packages/anubis.git/blob - anubis.spec
- force to use openssl >= 0.9.7, idea by kloczek
[packages/anubis.git] / anubis.spec
1
2 # Conditional build:
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
8
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
12 Name:           anubis
13 Version:        3.6.2
14 Release:        1
15 License:        GPL
16 Group:          Applications/Mail
17 Source0:        ftp://ftp.gnu.org/gnu/anubis/%{name}-%{version}.tar.gz
18 Source1:        %{name}.init
19 Source2:        %{name}.pamd
20 Patch0:         %{name}-info.patch
21 Patch1:         %{name}-configure_gpgme.patch
22 URL:            http://www.gnu.org/software/anubis/
23 #BuildRequires: gettext-devel
24 BuildRequires:  autoconf >= 2.54
25 BuildRequires:  automake >= 1.7
26 BuildRequires:  texinfo
27 BuildRequires:  bison
28 BuildRequires:  rpm-perlprov
29 %{?_with_gnutls:BuildRequires:          gnutls-devel}
30 %{!?_with_gnutls:BuildRequires:         openssl-devel >= 0.9.7}
31 %{!?_without_pam:BuildRequires:         pam-devel}
32 %{!?_without_tcp_wrappers:BuildRequires:libwrap-devel}
33 %{!?_without_pcre:BuildRequires:        pcre-devel}
34 %{!?_without_gpgme:BuildRequires:       gpgme-devel >= 0.3.12}
35 Requires:       identserver
36 PreReq:         /sbin/chkconfig
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 GNU Anubis is an outgoing mail processor. It goes between the MUA (Mail
41 User Agent) and the MTA (Mail Transport Agent), and can perform on the
42 fly various sorts of processing and conversion on the outgoing mail in
43 accord with the sender's specified rules, based on a highly
44 configurable regular expressions system. It operates as a proxy
45 server, independently from mail user agents. GNU Anubis can edit outgoing
46 mail headers, encrypt and/or sign mail with the GNU Privacy Guard,
47 build secure SMTP tunnels (Simple Mail Transport Protocol) using the
48 TLS/SSL encryption even if your mail user agent doesn't support it, or
49 tunnel a connection through a SOCKS proxy.
50 Moreover, GNU Anubis supports the remailers (it allows sending mail in an
51 anonymous way).
52
53 Remember, that to use per-user configuration files ident server has to be
54 running. Without it only system-wide configuration file is used.
55
56 If you want to use GNU Anubis with mutt mail client, install msg2smtp
57 package.
58
59 %description -l pl
60 GNU Anubis zajmuje siê przetwarzaniem poczty wychodz±cej. Znajduje siê on
61 pomiêdzy MUA (Mail User Agent) i MTA (Mail Transport Agent) i mo¿e
62 wykonywaæ w locie ró¿ne rodzaje przetwarzania i konwersji poczty
63 wychodz±cej zale¿nie od podanych regu³, bazuj±cych na wysoce
64 konfigurowalnym systemie wyra¿eñ regularnych. GNU Anubis dzia³a jako
65 serwer proxy, niezale¿nie od programów pocztowych. Potrafi on zmieniaæ
66 nag³ówki listów, szyfrowaæ lub podpisywaæ jest przy pomocy GNU Privacy
67 Guard, tworzyæ bezpieczne tunele SMTP u¿ywaj±c szyfrowania TLS/SSL
68 nawet, gdy Twój program pocztowy nie ma takich mo¿liwo¶ci. Mo¿liwe
69 jest te¿ tunelowanie po³±czeñ przez SOCKS proxy.
70 Co wiêcej, GNU Anubis wspiera tak¿e remailery (czyli pozawala na anonimowe
71 wysy³anie poczty).
72
73 Pamiêtaj, ¿e aby u¿ywaæ plików konfiguracyjnych u¿ytkowników, serwer ident
74 musi byæ aktywny. Inaczej, u¿yty bêdzie tylko g³ówny plik konfiguracyjny.
75
76 Je¶li chcesz u¿ywaæ GNU Anubis z klientem poczty mutt, zainstaluj pakiet
77 msg2smtp.
78
79 %package -n msg2smtp
80 Summary:        msg2smtp takes mail at input and relays it to an SMTP server
81 Summary(pl):    msg2smtp wysy³a pocztê przyjmowan± na wej¶ciu do serwera SMTP
82 Group:          Applications/Mail
83
84 %description -n msg2smtp
85 The msg2smtp script is a bridge between MUA programs which use "sendmail"
86 command to send mail (such as Mutt) and smtp servers. It is particularly
87 useful when used in connection with GNU Anubis mail processor.
88
89 %description -n msg2smtp -l pl
90 Skrypt msg2smtp jest pomostem miêdzy programami pocztowymi u¿ywaj±cymi
91 polecenia "sendmail" do wysy³ania listów (np. Mutt), a serwerem smtp.
92 Jest on szczególnie przydatny w po³±czeniu z procesorem poczty GNU Anubis.
93
94 %prep
95 %setup -q
96 %patch0 -p1
97 %patch1 -p1
98
99 %build
100 rm -f missing
101 #%{__gettextize}
102 %{__aclocal} -I m4
103 %{__autoconf}
104 %{__automake}
105 %configure \
106 %{?_with_gnutls:        --with-gnutls} \
107 %{!?_with_gnutls:       --with-openssl} \
108 %{!?_without_pam:       --with-pam} \
109 %{?_without_pam:        --without-pam} \
110 %{!?_without_pcre:      --with-pcre} \
111 %{?_without_pcre:       --without-pcre} \
112 %{!?_without_gpgme:     --with-gpgme} \
113 %{?_without_gpgme:      --without-gpgme} \
114 %{!?_without_tcp_wrappers:      --with-tcp-wrappers} \
115 %{?_without_tcp_wrappers:       --without-tcp-wrappers} \
116         --disable-dependency-tracking
117
118 %{__make}
119
120 %install
121 rm -rf $RPM_BUILD_ROOT
122 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/pam.d,%{_sysconfdir},%{_bindir}}
123
124 %{__make} install \
125         DESTDIR=$RPM_BUILD_ROOT
126
127 install ./contrib/msg2smtp.pl $RPM_BUILD_ROOT%{_bindir}
128 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/anubis
129 install ./examples/2anubisrc $RPM_BUILD_ROOT%{_sysconfdir}/anubisrc
130 %{!?_without_pam:install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/anubis}
131 cp -f ./examples/1anubisrc examples/anubisrc
132
133 %find_lang %{name}
134
135 %clean
136 rm -fr $RPM_BUILD_ROOT
137
138 %post
139 /sbin/chkconfig --add anubis
140 if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
141         /etc/rc.d/init.d/anubis restart >&2
142 else
143         echo "Run \"/etc/rc.d/init.d/anubis start\" to start anubis." >&2
144 fi
145 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
146
147
148 %preun
149 if [ "$1" = "0" ]; then
150         if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
151                 /etc/rc.d/init.d/anubis stop
152         fi
153         /sbin/chkconfig --del anubis
154 fi
155
156 %postun
157 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
158
159 %files -f %{name}.lang
160 %defattr(644,root,root,755)
161 %doc AUTHORS README INSTALL NEWS ChangeLog TODO examples/anubisrc
162 %{!?_without_pam:%doc examples/pam}
163 %attr(754,root,root) /etc/rc.d/init.d/anubis
164 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/anubisrc
165 %{!?_without_pam:%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/anubis}
166 %attr(755,root,root) %{_sbindir}/anubis
167 %{_mandir}/man1/*
168 %{_infodir}/*info*
169
170 %files -n msg2smtp
171 %defattr(644,root,root,755)
172 %doc contrib/msg2smtp.txt
173 %attr(755,root,root) %{_bindir}/msg2smtp.pl
This page took 0.346715 seconds and 3 git commands to generate.