]> git.pld-linux.org Git - packages/comsat.git/blob - comsat.spec
- macros
[packages/comsat.git] / comsat.spec
1 Summary:        A mail checker client and comsat mail checking server.
2 Name:           comsat
3 Version:        0.10
4 Release:        22
5 Copyright:      BSD
6 Group:          System Environment/Daemons
7 Source0:        ftp://sunsite.unc.edu/pub/Linux/system/network/finger/biff+comsat-0.10.tar.gz
8 Source1:        comsat.inetd
9 Patch0:         biff+comsat-0.10-misc.patch
10 Patch1:         biff+comsat-0.10-nobr.patch
11 Obsoletes:      biff
12 Provides:       biff
13 Prereq:         rc-inetd
14 BuildRoot:      /tmp/%{name}-%{version}-root
15
16 %description
17 The biff client and comsat server are an antiquated method of
18 asynchronous mail notification.  Although they are still supported, most
19 users use their shell's MAIL variable (or csh shell's mail variable) to
20 check for mail, or a dedicated application like xbiff or xmailbox.  If
21 the comsat service is not enabled, biff won't work and you'll need to use
22 either the MAIL or mail variable.   
23
24 You may want to install biff if you'd like to be notified when mail
25 arrives. However, you should probably check out the more modern
26 methodologies of mail notification (xbiff or xmailbox) instead.
27
28 %prep
29 %setup -q -n biff+comsat-0.10
30 %patch0 -p1
31 %patch1 -p1
32
33 %build
34 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man{1,8}}
39 install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
40
41 make install INSTALLROOT=$RPM_BUILD_ROOT \
42         MANDIR=%{_mandir}
43
44 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/comsat
45
46 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man{1,8}/*
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %post
52 if [ -f /var/lock/subsys/rc-inetd ]; then
53         /etc/rc.d/init.d/rc-inetd restart 1>&2
54 else
55         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
56 fi
57
58 %postun
59 if [ -f /var/lock/subsys/rc-inetd ]; then
60         /etc/rc.d/init.d/rc-inetd restart
61 fi
62
63 %files
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_bindir}/biff
66 %attr(755,root,root) %{_sbindir}/in.comsat
67 %{_mandir}/man1/biff.1.gz
68 %{_mandir}/man8/in.comsat.8.gz
69 %{_mandir}/man8/comsat.8.gz
70 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/rc-inetd/comsat
This page took 0.056708 seconds and 4 git commands to generate.