]> git.pld-linux.org Git - packages/cfingerd.git/blob - cfingerd.spec
new spec
[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.0
5 Release:        1
6 Group:          Networking/Daemons
7 Group(pl):      Sieciowe/Demony
8 Copyright:      GPL
9 Vendor:         Martin Schulze <joey@infodrom.north.de>
10 URL:            http://www.infodrom.north.de/cfingerd/
11 Source0:        ftp://ftp.infodrom.north.de/pub/people/joey/cfingerd/%{name}-%{version}.tar.gz
12 Source1:        cfingerd.logrotate
13 Patch0:         cfingerd-ipv6.patch
14 Patch1:         cfingerd-config.patch
15 Provides:       fingerd
16 Obsoletes:      cfingerd-nobody
17 Obsoletes:      cfingerd-noroot
18 BuildRoot:      /tmp/%{name}-%{version}-root
19
20 %description
21 * CFINGERD is a free finger daemon replacement for standard finger daemons
22   such as GNU Finger, MIT Finger, or KFINGERD.  CFINGERD is highly
23   becoming a respected standard as the finger daemon to use. 
24
25 %description -l pl
26 * CFINGERD jest darmowym serwerem us³ugi finger zastêpuj±cym inne demony
27   fingera takie jak GNU Finger, MIT Finger, lub KFINGERD. CFINGERD staje
28   siê respektowanym standardem dla demonów us³ugi finger.
29
30 %prep
31 %setup -q
32 %patch0 -p1
33 %patch1 -p1
34
35 %build
36 ./Configure
37 make do_cfingerd
38 make do_userlist
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 install -d      $RPM_BUILD_ROOT/etc/{%{name}/scripts,logrotate.d}
44 install -d      $RPM_BUILD_ROOT%{_sbindir}
45 install -d      $RPM_BUILD_ROOT%{_mandir}/man{1,5,8}
46
47 install -s      src/cfingerd            $RPM_BUILD_ROOT%{_sbindir}/
48 install -s      userlist/userlist       $RPM_BUILD_ROOT%{_sbindir}/
49 install         texts/*.txt             $RPM_BUILD_ROOT/etc/%{name}/
50 install         scripts/*               $RPM_BUILD_ROOT/etc/%{name}/scripts/
51 install         cfingerd.conf           $RPM_BUILD_ROOT/etc/%{name}/
52 install         userlist/userlist.conf  $RPM_BUILD_ROOT/etc/%{name}/
53 install         %{SOURCE1}              $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
54 install         userlist/*.1            $RPM_BUILD_ROOT%{_mandir}/man1/
55 install         docs/*.5                $RPM_BUILD_ROOT%{_mandir}/man5/
56 install         docs/*.8                $RPM_BUILD_ROOT%{_mandir}/man8/
57
58 gzip -9nf       $RPM_BUILD_ROOT%{_mandir}/man*/* \
59                 CHANGES CREDITS FAQ README README.noroot RECOMMEND TODO
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc {CHANGES,CREDITS,FAQ,README,README.noroot,RECOMMEND,TODO}.gz
67 %attr(755,root,root) %dir /etc/%{name}
68 %attr(755,root,root) %dir /etc/%{name}/scripts
69 %attr(755,root,root) /etc/%{name}/scripts/*
70 %attr(644,root,root) /etc/%{name}/*.txt
71 %attr(644,root,root) /etc/logrotate.d/%{name}
72 %attr(755,root,root) %{_sbindir}/*
73 %attr(644,root,root) %{_mandir}/man[158]/*
74 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/%{name}/cfingerd.conf
75 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/%{name}/userlist.conf
This page took 0.127406 seconds and 3 git commands to generate.