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