]> git.pld-linux.org Git - packages/cfingerd.git/blobdiff - cfingerd.spec
- BR: perl-base
[packages/cfingerd.git] / cfingerd.spec
index d5f4f0715f9b4b3f3931a6caf59b2cda0115b261..0e993d59bc34dea804a2d7b22a6e82232afdf7ef 100644 (file)
@@ -1,78 +1,97 @@
 Summary:       Highly configurable and secure finger daemon with IPv6 support
-Summary(pl):   Niezwykle konfigurowalny i bezpieczny demon fingerd ze wspraciem dla IPv6
+Summary(pl):   Niezwykle konfigurowalny i bezpieczny demon fingerd ze wsparciem dla IPv6
 Name:          cfingerd
 Version:       1.4.3
-Release:       1
+Release:       13
+License:       GPL
 Group:         Networking/Daemons
-Group(pl):     Sieciowe/Serwery
-Copyright:     GPL
 Vendor:                Martin Schulze <joey@infodrom.north.de>
 URL:           http://www.infodrom.north.de/cfingerd/
-Source0:       ftp://ftp.infodrom.north.de/pub/people/joey/cfingerd/%{name}-%{version}.tar.gz
+Source0:       http://www.infodrom.org/projects/cfingerd/download/%{name}-%{version}.tar.gz
+# Source0-md5: fe9365f811624248aa3df52c4a832fc7
 Source1:       %{name}.logrotate
 Source2:       %{name}.inetd
-Patch0:                http://www.misiek.eu.org/ipv6/cfingerd-1.4.3-ipv6-12121999.patch.gz
+Patch0:                http://www.misiek.eu.org/ipv6/%{name}-1.4.3-ipv6-12121999.patch.gz
 Patch1:                %{name}-config.patch
+Patch2:                %{name}-security_format_bug.patch
+Patch3:                %{name}-gpg.patch
+BuildRequires: perl-base
 Requires:      inetdaemon
-Requires:      rc-inetd
+Prereq:                rc-inetd >= 0.8.1
 Provides:      fingerd
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     cfingerd-nobody
 Obsoletes:     cfingerd-noroot
-BuildRoot:     /tmp/%{name}-%{version}-root
+Obsoletes:     efingerd
+Obsoletes:     ffingerd
+Obsoletes:     finger-server
+Obsoletes:     bsd-fingerd
 
 %description
-* CFINGERD is a free finger daemon replacement for standard finger daemons
-  such as GNU Finger, MIT Finger, or KFINGERD.  CFINGERD is highly
-  becoming a respected standard as the finger daemon to use. 
+CFINGERD is a free finger daemon replacement for standard finger
+daemons such as GNU Finger, MIT Finger, or KFINGERD. CFINGERD is
+highly becoming a respected standard as the finger daemon to use.
 
 %description -l pl
-CFINGERD jest darmowym serwerem us³ugi finger zastêpuj±cym inne demony
-  fingera takie jak GNU Finger, MIT Finger, lub KFINGERD. CFINGERD staje
-  siê respektowanym standardem dla demonów us³ugi finger.
+CFINGERD jest darmowym serwerem us³ugi finger zastêpuj±cym inne demony
+fingera takie jak GNU Finger, MIT Finger, lub KFINGERD. CFINGERD staje
+siê respektowanym standardem dla demonów us³ugi finger.
 
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1 -b .wiget
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
 ./Configure
-make all CFLAGS="$RPM_OPT_FLAGS"
+%{__make} all CFLAGS="-DINET6=1 %{rpmcflags}" LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-install        -d $RPM_BUILD_ROOT/etc/{%{name}/scripts,logrotate.d,sysconfig/rc-inetd} \
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/{%{name}/scripts,logrotate.d,sysconfig/rc-inetd} \
        $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{1,5,8}}
 
-install -s     src/cfingerd            $RPM_BUILD_ROOT%{_sbindir}/
-install -s     userlist/userlist       $RPM_BUILD_ROOT%{_sbindir}/
-install                texts/*.txt             $RPM_BUILD_ROOT/etc/%{name}/
-install                scripts/*               $RPM_BUILD_ROOT/etc/%{name}/scripts/
-install                cfingerd.conf           $RPM_BUILD_ROOT/etc/%{name}/
-install                userlist/userlist.conf  $RPM_BUILD_ROOT/etc/%{name}/
-install                %{SOURCE1}              $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
-install                %{SOURCE2}              $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/%{name}
-install                userlist/*.1            $RPM_BUILD_ROOT%{_mandir}/man1/
-install                docs/*.5                $RPM_BUILD_ROOT%{_mandir}/man5/
-install                docs/*.8                $RPM_BUILD_ROOT%{_mandir}/man8/
+install src/cfingerd userlist/userlist $RPM_BUILD_ROOT%{_sbindir}/
+install        cfingerd.conf userlist/userlist.conf texts/*.txt \
+$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/
+
+install scripts/* $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/scripts/
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+install        %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/fingerd
+
+install userlist/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
+install        docs/*.5 $RPM_BUILD_ROOT%{_mandir}/man5/
+install        docs/*.8 $RPM_BUILD_ROOT%{_mandir}/man8/
+
+
+%post
+if [ -f /var/lock/subsys/rc-inetd ]; then
+       /etc/rc.d/init.d/rc-inetd reload 1>&2
+else
+       echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
+fi
 
-gzip -9nf      $RPM_BUILD_ROOT%{_mandir}/man*/* \
-               CHANGES CREDITS FAQ README README.noroot RECOMMEND TODO
+%postun
+if [ -f /var/lock/subsys/rc-inetd ]; then
+       /etc/rc.d/init.d/rc-inetd reload
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {CHANGES,CREDITS,FAQ,README,README.noroot,RECOMMEND,TODO}.gz
-%attr(755,root,root) %dir /etc/%{name}
-%attr(755,root,root) %dir /etc/%{name}/scripts
-%attr(755,root,root) /etc/%{name}/scripts/*
-%attr(644,root,root) /etc/%{name}/*.txt
-%attr(644,root,root) /etc/logrotate.d/%{name}
-%attr(640,root,root) /etc/sysconfig/rc-inetd/%{name}
+%doc CHANGES CREDITS FAQ README README.noroot RECOMMEND TODO
+%attr(755,root,root) %dir %{_sysconfdir}/%{name}
+%attr(755,root,root) %dir %{_sysconfdir}/%{name}/scripts
+%attr(755,root,root) %{_sysconfdir}/%{name}/scripts/*
 %attr(755,root,root) %{_sbindir}/*
-%attr(644,root,root) %{_mandir}/man[158]/*
-%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) /etc/%{name}/cfingerd.conf
-%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/%{name}/userlist.conf
+%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/cfingerd.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/userlist.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*.txt
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}
+%attr(640,root,root) /etc/sysconfig/rc-inetd/fingerd
+%{_mandir}/man[158]/*
This page took 0.121849 seconds and 4 git commands to generate.