Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37401042
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_with ldap
%def_with sasl
%def_enable ext_env
%def_disable mount_locking
%def_enable ignore_busy
%def_enable forced_shutdown
#----------------------------------------------------------------------
%define subst_enable_to() %{expand:%%{?_enable_%{1}:--enable-%{2}}} %{expand:%%{?_disable_%{1}:--disable-%{2}}}

Name: autofs
Version: 5.0.3
Release: alt1.1
Summary: A tool for automatically mounting and unmounting filesystems
License: %gpl2plus
Group: System/Kernel and hardware
Url: ftp://ftp.kernel.org/pub/linux/daemons/%name/v5/
Source0: %url%name-%version.tar.bz2
Source1: %name.init
Source2: %name.sysconfig
Source3: auto.master
Patch0: %name-5.0.3-makefile.patch
Patch1: %name-5.0.3-ldap-page-control-configure-fix.patch
Patch2: %name-5.0.3-xfn-not-supported.patch
Patch3: %name-5.0.3-basedn-with-spaces-fix-3.patch
Patch4: %name-5.0.3-nfs4-tcp-only.patch
Patch5: %name-5.0.3-correct-ldap-lib.patch
Patch6: %name-5.0.3-dont-fail-on-empty-master-fix-2.patch
Patch7: %name-5.0.3-expire-works-too-hard.patch
Patch8: %name-5.0.3-unlink-mount-return-fix.patch
Patch9: %name-5.0.3-handle-zero-length-nis-key.patch
Patch10: %name-5.0.2-init-cb-on-load.patch
Patch11: %name-5.0.3-map-type-in-map-name.patch
Patch12: %name-5.0.3-mount-thread-create-cond-handling.patch
Patch13: %name-5.0.3-check-for-kernel-automount.patch
Patch14: %name-5.0.3-nss-source-any.patch
Requires(post,preun): chkconfig
Provides: automount = %version-%release

# Automatically added by buildreq on Thu May 22 2008

#BuildRequires: flex libcom_err-devel libkrb5-devel libldap-devel libssl-devel libxml2-devel module-init-tools

BuildRequires: flex module-init-tools /proc
BuildRequires: rpm-build-licenses
%if_with ldap
BuildRequires: libldap-devel libxml2-devel
%{?_with_sasl:BuildRequires: libsasl2-devel libkrb5-devel libcom_err-devel libssl-devel}
%endif

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


%if_with ldap
%package ldap
Summary: A tool for automatically mounting and unmounting filesystems
Group: System/Kernel and hardware
Requires: %name = %version-%release
Provides: automount-ldap = %version-%release

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


%prep
%setup
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1


%build
%ifarch x86_64 k8 nocona
%add_optflags %optflags_shared
%endif
%autoreconf
%configure \
%if_with ldap
   --with-openldap=%prefix \
%else
   --without-openldap \
%endif
%if_with sasl
   --with-sasl=%prefix \
%else
   --without-sasl \
%endif
   %{subst_enable_to ext_env ext-env} \
   %{subst_enable_to mount_locking mount-locking} \
   %{subst_enable_to ignore_busy ignore-busy} \
   %{subst_enable_to forced_shutdown forced-shutdown}

%{?_with_sasl:export CFLAGS="$CFLAGS $(krb5-config --cflags)"}
%make_build DONTSTRIP=1
bzip2 --best --keep --force CHANGELOG


%install
%make_install INSTALLROOT=%buildroot initdir=%_initdir install
install -m 0755 %SOURCE1 %buildroot%_initdir/%name
install -m 0644 %SOURCE2 %buildroot%_sysconfdir/sysconfig/%name
install -m 0644 %SOURCE3 %buildroot%_sysconfdir/auto.master
touch %buildroot%_sysconfdir/auto.misc
echo -e "#/media\t/etc/auto.misc" > %buildroot%_sysconfdir/auto.tab
install -d -m 0755 %buildroot%_docdir/%name-%version/samples
install -m 0644 CHANGELOG.* CREDITS COPYRIGHT README* %buildroot%_docdir/%name-%version/
install -m 0644 samples/{auto.{master,misc,net,smb},%name.{conf.default,schema}%{?_with_ldap:,*ldap*}} %buildroot%_docdir/%name-%version/samples/


%post
%post_service %name


%preun
%preun_service %name
%triggerun -- %name < 5.0.1
[ $2 -gt 0 ] || exit 0
/sbin/start-stop-daemon --stop --quiet --signal USR2 --retry 5 --exec /usr/sbin/automount && /sbin/service %name start ||:


%files
%_docdir/%name-%version
%config(noreplace) %_initdir/*
%config(noreplace) %_sysconfdir/auto.master
%config(noreplace) %_sysconfdir/auto.tab
%config(noreplace) %_sysconfdir/auto.misc
%config(noreplace) %_sysconfdir/auto.net
%config(noreplace,missingok) %_sysconfdir/auto.smb
%config(noreplace) %_sysconfdir/sysconfig/%name
%dir %_libdir/%name
%_libdir/%name/*
%if_with ldap
%exclude %_libdir/%name/*ldap*
%exclude %_docdir/%name-%version/samples/*ldap*
%endif
%_sbindir/*
%_man5dir/*
%_man8dir/*


%if_with ldap
%files ldap
%_docdir/%name-%version/samples/*ldap*
%_sysconfdir/%{name}_ldap_auth.conf
%_libdir/%name/*ldap*
%endif


%changelog

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

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