]>
Commit | Line | Data |
---|---|---|
9c10a424 | 1 | Summary: A RFC 1413 ident protocol daemon |
b515d6df | 2 | Summary(pl.UTF-8): Demon protokołu ident (RFC 1413) |
5ec40b9c AM |
3 | Name: authd |
4 | Version: 1.4.1 | |
9c10a424 | 5 | Release: 1.4 |
5ec40b9c | 6 | License: GPL |
9c10a424 | 7 | Group: Networking/Daemons |
5ec40b9c | 8 | Source0: %{name}-%{version}.tar.gz |
5ec40b9c | 9 | BuildRequires: openssl-devel |
9c10a424 | 10 | BuildRequires: sed >= 4.0 |
fbbd460a | 11 | BuildRequires: missing-user-check-post-scriptlet |
9c10a424 JB |
12 | Provides: pidentd = 3.2 |
13 | Obsoletes: pidentd | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
5ec40b9c AM |
15 | |
16 | %description | |
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. | |
20 | ||
e8a4b622 JR |
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. | |
9c10a424 | 25 | |
5ec40b9c AM |
26 | %prep |
27 | %setup -q | |
28 | sed -i -e "s|/etc|%{_sysconfdir}|" config.h | |
29 | ||
30 | %build | |
9c10a424 JB |
31 | # TODO: optflags |
32 | %{__make} \ | |
33 | prefix=%{_prefix} | |
5ec40b9c AM |
34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | %makeinstall | |
38 | ||
9c10a424 JB |
39 | # TODO: use rc-inetd |
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 | |
5ec40b9c | 42 | |
9c10a424 | 43 | touch $RPM_BUILD_ROOT%{_sysconfdir}/ident.key |
5ec40b9c AM |
44 | |
45 | %find_lang %{name} | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %post | |
9c10a424 JB |
51 | # TODO: standard useradd sequence |
52 | #/usr/sbin/adduser -s /sbin/nologin -r ident 2>/dev/null || true | |
fbbd460a ER |
53 | if [ "$1" = 1 ]; then |
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 | |
58 | fi | |
5ec40b9c AM |
59 | |
60 | %files -f authd.lang | |
61 | %defattr(644,root,root,755) | |
62 | %doc COPYING README.html rfc1413.txt | |
9c10a424 | 63 | #%config(noreplace) %{_sysconfdir}/xinetd.d/auth |
5ec40b9c AM |
64 | %config %{_sysconfdir}/ident.key |
65 | %attr(755,root,root) %{_sbindir}/in.authd |