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