Репозитории ALT
S: | 5.1.8-alt6 |
D: | 5.0.3-alt1.1 |
5.1: | 5.0.5-alt1 |
4.1: | 5.0.1-alt1 |
4.0: | 5.0.1-alt1 |
3.0: | 4.1.4-alt0.3 |
Другие репозитории
Upstream: | 4.1.4 |
Группа :: Система/Ядро и оборудование
Пакет: autofs
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# -*- mode: rpm-spec; mode: folding -*-
# vim: set ft=spec:
# vim600: set fdm=marker:
# $Id: autofs,v 1.10 2005/05/10 18:13:48 me Exp $
%def_with ldap
Name: autofs
Version: 4.1.4
Release: alt0.3
Summary: A tool for automatically mounting and unmounting filesystems
License: GPL
Group: System/Kernel and hardware
Url: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/
Source: %url/%name-%version.tar.bz2
Source1: %name.init
Source2: %name.conf
Source3: auto.master
Source4: adjust_autofs
Patch0: %name-4.1.4-misc-fixes.patch
Patch1: %name-4.1.4-check-is-multi.patch
Patch2: %name-4.1.4-non-replicated-ping.patch
Patch3: %name-4.1.3-clean.patch
# rest not applied for a while
Patch4: %name-4.1.4-check-nsswitch-submount.patch
Patch5: %name-4.1.4-format.patch
Patch6: %name-4.1.4-foreground.patch
Patch7: %name-4.1.4-log-stderr.patch
Requires(post,preun): chkconfig
%if_with ldap
BuildRequires: libldap-devel
%endif
%package ldap
Summary: A tool for automatically mounting and unmounting filesystems
Group: System/Kernel and hardware
Requires: %name = %version-%release
# {{{ descriptions
%description
Autofs controls the operation of the automount daemons. The automount daemons
automatically mount filesystems when you use them and unmount them after a
period of inactivity. Filesystems can include network filesystems, CD-ROMs,
floppies and others.
Install this package if you want a program for automatically mounting and
unmounting filesystems.
%description ldap
Autofs controls the operation of the automount daemons. The automount daemons
automatically mount filesystems when you use them and unmount them after a
period of inactivity. Filesystems can include network filesystems, CD-ROMs,
floppies and others.
This package adds LDAP support to the %name package
# }}}
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
# %%patch4 -p1
# %%patch5 -p1
# %%patch6 -p1
# %%patch7 -p1
%build
%configure %{?_with_ldap:--with-openldap=%prefix}
%make_build
%install
%__mkdir_p %buildroot{%_sbindir,%_libdir/%name,%_mandir/{man5,man8}}
%make_install install INSTALLROOT=%buildroot
%__rm -f %buildroot%_sysconfdir/auto.{misc,net}
install -pD -m755 %SOURCE1 %buildroot%_initdir/%name
install -pD -m644 %SOURCE2 %buildroot%_sysconfdir/sysconfig/%name
install -pD -m644 %SOURCE3 %buildroot%_sysconfdir/auto.master
install -p -m755 %SOURCE4 %buildroot%_sbindir/
touch %buildroot%_sysconfdir/auto.tab
chmod 0644 samples/auto.*
%post
%post_service %name
if [ $1 = 1 ]; then
%_sbindir/adjust_autofs
fi
%preun
%preun_service %name
%files
%doc CHANGELOG CREDITS COPYRIGHT README* samples/auto.*
%config(noreplace) %_initdir/*
%config(noreplace) %_sysconfdir/auto.*
%config(noreplace) %_sysconfdir/sysconfig/*
%attr(700,root,root) %dir %_libdir/%name
%_libdir/%name/*
%_sbindir/*
%_mandir/man?/*
%if_with ldap
%exclude %_libdir/%name/autofs-ldap-auto-master
%exclude %_libdir/%name/lookup_ldap.so
%endif
%if_with ldap
%files ldap
%_libdir/%name/autofs-ldap-auto-master
%_libdir/%name/lookup_ldap.so
%endif
%changelog
…
Полный changelog можно просмотреть здесь
# vim: set ft=spec:
# vim600: set fdm=marker:
# $Id: autofs,v 1.10 2005/05/10 18:13:48 me Exp $
%def_with ldap
Name: autofs
Version: 4.1.4
Release: alt0.3
Summary: A tool for automatically mounting and unmounting filesystems
License: GPL
Group: System/Kernel and hardware
Url: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/
Source: %url/%name-%version.tar.bz2
Source1: %name.init
Source2: %name.conf
Source3: auto.master
Source4: adjust_autofs
Patch0: %name-4.1.4-misc-fixes.patch
Patch1: %name-4.1.4-check-is-multi.patch
Patch2: %name-4.1.4-non-replicated-ping.patch
Patch3: %name-4.1.3-clean.patch
# rest not applied for a while
Patch4: %name-4.1.4-check-nsswitch-submount.patch
Patch5: %name-4.1.4-format.patch
Patch6: %name-4.1.4-foreground.patch
Patch7: %name-4.1.4-log-stderr.patch
Requires(post,preun): chkconfig
%if_with ldap
BuildRequires: libldap-devel
%endif
%package ldap
Summary: A tool for automatically mounting and unmounting filesystems
Group: System/Kernel and hardware
Requires: %name = %version-%release
# {{{ descriptions
%description
Autofs controls the operation of the automount daemons. The automount daemons
automatically mount filesystems when you use them and unmount them after a
period of inactivity. Filesystems can include network filesystems, CD-ROMs,
floppies and others.
Install this package if you want a program for automatically mounting and
unmounting filesystems.
%description ldap
Autofs controls the operation of the automount daemons. The automount daemons
automatically mount filesystems when you use them and unmount them after a
period of inactivity. Filesystems can include network filesystems, CD-ROMs,
floppies and others.
This package adds LDAP support to the %name package
# }}}
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
# %%patch4 -p1
# %%patch5 -p1
# %%patch6 -p1
# %%patch7 -p1
%build
%configure %{?_with_ldap:--with-openldap=%prefix}
%make_build
%install
%__mkdir_p %buildroot{%_sbindir,%_libdir/%name,%_mandir/{man5,man8}}
%make_install install INSTALLROOT=%buildroot
%__rm -f %buildroot%_sysconfdir/auto.{misc,net}
install -pD -m755 %SOURCE1 %buildroot%_initdir/%name
install -pD -m644 %SOURCE2 %buildroot%_sysconfdir/sysconfig/%name
install -pD -m644 %SOURCE3 %buildroot%_sysconfdir/auto.master
install -p -m755 %SOURCE4 %buildroot%_sbindir/
touch %buildroot%_sysconfdir/auto.tab
chmod 0644 samples/auto.*
%post
%post_service %name
if [ $1 = 1 ]; then
%_sbindir/adjust_autofs
fi
%preun
%preun_service %name
%files
%doc CHANGELOG CREDITS COPYRIGHT README* samples/auto.*
%config(noreplace) %_initdir/*
%config(noreplace) %_sysconfdir/auto.*
%config(noreplace) %_sysconfdir/sysconfig/*
%attr(700,root,root) %dir %_libdir/%name
%_libdir/%name/*
%_sbindir/*
%_mandir/man?/*
%if_with ldap
%exclude %_libdir/%name/autofs-ldap-auto-master
%exclude %_libdir/%name/lookup_ldap.so
%endif
%if_with ldap
%files ldap
%_libdir/%name/autofs-ldap-auto-master
%_libdir/%name/lookup_ldap.so
%endif
%changelog
…
Полный changelog можно просмотреть здесь