Blame SPECS/authd.spec

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