Blame SPECS/authd.spec

7a8b95
Summary: A RFC 1413 ident protocol daemon
7a8b95
Name: authd
7a8b95
Version: 1.4.3
7a8b95
Release: 42%{?dist}
7a8b95
License: GPLv2+
7a8b95
Group: System Environment/Daemons
7a8b95
URL: https://fedorahosted.org/authd/
7a8b95
Obsoletes: pidentd <= 3.2
7a8b95
Provides: pidentd = 3.2
7a8b95
Requires(post): openssl
7a8b95
Source0: http://fedorahosted.org/releases/a/u/authd/authd-1.4.3.tar.gz
7a8b95
Source1: auth.socket
7a8b95
Source2: auth@.service
7a8b95
Patch0: authd-1.4.3-gcc4.patch
7a8b95
Patch1: authd-1.4.3-disable.patch
7a8b95
Patch2: authd-1.4.3-ipv6-mapping.patch
7a8b95
Patch3: authd-1.4.3-locale.patch
7a8b95
Patch4: authd-1.4.3-longopt-identifier.patch
7a8b95
Patch5: authd-1.4.3-jiffies64.patch
7a8b95
Patch6: authd-1.4.3-valist.patch
7a8b95
Patch7: authd-1.4.3-license.patch
7a8b95
Patch8: authd-1.4.3-relro.patch
7a8b95
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
7a8b95
BuildRequires: openssl-devel gettext help2man systemd-units
7a8b95
Requires(post): systemd-units
7a8b95
Requires(preun): systemd-units
7a8b95
Requires(postun): systemd-units
7a8b95
7a8b95
%description
7a8b95
authd is a small and fast RFC 1413 ident protocol daemon
7a8b95
with both xinetd server and interactive modes that
7a8b95
supports IPv6 and IPv4 as well as the more popular features
7a8b95
of pidentd.
7a8b95
7a8b95
%prep
7a8b95
%setup -q
7a8b95
%patch0 -p1
7a8b95
%patch1 -p1
7a8b95
%patch2 -p1 -b .ipv6map
7a8b95
%patch3 -p1 -b .locale
7a8b95
%patch4 -p1
7a8b95
%patch5 -p1 -b .jiffies64
7a8b95
%patch6 -p1 -b .valist
7a8b95
%patch7 -p1 -b .license
7a8b95
sed -i -e "s|/etc|%{_sysconfdir}|" config.h
7a8b95
sed -i -e "/^CFLAGS=.*$/d" GNUmakefile
7a8b95
%patch8 -p1 -b .relro
7a8b95
7a8b95
%build
7a8b95
CFLAGS="$RPM_OPT_FLAGS -std=c99 -DNDEBUG -fPIE" make prefix=%{_prefix}
7a8b95
7a8b95
%install
7a8b95
rm -rf $RPM_BUILD_ROOT
7a8b95
%makeinstall
7a8b95
7a8b95
install -d ${RPM_BUILD_ROOT}%{_unitdir}/
7a8b95
install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_unitdir}/
7a8b95
install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_unitdir}/
7a8b95
7a8b95
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/
7a8b95
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/ident.key
7a8b95
7a8b95
install -d ${RPM_BUILD_ROOT}/%{_mandir}/man1/
7a8b95
help2man -N -v -V ${RPM_BUILD_ROOT}/%{_sbindir}/in.authd -o \
7a8b95
         ${RPM_BUILD_ROOT}/%{_mandir}/man1/in.authd.1
7a8b95
7a8b95
%find_lang %{name}
7a8b95
7a8b95
%clean
7a8b95
rm -rf $RPM_BUILD_ROOT
7a8b95
7a8b95
%post
7a8b95
/usr/sbin/adduser -s /sbin/nologin -u 98 -r -d '/' ident 2>/dev/null || true
7a8b95
/usr/bin/openssl rand -base64 -out %{_sysconfdir}/ident.key 32
7a8b95
echo CHANGE THE LINE ABOVE TO A PASSPHRASE >> %{_sysconfdir}/ident.key
7a8b95
/bin/chown ident:ident %{_sysconfdir}/ident.key
7a8b95
chmod o-rw %{_sysconfdir}/ident.key
7a8b95
%systemd_post auth.socket
7a8b95
7a8b95
%postun
7a8b95
%systemd_postun_with_restart auth.socket
7a8b95
7a8b95
%preun
7a8b95
%systemd_preun auth.socket
7a8b95
7a8b95
%files -f authd.lang
7a8b95
%defattr(-,root,root,-)
7a8b95
%verify(not md5 size mtime user group) %config(noreplace) %attr(640,root,root) %{_sysconfdir}/ident.key
7a8b95
%doc COPYING README.html rfc1413.txt
7a8b95
%{_sbindir}/in.authd
7a8b95
%{_mandir}/*/*
7a8b95
%{_unitdir}/*
7a8b95
7a8b95
%changelog
7a8b95
* Mon Jul 27 2015 Tomas Smetana <tsmetana@redhat.com> - 1.4.3-42
7a8b95
- Build with PIE and full RELRO
7a8b95
  Resolves: #1092568
7a8b95
7a8b95
* Tue Mar 11 2014 Jan Synáček <jsynacek@redhat.com> - 1.4.3-41
7a8b95
- Use CFLAGS correctly
7a8b95
  Resolves: #1070785
7a8b95
7a8b95
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.4.3-40
7a8b95
- Mass rebuild 2014-01-24
7a8b95
7a8b95
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4.3-39
7a8b95
- Mass rebuild 2013-12-27
7a8b95
7a8b95
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-38
7a8b95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7a8b95
7a8b95
* Fri Nov 30 2012 Roman Rakus <rrakus@redhat.com> - 1.4.3-37
7a8b95
- Fix a typo in build requirements
7a8b95
7a8b95
* Fri Nov 30 2012 Roman Rakus <rrakus@redhat.com> - 1.4.3-36
7a8b95
- Provide native systemd service file
7a8b95
  Resolves: #737153
7a8b95
7a8b95
* Thu Nov 29 2012 Roman Rakus <rrakus@redhat.com> - 1.4.3-35
7a8b95
- Generate and include man page
7a8b95
7a8b95
* Mon Nov 19 2012 Roman Rakus <rrakus@redhat.com> - 1.4.3-34
7a8b95
- Fixed address in license text
7a8b95
7a8b95
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-33
7a8b95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7a8b95
7a8b95
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-32
7a8b95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7a8b95
7a8b95
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-31
7a8b95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7a8b95
7a8b95
* Mon Jun 14 2010 Roman Rakus <rrakus@redhat.com> - 1.4.3-30
7a8b95
- Use only once defattr macro
7a8b95
- Use RPM_OPT_FLAGS for CFLAGS in build section
7a8b95
7a8b95
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.4.3-28
7a8b95
- rebuilt with new openssl
7a8b95
7a8b95
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-27
7a8b95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7a8b95
7a8b95
* Thu Apr 09 2009 Roman Rakus <rrakus@redhat.com> - 1.4.3-26
7a8b95
- get back to older version of jiffies64 patch
7a8b95
7a8b95
* Tue Mar 31 2009 Roman Rakus <rrakus@redhat.com> - 1.4.3-25
7a8b95
- Fixed source tag
7a8b95
7a8b95
* Tue Mar 31 2009 Roman Rakus <rrakus@redhat.com> - 1.4.3-24
7a8b95
- Fixed using valist with log option on.
7a8b95
  Resolves: #446844
7a8b95
- user ident has home dir set to /
7a8b95
  Resolves: #458144
7a8b95
7a8b95
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3-23
7a8b95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7a8b95
7a8b95
* Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> - 1.4.3-22
7a8b95
- rebuild with new openssl
7a8b95
7a8b95
* Wed Jul 23 2008 Roman Rakus <rrakus@redhat.com> - 1.4.3-21
7a8b95
- Corrected config directive for ident.key to noreplace
7a8b95
- Fixed some typos in specfile
7a8b95
7a8b95
* Tue Apr 29 2008 Roman Rakus <rrakus@redhat.com> - 1.4.3-20
7a8b95
- another corrections of jiffies64 patch
7a8b95
7a8b95
* Wed Mar 26 2008 Roman Rakus <rrakus@redhat.com> - 1.4.3-19
7a8b95
- corrected jiffies64 patch
7a8b95
7a8b95
* Thu Mar  6 2008 Roman Rakus <rrakus@redhat.com> - 1.4.3-18
7a8b95
- corrected Source0
7a8b95
- corrected link in URL
7a8b95
- source added to svn on fedorahosted
7a8b95
7a8b95
* Wed Mar  5 2008 Roman Rakus <rrakus@redhat.com> - 1.4.3-16
7a8b95
- fixed Source0
7a8b95
7a8b95
* Wed Mar  5 2008 Roman Rakus <rrakus@redhat.com> - 1.4.3-15
7a8b95
- added dist tag
7a8b95
- added URL
7a8b95
7a8b95
* Tue Feb 26 2008 Roman Rakus <rrakus@redhat.com> - 1.4.3-14
7a8b95
- fix 234262 bug
7a8b95
7a8b95
* Wed Feb 13 2008 Jan Safranek <jsafrane@redhat.com> - 1.4.3-13
7a8b95
- fix rpmlint errors
7a8b95
7a8b95
* Tue Feb 12 2008 Jan Safranek <jsafrane@redhat.com> - 1.4.3-12
7a8b95
- fix build with new gcc
7a8b95
7a8b95
* Fri Dec 07 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.4.3-11
7a8b95
- Rebuild for deps
7a8b95
7a8b95
* Wed Sep 19 2007 Ondrej Dvoracek <odvorace@redhat.com> - 1.4.3-10
7a8b95
- corrected illegal identifier in longopt enumeration (#245436)
7a8b95
- corrected summary and license
7a8b95
7a8b95
* Mon Jul 24 2006 Martin Stransky <stransky@redhat.com> - 1.4.3-9
7a8b95
- added locale patch (#199721)
7a8b95
7a8b95
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.4.3-8.1
7a8b95
- rebuild
7a8b95
7a8b95
* Sun May 28 2006 Martin Stransky <stransky@redhat.com> - 1.4.3-8
7a8b95
- added gettext dependency (#193350)
7a8b95
7a8b95
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.4.3-7.1
7a8b95
- bump again for double-long bug on ppc(64)
7a8b95
7a8b95
* Tue Feb 07 2006 Martin Stransky <stransky@redhat.com> - 1.4.3-7
7a8b95
- re-tag
7a8b95
7a8b95
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.4.3-6.devel.2
7a8b95
- rebuilt for new gcc4.1 snapshot and glibc changes
7a8b95
7a8b95
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
7a8b95
- rebuilt
7a8b95
7a8b95
* Tue Nov 8  2005 Martin Stransky <stransky@redhat.com>
7a8b95
- rebuilt
7a8b95
7a8b95
* Thu Jun 24 2005 Martin Stransky <stransky@redhat.com> - 1.4.3-5.devel
7a8b95
- add xinetd to Prereq
7a8b95
- fix for #150502 (authd doesn't map IPv6 to IPv4 from xinetd)
7a8b95
7a8b95
* Fri Apr  8 2005 Martin Stransky <stransky@redhat.com> - 1.4.3-4.devel
7a8b95
- clear last update
7a8b95
7a8b95
* Fri Apr  8 2005 Martin Stransky <stransky@redhat.com> - 1.4.3-3.devel
7a8b95
- delete user "ident" after uninstalation
7a8b95
7a8b95
* Thu Apr  7 2005 Martin Stransky <stransky@redhat.com> - 1.4.3-2.devel
7a8b95
- in.authd disabled by default (#151905)
7a8b95
7a8b95
* Mon Mar  7 2005 Martin Stransky <stransky@redhat.com> - 1.4.3-1.devel
7a8b95
- update to 1.4.3
7a8b95
- gcc4.0 patch
7a8b95
- add post-uninstall reconfiguration (#150460)
7a8b95
7a8b95
* Mon Feb 14 2005 Adrian Havill <havill@redhat.com>
7a8b95
- rebuilt
7a8b95
7a8b95
* Fri Oct 15 2004 Adrian Havill <havill@redhat.com> - 1.4.2-8
7a8b95
- tweak setting of uid/gid for key file so systems with no prior
7a8b95
  ident user/group don't generate a warning (#135837)
7a8b95
7a8b95
* Thu Oct 14 2004 Adrian Havill <havill@redhat.com> - 1.4.2-4
7a8b95
- slightly better error checking for insane cases
7a8b95
- tweak of the openssl requires dependency loop (#131291)
7a8b95
- as ident.key is created in %%post, tweak so verify passes (#131530)
7a8b95
- make the uid/gid for ident conform to the past (#135752)
7a8b95
7a8b95
* Wed Jul 28 2004 Adrian Havill <havill@redhat.com> - 1.4.1-1
7a8b95
- only scan for ESTABLISHED connections
7a8b95
- extra debug output for crypto
7a8b95
7a8b95
* Mon Jul 26 2004 Adrian Havill <havill@redhat.com> - 1.4.0-1
7a8b95
- revise makefile; don't over-optimize as gcc can produce bad code
7a8b95
- ptr cleanup when multiquery and missing /proc/net/tcp*
7a8b95
- improve create_opt (error handling, debugging, identifiers)
7a8b95
- add --prefix option for matching IPv4 to IPv6
7a8b95
7a8b95
* Tue Jul 13 2004 Adrian Havill <havill@redhat.com> - 1.3.4-1
7a8b95
- retry reading proc with pauses to reduce false negatives
7a8b95
- match IPv4 addresses against IPv6 compatibility addresses
7a8b95
7a8b95
* Mon Jul 12 2004 Adrian Havill <havill@redhat.com> - 1.3.3-1
7a8b95
- use gnu *_unlocked stream funcs for faster I/O
7a8b95
7a8b95
* Sat Jul 10 2004 Adrian Havill <havill@redhat.com> - 1.3.2-1
7a8b95
- enforce rfc restriction limiting port search to the connected
7a8b95
  local/foreign pair
7a8b95
7a8b95
* Fri Jul 08 2004 Adrian Havill <havill@redhat.com> - 1.3.1-1
7a8b95
- increase default connections-per-sec/max-instances for HP
7a8b95
- more doc cleanup
7a8b95
- remove unnecessary rootdir check for -N/--ident
7a8b95
7a8b95
* Fri Jul 02 2004 Adrian Havill <havill@redhat.com> - 1.3.0-1
7a8b95
- add unknown-error only -e option
7a8b95
- edit readme, add rfc to docdir
7a8b95
- code cleanup; remove static buffers, orthagonalize id names
7a8b95
- ipv6 hybrid addr zero run correction
7a8b95
- extra eight bits added to random key
7a8b95
7a8b95
* Wed Jun 30 2004 Adrian Havill <havill@redhat.com> - 1.2.8-1
7a8b95
- zero out invalid port(s)
7a8b95
7a8b95
* Tue Jun 29 2004 Adrian Havill <havill@redhat.com> - 1.2.7-1
7a8b95
- added Provides to satisfy HP pkg rpm dep (#121447, #111640)
7a8b95
- more code cleanup; minimize --resolve dns lookups
7a8b95
7a8b95
* Mon Jun 28 2004 Adrian Havill <havill@redhat.com> - 1.2.6-1
7a8b95
- incorporated suggestions from Thomas Zehetbauer (#124914)
7a8b95
7a8b95
* Sat Jun 26 2004 Adrian Havill <havill@redhat.com> - 1.2.5-1
7a8b95
- clean up src
7a8b95
7a8b95
* Thu Jun 24 2004 Adrian Havill <havill@redhat.com> - 1.2.4-1
7a8b95
- code vet and minor changes re alan@'s comments
7a8b95
- default operating mode to alias all usernames as 'nobody'
7a8b95
  to prevent noobies from getting their mail addr harvested
7a8b95
- clean up README documentation
7a8b95
7a8b95
* Wed Jun 23 2004 Adrian Havill <havill@redhat.com> - 1.2.3-1
7a8b95
- mark xinetd conf file as a noreplace config file
7a8b95
- more robust error checking for proper rfc1413 tokens
7a8b95
7a8b95
* Tue Jun 22 2004 Adrian Havill <havill@redhat.com> - 1.2.1-1
7a8b95
- add Requires and BuildRequires
7a8b95
7a8b95
* Mon Jun 21 2004 Adrian Havill <havill@redhat.com> - 1.2.0-1
7a8b95
- A few tweaks in the cmdline options for orthagonality
7a8b95
- minor bug fix regarding reading from stdin in some multiquery cmdline cases
7a8b95
- add --resolve
7a8b95
7a8b95
* Sun Jun 20 2004 Adrian Havill <havill@redhat.com> - 1.1.0-1
7a8b95
- add extra options for --help, --usage
7a8b95
7a8b95
* Sat Jun 19 2004 Adrian Havill <havill@redhat.com> - 1.0.0-2
7a8b95
- Obsolete pidentd -- authd and pidentd can't/shouldn't coexist on FC/RHEL
7a8b95
- license tweak to allow openssl under any condition
7a8b95
- no spec url needed; package is not worthy enough.
7a8b95
7a8b95
* Fri Jun 18 2004 Jens Petersen <petersen@redhat.com> - 1.0.0-1
7a8b95
- Initial packaging