]> git.pld-linux.org Git - packages/authd.git/blame - authd.spec
- dropped pre-cvs changelog
[packages/authd.git] / authd.spec
CommitLineData
9c10a424 1Summary: A RFC 1413 ident protocol daemon
b515d6df 2Summary(pl.UTF-8): Demon protokołu ident (RFC 1413)
5ec40b9c
AM
3Name: authd
4Version: 1.4.1
9c10a424 5Release: 1.4
5ec40b9c 6License: GPL
9c10a424 7Group: Networking/Daemons
5ec40b9c 8Source0: %{name}-%{version}.tar.gz
5ec40b9c 9BuildRequires: openssl-devel
9c10a424 10BuildRequires: sed >= 4.0
fbbd460a 11BuildRequires: missing-user-check-post-scriptlet
9c10a424
JB
12Provides: pidentd = 3.2
13Obsoletes: pidentd
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
5ec40b9c
AM
15
16%description
17authd is a small and fast RFC 1413 ident protocol daemon with both
18xinetd server and interactive modes that supports IPv6 and IPv4 as
19well as the more popular features of pidentd.
20
e8a4b622
JR
21%description -l pl.UTF-8
22authd to mały i szybki protokołu demon protokołu ident (RFC 1413) z
23trybami xinetd i interaktywnym obsługujący IPv6 i IPv4, a także
24bardziej popularne możliwości pidentd.
9c10a424 25
5ec40b9c
AM
26%prep
27%setup -q
28sed -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
36rm -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 43touch $RPM_BUILD_ROOT%{_sysconfdir}/ident.key
5ec40b9c
AM
44
45%find_lang %{name}
46
47%clean
48rm -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
53if [ "$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
58fi
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
This page took 0.085536 seconds and 4 git commands to generate.