Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:PowerPC
autofs
autofs.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File autofs.spec of Package autofs
# # spec file for package autofs # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %if 0%{?suse_version} >= 1220 %define with_systemd 1 %else %define with_systemd 0 %endif Name: autofs Url: http://www.kernel.org/pub/linux/daemons/autofs/v5/ BuildRequires: autoconf BuildRequires: bison BuildRequires: e2fsprogs BuildRequires: flex BuildRequires: krb5-devel BuildRequires: libtirpc-devel BuildRequires: libxml2-devel BuildRequires: module-init-tools BuildRequires: nfs-client BuildRequires: openldap2-devel %if %{with_systemd} BuildRequires: systemd %endif Version: 5.0.7 Release: 0 Summary: A Kernel-Based Automounter License: GPL-2.0+ Group: System/Daemons BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.bz2 Source1: sysconfig.autofs Source2: autofs.init Source3: autofs.schema Source4: README.SUSE.ldap Source5: README.SUSE Source6: autofs.service Source7: NetworkManager-autofs Source8: get-upstream-patches # Upstream patches that will be in the next release #%define patchdate 20120716 #Patch0: autofs-%{version}-upstream-patches-%{patchdate}.bz2 Patch1: autofs-5.0.6-revert-fix-libtirpc-name-clash.patch # Patches submitted upstream but not yet accepted Patch80: autofs-5.0.6-invalid-ghost-dirs.patch Patch82: autofs-5.0.6-task-use-after-free.patch # SUSE specific patches Patch100: autofs-suse-auto_master_default.patch Patch101: autofs-suse-build.patch Requires(pre): %fillup_prereq Requires(pre): %insserv_prereq Requires(pre): aaa_base %if %{with_systemd} %{?systemd_requires} %endif Recommends: nfs-client %description AutoFS is a kernel-based automounter for Linux. It automatically mounts filesystems when you use them, and unmounts them later when you are not using them. This can include network filesystems, CD-ROMs, floppies, and so forth. %prep %setup -q cp %{SOURCE3} . cp %{SOURCE4} . cp %{SOURCE5} . # #%patch0 -p1 %patch1 -p1 %patch80 -p1 %patch82 -p1 %patch100 -p1 %patch101 -p1 %build SUSE_ASNEEDED=0 %configure %{_target_cpu}-suse-linux \ --libdir=%{_libdir} --mandir=%{_mandir} \ --with-confdir=/etc/sysconfig \ --disable-mount-locking \ --enable-forced-shutdown \ --enable-ignore-busy \ %if %{with_systemd} --with-systemd \ %endif --with-libtirpc \ --with-hesiod=no \ --with-sasl make all DONTSTRIP=1 LOCAL_CFLAGS="%{optflags} %(getconf LFS_CFLAGS)" \ %{?_smp_mflags} %install make install INSTALLROOT=%{buildroot} install -d -m 755 %{buildroot}%{_sysconfdir}/auto.master.d install -D -m 644 %{SOURCE1} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.autofs install -D -m 755 %{SOURCE7} %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/autofs install -D -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/init.d/autofs ln -s ../../etc/init.d/autofs %{buildroot}%{_sbindir}/rcautofs ln -s %{_mandir}/man8/autofs.8.gz %{buildroot}/%{_mandir}/man8/rcautofs.8.gz %if %{with_systemd} install -D -m 644 %{SOURCE6} %{buildroot}%{_unitdir}/autofs.service %endif # will be installed by fillup scripts rm -f %{buildroot}%{_sysconfdir}/sysconfig/autofs %pre %if %{with_systemd} %service_add_pre %{name}.service %endif %post if /sbin/chkconfig -c autofs 3; then %{insserv_force_if_yast autofs} fi %{fillup_only -n autofs} %if %{with_systemd} %service_add_post %{name}.service %endif %preun %{stop_on_removal autofs} %if %{with_systemd} %service_del_preun %{name}.service %endif %postun %{restart_on_update autofs} %{insserv_cleanup} %if %{with_systemd} %service_del_postun %{name}.service %endif %files %defattr (-, root, root) %{_localstatedir}/adm/fillup-templates/sysconfig.autofs %config(noreplace) %{_sysconfdir}/auto.master %config(noreplace) %{_sysconfdir}/auto.misc %config(noreplace) %{_sysconfdir}/auto.net %config(noreplace) %{_sysconfdir}/auto.smb %config(noreplace) %{_sysconfdir}/autofs_ldap_auth.conf %config %{_sysconfdir}/init.d/autofs %dir %{_sysconfdir}/auto.master.d %dir %{_sysconfdir}/NetworkManager %dir %{_sysconfdir}/NetworkManager/dispatcher.d %{_sysconfdir}/NetworkManager/dispatcher.d/autofs %doc COPYRIGHT README README.changer README.ncpfs README.replicated-server %doc README.smbfs README.v5.release autofs.schema README.active-restart %doc README.SUSE README.SUSE.ldap %dir %{_libdir}/autofs/ %{_libdir}/autofs/ %{_mandir}/man5/* %{_mandir}/man8/* %{_sbindir}/automount %{_sbindir}/rcautofs %if %{with_systemd} %{_unitdir}/autofs.service %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor