]> git.pld-linux.org Git - packages/anonftp.git/blob - anonftp.spec
- removed all Group fields translations (oure rpm now can handle translating
[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 AutoReqProv:    0
12 BuildRequires:  /bin/ash
13 Requires:       ftpserver
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 potzreby posiadania
30 konta u¿ytkownika. Anonimowe FTP jest popularnym sposbem udostepniania
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
40 a sua máquina.  Isso deixa qualquer usuário pegar arquivos de
41 sua máquina sem ter uma conta, o que é um meio popular de tornar
42 programas disponíveis na Internet.
43
44 %description -l es
45 Contiene los archivos necesarios para permitir acceso ftp anónimo
46 a tu máquina. Esto deja cualquier usuario coger archivos de tu
47 máquina sin tener una cuenta, esto es un medio popular de poner a
48 disposición 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/home/ftp/{pub,etc,bin,lib}
56
57 cat > $RPM_BUILD_ROOT/home/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/home/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/home/ftp%{_sysconfdir}
75 install /lib/{libc-*.so,ld-*.so,libnss_files-*.so,libnsl-*.so} \
76         $RPM_BUILD_ROOT/home/ftp/lib
77
78 install /bin/{ls,cpio,gzip,tar}                 $RPM_BUILD_ROOT/home/ftp/bin
79 install /bin/ash                                $RPM_BUILD_ROOT/home/ftp/bin/sh
80 install %{_bindir}/compress                     $RPM_BUILD_ROOT/home/ftp/bin/compress
81 ln -sf gzip                                     $RPM_BUILD_ROOT/home/ftp/bin/zcat
82
83 %post 
84 /sbin/ldconfig /home/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 /home/ftp
92 %attr(0111,root,root) %dir /home/ftp/bin
93 %attr(0111,root,root) %dir /home/ftp%{_sysconfdir}
94 %attr(2755,root,root) %dir /home/ftp/pub
95 %attr(0755,root,root) %dir /home/ftp/lib
96 %attr(0444,root,root) %config /home/ftp%{_sysconfdir}/passwd
97 %attr(0444,root,root) %config /home/ftp%{_sysconfdir}/group
98 %attr(0444,root,root) /home/ftp%{_sysconfdir}/ld.so.cache
99 %attr(0111,root,root) /home/ftp/bin/*
100 %attr(0555,root,root) /home/ftp/lib/*
This page took 0.085664 seconds and 3 git commands to generate.