f9ff2b3697671f4608ad04917b6548b400b0c504
[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 wspraciem dla IPv6
3 Name:           cfingerd
4 Version:        1.4.3
5 Release:        9
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:        ftp://ftp.infodrom.north.de/pub/people/joey/cfingerd/%{name}-%{version}.tar.gz
11 Source1:        %{name}.logrotate
12 Source2:        %{name}.inetd
13 Patch0:         http://www.misiek.eu.org/ipv6/%{name}-1.4.3-ipv6-12121999.patch.gz
14 Patch1:         %{name}-config.patch
15 Patch2:         %{name}-security_format_bug.patch
16 Patch3:         %{name}-gpg.patch
17 Requires:       inetdaemon
18 Prereq:         rc-inetd >= 0.8.1
19 Provides:       fingerd
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Obsoletes:      cfingerd-nobody
22 Obsoletes:      cfingerd-noroot
23 Obsoletes:      efingerd
24 Obsoletes:      ffingerd
25 Obsoletes:      finger-server
26 Obsoletes:      bsd-fingerd
27
28 %description
29 CFINGERD is a free finger daemon replacement for standard finger
30 daemons such as GNU Finger, MIT Finger, or KFINGERD. CFINGERD is
31 highly becoming a respected standard as the finger daemon to use.
32
33 %description -l pl
34 CFINGERD jest darmowym serwerem us³ugi finger zastêpuj±cym inne demony
35 fingera takie jak GNU Finger, MIT Finger, lub KFINGERD. CFINGERD staje
36 siê respektowanym standardem dla demonów us³ugi finger.
37
38 %prep
39 %setup -q
40 %patch0 -p1
41 %patch1 -p1
42 %patch2 -p1
43 %patch3 -p1
44
45 %build
46 ./Configure
47 %{__make} all CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}"
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{%{name}/scripts,logrotate.d,sysconfig/rc-inetd} \
52         $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{1,5,8}}
53
54 install src/cfingerd userlist/userlist $RPM_BUILD_ROOT%{_sbindir}/
55 install cfingerd.conf userlist/userlist.conf texts/*.txt \
56 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/
57
58 install scripts/* $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/scripts/
59
60 install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
61 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/fingerd
62
63 install userlist/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
64 install docs/*.5 $RPM_BUILD_ROOT%{_mandir}/man5/
65 install docs/*.8 $RPM_BUILD_ROOT%{_mandir}/man8/
66
67 gzip -9nf CHANGES CREDITS FAQ README README.noroot RECOMMEND TODO
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 *.gz
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.038662 seconds and 2 git commands to generate.