]> git.pld-linux.org Git - packages/ffingerd.git/blobdiff - ffingerd.spec
- release 3,
[packages/ffingerd.git] / ffingerd.spec
index 17ade274bd4b77f8abdd8176459187fba049dc34..3931a612cde263ab152c0bd40d6affeadac0fc83 100644 (file)
@@ -1,68 +1,81 @@
-Summary:       secure finger daemon
-Summary(pl):   bezpieczny serwer finger
+Summary:       Secure finger daemon
+Summary(pl):   Bezpieczny serwer finger
 Name:          ffingerd
-Version:       1.21
-Release:       1
+Version:       1.25
+Release:       4
 Group:         Networking/Daemons
-Group(pl):     Sieciowe/Demony
-Copyright:     GPL
-Source:                ftp://ftp.fu-berlin.de/pub/unix/security/ffingerd/%{name}-%{version}.tar.gz
-BuildPrereq:   autoconf >= 2.13-8
-Requires:      inetd
+Group(pl):     Sieciowe/Serwery
+License:       GPL
+Source:                ftp://ftp.fu-berlin.de/pub/unix/security/ffingerd/%{name}-%{version}.tar.bz2
+Source1:       %{name}.inetd
+Patch0:                ffingerd-DESTDIR.patch
+Patch1:                http://www.misiek.eu.org/ipv6/ffingerd-1.25.ipv6.patch.gz
+Requires:      inetdaemon
+Prereq:                rc-inetd >= 0.8.1
 Provides:      fingerd
-Obsoletes:     finger
-BuildRoot:     /tmp/%{name}-%{version}-root
+BuildRoot:     /tmp/%{name}-%{version}-root
+Obsoletes:     bsd-fingerd
+Obsoletes:     finger-server
+Obsoletes:     cfingeerd
 
 %description
 The ffingerd program is a drop-in replacement for the standard fingerd
-daemon. Ffingerd is invoked by inetd and it runs as nobody. Ffingerd does 
-not allow global finger queries (finger @host), indirect finger queries 
-(finger foo@host.a@host.b), it does not give away valuable information like 
-the shell, login directory and time of last login, and users can put 
-a ".nofinger" file in  their homes and then ffingerd will respond with 
-"That user does not want to be fingered".
+daemon. Ffingerd is invoked by inetd and it runs as nobody. Ffingerd does
+not allow global finger queries (finger @host), indirect finger queries
+(finger foo@host.a@host.b), it does not give away valuable information like
+ the shell, login directory and time of last login, and users can put a
+".nofinger" file in their homes and then ffingerd will respond with "That
+user does not want to be fingered".
 
 %description -l pl
-Program ffingerd jest zamiennikiem dla standardowego demona fingered.
-Jest uruchamiany przez inetd i pracuje jako u¿ytkownik nobody. 
-Ffingerd nie pozwala na zapytania globalne (finger @host), zapytania 
-po¶rednie (finger foo@host.a@host.b), nie wy¶wietla informacji o pow³oce
-u¿ytkownika, jego katalogu domowym i czasie ostatniego zalogowania,
-umo¿liwia u¿ytkownikom stworzenie w katalogu domowym pliku ".nofinger".
+Program ffingerd jest zamiennikiem dla standardowego demona fingerd. Jest
+uruchamiany przez inetd i pracuje jako u¿ytkownik nobody. Ffingerd nie
+pozwala na zapytania globalne (finger @host), zapytania  po¶rednie (finger
+foo@host.a@host.b), nie wy¶wietla informacji o pow³oce u¿ytkownika, jego
+katalogu domowym i czasie ostatniego zalogowania. Umo¿liwia u¿ytkownikom
+stworzenie w katalogu domowym pliku ".nofinger".
 
 %prep
 %setup -q
+%patch0 -p0
+%patch1 -p1
 
 %build
+LDFLAGS="-s"; export LDFLAGS
 autoconf
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure \
-       --target=%{_target_patform} \
-       --host=%{_host} \
-       --prefix=/usr \
-       --exec_prefix=/usr
+%configure --enable-ipv6
 make
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-make exec_prefix=$RPM_BUILD_ROOT/usr \
-       prefix=$RPM_BUILD_ROOT/usr install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ffingerd
 
 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man8/* \
        README NEWS TODO
 
+%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 sever" 1>&2
+fi
+
+%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 {README,NEWS,TODO}.gz
-%attr(755,root,root) /usr/sbin/*
+%attr(755,root,root) %{_sbindir}/*
+%attr(640,root,root) /etc/sysconfig/rc-inetd/ffingerd
 
 %{_mandir}/man8/*
-
-%changelog
-* Thu May 13 1999 Piotr Czerwiñski <pius@pld.org.pl>
-  [1.21-1]
-- initial rpm release.
This page took 0.077843 seconds and 4 git commands to generate.