1 Summary: Small, fast and secure FTP server
2 Summary(pl): Ma³y, szybki i bezpieczny serwer FTP
9 #Source0: http://download.sourceforge.net/pureftpd/%{name}-%{version}.tar.gz
10 Source0: http://ftp1.sourceforge.net/pureftpd/pure-ftpd-%{version}.tar.gz
11 Source1: pure-ftpd.pamd
12 Source2: pure-ftpd.rc-inetd
13 Patch0: pure-ftpd-macro.patch
14 URL: http://pureftpd.sourceforge.net/
15 BuildRequires: libcap-devel
16 BuildRequires: pam-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Obsoletes: heimdal-ftpd
32 Pure-FTPd is a fast, production-quality, standard-comformant FTP server,
33 based upon Troll-FTPd. Unlike other popular FTP servers, it has no known
34 security flaw, it is really trivial to set up and it is especially designed
35 for modern Linux kernels (setfsuid, sendfile, capabilities) . Features
36 include PAM support, IPv6, chroot()ed home directories, virtual domains,
37 built-in LS, anti-warez system, bounded ports for passive downloads...
40 Pure-FTPD to szybki, wysokiej jako¶ci, odpowiadaj±cy standardom serwer FTP
41 bazuj±cy na Troll-FTPd. W przeciwieñstwie do innych serwerów FTP nie
42 ma znanych luk w bezpieczeñstwie. Ponadto jest trywialny w konfiguracji
43 i specjalnie zaprojektowany dla nowych kerneli Linuxa (setfsuid, sendfile,
44 capabilibies). Mo¿liwo¶ci to wsparcie dla PAMa, IPv6, chroot()owanych
45 katalogów domowych, virtualne domeny, wbudowany LS, system anty-warezowy,
46 ograniczanie portów dla pasywnych po³±czeñ...
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{pam.d,sysconfig/rc-inetd,ftpd/vhosts,security} \
60 $RPM_BUILD_ROOT/home/ftp/{upload,pub}
62 %{__make} install DESTDIR=$RPM_BUILD_ROOT
64 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/pure-ftpd
65 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rc-inetd/ftpd
67 touch $RPM_BUILD_ROOT/etc/security/blacklist.ftp
72 rm -rf $RPM_BUILD_ROOT
75 if [ -f /var/lock/subsys/rc-inetd ]; then
76 /etc/rc.d/init.d/rc-inetd restart 1>&2
78 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
82 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
83 /etc/rc.d/init.d/rc-inetd restart
87 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_sbindir}/*
90 %attr(640,root,root) %config /etc/sysconfig/rc-inetd/ftpd
91 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/*
92 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.ftp
93 %attr(755,ftp,ftp) %dir /home/ftp/upload
96 %dir %{_sysconfdir}/ftpd/vhosts