]> git.pld-linux.org Git - packages/ftpd-BSD.git/blob - ftpd-BSD.spec
- added 'cd ftpd' to %build
[packages/ftpd-BSD.git] / ftpd-BSD.spec
1 Summary:        OpenBSD's ftpd ported to Linux (with IPv6 support)
2 Name:           ftpd-BSD
3 Version:        0.3.1
4 Release:        1
5 License:        BSD-like
6 Group:          Networking/Daemons
7 Source0:        ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/%{name}-%{version}.tar.gz
8 Source1:        %{name}.inetd
9 Source2:        %{name}.pamd
10 Source3:        %{name}-ftpusers
11 Buildrequires:  libwrap-devel
12 Buildrequires:  pam-devel
13 Requires:       rc-inetd
14 Requires:       inetdaemon
15 Requires:       anonftp
16 Provides:       ftpserver
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Obsoletes:      wu-ftpd
19 Obsoletes:      proftpd
20 Obsoletes:      heimdal-ftpd
21
22 %description
23 This is a Linux port of the BSD ftp server (ftpd). It doesn't have all the
24 bells and whistles of wu-ftpd, but it is also probably less buggy and more
25 secure (at least, it was certainly so before I ported it, and I hope I
26 didn't mess things up *too* much).
27
28 The source code was taken from the OpenBSD CVS as of 2000/01/23 (this is
29 between releases 2.6 and 2.7). The ftpd version number is 6.4 and this
30 port's version number is 0.3.0.
31
32 %description -l pl
33 Pakiet ten zawiera linuksowy port serwera ftp BSD (ftpd). Nie zawiera on 
34 wszystkich wymy¶lnych elementów wu-ftpd, jest jednak prawdopodobniej mniej
35 zapluskwiony i bardziej bezpieczny (w kazdym razie by³ takim zanim go
36 przenios³em na Linuksa, i mam nadziejê, ¿e nie naba³agani³em *za bardzo*).
37 Kod ¼ród³owy pochodzi z repozytorium CVS OpenBSD z dnia 2000/01/23 (tj.
38 miêdzy wersj± 2.6 a 2.7). Numer wersji ftpd to 6.4, za¶ numer wersji
39 tego portu to 0.3.0.
40
41 %prep
42 %setup -q
43
44 %build
45 ( cd ftpd ; make )
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}}
50
51 install -s ftpd/ftpd    $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
52 install ftpd/ftpd.8     $RPM_BUILD_ROOT%{_mandir}/man8/
53 install %{SOURCE1}      $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
54 install %{SOURCE2}      $RPM_BUILD_ROOT/etc/pam.d/ftp
55 install %{SOURCE3}      $RPM_BUILD_ROOT/etc/ftpusers
56
57 gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/*
58
59 %post
60 if [ -f /var/lock/subsys/rc-inetd ]; then
61         /etc/rc.d/init.d/rc-inetd reload 1>&2
62 else
63         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
64 fi
65
66 %postun
67 if [ -f /var/lock/subsys/rc-inetd ]; then
68         /etc/rc.d/init.d/rc-inetd reload
69 fi
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc README.gz
77 %attr(755,root,root) %{_sbindir}/ftpd-BSD
78 %attr(640,root,root) %{_mandir}/man8/*
79 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/ftp
80 %attr(640,root,root) /etc/ftpusers
81 %attr(640,root,root) /etc/sysconfig/rc-inetd/ftpd
This page took 0.070013 seconds and 4 git commands to generate.