]> git.pld-linux.org Git - packages/bftpd.git/blob - bftpd.spec
3745c2312d343b2bb45d827437bd8df069f1600e
[packages/bftpd.git] / bftpd.spec
1 Summary:        Small FTP server
2 Summary(pl):    Ma³y serwer FTP
3 Name:           bftpd
4 Version:        1.0.18
5 Release:        1
6 License:        GPL
7 Group:          Daemons
8 Group(de):      Server
9 Group(pl):      Serwery
10 Source0:        http://www.bftpd.f2s.com/downloads/src/%{name}-%{version}.tar.gz
11 Source1:        %{name}.inetd
12 Source2:        %{name}.conf
13 Patch0:         %{name}-NOROOT.patch
14 Requires:       inetdaemon
15 Prereq:         rc-inetd
16 Provides:       ftpserver
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Obsoletes:      ftpserver
19 Obsoletes:      wu-ftpd
20 Obsoletes:      anonftp
21 Obsoletes:      ftpd-BSD
22 Obsoletes:      heimdal-ftpd
23 Obsoletes:      linux-ftpd
24 Obsoletes:      proftpd
25 Obsoletes:      pure-ftpd
26 Obsoletes:      troll-ftpd
27
28 %description
29 bftpd is a Linux FTP server with chroot and setreuid. Not all FTP
30 commands are included. It doesn't need special home directory
31 preparation and accesses either the user's home directory or its .ftp
32 subdirectory, and user authentication is via passwd/shadow or PAM.
33
34 %description -l pl
35 bftpd jest linuksowym serwerem FTP z chroot i setreuid. Nie wszystkie
36 komdeny FTP s± dostêpne. Nie wymaga specjalnego katalogu domowego i
37 dostêpu poza katalogiem domowym u¿ytkownika i podkatalogiem .ftp.
38 Autoryzacja u¿ytkowników poprzez passwd/shadow lub PAM.
39
40 %prep
41 %setup -q
42 %patch0 -p1
43
44 %build
45 %configure
46 %{__make} 
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_prefix}{/sbin,/share/man/man8},/etc/sysconfig/rc-inetd,/home/ftp}
51
52 %{__make} install DESTDIR=$RPM_BUILD_ROOT
53
54 #install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/ftp
55 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rc-inetd/ftpd
56 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
57
58 gzip -9nf README CHANGELOG
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %post
64 if [ -f /var/lock/subsys/rc-inetd ]; then
65         /etc/rc.d/init.d/rc-inetd restart 1>&2
66 else
67         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
68 fi
69
70 %postun
71 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
72         /etc/rc.d/init.d/rc-inetd restart
73 fi
74
75 %files
76 %defattr(644,root,root,755)
77 %doc *.gz
78 %attr(755,root,root) %{_sbindir}/*
79 #%attr(640,root,root) /etc/pam.d/ftp
80 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}.conf
81 %attr(640,root,root) %config /etc/sysconfig/rc-inetd/ftpd
82 %dir %attr(555,ftp,ftp) /home/ftp
83
84 %{_mandir}/man8/*
This page took 0.069429 seconds and 2 git commands to generate.