128 lines
6.2 KiB
RPMSpec
128 lines
6.2 KiB
RPMSpec
Name: autofs
|
|
Version: 5.1.4
|
|
Release: 23
|
|
Epoch: 1
|
|
Summary: A tool for automatically mounting and unmounting filesystems
|
|
License: GPLv2+
|
|
URL: https://www.kernel.org/pub/linux/daemons/autofs/v5
|
|
Source: https://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-%{version}.tar.gz
|
|
Patch0001: 0000-autofs-5.1.4-fix-flag-file-permission.patch
|
|
Patch0002: 0001-autofs-5.1.4-fix-directory-create-permission.patch
|
|
Patch0003: 0002-autofs-5.1.4-fix-use-after-free-in-do_master_list_reset.patch
|
|
Patch0004: 0003-autofs-5.1.4-fix-deadlock-in-dumpmaps.patch
|
|
Patch0005: 0004-autofs-5.1.4-dont-use-array-for-path-when-not-neccessary.patch
|
|
Patch0006: 0005-autofs-5.1.4-fix-prefix-option-handling-in-expand_entry.patch
|
|
Patch0007: 0006-autofs-5.1.4-fix-sublink-option-not-set-from-defaults.patch
|
|
Patch0008: 0007-autofs-5.1.4-fix-error-return-in-do_nfs_mount.patch
|
|
Patch0009: 0008-autofs-5.1.4-add-error-handling-for-ext_mount_add.patch
|
|
Patch0010: 0009-autofs-5.1.4-account-for-libnsl-changes.patch
|
|
Patch0011: 0010-autofs-5.1.4-use_hostname_for_mounts-shouldnt-prevent-selection-among-replicas.patch
|
|
Patch0012: 0011-autofs-5.1.4-fix-monotonic_elapsed.patch
|
|
Patch0013: 0012-autofs-5.1.4-Makefiles.rules-remove-samples-from-SUBDIRS.patch
|
|
Patch0014: 0013-autofs-5.1.4-dont-allow-trailing-slash-in-master-map-mount-points.patch
|
|
Patch0015: 0014-autofs-5.1.4-fix-libresolv-configure-check.patch
|
|
Patch0016: 0015-autofs-5.1.4-add-fedfs-getsrvinfo_c.patch
|
|
Patch0017: 0016-autofs-5.1.4-add-mount_fedfs_c.patch
|
|
Patch0018: 0017-autofs-5.1.4-add-fedfs-map-nfs4_c.patch
|
|
Patch0019: 0018-autofs-5.1.4-add-conditional-inclusion-of-fedfs-binaries.patch
|
|
Patch0020: 0019-autofs-5.1.4-add-an-example-fedfs-master-map-entry-to-the-installed-master-map.patch
|
|
Patch0021: 0020-autofs-5.1.4-improve-hostname-lookup-error-logging.patch
|
|
Patch0022: 0021-autofs-5.1.4-tiny-patch-for-autofs-typo-and-possible-bug.patch
|
|
Patch0023: 0022-autofs-5.1.4-add-units-After-line-to-include-statd-service.patch
|
|
Patch0024: 0023-autofs-5.1.4-use-systemd-sd_notify-at-startup.patch
|
|
Patch0025: 0024-autofs-5.1.4-fix-NFS-version-mask-usage.patch
|
|
Patch0026: 0025-autofs-5.1.4-fix-fd-leak-in-rpc_do_create_client.patch
|
|
Patch0027: 0026-autofs-5.1.4-add-man-page-note-about-extra-slashes-in-paths.patch
|
|
Patch0028: 0027-autofs-5.1.4-covarity-fixes-1.patch
|
|
Patch0029: 0028-autofs-5.1.4-change-expire-type-naming-to-better-reflect-usage.patch
|
|
Patch0030: 0029-autofs-5.1.4-use-defines-for-expire-type.patch
|
|
Patch0031: 0030-autofs-5.1.4-make-umount_ent-recognise-forced-umount.patch
|
|
Patch0032: 0031-autofs-5.1.4-fix-age-setting-at-startup.patch
|
|
Patch0033: 0032-autofs-5.1.4-fix-update_negative_cache-map-source-usage.patch
|
|
Patch0034: 0033-autofs-5.1.4-fix-program-usage-message.patch
|
|
Patch0035: 0034-autofs-5.1.4-fix-use-after-free-in-parse_ldap_config.patch
|
|
|
|
Requires: bash coreutils sed gawk grep module-init-tools /bin/ps
|
|
Requires(post): systemd-sysv systemd-units
|
|
Requires(preun): systemd-units
|
|
Requires(postun): systemd-units
|
|
BuildRequires: systemd-units systemd-devel autoconf hesiod-devel openldap-devel bison flex libxml2-devel
|
|
BuildRequires: cyrus-sasl-devel openssl-devel module-init-tools util-linux e2fsprogs libtirpc-devel
|
|
BuildRequires: libsss_autofs libnsl2-devel rpcgen pkgconfig
|
|
Conflicts: cyrus-sasl-lib < 2.1.23-9
|
|
|
|
%description
|
|
Autofs is a daemon that automatically mounts the file system when you use
|
|
the file system and automatically unmounts it when you are not using the
|
|
file system. Including network file system, CD-ROM, floppy disk, etc.
|
|
|
|
%package help
|
|
Summary: This package contains help documents
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
%description help
|
|
Files for help with autofs.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
echo %{version}-%{release} > .version
|
|
|
|
%build
|
|
LDFLAGS=-Wl,-z,now
|
|
%configure --disable-mount-locking --enable-ignore-busy --enable-forced-shutdown --with-libtirpc --with-systemd
|
|
make initdir=%{_initrddir} DONTSTRIP=1
|
|
|
|
%install
|
|
install -d -m 755 $RPM_BUILD_ROOT/usr/lib/systemd/system $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_libdir}/autofs
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/{man5,man8} $RPM_BUILD_ROOT/etc/sysconfig $RPM_BUILD_ROOT/etc/auto.master.d
|
|
make install mandir=%{_mandir} initdir=%{_initrddir} systemddir=/usr/lib/systemd/system INSTALLROOT=$RPM_BUILD_ROOT
|
|
echo make -C redhat
|
|
make -C redhat
|
|
install -m 755 -d $RPM_BUILD_ROOT/misc
|
|
install -m 644 redhat/autofs.service $RPM_BUILD_ROOT/usr/lib/systemd/system/autofs.service
|
|
install -m 644 redhat/autofs.conf $RPM_BUILD_ROOT/etc/autofs.conf
|
|
install -m 644 redhat/autofs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/autofs
|
|
install -m 644 samples/auto.master $RPM_BUILD_ROOT/etc/auto.master
|
|
install -m 644 samples/auto.misc $RPM_BUILD_ROOT/etc/auto.misc
|
|
install -m 755 samples/auto.net $RPM_BUILD_ROOT/etc/auto.net
|
|
install -m 755 samples/auto.smb $RPM_BUILD_ROOT/etc/auto.smb
|
|
install -m 600 samples/autofs_ldap_auth.conf $RPM_BUILD_ROOT/etc/autofs_ldap_auth.conf
|
|
|
|
%post
|
|
%systemd_post %{name}.service
|
|
|
|
%preun
|
|
%systemd_preun %{name}.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart %{name}.service
|
|
%triggerun -- %{name} < 5.0.6-5
|
|
%{_bindir}/systemd-sysv-convert --save %{name} >/dev/null 2>&1 ||:
|
|
%{_sbindir}/chkconfig --del %{name} >/dev/null 2>&1 || :
|
|
%{_bindir}/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
|
|
|
|
%files
|
|
%doc COPY*
|
|
%config /usr/lib/systemd/system/autofs.service
|
|
%config(noreplace,missingok) /etc/auto.master
|
|
%config(noreplace) /etc/autofs.conf
|
|
%config(noreplace,missingok) /etc/auto.misc
|
|
%config(noreplace,missingok) /etc/auto.net
|
|
%config(noreplace,missingok) /etc/auto.smb
|
|
%config(noreplace) /etc/sysconfig/autofs
|
|
%config(noreplace) /etc/autofs_ldap_auth.conf
|
|
%{_sbindir}/automount
|
|
%{_libdir}/autofs/
|
|
%dir /etc/auto.master.d
|
|
|
|
%files help
|
|
%doc CREDITS INSTALL README* samples/ldap* samples/autofs.schema
|
|
%{_mandir}/*/*
|
|
|
|
%changelog
|
|
* Tue Nov 26 2019 gulining<gulining1@huawei.com> - 1:5.1.4-23
|
|
- modify spec
|
|
|
|
* Tue Aug 20 2019 zhanghaibo <ted.zhang@huawei.com> - 1:5.1.4-22
|
|
- Package init
|