]>
Commit | Line | Data |
---|---|---|
1 | Summary: Highly configurable and secure finger daemon with IPv6 support | |
2 | Summary(pl.UTF-8): Niezwykle konfigurowalny i bezpieczny demon fingerd ze wsparciem dla IPv6 | |
3 | Name: cfingerd | |
4 | Version: 1.4.3 | |
5 | Release: 13 | |
6 | License: GPL | |
7 | Group: Networking/Daemons | |
8 | URL: http://www.infodrom.north.de/cfingerd/ | |
9 | Source0: http://www.infodrom.org/projects/cfingerd/download/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: fe9365f811624248aa3df52c4a832fc7 | |
11 | Source1: %{name}.logrotate | |
12 | Source2: %{name}.inetd | |
13 | Patch0: %{name}-1.4.3-ipv6-12121999.patch | |
14 | Patch1: %{name}-config.patch | |
15 | Patch2: %{name}-security_format_bug.patch | |
16 | Patch3: %{name}-gpg.patch | |
17 | BuildRequires: perl-base | |
18 | BuildRequires: rpmbuild(macros) >= 1.268 | |
19 | Requires: inetdaemon | |
20 | Requires: rc-inetd >= 0.8.1 | |
21 | Provides: fingerd | |
22 | Obsoletes: bsd-fingerd | |
23 | Obsoletes: cfingerd-nobody | |
24 | Obsoletes: cfingerd-noroot | |
25 | Obsoletes: efingerd | |
26 | Obsoletes: ffingerd | |
27 | Obsoletes: finger-server | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | CFINGERD is a free finger daemon replacement for standard finger | |
32 | daemons such as GNU Finger, MIT Finger, or KFINGERD. CFINGERD is | |
33 | highly becoming a respected standard as the finger daemon to use. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | CFINGERD jest darmowym serwerem usługi finger zastępującym inne demony | |
37 | fingera takie jak GNU Finger, MIT Finger, lub KFINGERD. CFINGERD staje | |
38 | się respektowanym standardem dla demonów usługi finger. | |
39 | ||
40 | %prep | |
41 | %setup -q | |
42 | %patch0 -p1 | |
43 | %patch1 -p1 | |
44 | %patch2 -p1 | |
45 | %patch3 -p1 | |
46 | ||
47 | %build | |
48 | ./Configure | |
49 | %{__make} all CFLAGS="-DINET6=1 %{rpmcflags}" LDFLAGS="%{rpmldflags}" | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/{%{name}/scripts,logrotate.d,sysconfig/rc-inetd} \ | |
54 | $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{1,5,8}} | |
55 | ||
56 | install src/cfingerd userlist/userlist $RPM_BUILD_ROOT%{_sbindir}/ | |
57 | install cfingerd.conf userlist/userlist.conf texts/*.txt \ | |
58 | $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ | |
59 | ||
60 | install scripts/* $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/scripts/ | |
61 | ||
62 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
63 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/fingerd | |
64 | ||
65 | install userlist/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/ | |
66 | install docs/*.5 $RPM_BUILD_ROOT%{_mandir}/man5/ | |
67 | install docs/*.8 $RPM_BUILD_ROOT%{_mandir}/man8/ | |
68 | ||
69 | ||
70 | %post | |
71 | %service -q rc-inetd reload | |
72 | ||
73 | %postun | |
74 | if [ "$1" = 0 ]; then | |
75 | %service -q rc-inetd reload | |
76 | fi | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %doc CHANGES CREDITS FAQ README README.noroot RECOMMEND TODO | |
84 | %attr(755,root,root) %dir %{_sysconfdir}/%{name} | |
85 | %attr(755,root,root) %dir %{_sysconfdir}/%{name}/scripts | |
86 | %attr(755,root,root) %{_sysconfdir}/%{name}/scripts/* | |
87 | %attr(755,root,root) %{_sbindir}/* | |
88 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/cfingerd.conf | |
89 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/userlist.conf | |
90 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.txt | |
91 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} | |
92 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/fingerd | |
93 | %{_mandir}/man[158]/* |