]> git.pld-linux.org Git - packages/anonftp.git/blob - anonftp.spec
- removed stripping executables, it's done by rpm automation
[packages/anonftp.git] / anonftp.spec
1 Summary:        A program which enables anonymous FTP access.
2 Summary(pl):    Program, który pozwala na anonimowy dostêp do FTP'a.
3 Name:           anonftp
4 Version:        2.8
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Group(de):      Netzwerkwesen/Server
9 Group(pl):      Sieciowe/Serwery
10 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11 AutoReqProv:    0
12 Requires:       ftpserver
13
14 %description
15 The anonftp package contains the files you need in order to allow
16 anonymous FTP access to your machine. Anonymous FTP access allows
17 anyone to download files from your machine without having a user
18 account. Anonymous FTP is a popular way of making programs available
19 via the Internet.
20
21 You should install anonftp if you would like to enable anonymous FTP
22 downloads from your machine.
23
24 %description -l pl
25 pakiet anonftp zawiera pliki niezbêdne w celu uruchomienia serwera
26 anonimowego FTP na danej maszynie. Dostêp przez anonimowy FTP pozwala
27 ka¿demu pobieraæ pliki z danego komputera bez potzreby posiadania
28 konta u¿ytkownika. Anonimowe FTP jest popularnym sposbem udostepniania
29 plików w Internecie.
30
31 %prep
32 rm -rf $RPM_BUILD_ROOT
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT/home/ftp/{pub,etc,bin,lib}
37
38 cat > $RPM_BUILD_ROOT/home/ftp%{_sysconfdir}/passwd <<EOF
39 root:*:0:0:::
40 bin:*:1:1:::
41 operator:*:11:0:::
42 ftp:*:14:50:::
43 nobody:*:99:99:::
44 EOF
45
46 cat > $RPM_BUILD_ROOT/home/ftp%{_sysconfdir}/group <<EOF
47 root::0:
48 bin::1:
49 daemon::2:
50 sys::3:
51 adm::4:
52 ftp::50:
53 EOF
54
55 install %{_sysconfdir}/ld.so.cache $RPM_BUILD_ROOT/home/ftp%{_sysconfdir}
56 install /lib/{libc-*.so,ld-*.so,libnss_files-*.so,libnsl-*.so} \
57         $RPM_BUILD_ROOT/home/ftp/lib
58
59 install /bin/{ls,cpio,gzip,tar}                 $RPM_BUILD_ROOT/home/ftp/bin
60 install /bin/ash                                $RPM_BUILD_ROOT/home/ftp/bin/sh
61 install %{_bindir}/compress                     $RPM_BUILD_ROOT/home/ftp/bin/compress
62 ln -sf gzip                                     $RPM_BUILD_ROOT/home/ftp/bin/zcat
63
64 %post 
65 /sbin/ldconfig /home/ftp/lib
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %attr(0755,root,root) %dir /home/ftp
73 %attr(0111,root,root) %dir /home/ftp/bin
74 %attr(0111,root,root) %dir /home/ftp%{_sysconfdir}
75 %attr(2755,root,root) %dir /home/ftp/pub
76 %attr(0755,root,root) %dir /home/ftp/lib
77 %attr(0444,root,root) %config /home/ftp%{_sysconfdir}/passwd
78 %attr(0444,root,root) %config /home/ftp%{_sysconfdir}/group
79 %attr(0444,root,root) /home/ftp%{_sysconfdir}/ld.so.cache
80 %attr(0111,root,root) /home/ftp/bin/*
81 %attr(0555,root,root) /home/ftp/lib/*
This page took 0.092881 seconds and 4 git commands to generate.