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