Blob Blame History Raw
Summary: The finger client.
Name: finger
Version: 0.17
Release: 13
Copyright: BSD
Group: Applications/Internet
Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/bsd-finger-%{version}.tar.gz
Source1: finger-xinetd
Patch5: bsd-finger-0.16-pts.patch
Patch7: bsd-finger-0.17-exact.patch
Patch8: bsd-finger-0.16-allocbroken.patch
Patch9: bsd-finger-0.17-rfc742.patch
Patch10: bsd-finger-0.17-time.patch
Patch11: bsd-finger-0.17-usagi-ipv6.patch
Patch12: bsd-finger-0.17-typo.patch
Patch13: bsd-finger-0.17-strip.patch
BuildRoot: %{_tmppath}/%{name}-root

%description
Finger is a utility which allows users to see information about system
users (login name, home directory, name, how long they've been logged
in to the system, etc.).  The finger package includes a standard
finger client.

You should install finger if you'd like to retrieve finger information
from other systems.

%package server
Summary: The finger daemon.
Group: System Environment/Daemons
Requires: xinetd

%description server
Finger is a utility which allows users to see information about system
users (login name, home directory, name, how long they've been logged
in to the system, etc.).  The finger-server package includes a standard
finger server. The server daemon (fingerd) runs from /etc/inetd.conf,
which must be modified to disable finger requests.

You should install finger-server if your system is used by multiple users
and you'd like finger information to be available.

%prep
%setup -q -n bsd-finger-%{version}
%patch5 -p1 -b .pts
# XXX not applied
%patch7 -p1 -b .exact
%patch8 -p1
%patch9 -p1 -b .rfc742
%patch10 -p1 -b .time
%patch11 -p1 -b .ipv6
%patch12 -p1 -b .typo
%patch13 -p1 -b .strip

%build
sh configure --enable-ipv6
perl -pi -e '
    s,^CC=.*$,CC=cc,;
    s,-O2,\$(RPM_OPT_FLAGS),;
    s,^BINDIR=.*$,BINDIR=%{_bindir},;
    s,^MANDIR=.*$,MANDIR=%{_mandir},;
    s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
    ' MCONFIG

make

%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}

mkdir -p ${RPM_BUILD_ROOT}/etc/xinetd.d
install -m 644 %SOURCE1 ${RPM_BUILD_ROOT}/etc/xinetd.d/finger

make INSTALLROOT=${RPM_BUILD_ROOT} install

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%attr(0711,root,root)	%{_bindir}/finger
%{_mandir}/man1/finger.1*

%files server
%defattr(-,root,root)
%config(noreplace) /etc/xinetd.d/finger
%attr(0711,root,root)	%{_sbindir}/in.fingerd
%{_mandir}/man8/in.fingerd.8*
%{_mandir}/man8/fingerd.8*

%changelog
* Wed Jun 19 2002 Phil Knirsch <pknirsch@redhat.com> 0.17-13
- Don't forcibly strip binaries

* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Thu Jan 24 2002 Phil Knirsch <pknirsch@redhat.com>
- Fixed various typos in manpage/app (#51891, #54916, #57588)

* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Wed Apr 18 2001 Crutcher Dunnavant <crutcher@redhat.com>
- Approved
- * Sun Mar 11 2001 Pekka Savola <pekkas@netcore.fi>
- - Add IPv6 support from USAGI, update to 0.17 final (no changes)

* Tue Feb 27 2001 Preston Brown <pbrown@redhat.com>
- noreplace xinetd.d config file

* Mon Feb 12 2001 Crutcher Dunnavant <crutcher@redhat.com>
- time patch to handle time.h moving, credit to howarth@fuse.net
- closes bug #26766

* Fri Dec  1 2000 Trond Eivind Glomsrød <teg@redhat.com>
- make sure finger is turned off by default

* Sun Aug 27 2000 Nalin Dahyabhai <nalin@redhat.com>
- add patch to always call getpwnam() instead of just when -m is specified

* Sat Jul 22 2000 Jeff Johnson <jbj@redhat.com>
- fix RFC742 problem (again) (#6728).

* Tue Jul 18 2000 Bill Nottingham <notting@redhat.com>
- add description & default to xinetd file

* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild

* Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
- FHS packaging.
- update to 0.17.

* Wed May 31 2000 Cristian Gafton <gafton@redhat.com>
- fix the broken malloc code in finger client

* Mon May 22 2000 Trond Eivind Glomsrød <teg@redhat.com>
- converted to use /etc/xinetd.d

* Tue May 16 2000 Chris Evans <chris@ferret.lmh.ox.ac.uk>
- make some files mode -rwx--x--x as a security hardening measure 

* Fri Feb 11 2000 Bill Nottingham <notting@redhat.com>
- fix description

* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
- handle compressed manpages

* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
- fix description
- man pages are compressed

* Tue Jan  4 2000 Bill Nottingham <notting@redhat.com>
- split client and server

* Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
- update to 0.16.

* Wed Jul 28 1999 Jeff Johnson <jbj@redhat.com>
- exact match w/o -m and add missing pts patch (#2118).
- recompile with correct PATH_MAILDIR (#4218).

* Thu Apr  8 1999 Jeff Johnson <jbj@redhat.com>
- fix process table filled DOS attack (#1271)
- fix pts display problems (#1987 partially)

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 22)

* Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
- compile for 6.0.

* Wed Aug 12 1998 Jeff Johnson <jbj@redhat.com>
- fix error message typo.

* Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
- build root

* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
- added check for getpwnam() failure