]> git.pld-linux.org Git - packages/pure-ftpd.git/blob - pure-ftpd.spec
typo
[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.97.7
5 Release:        1
6 License:        GPL
7 Group:          Daemons
8 Group(pl):      Serwery
9 Source0:        http://prdownloads.sourceforge.net/pureftpd/%{name}-%{version}.tar.gz
10 Source1:        pure-ftpd.pamd
11 Source2:        pure-ftpd.rc-inetd
12 URL:            http://www.pureftpd.org/
13 BuildRequires:  libcap-devel
14 BuildRequires:  pam-devel
15 BuildRequires:  automake
16 BuildRequires:  autoconf
17 Requires:       inetdaemon
18 Requires:       rc-inetd
19 Provides:       ftpserver
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Obsoletes:      ftpserver
22 Obsoletes:      bftpd
23 Obsoletes:      anonftp
24 Obsoletes:      ftpd-BSD
25 Obsoletes:      heimdal-ftpd
26 Obsoletes:      linux-ftpd
27 Obsoletes:      proftpd
28 Obsoletes:      troll-ftpd
29 Obsoletes:      wu-ftpd
30
31 %description
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...
38
39 %description -l pl
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ñ...
47
48 %prep
49 %setup -q
50
51 %build
52 aclocal
53 autoconf
54 automake -a -c
55 %configure \
56         --with-cookie \
57         --with-pam \
58         --with-throttling \
59         --with-ratios \
60         --with-ftpwho \
61         --with-largefile \
62         --with-language=english
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{pam.d,sysconfig/rc-inetd,ftpd/vhosts,security}
67 install -d $RPM_BUILD_ROOT/home/ftp/Incoming
68
69 %{__make} install DESTDIR=$RPM_BUILD_ROOT
70
71 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/pure-ftpd
72 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rc-inetd/ftpd
73
74 install configuration-file/pure-ftpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/ftpd
75
76 touch $RPM_BUILD_ROOT%{_sysconfdir}/security/blacklist.ftp
77
78 gzip -9nf README
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post
84 if [ -f /var/lock/subsys/rc-inetd ]; then
85         %{_sysconfdir}/rc.d/init.d/rc-inetd restart 1>&2
86 else
87         echo "Type \"%{_sysconfdir}/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
88 fi
89
90 %postun
91 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
92         %{_sysconfdir}/rc.d/init.d/rc-inetd restart
93 fi
94
95 %files
96 %defattr(644,root,root,755)
97 %doc *.gz
98 %attr(755,root,root) %{_sbindir}/*
99 %attr(640,root,root) %dir %{_sysconfdir}/ftpd
100 %dir %{_sysconfdir}/ftpd/vhosts
101 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/*.conf
102 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pam.d/*
103 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/security/blacklist.ftp
104 %attr(755,ftp,ftp) %dir /home/ftp/Incoming
105 %dir /home/ftp 
106
107 %{_mandir}/man?/*
This page took 0.05106 seconds and 4 git commands to generate.