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