]> git.pld-linux.org Git - packages/ffingerd.git/blob - ffingerd.spec
fcee5564db244cdaf8f7617bda110833cbb62d4b
[packages/ffingerd.git] / ffingerd.spec
1 Summary:        Secure finger daemon
2 Summary(pl):    Bezpieczny serwer finger
3 Name:           ffingerd
4 Version:        1.25
5 Release:        3
6 Group:          Networking/Daemons
7 Group(pl):      Sieciowe/Serwery
8 Copyright:      GPL
9 Source:         ftp://ftp.fu-berlin.de/pub/unix/security/ffingerd/%{name}-%{version}.tar.bz2
10 Source1:        %{name}.inetd
11 Patch0:         ffingerd-DESTDIR.patch
12 Patch1:         http://www.misiek.eu.org/ipv6/ffingerd-1.25.ipv6.patch.gz
13 Requires:       inetdaemon
14 Prereq:         rc-inetd
15 Provides:       fingerd
16 BuildRoot:      /tmp/%{name}-%{version}-root
17
18 %description
19 The ffingerd program is a drop-in replacement for the standard fingerd
20 daemon. Ffingerd is invoked by inetd and it runs as nobody. Ffingerd does 
21 not allow global finger queries (finger @host), indirect finger queries 
22 (finger foo@host.a@host.b), it does not give away valuable information like 
23 the shell, login directory and time of last login, and users can put 
24 a ".nofinger" file in  their homes and then ffingerd will respond with 
25 "That user does not want to be fingered".
26
27 %description -l pl
28 Program ffingerd jest zamiennikiem dla standardowego demona fingerd.
29 Jest uruchamiany przez inetd i pracuje jako u¿ytkownik nobody. 
30 Ffingerd nie pozwala na zapytania globalne (finger @host), zapytania 
31 po¶rednie (finger foo@host.a@host.b), nie wy¶wietla informacji o pow³oce
32 u¿ytkownika, jego katalogu domowym i czasie ostatniego zalogowania.
33 Umo¿liwia u¿ytkownikom stworzenie w katalogu domowym pliku ".nofinger".
34
35 %prep
36 %setup -q
37 %patch0 -p0
38 %patch1 -p1
39
40 %build
41 LDFLAGS="-s"; export LDFLAGS
42 autoconf
43 %configure --enable-ipv6
44 make
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 make install DESTDIR=$RPM_BUILD_ROOT
50
51 install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
52 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ffingerd
53
54 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man8/* \
55         README NEWS TODO
56
57 %post 
58 if [ -f /var/lock/subsys/rc-inetd ]; then
59         /etc/rc.d/init.d/rc-inetd restart 1>&2
60 else
61         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
62 fi
63
64 %postun
65 if [ -f /var/lock/subsys/rc-inetd ]; then
66         /etc/rc.d/init.d/rc-inetd restart
67 fi
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc {README,NEWS,TODO}.gz
75 %attr(755,root,root) %{_sbindir}/*
76 %attr(640,root,root) /etc/sysconfig/rc-inetd/ffingerd
77
78 %{_mandir}/man8/*
This page took 0.169013 seconds and 2 git commands to generate.