]> git.pld-linux.org Git - packages/pure-ftpd.git/blob - pure-ftpd.spec
- back to 0.93 ;(.
[packages/pure-ftpd.git] / pure-ftpd.spec
1 Summary:        Small, fast and secure FTP server
2 Summary(pl):    Ma³y, szybki i bezpieczny serwer FTP
3 Name:           pure-ftpd
4 Version:        0.93 
5 Release:        1
6 License:        GPL
7 Group:          Daemons
8 Group(pl):      Serwery
9 Source0:        http://download.sourceforge.net/pureftpd/%{name}-%{version}.tar.gz
10 Source1:        pure-ftpd.pamd
11 Source2:        pure-ftpd.rc-inetd
12 Patch0:         pure-ftpd-macro.patch
13 URL:            http://pureftpd.sourceforge.net/
14 BuildRequires:  libcap-devel
15 BuildRequires:  pam-devel
16 Requires:       inetdaemon
17 Requires:       rc-inetd
18 Provides:       ftpserver
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Obsoletes:      ftpserver
21 Obsoletes:      bftpd
22 Obsoletes:      anonftp
23 Obsoletes:      ftpd-BSD
24 Obsoletes:      heimdal-ftpd
25 Obsoletes:      linux-ftpd
26 Obsoletes:      proftpd
27 Obsoletes:      troll-ftpd
28 Obsoletes:      wu-ftpd
29
30 %description
31 Pure-FTPd is a fast, production-quality, standard-comformant FTP server,
32 based upon Troll-FTPd. Unlike other popular FTP servers, it has no known
33 security flaw, it is really trivial to set up and it is especially designed
34 for modern Linux kernels (setfsuid, sendfile, capabilities) . Features
35 include PAM support, IPv6, chroot()ed home directories, virtual domains,
36 built-in LS, anti-warez system, bounded ports for passive downloads...
37
38 %description -l pl
39 Pure-FTPD to szybki, wysokiej jako¶ci, odpowiadaj±cy standardom serwer FTP
40 bazuj±cy na Troll-FTPd. W przeciwieñstwie do innych serwerów FTP nie
41 ma znanych luk w bezpieczeñstwie. Ponadto jest trywialny w konfiguracji
42 i specjalnie zaprojektowany dla nowych kerneli Linuxa (setfsuid, sendfile,
43 capabilibies). Mo¿liwo¶ci to wsparcie dla PAMa, IPv6, chroot()owanych
44 katalogów domowych, virtualne domeny, wbudowany LS, system anty-warezowy,
45 ograniczanie portów dla pasywnych po³±czeñ...
46
47 %prep
48 %setup -q
49 %patch -p1
50
51 %build
52 %configure \
53         --with-cookie
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{pam.d,sysconfig/rc-inetd,ftpd/vhosts,security} \
58         $RPM_BUILD_ROOT/home/ftp/{upload,pub}
59
60 %{__make} install DESTDIR=$RPM_BUILD_ROOT
61
62 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/pure-ftpd
63 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rc-inetd/ftpd
64
65 touch $RPM_BUILD_ROOT/etc/security/blacklist.ftp
66
67 gzip -9nf README
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 if [ -f /var/lock/subsys/rc-inetd ]; then
74         /etc/rc.d/init.d/rc-inetd restart 1>&2
75 else
76         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
77 fi
78
79 %postun
80 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
81         /etc/rc.d/init.d/rc-inetd restart
82 fi
83
84 %files
85 %defattr(644,root,root,755)
86 %doc *.gz
87 %attr(755,root,root) %{_sbindir}/*
88 %attr(640,root,root) %config /etc/sysconfig/rc-inetd/ftpd
89 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/*
90 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.ftp
91 %attr(755,ftp,ftp) %dir /home/ftp/upload
92 %dir /home/ftp 
93 %dir /home/ftp/pub 
94 %dir %{_sysconfdir}/ftpd/vhosts
95
96 %{_mandir}/man*/*
This page took 0.036626 seconds and 4 git commands to generate.