Blame SPECS/finger.spec

c7b137
%global _hardened_build 1
c7b137
c7b137
Summary: The finger client
c7b137
Name: finger
c7b137
Version: 0.17
c7b137
Release: 52%{?dist}
c7b137
License: BSD
c7b137
Group: Applications/Internet
c7b137
c7b137
Source0: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/bsd-finger-%{version}.tar.gz
c7b137
Source1: finger.socket
c7b137
Source2: finger@.service
c7b137
#BSD license text from sources
c7b137
Source3: COPYING
c7b137
c7b137
Patch1: bsd-finger-0.16-pts.patch
c7b137
Patch2: bsd-finger-0.17-exact.patch
c7b137
Patch3: bsd-finger-0.16-allocbroken.patch
c7b137
Patch4: bsd-finger-0.17-rfc742.patch
c7b137
Patch5: bsd-finger-0.17-time.patch
c7b137
Patch6: bsd-finger-0.17-usagi-ipv6.patch
c7b137
Patch7: bsd-finger-0.17-typo.patch
c7b137
Patch8: bsd-finger-0.17-strip.patch
c7b137
Patch9: bsd-finger-0.17-utmp.patch
c7b137
Patch10: bsd-finger-wide-char-support5.patch
c7b137
Patch11: bsd-finger-0.17-init-realname.patch
c7b137
Patch12: bsd-finger-0.17-host-info.patch
c7b137
Patch13: bsd-finger-0.17-match_sigsegv.patch
c7b137
Patch14: bsd-finger-0.17-man_page_systemd.patch
c7b137
Patch15: bsd-finger-0.17-coverity-bugs.patch
c7b137
c7b137
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c7b137
BuildRequires: glibc-devel, systemd
c7b137
c7b137
%description
c7b137
Finger is a utility which allows users to see information about system
c7b137
users (login name, home directory, name, how long they've been logged
c7b137
in to the system, etc.).  The finger package includes a standard
c7b137
finger client.
c7b137
c7b137
You should install finger if you'd like to retrieve finger information
c7b137
from other systems.
c7b137
c7b137
%package server
c7b137
Summary: The finger daemon
c7b137
Group: System Environment/Daemons
c7b137
Requires:         finger
c7b137
Requires:         systemd
c7b137
Requires(post):   systemd
c7b137
Requires(preun):  systemd
c7b137
Requires(postun): systemd
c7b137
c7b137
%description server
c7b137
Finger is a utility which allows users to see information about system
c7b137
users (login name, home directory, name, how long they've been logged
c7b137
in to the system, etc.).  The finger-server package includes a standard
c7b137
finger server. The server daemon (fingerd) must be started using 
c7b137
systemctl to receive finger requests.
c7b137
c7b137
You should install finger-server if your system is used by multiple users
c7b137
and you'd like finger information to be available.
c7b137
c7b137
c7b137
%prep
c7b137
%setup -q -n bsd-finger-%{version}
c7b137
%patch1 -p1 -b .pts
c7b137
%patch2 -p1 -b .exact
c7b137
%patch3 -p1
c7b137
%patch4 -p1 -b .rfc742
c7b137
%patch5 -p1 -b .time
c7b137
%patch6 -p1 -b .ipv6
c7b137
%patch7 -p1 -b .typo
c7b137
%patch8 -p1 -b .strip
c7b137
%patch9 -p1 -b .utmp
c7b137
%patch10 -p1 -b .widechar
c7b137
%patch11 -p1 
c7b137
%patch12 -p1 -b .host
c7b137
%patch13 -p1 -b .match_sigsegv
c7b137
%patch14 -p1 -b .systemd
c7b137
%patch15 -p1 -b .coverity
c7b137
c7b137
install -m 644 %{SOURCE3} COPYING
c7b137
c7b137
c7b137
%build
c7b137
sh configure --enable-ipv6
c7b137
perl -pi -e '
c7b137
	s,^CC=.*$,CC=gcc,;
c7b137
	s,^CFLAGS=.*,CFLAGS=\$(RPM_OPT_FLAGS),;
c7b137
	s,^BINDIR=.*$,BINDIR=%{_bindir},;
c7b137
	s,^MANDIR=.*$,MANDIR=%{_mandir},;
c7b137
	s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
c7b137
	s,^LDFLAGS=.*$,LDFLAGS=\$(RPM_LD_FLAGS),;
c7b137
	' MCONFIG
c7b137
c7b137
make %{?_smp_mflags}
c7b137
c7b137
c7b137
%install
c7b137
mkdir -p %{buildroot}%{_bindir}
c7b137
mkdir -p %{buildroot}%{_mandir}/man{1,8}
c7b137
mkdir -p %{buildroot}%{_sbindir}
c7b137
c7b137
mkdir -p %{buildroot}%{_unitdir}
c7b137
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
c7b137
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
c7b137
c7b137
make INSTALLROOT=%{buildroot} install
c7b137
c7b137
c7b137
%post server
c7b137
%systemd_post finger.socket
c7b137
c7b137
c7b137
%preun server
c7b137
%systemd_preun finger.socket
c7b137
c7b137
c7b137
%postun server
c7b137
%systemd_postun_with_restart finger.socket
c7b137
c7b137
c7b137
%files
c7b137
%doc COPYING
c7b137
%attr(0755,root,root) %{_bindir}/finger
c7b137
%{_mandir}/man1/finger.1*
c7b137
c7b137
c7b137
%files server
c7b137
%doc COPYING
c7b137
%{_unitdir}/finger.socket
c7b137
%{_unitdir}/finger@.service
c7b137
%attr(0755,root,root) %{_sbindir}/in.fingerd
c7b137
%{_mandir}/man8/in.fingerd.8*
c7b137
%{_mandir}/man8/fingerd.8*
c7b137
c7b137
c7b137
%changelog
c7b137
* Tue Aug 19 2014 Tomas Hozza <thozza@redhat.com> - 0.17-52
c7b137
- server subpackage now requires the finger utility (#1095356)
c7b137
c7b137
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.17-51
c7b137
- Mass rebuild 2014-01-24
c7b137
c7b137
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.17-50
c7b137
- Mass rebuild 2013-12-27
c7b137
c7b137
* Mon Jul 22 2013 Tomas Hozza <thozza@redhat.com> - 0.17-49
c7b137
- Compile finger with Full RELRO
c7b137
- Explicitly use gcc
c7b137
- Use only RPM_OPT_FLAGS and RPM_LD_FLAGS
c7b137
- Add systemd as BuildRequires because of unitdir macro
c7b137
c7b137
* Mon Feb 11 2013 Tomas Hozza <thozza@redhat.com> - 0.17-48
c7b137
- Fixing errors found by static analysis of code (Coverity) (#909325)
c7b137
c7b137
* Fri Nov 23 2012 Tomas Hozza <thozza@redhat.com> - 0.17-47
c7b137
- Provide native systemd service file (#737178)
c7b137
- SPEC file cleanup
c7b137
c7b137
* Tue Oct 16 2012 Tomas Hozza <thozza@redhat.com> - 0.17-46
c7b137
- finger segfaults if pw->pw_gecos is NULL (#866873)
c7b137
c7b137
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-45
c7b137
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c7b137
c7b137
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-44
c7b137
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c7b137
c7b137
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-43
c7b137
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c7b137
c7b137
* Tue Jul 13 2010 Petr Lautrbach <plautrba@redhat.com> 0.17-42
c7b137
- print user host information in better format  (#532414) - <spoyarek@redhat.com>
c7b137
c7b137
* Mon Jul 12 2010 Petr Lautrbach <plautrba@redhat.com> 0.17-41
c7b137
- fix UTF-8 output in list of logged users (#490443)
c7b137
c7b137
* Thu Jul 08 2010 Petr Lautrbach <plautrba@redhat.com> 0.17-40
c7b137
- added license text
c7b137
c7b137
* Mon Sep  7 2009 Radek Vokal <rvokal@redhat.com> - 0.17-39
c7b137
- init realname fix (#520203)
c7b137
c7b137
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-38
c7b137
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c7b137
c7b137
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-37
c7b137
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c7b137
c7b137
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.17-36
c7b137
- Autorebuild for GCC 4.3
c7b137
c7b137
* Thu Aug 23 2007 Radek Vokál <rvokal@redhat.com> - 0.17-35
c7b137
- rebuilt
c7b137
c7b137
* Sun Feb  4 2007 Radek Vokál <rvokal@redhat.com> - 0.17-34
c7b137
- finger server permissions (#225754)
c7b137
c7b137
* Sun Feb  4 2007 Radek Vokál <rvokal@redhat.com> - 0.17-33
c7b137
- spec files cleanups according to MergeReview (#225754)
c7b137
- dist tag added
c7b137
c7b137
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.2.1.1
c7b137
- rebuild
c7b137
c7b137
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.2.1
c7b137
- rebuild
c7b137
c7b137
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.2
c7b137
- bump again for double-long bug on ppc(64)
c7b137
c7b137
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1
c7b137
- rebuilt for new gcc4.1 snapshot and glibc changes
c7b137
c7b137
* Thu Dec 15 2005 Radek Vokal <rvokal@redhat.com> 0.17-32
c7b137
- another UTF-8 fix
c7b137
c7b137
* Tue Dec 13 2005 Radek Vokal <rvokal@redhat.com> 0.17-31
c7b137
- real UTF-8 patch by <bnocera@redhat.com>
c7b137
c7b137
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
c7b137
- rebuilt
c7b137
c7b137
* Mon Nov 28 2005 Radek Vokal <rvokal@redhat.com> 0.17-30
c7b137
- make finger UTF-8 happy (#174352)
c7b137
c7b137
* Wed Jul 13 2005 Radek Vokal <rvokal@redhat.com> 0.17-29
c7b137
- make finger world readable (#162643)
c7b137
c7b137
* Fri Mar 04 2005 Radek Vokal <rvokal@redhat.com> 0.17-28
c7b137
- gcc4 rebuilt
c7b137
c7b137
* Wed Feb 09 2005 Radek Vokal <rvokal@redhat.com> 0.17-27
c7b137
- rebuilt to get fortified
c7b137
c7b137
* Mon Sep 06 2004 Radek Vokal <rvokal@redhat.com> 0.17-26
c7b137
- rebuilt
c7b137
c7b137
* Tue Jun 15 2004 Alan Cox <alan@redhat.com>
c7b137
- Made finger agree with our other apps about how utmp is managed
c7b137
- Removed dead users from the lists as a result
c7b137
- Fixed random idle time bug
c7b137
c7b137
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
c7b137
- rebuilt
c7b137
c7b137
* Wed Feb 25 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-21
c7b137
- rebuilt
c7b137
- Made fingerd PIE.
c7b137
c7b137
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
c7b137
- rebuilt
c7b137
c7b137
* Mon Sep 01 2003 Phil Knirsch <pknirsch@redhat.com> 0.17-18.1
c7b137
- rebuilt
c7b137
c7b137
* Mon Sep 01 2003 Phil Knirsch <pknirsch@redhat.com> 0.17-18
c7b137
- Fixed manpage bug (#75705).
c7b137
c7b137
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> 0.17-17
c7b137
- rebuilt
c7b137
c7b137
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 0.17-16
c7b137
- rebuilt
c7b137
c7b137
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 0.17-15
c7b137
- rebuild on all arches
c7b137
c7b137
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 0.17-14
c7b137
- automated rebuild
c7b137
c7b137
* Wed Jun 19 2002 Phil Knirsch <pknirsch@redhat.com> 0.17-13
c7b137
- Don't forcibly strip binaries
c7b137
c7b137
* Thu May 23 2002 Tim Powers <timp@redhat.com>
c7b137
- automated rebuild
c7b137
c7b137
* Thu Jan 24 2002 Phil Knirsch <pknirsch@redhat.com>
c7b137
- Fixed various typos in manpage/app (#51891, #54916, #57588)
c7b137
c7b137
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
c7b137
- automated rebuild
c7b137
c7b137
* Wed Apr 18 2001 Crutcher Dunnavant <crutcher@redhat.com>
c7b137
- Approved
c7b137
- * Sun Mar 11 2001 Pekka Savola <pekkas@netcore.fi>
c7b137
- - Add IPv6 support from USAGI, update to 0.17 final (no changes)
c7b137
c7b137
* Tue Feb 27 2001 Preston Brown <pbrown@redhat.com>
c7b137
- noreplace xinetd.d config file
c7b137
c7b137
* Mon Feb 12 2001 Crutcher Dunnavant <crutcher@redhat.com>
c7b137
- time patch to handle time.h moving, credit to howarth@fuse.net
c7b137
- closes bug #26766
c7b137
c7b137
* Fri Dec  1 2000 Trond Eivind Glomsred <teg@redhat.com>
c7b137
- make sure finger is turned off by default
c7b137
c7b137
* Sun Aug 27 2000 Nalin Dahyabhai <nalin@redhat.com>
c7b137
- add patch to always call getpwnam() instead of just when -m is specified
c7b137
c7b137
* Sat Jul 22 2000 Jeff Johnson <jbj@redhat.com>
c7b137
- fix RFC742 problem (again) (#6728).
c7b137
c7b137
* Tue Jul 18 2000 Bill Nottingham <notting@redhat.com>
c7b137
- add description & default to xinetd file
c7b137
c7b137
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
c7b137
- automatic rebuild
c7b137
c7b137
* Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
c7b137
- FHS packaging.
c7b137
- update to 0.17.
c7b137
c7b137
* Wed May 31 2000 Cristian Gafton <gafton@redhat.com>
c7b137
- fix the broken malloc code in finger client
c7b137
c7b137
* Mon May 22 2000 Trond Eivind Glomsred <teg@redhat.com>
c7b137
- converted to use /etc/xinetd.d
c7b137
c7b137
* Tue May 16 2000 Chris Evans <chris@ferret.lmh.ox.ac.uk>
c7b137
- make some files mode -rwx--x--x as a security hardening measure 
c7b137
c7b137
* Fri Feb 11 2000 Bill Nottingham <notting@redhat.com>
c7b137
- fix description
c7b137
c7b137
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
c7b137
- handle compressed manpages
c7b137
c7b137
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
c7b137
- fix description
c7b137
- man pages are compressed
c7b137
c7b137
* Tue Jan  4 2000 Bill Nottingham <notting@redhat.com>
c7b137
- split client and server
c7b137
c7b137
* Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
c7b137
- update to 0.16.
c7b137
c7b137
* Wed Jul 28 1999 Jeff Johnson <jbj@redhat.com>
c7b137
- exact match w/o -m and add missing pts patch (#2118).
c7b137
- recompile with correct PATH_MAILDIR (#4218).
c7b137
c7b137
* Thu Apr  8 1999 Jeff Johnson <jbj@redhat.com>
c7b137
- fix process table filled DOS attack (#1271)
c7b137
- fix pts display problems (#1987 partially)
c7b137
c7b137
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
c7b137
- auto rebuild in the new build environment (release 22)
c7b137
c7b137
* Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
c7b137
- compile for 6.0.
c7b137
c7b137
* Wed Aug 12 1998 Jeff Johnson <jbj@redhat.com>
c7b137
- fix error message typo.
c7b137
c7b137
* Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
c7b137
- build root
c7b137
c7b137
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
c7b137
- translations modified for de, fr, tr
c7b137
c7b137
* Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
c7b137
- added check for getpwnam() failure