]>
Commit | Line | Data |
---|---|---|
b1e9be3b | 1 | Summary: A program which enables anonymous FTP access |
9bde7db4 ER |
2 | Summary(pl.UTF-8): Program, który pozwala na anonimowy dostęp do FTP-a |
3 | Summary(ja.UTF-8): Anonymous FTP を可能にするプログラム | |
4 | Summary(pt_BR.UTF-8): Habilita acesso via FTP anônimo | |
5 | Summary(es.UTF-8): Habilita acceso vía FTP anónimo | |
3333c8d1 | 6 | Name: anonftp |
7 | Version: 2.8 | |
1b8a9527 | 8 | Release: 2 |
3333c8d1 | 9 | License: GPL |
9272d36e | 10 | Group: Networking/Daemons |
e7da067c | 11 | BuildRequires: /bin/ash |
86a9cf99 | 12 | BuildRequires: /bin/cpio |
229ab8ff | 13 | BuildRequires: fhs-compliance |
3333c8d1 | 14 | Requires: ftpserver |
1ef350b5 | 15 | AutoReqProv: no |
e7da067c | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27b3863b JR |
17 | |
18 | %description | |
d4ce203b | 19 | The anonftp package contains the files you need in order to allow |
20 | anonymous FTP access to your machine. Anonymous FTP access allows | |
21 | anyone to download files from your machine without having a user | |
22 | account. Anonymous FTP is a popular way of making programs available | |
23 | via the Internet. | |
27b3863b JR |
24 | |
25 | You should install anonftp if you would like to enable anonymous FTP | |
26 | downloads from your machine. | |
27 | ||
32d1ffb2 JR |
28 | %description -l pl.UTF-8 |
29 | pakiet anonftp zawiera pliki niezbędne w celu uruchomienia serwera | |
30 | anonimowego FTP na danej maszynie. Dostęp przez anonimowy FTP pozwala | |
31 | każdemu pobierać pliki z danego komputera bez potrzeby posiadania | |
32 | konta użytkownika. Anonimowe FTP jest popularnym sposobem udostępniania | |
33 | plików w Internecie. | |
c24cfe41 | 34 | |
32d1ffb2 JR |
35 | %description -l ja.UTF-8 |
36 | anonftpパッケージは anonymous FTP を公開するために必要な環境を提供します。 | |
37 | anonymous FTP を利用すれば、ユーザアカウントなしでもFTPへのアクセスが可能 | |
38 | になります。 | |
e7da067c | 39 | |
32d1ffb2 JR |
40 | %description -l pt_BR.UTF-8 |
41 | Contém os arquivos necessários para permitir acesso FTP anônimo a sua | |
42 | máquina. Isso deixa qualquer usuário pegar arquivos de sua máquina sem | |
43 | ter uma conta, o que é um meio popular de tornar programas disponíveis | |
f26d14e4 | 44 | na Internet. |
e7da067c | 45 | |
32d1ffb2 JR |
46 | %description -l es.UTF-8 |
47 | Contiene los archivos necesarios para permitir acceso FTP anónimo a tu | |
48 | máquina. Esto deja cualquier usuario coger archivos de tu máquina sin | |
49 | tener una cuenta, esto es un medio popular de poner a disposición | |
f26d14e4 | 50 | programas en Internet. |
e7da067c | 51 | |
27b3863b JR |
52 | %prep |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
7c134d85 | 57 | install -d $RPM_BUILD_ROOT/srv/ftp/{pub,etc,bin,lib} |
27b3863b | 58 | |
7c134d85 | 59 | cat > $RPM_BUILD_ROOT/srv/ftp%{_sysconfdir}/passwd <<EOF |
27b3863b JR |
60 | root:*:0:0::: |
61 | bin:*:1:1::: | |
62 | operator:*:11:0::: | |
63 | ftp:*:14:50::: | |
64 | nobody:*:99:99::: | |
65 | EOF | |
66 | ||
7c134d85 | 67 | cat > $RPM_BUILD_ROOT/srv/ftp%{_sysconfdir}/group <<EOF |
27b3863b JR |
68 | root::0: |
69 | bin::1: | |
70 | daemon::2: | |
71 | sys::3: | |
72 | adm::4: | |
73 | ftp::50: | |
74 | EOF | |
75 | ||
7c134d85 | 76 | install %{_sysconfdir}/ld.so.cache $RPM_BUILD_ROOT/srv/ftp%{_sysconfdir} |
3333c8d1 | 77 | install /lib/{libc-*.so,ld-*.so,libnss_files-*.so,libnsl-*.so} \ |
7c134d85 | 78 | $RPM_BUILD_ROOT/srv/ftp/lib |
27b3863b | 79 | |
7c134d85 | 80 | install /bin/{ls,cpio,gzip,tar} $RPM_BUILD_ROOT/srv/ftp/bin |
81 | install /bin/ash $RPM_BUILD_ROOT/srv/ftp/bin/sh | |
82 | install %{_bindir}/compress $RPM_BUILD_ROOT/srv/ftp/bin/compress | |
83 | ln -sf gzip $RPM_BUILD_ROOT/srv/ftp/bin/zcat | |
27b3863b | 84 | |
f26d14e4 | 85 | %post |
7c134d85 | 86 | /sbin/ldconfig /srv/ftp/lib |
27b3863b JR |
87 | |
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %files | |
3333c8d1 | 92 | %defattr(644,root,root,755) |
7c134d85 | 93 | %attr(0755,root,root) %dir /srv/ftp |
94 | %attr(0111,root,root) %dir /srv/ftp/bin | |
95 | %attr(0111,root,root) %dir /srv/ftp%{_sysconfdir} | |
96 | %attr(2755,root,root) %dir /srv/ftp/pub | |
97 | %attr(0755,root,root) %dir /srv/ftp/lib | |
98 | %attr(0444,root,root) %config /srv/ftp%{_sysconfdir}/passwd | |
99 | %attr(0444,root,root) %config /srv/ftp%{_sysconfdir}/group | |
100 | %attr(0444,root,root) /srv/ftp%{_sysconfdir}/ld.so.cache | |
101 | %attr(0111,root,root) /srv/ftp/bin/* | |
102 | %attr(0555,root,root) /srv/ftp/lib/* |