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