]> git.pld-linux.org Git - packages/autofs.git/blobdiff - autofs.spec
- release 3,
[packages/autofs.git] / autofs.spec
index 06aac5f2effca3bddd76bda9f629b6341844640a..b9ea9ada2a724444e1ce8360702df4dcab8c60d1 100644 (file)
@@ -4,58 +4,80 @@ Summary(fr):  d
 Summary(pl):   Demon autofs 
 Summary(tr):   autofs sunucu süreci
 Name:          autofs
-Version:       4.0.0pre6
-Release:       1
+Version:       4.0.0pre10
+Release:       3
+Epoch:         1
 License:       GPL
 Group:         Daemons
+Group(de):     Server
 Group(pl):     Serwery
-Source0:       ftp://ftp.kernel.org/pub/linux/daemons/autofs/%{name}-%{version}.tar.gz
-Source1:       autofs.init
-Source2:       autofs-auto.master
-Source3:       autofs-auto.misc
-Source4:       autofs-auto.mnt
-Source5:       autofs-auto.net
-Source6:       autofs.sysconfig
+Source0:       ftp://ftp.kernel.org/pub/linux/daemons/autofs/testing-v4/%{name}-%{version}.tar.bz2
+Source1:       %{name}.init
+Source2:       %{name}-auto.master
+Source3:       %{name}-auto.misc
+Source4:       %{name}-auto.mnt
+Source5:       %{name}-auto.net
+Source6:       %{name}.sysconfig
+Patch0:                %{name}-clean.patch
+Patch1:                %{name}-doc.patch
+Patch2:                %{name}-hesiod-bind.patch
+# Needed to check !!
+Patch3:                %{name}-initialize.patch
+Patch4:                %{name}-man.patch
+Patch5:                %{name}-linux-2.3.patch
+Patch6:                %{name}-loop.patch
+Patch7:                %{name}-modules.patch
+Patch8:                %{name}-open_max.patch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Prereq:                /sbin/chkconfig
 Requires:      mktemp
-Requires:      rc-scripts
+Prereq:                rc-scripts
 
 %define                _sysconfdir     /etc/autofs
 
 %description
 autofs is a daemon which automatically mounts filesystems when you use
-them, and unmounts them later when you are not using them.  This can
+them, and unmounts them later when you are not using them. This can
 include network filesystems, CD-ROMs, floppies, and so forth.
 
 %description -l de
 autofs ist ein Dämon, der Dateisysteme automatisch montiert, wenn sie
-benutzt werden, und sie später bei Nichtbenutzung wieder demontiert.  Dies
-kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches einschließen.
+benutzt werden, und sie später bei Nichtbenutzung wieder demontiert.
+Dies kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches
+einschließen.
 
 %description -l fr
 autofs est un démon qui monte automatiquement les systèmes de fichiers
-lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus. Cela
-inclus les systèmes de fichiers réseau, les CD-ROMs, les disquettes, etc.
+lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus.
+Cela inclus les systèmes de fichiers réseau, les CD-ROMs, les
+disquettes, etc.
 
 %description -l pl
-Autofs jest demonem, który montuje automatycznie systemy plików je¿eli je
-u¿ywasz i odmontowuje pó¼niej, je¿eli ich nie u¿ywasz. Mo¿e montowaæ
-sieciowy system plików, CD-romy, stacje dyskietek i inne.
+Autofs jest demonem, który montuje automatycznie systemy plików je¿eli
+je u¿ywasz i odmontowuje pó¼niej, je¿eli ich nie u¿ywasz. Mo¿e
+montowaæ sieciowy system plików, CD-romy, stacje dyskietek i inne.
 
 %description -l tr
-autofs, kullanýlan dosya sistemlerini gerek olunca kendiliðinden baðlar ve
-kullanýmlarý sona erince yine kendiliðinden çözer. Bu iþlem, að dosya
-sistemleri, CD-ROM'lar ve disketler üzerinde yapýlabilir.
+autofs, kullanýlan dosya sistemlerini gerek olunca kendiliðinden
+baðlar ve kullanýmlarý sona erince yine kendiliðinden çözer. Bu iþlem,
+að dosya sistemleri, CD-ROM'lar ve disketler üzerinde yapýlabilir.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+#%patch3 -p1
+%patch4 -p1
+#%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
 
 %build
-LDFLAGS="-s"; export LDFLAGS
-%configure
+%configure2_13
  
-make 
+%{__make} 
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -63,7 +85,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/{misc,net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \
        $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig}
 
-make install \
+%{__make} install \
        INSTALLROOT=$RPM_BUILD_ROOT
 
 install %{SOURCE1}     $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
@@ -74,16 +96,17 @@ install %{SOURCE4}  $RPM_BUILD_ROOT%{_sysconfdir}/auto.mnt
 install %{SOURCE5}     $RPM_BUILD_ROOT%{_sysconfdir}/auto.net
 install %{SOURCE6}     $RPM_BUILD_ROOT/etc/sysconfig/autofs
 
-touch                  $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,misc,var,tmp}
+touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,misc,var,tmp}
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/autofs/*
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man[58]/* \
-       NEWS README 
+gzip -9nf NEWS README 
 
 %post
 /sbin/chkconfig --add autofs
-if test -r /var/lock/subsys/automount; then
+# triggerpostun would get called after %post
+if [ -f /var/lock/subsys/automount ]; then
+       mv /var/lock/subsys/automount /var/lock/subsys/autofs
+fi
+if test -r /var/lock/subsys/autofs; then
        /etc/rc.d/init.d/autofs restart 1>&2
 else
        echo "Run \"/etc/rc.d/init.d/autofs start\" to start autofs daemon."
@@ -92,7 +115,7 @@ fi
 %preun
 if [ "$1" = "0" ]; then
        /sbin/chkconfig --del autofs
-       if [ -f /var/lock/subsys/automount ]; then
+       if [ -f /var/lock/subsys/autofs ]; then
                /etc/rc.d/init.d/autofs stop 1>&2
        fi
 fi
This page took 0.157598 seconds and 4 git commands to generate.