]> git.pld-linux.org Git - packages/ftpd-BSD.git/blob - ftpd-BSD.spec
- small fixes in permissions for pam.d or init.d
[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.0
4 Release:        1
5 License:        BSD-like
6 Group:          Networking/Daemons
7 Source0:        %{name}-%{version}.tar.gz
8 Source1:        %{name}.inetd
9 Source2:        %{name}.pamd
10 Source3:        %{name}-ftpusers
11 BuildRoot:      /tmp/%{name}-%{version}-root
12 Requires:       rc-inetd
13 Requires:       inetdaemon
14 Requires:       anonftp
15 Provides:       ftpserver
16
17 %description
18 This is a Linux port of the BSD ftp server (ftpd).  It doesn't have
19 all the bells and whistles of wu-ftpd, but it is also probably less
20 buggy and more secure (at least, it was certainly so before I ported
21 it, and I hope I didn't mess things up *too* much).
22
23 The source code was taken from the OpenBSD CVS as of 2000/01/23 (this
24 is between releases 2.6 and 2.7).  The ftpd version number is 6.4 and
25 this port's version number is 0.3.0.
26
27 %prep
28 %setup -q
29
30 %build
31 make
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}}
36
37 install -s ftpd         $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
38 install ftpd.8          $RPM_BUILD_ROOT%{_mandir}/man8/ftpd-BSD.8
39 install %{SOURCE1}      $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftp
40 install %{SOURCE2}      $RPM_BUILD_ROOT/etc/pam.d/ftp
41 install %{SOURCE3}      $RPM_BUILD_ROOT/etc/ftpusers
42
43 gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/*
44
45 %post
46 if [ -f /var/lock/subsys/rc-inetd ]; then
47         /etc/rc.d/init.d/rc-inetd reload 1>&2
48 else
49         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
50 fi
51
52 %postun
53 if [ -f /var/lock/subsys/rc-inetd ]; then
54         /etc/rc.d/init.d/rc-inetd reload
55 fi
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc README.gz
63 %attr(755,root,root) %{_sbindir}/ftpd-BSD
64 %attr(640,root,root) %{_mandir}/man8/*
65 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/ftp
66 %attr(640,root,root) /etc/ftpusers
67 %attr(640,root,root) /etc/sysconfig/rc-inetd/ftp
This page took 0.033256 seconds and 3 git commands to generate.