]> git.pld-linux.org Git - packages/anonftp.git/blob - anonftp.spec
- /home/services -> /srv
[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 Summary(ja):    Anonymous FTP ¤ò²Äǽ¤Ë¤¹¤ë¥×¥í¥°¥é¥à
4 Summary(pt_BR): Habilita acesso via ftp anônimo
5 Summary(es):    Habilita acceso vía ftp anónimo
6 Name:           anonftp
7 Version:        2.8
8 Release:        1
9 License:        GPL
10 Group:          Networking/Daemons
11 BuildRequires:  /bin/ash
12 Requires:       ftpserver
13 AutoReqProv:    no
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 The anonftp package contains the files you need in order to allow
18 anonymous FTP access to your machine. Anonymous FTP access allows
19 anyone to download files from your machine without having a user
20 account. Anonymous FTP is a popular way of making programs available
21 via the Internet.
22
23 You should install anonftp if you would like to enable anonymous FTP
24 downloads from your machine.
25
26 %description -l pl
27 pakiet anonftp zawiera pliki niezbêdne w celu uruchomienia serwera
28 anonimowego FTP na danej maszynie. Dostêp przez anonimowy FTP pozwala
29 ka¿demu pobieraæ pliki z danego komputera bez potrzeby posiadania
30 konta u¿ytkownika. Anonimowe FTP jest popularnym sposobem udostêpniania
31 plików w Internecie.
32
33 %description -l ja
34 anonftp¥Ñ¥Ã¥±¡¼¥¸¤Ï anonymous FTP ¤ò¸ø³«¤¹¤ë¤¿¤á¤ËɬÍפʴĶ­¤òÄ󶡤·¤Þ¤¹¡£
35 anonymous FTP ¤òÍøÍѤ¹¤ì¤Ð¡¢¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤Ê¤·¤Ç¤âFTP¤Ø¤Î¥¢¥¯¥»¥¹¤¬²Äǽ
36 ¤Ë¤Ê¤ê¤Þ¤¹¡£
37
38 %description -l pt_BR
39 Contém os arquivos necessários para permitir acesso ftp anônimo a sua
40 máquina. Isso deixa qualquer usuário pegar arquivos de sua máquina sem
41 ter uma conta, o que é um meio popular de tornar programas disponíveis
42 na Internet.
43
44 %description -l es
45 Contiene los archivos necesarios para permitir acceso ftp anónimo a tu
46 máquina. Esto deja cualquier usuario coger archivos de tu máquina sin
47 tener una cuenta, esto es un medio popular de poner a disposición
48 programas en Internet.
49
50 %prep
51 rm -rf $RPM_BUILD_ROOT
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT/srv/ftp/{pub,etc,bin,lib}
56
57 cat > $RPM_BUILD_ROOT/srv/ftp%{_sysconfdir}/passwd <<EOF
58 root:*:0:0:::
59 bin:*:1:1:::
60 operator:*:11:0:::
61 ftp:*:14:50:::
62 nobody:*:99:99:::
63 EOF
64
65 cat > $RPM_BUILD_ROOT/srv/ftp%{_sysconfdir}/group <<EOF
66 root::0:
67 bin::1:
68 daemon::2:
69 sys::3:
70 adm::4:
71 ftp::50:
72 EOF
73
74 install %{_sysconfdir}/ld.so.cache $RPM_BUILD_ROOT/srv/ftp%{_sysconfdir}
75 install /lib/{libc-*.so,ld-*.so,libnss_files-*.so,libnsl-*.so} \
76         $RPM_BUILD_ROOT/srv/ftp/lib
77
78 install /bin/{ls,cpio,gzip,tar}                 $RPM_BUILD_ROOT/srv/ftp/bin
79 install /bin/ash                                $RPM_BUILD_ROOT/srv/ftp/bin/sh
80 install %{_bindir}/compress                     $RPM_BUILD_ROOT/srv/ftp/bin/compress
81 ln -sf gzip                                     $RPM_BUILD_ROOT/srv/ftp/bin/zcat
82
83 %post
84 /sbin/ldconfig /srv/ftp/lib
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files
90 %defattr(644,root,root,755)
91 %attr(0755,root,root) %dir /srv/ftp
92 %attr(0111,root,root) %dir /srv/ftp/bin
93 %attr(0111,root,root) %dir /srv/ftp%{_sysconfdir}
94 %attr(2755,root,root) %dir /srv/ftp/pub
95 %attr(0755,root,root) %dir /srv/ftp/lib
96 %attr(0444,root,root) %config /srv/ftp%{_sysconfdir}/passwd
97 %attr(0444,root,root) %config /srv/ftp%{_sysconfdir}/group
98 %attr(0444,root,root) /srv/ftp%{_sysconfdir}/ld.so.cache
99 %attr(0111,root,root) /srv/ftp/bin/*
100 %attr(0555,root,root) /srv/ftp/lib/*
This page took 0.116166 seconds and 3 git commands to generate.