summaryrefslogtreecommitdiff
path: root/masqmail.spec
blob: e7bf1068e8e76e525811f2f5f1cc3b83101d190c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Summary:	An offline mail server with pop3 client support
Summary(pl):	Serwer pocztowy offline ze wsparciem dla pop3
Name:		masqmail
Version:	0.2.6
Release:	1
License:	GPL
Vendor:		Oliver Kurth <kurth@innominate.de>
Group:		Networking/Daemons
Source0:	ftp://innominate.org/oku/masqmail/%{name}-%{version}.tar.gz
URL:		http://www.innominate.org/~oku/masqmail/
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	glib-devel
Provides:	smtpdaemon
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
MasqMail is a mail server designed for hosts that do not have a
permanent internet connection eg. a home network or a single host at
home. It has special support for connections to different ISPs. It
replaces sendmail or other MTAs such as qmail or exim.

%description -l pl
MasqMail jest serwerem pocztowym zaprojektowanym dla maszyn nie
posiadających stałego dostępu do Internetu, jak domowe sieci czy
pojedyncze komputery domowe. Wspiera połączenia z różnymi ISP.
Zastępuje sendmaila oraz inne MTA jak qmail czy exim.

%prep
%setup -q

%build
rm -f missing
aclocal
%{__autoconf}
autoheader
%{__automake}
%configure \
	--with-user=mail \
	--with-group=mail \
	--with-logdir=/var/log
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}/tpl,%{_bindir},%{_libdir},%{_sbindir},%{_mandir}/man{5,8},%{_var}/spool/%{name}/{input,lock,popuidl}}

install tpl/failmsg.tpl $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/tpl
install examples/masqmail.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
install src/mservdetect $RPM_BUILD_ROOT%{_bindir}
install src/masqmail $RPM_BUILD_ROOT%{_sbindir}
install docs/man/masqmail.*.5 $RPM_BUILD_ROOT%{_mandir}/man5
install docs/man/masqmail.8 $RPM_BUILD_ROOT%{_mandir}/man8
install debian/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
install debian/newaliases $RPM_BUILD_ROOT%{_bindir}
ln -s -f '../sbin/masqmail' $RPM_BUILD_ROOT%{_bindir}/mailq
ln -s -f '../sbin/masqmail' $RPM_BUILD_ROOT%{_libdir}/sendmail
ln -s -f './masqmail' $RPM_BUILD_ROOT%{_sbindir}/sendmail

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog INSTALL NEWS README THOUGHTS TODO examples/example.*
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_libdir}/sendmail
%attr(755,root,root) %{_sbindir}/sendmail
%attr(4755,root,root) %{_sbindir}/masqmail
%dir %{_sysconfdir}/%{name}
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/masqmail.conf
%{_mandir}/man[58]/*
%defattr(644,mail,mail,755)
%dir %{_sysconfdir}/%{name}/tpl
%config %{_sysconfdir}/%{name}/tpl/failmsg.tpl
%dir %{_var}/spool/%{name}
%dir %{_var}/spool/%{name}/input
%dir %{_var}/spool/%{name}/lock
%dir %{_var}/spool/%{name}/popuidl