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