]> git.pld-linux.org Git - packages/ftpd-BSD.git/blob - ftpd-BSD.spec
- updated to 0.3.3,
[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.3
5 Release:        1
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/contrib/%{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}-SA_LEN.patch
18 Patch4:         ftpd-BSD-no_libnsl.patch
19 URL:            http://www.eleves.ens.fr:8080/home/madore/programs/#prog_ftpd-BSD
20 Buildrequires:  libwrap-devel
21 Buildrequires:  pam-devel
22 Requires:       rc-inetd
23 Requires:       inetdaemon
24 Provides:       ftpserver
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Obsoletes:      bftpd
27 Obsoletes:      heimdal-ftpd
28 Obsoletes:      linux-ftpd
29 Obsoletes:      proftpd
30 Obsoletes:      pure-ftpd
31 Obsoletes:      wu-ftpd
32 Obsoletes:      muddleftpd
33
34 %description
35 This is a Linux port of the BSD ftp server (ftpd). It doesn't have all
36 the bells and whistles of wu-ftpd, but it is also probably less buggy
37 and more secure (at least, it was certainly so before I ported it, and
38 I hope I didn't mess things up *too* much).
39
40 The source code was taken from the OpenBSD CVS as of 2000/01/23 (this
41 is between releases 2.6 and 2.7). The ftpd version number is 6.4 and
42 this port's version number is 0.3.0.
43
44 %description -l pl
45 Pakiet ten zawiera linuksowy port serwera ftp BSD (ftpd). Nie zawiera
46 on wszystkich wymy¶lnych elementów wu-ftpd, jest jednak
47 prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w kazdym
48 razie by³ takim zanim go przenios³em na Linuksa, i mam nadziejê, ¿e
49 nie naba³agani³em *za bardzo*). Kod ¼ród³owy pochodzi z repozytorium
50 CVS OpenBSD z dnia 2000/01/23 (tj. miêdzy wersj± 2.6 a 2.7). Numer
51 wersji ftpd to 6.4, za¶ numer wersji tego portu to 0.3.0.
52
53 %prep
54 %setup -q -n ftpd-bsd-%{version}
55 %patch0 -p1
56 %patch1 -p1
57 %patch2 -p1
58 %patch3 -p1
59 %patch4 -p1
60
61 %build
62 %{__make} OPT_CFLAGS="%{rpmcflags}"
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
67         $RPM_BUILD_ROOT%{_sysconfdir}/{ftpd,pam.d,sysconfig/rc-inetd} \
68         $RPM_BUILD_ROOT/home/ftp/{upload,pub}
69
70 install ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
71 install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
72 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
73 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
74 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpd/ftpusers
75
76 gzip -9nf README
77
78 %post
79 if [ -f /var/lock/subsys/rc-inetd ]; then
80         /etc/rc.d/init.d/rc-inetd reload 1>&2
81 else
82         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
83 fi
84
85 %postun
86 if [ -f /var/lock/subsys/rc-inetd ]; then
87         /etc/rc.d/init.d/rc-inetd reload
88 fi
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %files
94 %defattr(644,root,root,755)
95 %doc README.gz
96 %attr(755,root,root) %{_sbindir}/ftpd-BSD
97 %dir %{_sysconfdir}/ftpd
98 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pam.d/ftp
99 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/ftpusers
100 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sysconfig/rc-inetd/ftpd
101 %dir /home/ftp 
102 %dir /home/ftp/pub 
103 %attr(755,ftp,ftp) %dir /home/ftp/upload
104 %{_mandir}/man8/*
This page took 0.050863 seconds and 3 git commands to generate.