]> git.pld-linux.org Git - packages/ftpd-BSD.git/blob - ftpd-BSD.spec
- added setproctitle patch (thanks agaran@agaran.6bone.pl)
[packages/ftpd-BSD.git] / ftpd-BSD.spec
1 Summary:        OpenBSD's ftpd ported to Linux (with IPv6 support)
2 Name:           ftpd-BSD
3 Version:        0.3.1
4 Release:        2
5 License:        BSD-like
6 Group:          Networking/Daemons
7 Group(pl):      Sieciowe/Serwery
8 Source0:        ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/%{name}-%{version}.tar.gz
9 Source1:        %{name}.inetd
10 Source2:        %{name}.pamd
11 Source3:        %{name}-ftpusers
12 Patch0:         %{name}-setproctitle.patch
13 Buildrequires:  libwrap-devel
14 Buildrequires:  pam-devel
15 Requires:       rc-inetd
16 Requires:       inetdaemon
17 Requires:       anonftp
18 Provides:       ftpserver
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Obsoletes:      wu-ftpd
21 Obsoletes:      proftpd
22 Obsoletes:      heimdal-ftpd
23
24 %description
25 This is a Linux port of the BSD ftp server (ftpd). It doesn't have all
26 the bells and whistles of wu-ftpd, but it is also probably less buggy
27 and more secure (at least, it was certainly so before I ported it, and
28 I hope I didn't mess things up *too* much).
29
30 The source code was taken from the OpenBSD CVS as of 2000/01/23 (this
31 is between releases 2.6 and 2.7). The ftpd version number is 6.4 and
32 this port's version number is 0.3.0.
33
34 %description -l pl
35 Pakiet ten zawiera linuksowy port serwera ftp BSD (ftpd). Nie zawiera
36 on wszystkich wymy¶lnych elementów wu-ftpd, jest jednak
37 prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w kazdym
38 razie by³ takim zanim go przenios³em na Linuksa, i mam nadziejê, ¿e
39 nie naba³agani³em *za bardzo*). Kod ¼ród³owy pochodzi z repozytorium
40 CVS OpenBSD z dnia 2000/01/23 (tj. miêdzy wersj± 2.6 a 2.7). Numer
41 wersji ftpd to 6.4, za¶ numer wersji tego portu to 0.3.0.
42
43 %prep
44 %setup -q
45 %patch0 -p0
46
47 %build
48 ( cd ftpd ; make )
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}}
53
54 install -s ftpd/ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
55 install ftpd/ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
56 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
57 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
58 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpusers
59
60 gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/*
61
62 %post
63 if [ -f /var/lock/subsys/rc-inetd ]; then
64         /etc/rc.d/init.d/rc-inetd reload 1>&2
65 else
66         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
67 fi
68
69 %postun
70 if [ -f /var/lock/subsys/rc-inetd ]; then
71         /etc/rc.d/init.d/rc-inetd reload
72 fi
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %doc README.gz
80 %attr(755,root,root) %{_sbindir}/ftpd-BSD
81 %attr(640,root,root) %{_mandir}/man8/*
82 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/ftp
83 %attr(640,root,root) %{_sysconfdir}/ftpusers
84 %attr(640,root,root) /etc/sysconfig/rc-inetd/ftpd
This page took 0.056787 seconds and 4 git commands to generate.