ftpd-BSD.spec
[packages/ftpd-BSD.git] / ftpd-BSD.spec
CommitLineData
963e2124 1Summary: OpenBSD's ftpd ported to Linux
2Name: ftpd-BSD
3Version: 0.2.3
4Release: 1
5License: BSD-like
6Group: Networking/Daemons
7Source0: %{name}-%{version}.tar.gz
8Source1: %{name}.inetd
9Source2: %{name}.pamd
10BuildRoot: /tmp/%{name}-%{version}-root
11Requires: rc-inetd
12Requires: inetdaemon
13Requires: anonftp
14Provides: ftpserver
15
16%description
17This is a Linux port of the BSD ftp server (ftpd). It doesn't have
18all the bells and whistles of wu-ftpd, but it is also probably less
19buggy and more secure (at least, it was certainly so before I ported
20it, and I hope I didn't mess things up *too* much).
21
22The source code was taken from the OpenBSD 2.6 distribution. The ftpd
23version number is 6.4 and this port's version number is 0.2.3.
24
25%prep
26%setup -q
27
28%build
29make
30
31%install
32rm -rf $RPM_BUILD_ROOT
33install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}}
34
35install -s ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
36install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/ftpd-BSD.8
37install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftp
38install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
39
40gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/*
41
42cat << EOF >$RPM_BUILD_ROOT/etc/ftpusers
43root
44bin
45daemon
46adm
47lp
48sync
49shutdown
50halt
51mail
52news
53uucp
54operator
55games
56nobody
57EOF
58
59%post
60if [ -f /var/lock/subsys/rc-inetd ]; then
61 /etc/rc.d/init.d/rc-inetd restart 1>&2
62else
63 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
64fi
65
66%postun
67if [ -f /var/lock/subsys/rc-inetd ]; then
68 /etc/rc.d/init.d/rc-inetd restart
69fi
70
71%clean
72rm -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) /etc/pam.d/ftp
80%attr(640,root,root) /etc/ftpusers
81%attr(640,root,root) /etc/sysconfig/rc-inetd/ftp
This page took 0.069233 seconds and 4 git commands to generate.