]> git.pld-linux.org Git - packages/anubis.git/blob - anubis.spec
- very useful package
[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.0.1
5 Release:        1
6 License:        GPL
7 Group:          Applications/Mail
8 Source0:        http://anubis.sourceforge.net/download/%{name}-%{version}.tar.gz
9 Source1:        %{name}.init
10 Patch0:         %{name}-libobj.patch
11 URL:            http://anubis.sourceforge.net/
12 BuildRequires:  openssl-devel
13 BuildRequires:  gpgme-devel
14 BuildRequires:  pcre-devel
15 PreReq:         /sbin/chkconfig
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Anubis is an outgoing mail processor, and the SMTP tunnel between the
20 MUA and the MTA. It supports: extended regular expressions, TLS/SSL
21 encryption, GnuPG (via the GPGME library), SOCKS Proxy and WinGates,
22 remailers, and more.
23
24 %description -l pl
25 Anubis jest preprocesorem wychodz±cej poczty i tunelem miêdzy MUA and the MTA.
26 Anubis wspiera rozszerzone wyra¿enia regularne, szyfrowanie TLS/SSL, GnuPG,
27 SOCKS Proxy oraz WinGates, remailery i nie tylko.
28
29 %prep
30 %setup -q
31 %patch0 -p1
32
33 %build
34 %{__aclocal}
35 %{__automake}
36 %{__autoconf}
37 %configure \
38         --with-pcre
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
44 install -d $RPM_BUILD_ROOT%{_sysconfdir}
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 install %SOURCE1 $RPM_BUILD_ROOT/etc/rc.d/init.d/anubis
50 install ./examples/defaultrc $RPM_BUILD_ROOT%{_sysconfdir}/anubisrc
51
52 %clean
53 rm -fr $RPM_BUILD_ROOT
54
55 %post
56 /sbin/chkconfig --add anubis
57 if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
58         /etc/rc.d/init.d/anubis restart >&2
59 else
60         echo "Run \"/etc/rc.d/init.d/anubis start\" to start anubis." >&2
61 fi
62
63 %preun
64 if [ "$1" = "0" ]; then
65         if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
66                 /etc/rc.d/init.d/anubis stop
67         fi
68         /sbin/chkconfig --del anubis
69 fi
70
71 %files
72 %defattr(644,root,root,755)
73 %doc AUTHORS README INSTALL NEWS ChangeLog TUTORIAL TODO examples
74 %attr(700,root,root) %{_sbindir}/anubis
75 %attr(755,root,root) /etc/rc.d/init.d/anubis
76 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/anubisrc
77 %{_mandir}/man1/*
This page took 0.073217 seconds and 3 git commands to generate.