]> git.pld-linux.org Git - packages/authd.git/blob - authd.spec
- dropped pre-cvs changelog
[packages/authd.git] / authd.spec
1 Summary:        A RFC 1413 ident protocol daemon
2 Summary(pl.UTF-8):      Demon protokołu ident (RFC 1413)
3 Name:           authd
4 Version:        1.4.1
5 Release:        1.4
6 License:        GPL
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
13 Obsoletes:      pidentd
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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.
25
26 %prep
27 %setup -q
28 sed -i -e "s|/etc|%{_sysconfdir}|" config.h
29
30 %build
31 # TODO: optflags
32 %{__make} \
33         prefix=%{_prefix}
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 %makeinstall
38
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
42
43 touch $RPM_BUILD_ROOT%{_sysconfdir}/ident.key
44
45 %find_lang %{name}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 # TODO: standard useradd sequence
52 #/usr/sbin/adduser -s /sbin/nologin -r ident 2>/dev/null || true
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
59
60 %files -f authd.lang
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
This page took 0.034951 seconds and 3 git commands to generate.