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