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