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