Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37427849
en ru br
Репозитории 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
www.altlinux.org/Changes

Другие репозитории
Upstream:4.1.4

Группа :: Система/Ядро и оборудование
Пакет: autofs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_without ldap

Name: autofs
Version: 5.0.1
Release: alt1

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: %name-%version.tar.bz2

Requires(post,preun): chkconfig

BuildRequires: bison flex

%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 -c

%build
autoconf
%configure %{?_with_ldap:--with-openldap=%prefix} \
   --disable-mount-locking --enable-ignore-busy --enable-forced-shutdown
%make_build

%install
%make_install install INSTALLROOT=%buildroot
rm -f %buildroot%_sysconfdir/auto.{misc,net}
(cd altlinux && find . -type f |cpio -pumd %buildroot)
chmod 0644 samples/auto.*

%post
%post_service %name

%preun
%preun_service %name

%triggerun -- autofs < 5.0.1
[ $2 -gt 0 ] || exit 0
if /sbin/start-stop-daemon --stop --quiet \
   --signal USR2 --retry 5 --exec /usr/sbin/automount; then
/sbin/service autofs start ||:
fi

%files
%doc CHANGELOG CREDITS COPYRIGHT README* samples/auto.*
%config(noreplace) %_initdir/autofs
%config(noreplace) %_sysconfdir/auto.master
%config(noreplace) %_sysconfdir/auto.tab
%config(noreplace,missingok) %_sysconfdir/auto.smb
%config(noreplace) %_sysconfdir/sysconfig/%name

%dir %_libdir/%name
%_libdir/%name/*

%if_with ldap
%exclude %_libdir/%name/autofs-ldap-auto-master
%exclude %_libdir/%name/lookup_ldap.so
%endif

%_sbindir/*
%_mandir/man?/*

%if_with ldap
%files ldap
%_sysconfdir/autofs_ldap_auth.conf
%_libdir/%name/autofs-ldap-auto-master
%_libdir/%name/lookup_ldap.so
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin