Blame SPECS/finger.spec

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