]> git.pld-linux.org Git - packages/ftpd-BSD.git/blob - ftpd-BSD.spec
- Obsoletes: proftpd-*; new %%doc; release 5
[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 obs³ug± IPv6)
3 Name:           ftpd-BSD
4 Version:        0.3.3
5 Release:        5
6 License:        BSD-like
7 Group:          Networking/Daemons
8 Source0:        ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/contrib/%{name}-%{version}.tar.gz
9 Source1:        %{name}.inetd
10 Source2:        %{name}.pamd
11 Source3:        %{name}-ftpusers
12 Patch0:         %{name}-anonuser.patch
13 Patch1:         %{name}-paths.patch
14 Patch2:         %{name}-username.patch
15 Patch3:         %{name}-SA_LEN.patch
16 Patch4:         %{name}-no_libnsl.patch
17 URL:            http://www.eleves.ens.fr:8080/home/madore/programs/#prog_ftpd-BSD
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:      proftpd-common
29 Obsoletes:      proftpd-inetd
30 Obsoletes:      proftpd-standalone
31 Obsoletes:      pure-ftpd
32 Obsoletes:      wu-ftpd
33 Obsoletes:      muddleftpd
34
35 %description
36 This is a Linux port of the BSD ftp server (ftpd). It doesn't have all
37 the bells and whistles of wu-ftpd, but it is also probably less buggy
38 and more secure (at least, it was certainly so before I ported it, and
39 I hope I didn't mess things up *too* much).
40
41 The source code was taken from the OpenBSD CVS as of 2000/07/07 (this
42 is after release 2.7). The ftpd version number is 6.5 and this port's
43 version number is 0.3.2.
44
45 Package comes with anonymous upload disabled. If you really want to
46 enable it - chmod /home/ftp/upload to 0730.
47
48 %description -l pl
49 Pakiet ten zawiera linuksowy port serwera ftp BSD (ftpd). Nie zawiera
50 on wszystkich wymy¶lnych elementów wu-ftpd, jest jednak
51 prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w kazdym
52 razie by³ takim zanim go przenios³em na Linuksa, i mam nadziejê, ¿e
53 nie naba³agani³em *za bardzo*). Kod ¼ród³owy pochodzi z repozytorium
54 CVS OpenBSD z dnia 2000/07/07 (tj. po wersji 2.7). Numer wersji ftpd
55 to 6.5, za¶ numer wersji tego portu to 0.3.2.
56
57 Pakiet przychodzi z wy³±czonym anonimowym uploadem. Je¶li naprawdê
58 chcesz go w³±czyæ - zmieñ uprawnienia do /home/ftp/upload na 0730.
59
60 %prep
61 %setup -q -n ftpd-bsd-%{version}
62 %patch0 -p1
63 %patch1 -p1
64 %patch2 -p1
65 %patch3 -p1
66 %patch4 -p1
67
68 %build
69 %{__make} OPT_CFLAGS="%{rpmcflags}"
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
74         $RPM_BUILD_ROOT%{_sysconfdir}/{ftpd,pam.d,sysconfig/rc-inetd} \
75         $RPM_BUILD_ROOT/home/ftp/{upload,pub}
76
77 install ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
78 install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
79 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
80 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
81 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpd/ftpusers
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post
87 if [ -f /var/lock/subsys/rc-inetd ]; then
88         /etc/rc.d/init.d/rc-inetd reload 1>&2
89 else
90         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
91 fi
92
93 %postun
94 if [ -f /var/lock/subsys/rc-inetd ]; then
95         /etc/rc.d/init.d/rc-inetd reload
96 fi
97
98 %files
99 %defattr(644,root,root,755)
100 %doc README*
101 %attr(755,root,root) %{_sbindir}/ftpd-BSD
102 %dir %{_sysconfdir}/ftpd
103 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pam.d/ftp
104 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/ftpusers
105 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sysconfig/rc-inetd/ftpd
106 %dir /home/ftp
107 %dir /home/ftp/pub
108 %attr(700,root,ftp) %verify(not mode) %dir /home/ftp/upload
109 %{_mandir}/man8/*
This page took 0.064532 seconds and 3 git commands to generate.