]> git.pld-linux.org Git - packages/anonftp.git/blob - anonftp.spec
- /srv shouldn't be used, adding a blocker
[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:        2
9 License:        GPL
10 Group:          Networking/Daemons
11 BuildRequires:  /bin/ash
12 BuildRequires:  /bin/cpio
13 BuildRequires:  fhs-compliance
14 Requires:       ftpserver
15 AutoReqProv:    no
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
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.
24
25 You should install anonftp if you would like to enable anonymous FTP
26 downloads from your machine.
27
28 %description -l pl
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.
34
35 %description -l ja
36 anonftp¥Ñ¥Ã¥±¡¼¥¸¤Ï anonymous FTP ¤ò¸ø³«¤¹¤ë¤¿¤á¤ËɬÍפʴĶ­¤òÄ󶡤·¤Þ¤¹¡£
37 anonymous FTP ¤òÍøÍѤ¹¤ì¤Ð¡¢¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤Ê¤·¤Ç¤âFTP¤Ø¤Î¥¢¥¯¥»¥¹¤¬²Äǽ
38 ¤Ë¤Ê¤ê¤Þ¤¹¡£
39
40 %description -l pt_BR
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
44 na Internet.
45
46 %description -l es
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
50 programas en Internet.
51
52 %prep
53 rm -rf $RPM_BUILD_ROOT
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT/srv/ftp/{pub,etc,bin,lib}
58
59 cat > $RPM_BUILD_ROOT/srv/ftp%{_sysconfdir}/passwd <<EOF
60 root:*:0:0:::
61 bin:*:1:1:::
62 operator:*:11:0:::
63 ftp:*:14:50:::
64 nobody:*:99:99:::
65 EOF
66
67 cat > $RPM_BUILD_ROOT/srv/ftp%{_sysconfdir}/group <<EOF
68 root::0:
69 bin::1:
70 daemon::2:
71 sys::3:
72 adm::4:
73 ftp::50:
74 EOF
75
76 install %{_sysconfdir}/ld.so.cache $RPM_BUILD_ROOT/srv/ftp%{_sysconfdir}
77 install /lib/{libc-*.so,ld-*.so,libnss_files-*.so,libnsl-*.so} \
78         $RPM_BUILD_ROOT/srv/ftp/lib
79
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
84
85 %post
86 /sbin/ldconfig /srv/ftp/lib
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %files
92 %defattr(644,root,root,755)
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/*
This page took 0.089423 seconds and 3 git commands to generate.