]> git.pld-linux.org Git - packages/comsat.git/blob - comsat.spec
4daf72fa59d453958bd699394b8cf48b8b503259
[packages/comsat.git] / comsat.spec
1 Summary:        A mail checker client and comsat mail checking server
2 Summary(pl):    Klient i serwer powiadamiania o nadchodz±cej poczcie
3 Name:           comsat
4 Version:        0.17
5 Release:        1
6 License:        BSD
7 Group:          Networking/Daemons
8 Group(de):      Netzwerkwesen/Server
9 Group(pl):      Sieciowe/Serwery
10 Source0:        ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/biff+%{name}-%{version}.tar.gz
11 Source1:        %{name}.inetd
12 #Patch0:                biff+%{name}-0.10-misc.patch
13 #Patch1:                biff+%{name}-0.10-nobr.patch
14 Obsoletes:      biff
15 Provides:       biff
16 Prereq:         rc-inetd
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The biff client and comsat server are an antiquated method of
21 asynchronous mail notification. Although they are still supported,
22 most users use their shell's MAIL variable (or csh shell's mail
23 variable) to check for mail, or a dedicated application like xbiff or
24 xmailbox. If the comsat service is not enabled, biff won't work and
25 you'll need to use either the MAIL or mail variable.
26
27 You may want to install biff if you'd like to be notified when mail
28 arrives. However, you should probably check out the more modern
29 methodologies of mail notification (xbiff or xmailbox) instead.
30
31 %description -l pl
32 Klient biff oraz serwer comsat to przestarza³a metoda asynchronicznego
33 powiadamianiu o nadchodz±cej poczcie. Chcia¿ wci±¿ siê je obs³uguje,
34 wiêkszo¶æ u¿ytkowników ustawia w tym celu zmienn± ¶rodowiskow± MAIL
35 (lub mail w csh i klonach) lub u¿ywa oddzielnej aplikacji takiej jak
36 xbiff albo xmailbox.
37
38 %prep
39 %setup -q -n biff+comsat-%{version}
40 %patch0 -p1
41 %patch1 -p1
42
43 %build
44 %{__make} RPM_OPT_FLAGS="%{rpmcflags}"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man{1,8}}
49 install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
50
51 %{__make} install INSTALLROOT=$RPM_BUILD_ROOT \
52         MANDIR=%{_mandir}
53
54 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/comsat
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %post
60 if [ -f /var/lock/subsys/rc-inetd ]; then
61         /etc/rc.d/init.d/rc-inetd restart 1>&2
62 else
63         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
64 fi
65
66 %postun
67 if [ -f /var/lock/subsys/rc-inetd ]; then
68         /etc/rc.d/init.d/rc-inetd restart
69 fi
70
71 %files
72 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_bindir}/biff
74 %attr(755,root,root) %{_sbindir}/in.comsat
75 %{_mandir}/man1/biff.1*
76 %{_mandir}/man8/in.comsat.8*
77 %{_mandir}/man8/comsat.8*
78 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/rc-inetd/comsat
This page took 0.058246 seconds and 2 git commands to generate.