1 Summary: A RFC 1413 ident protocol daemon
2 Summary(pl.UTF-8): Demon protokołu ident (RFC 1413)
7 Group: Networking/Daemons
8 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: openssl-devel
10 BuildRequires: sed >= 4.0
11 BuildRequires: missing-user-check-post-scriptlet
12 Provides: pidentd = 3.2
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 authd is a small and fast RFC 1413 ident protocol daemon with both
18 xinetd server and interactive modes that supports IPv6 and IPv4 as
19 well as the more popular features of pidentd.
21 %description -l pl.UTF-8
22 authd to mały i szybki protokołu demon protokołu ident (RFC 1413) z
23 trybami xinetd i interaktywnym obsługujący IPv6 i IPv4, a także
24 bardziej popularne możliwości pidentd.
28 sed -i -e "s|/etc|%{_sysconfdir}|" config.h
36 rm -rf $RPM_BUILD_ROOT
40 #install -m 644 xinetd.conf.auth $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/auth
41 #sed -i -e 's|/usr/local|/usr|' $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/auth
43 touch $RPM_BUILD_ROOT%{_sysconfdir}/ident.key
48 rm -rf $RPM_BUILD_ROOT
51 # TODO: standard useradd sequence
52 #/usr/sbin/adduser -s /sbin/nologin -r ident 2>/dev/null || true
54 /usr/bin/openssl rand -base64 -out %{_sysconfdir}/ident.key 32
55 echo CHANGE THE LINE ABOVE TO A PASSPHRASE >> %{_sysconfdir}/ident.key
56 /bin/chown ident:ident %{_sysconfdir}/ident.key
57 chmod o-rw %{_sysconfdir}/ident.key
61 %defattr(644,root,root,755)
62 %doc COPYING README.html rfc1413.txt
63 #%config(noreplace) %{_sysconfdir}/xinetd.d/auth
64 %config %{_sysconfdir}/ident.key
65 %attr(755,root,root) %{_sbindir}/in.authd