]> git.pld-linux.org Git - packages/autofs.git/blob - autofs.spec
- updated to 4.0.0pre6
[packages/autofs.git] / autofs.spec
1 Summary:        autofs daemon
2 Summary(de):    autofs daemon 
3 Summary(fr):    démon autofs
4 Summary(pl):    Demon autofs 
5 Summary(tr):    autofs sunucu süreci
6 Name:           autofs
7 Version:        4.0.0pre6
8 Release:        1
9 Copyright:      GPL
10 Group:          Daemons
11 Group(pl):      Serwery
12 Source0:        ftp://ftp.kernel.org/pub/linux/daemons/autofs/%{name}-%{version}.tar.gz
13 Source1:        autofs.init
14 Source2:        autofs-auto.master
15 Source3:        autofs-auto.misc
16 Source4:        autofs-auto.mnt
17 Source5:        autofs-auto.net
18 Buildroot:      /tmp/%{name}-%{version}-root
19 Prereq:         /sbin/chkconfig
20 Requires:       mktemp
21 Requires:       rc-scripts
22
23 %define         _sysconfdir     /etc/autofs
24
25 %description
26 autofs is a daemon which automatically mounts filesystems when you use
27 them, and unmounts them later when you are not using them.  This can
28 include network filesystems, CD-ROMs, floppies, and so forth.
29
30 %description -l de
31 autofs ist ein Dämon, der Dateisysteme automatisch montiert, wenn sie 
32 benutzt werden, und sie später bei Nichtbenutzung wieder demontiert. 
33 Dies kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches einschließen. 
34
35 %description -l fr
36 autofs est un démon qui monte automatiquement les systèmes de fichiers
37 lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus. Cela
38 inclus les systèmes de fichiers réseau, les CD-ROMs, les disquettes, etc.
39
40 %description -l pl
41 Autofs jest demonem, który montuje automatycznie systemy plików je¿eli
42 je u¿ywasz i odmontowuje pó¼niej, je¿eli ich nie u¿ywasz. Mo¿e montowaæ
43 sieciowy system plików, CD-romy, stacje dyskietek i inne.
44
45 %description -l tr
46 autofs, kullanýlan dosya sistemlerini gerek olunca kendiliðinden baðlar
47 ve kullanýmlarý sona erince yine kendiliðinden çözer. Bu iþlem, að dosya
48 sistemleri, CD-ROM'lar ve disketler üzerinde yapýlabilir.
49
50 %prep
51 %setup -q
52
53 %build
54 LDFLAGS="-s"; export LDFLAGS
55 %configure
56  
57 make 
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61
62 install -d $RPM_BUILD_ROOT/{misc,net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \
63         $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs}
64
65 make install \
66         INSTALLROOT=$RPM_BUILD_ROOT
67
68 install %{SOURCE1}      $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
69
70 install %{SOURCE2}      $RPM_BUILD_ROOT/etc/autofs/auto.master
71 install %{SOURCE3}      $RPM_BUILD_ROOT/etc/autofs/auto.misc
72 install %{SOURCE4}      $RPM_BUILD_ROOT/etc/autofs/auto.mnt
73 install %{SOURCE5}      $RPM_BUILD_ROOT/etc/autofs/auto.net
74
75 touch                   $RPM_BUILD_ROOT/etc/autofs/auto.{home,misc,var,tmp}
76
77 strip --strip-unneeded  $RPM_BUILD_ROOT%{_libdir}/autofs/*
78
79 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man[58]/* \
80         NEWS README 
81
82 %post
83 /sbin/chkconfig --add autofs
84 if test -r /var/lock/subsys/automount; then
85         /etc/rc.d/init.d/autofs restart 1>&2
86 else
87         echo "Run \"/etc/rc.d/init.d/autofs start\" to start autofs daemon."
88 fi
89
90 %preun
91 if [ "$1" = "0" ]; then
92         /sbin/chkconfig --del autofs
93         if [ -f /var/lock/subsys/automount ]; then
94                 /etc/rc.d/init.d/autofs stop 1>&2
95         fi
96 fi
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %files
102 %defattr(644,root,root,755)
103 %doc {NEWS,README}.gz 
104
105 %attr(754,root,root) %config /etc/rc.d/init.d/autofs
106 %dir %{_sysconfdir}
107 %attr(644,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/auto.home
108 %attr(644,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/auto.master
109 %attr(644,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/auto.misc
110 %attr(644,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/auto.mnt
111 %attr(755,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/auto.net
112 %attr(644,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/auto.tmp
113 %attr(644,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/auto.var
114 %attr(755,root,root) %{_sbindir}/automount
115
116 %dir /misc
117 %dir /net
118
119 %dir %{_libdir}/autofs
120 %attr(755,root,root) %{_libdir}/autofs/*
121
122 %{_mandir}/man[58]/*
This page took 0.034795 seconds and 4 git commands to generate.