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