]> git.pld-linux.org Git - packages/pure-ftpd.git/blob - pure-ftpd.spec
- cosmetics.
[packages/pure-ftpd.git] / pure-ftpd.spec
1 # _with_mysql - enables MySQL auth but disables PAM auth
2 Summary:        Small, fast and secure FTP server
3 Summary(pl):    Ma³y, szybki i bezpieczny serwer FTP
4 Name:           pure-ftpd
5 Version:        0.99.1b
6 Release:        1
7 License:        GPL
8 Group:          Daemons
9 Group(de):      Server
10 Group(pl):      Serwery
11 Source0:        http://prdownloads.sourceforge.net/pureftpd/%{name}-%{version}.tar.gz
12 Source1:        %{name}.pamd
13 Source2:        %{name}.init
14 URL:            http://www.pureftpd.org/
15 %{?_with_mysql:BuildRequires:   mysql-devel}
16 BuildRequires:  libcap-devel
17 BuildRequires:  pam-devel
18 BuildRequires:  automake
19 BuildRequires:  autoconf
20 Requires:       inetdaemon
21 Requires:       rc-inetd
22 Provides:       ftpserver
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Obsoletes:      ftpserver
25 Obsoletes:      bftpd
26 Obsoletes:      anonftp
27 Obsoletes:      ftpd-BSD
28 Obsoletes:      heimdal-ftpd
29 Obsoletes:      linux-ftpd
30 Obsoletes:      proftpd
31 Obsoletes:      troll-ftpd
32 Obsoletes:      wu-ftpd
33
34 %description
35 Pure-FTPd is a fast, production-quality, standard-comformant FTP
36 server, based upon Troll-FTPd. Unlike other popular FTP servers, it
37 has no known security flaw, it is really trivial to set up and it is
38 especially designed for modern Linux kernels (setfsuid, sendfile,
39 capabilities) . Features include PAM support, IPv6, chroot()ed home
40 directories, virtual domains, built-in LS, anti-warez system, bounded
41 ports for passive downloads...
42
43 %description -l pl
44 Pure-FTPD to szybki, wysokiej jako¶ci, odpowiadaj±cy standardom serwer
45 FTP bazuj±cy na Troll-FTPd. W przeciwieñstwie do innych serwerów FTP
46 nie ma znanych luk w bezpieczeñstwie. Ponadto jest trywialny w
47 konfiguracji i specjalnie zaprojektowany dla nowych kerneli Linuxa
48 (setfsuid, sendfile, capabilibies). Mo¿liwo¶ci to wsparcie dla PAMa,
49 IPv6, chroot()owanych katalogów domowych, virtualne domeny, wbudowany
50 LS, system anty-warezowy, ograniczanie portów dla pasywnych
51 po³±czeñ...
52
53 %prep
54 %setup -q
55
56 %build
57 aclocal
58 autoconf
59 automake -a -c
60 %configure \
61         %{?_with_mysql:CPPFLAGS="-I%{_includedir}/mysql" --with-mysql} \
62         --with-altlog \
63         %{?!_with_mysql:--with-pam} \
64         --with-cookie \
65         --with-throttling \
66         --with-ratios \
67         --with-ftpwho \
68         --with-largefile \
69         --with-uploadscript \
70         --with-virtualhosts \
71         --with-language=english
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT/etc/{pam.d,sysconfig,ftpd/vhosts,security,rc.d/init.d} \
76         $RPM_BUILD_ROOT/home/ftp/Incoming
77
78 %{__make} install DESTDIR=$RPM_BUILD_ROOT
79
80 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/%{name}
81 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
82 install contrib/redhat.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/ftpd/pureftpd.conf
83 install pureftpd-mysql.conf      $RPM_BUILD_ROOT%{_sysconfdir}/ftpd/pureftpd-mysql.conf
84 touch $RPM_BUILD_ROOT/etc/security/blacklist.ftp
85
86 gzip -9nf README* AUTHORS ChangeLog HISTORY NEWS THANKS
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post
92 /sbin/chkconfig --add %{name}
93 if [ -f %{_var}/lock/subsys/%{name} ]; then
94         /etc/rc.d/init.d/%{name} restart 1>&2
95 else
96         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start PureFTPD daemon."
97 fi
98
99 %preun
100 if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
101         /etc/rc.d/init.d/%{name} stop 1>&2
102 fi
103 /sbin/chkconfig --del %{name}
104
105 %files
106 %defattr(644,root,root,755)
107 %doc *.gz pure*.conf
108 %attr(755,root,root) %{_sbindir}/*
109 %attr(640,root,root) %dir /etc/ftpd
110 %dir %{_sysconfdir}/ftpd/vhosts
111 %attr(754,root,root) /etc/rc.d/init.d/%{name}
112 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/pureftpd.conf
113 %{?_with_mysql:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/pureftpd-mysql.conf}
114 %{?!_with_mysql:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/*}
115 %{?!_with_mysql:%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.ftp}
116 %dir /home/ftp
117 %attr(755,ftp,ftp) %dir /home/ftp/Incoming
118 %{_mandir}/man?/*
This page took 0.098475 seconds and 4 git commands to generate.