/[packages]/updates/2/autofs/current/SPECS/autofs.spec
ViewVC logotype

Contents of /updates/2/autofs/current/SPECS/autofs.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 473589 - (show annotations) (download)
Fri Aug 30 22:15:03 2013 UTC (7 years, 7 months ago) by luigiwalser
File size: 4947 byte(s)
own /etc/auto.master.d (mga#6559)
1 %define subrel 1
2 Name: autofs
3 Version: 5.0.6
4 Release: %mkrel 6
5 License: GPLv2+
6 Summary: A tool for automatically mounting and unmounting filesystems
7 Group: System/Kernel and hardware
8 URL: ftp://ftp.kernel.org/pub/linux/daemons/autofs
9 Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-%{version}.tar.bz2
10 Source1: %{name}.init
11 Patch1: autofs-5.0.6-fix-ipv6-name-for-lookup-fix.patch
12 Patch2: autofs-5.0.6-improve-mount-location-error-reporting.patch
13 Patch3: autofs-5.0.6-fix-paged-query-more-results-check.patch
14 Patch4: autofs-5.0.6-fix-dumpmaps-not-reading-maps.patch
15 Patch5: autofs-5.0.6-fix-result-null-check-in-read_one_map.patch
16 Patch6: autofs-5.0.6-fix-LDAP-result-leaks-on-error-paths.patch
17 Patch7: autofs-5.0.6-code-analysis-fixes-1.patch
18 Patch8: autofs-5.0.6-fix-not-bind-mounting-local-filesystem.patch
19 Patch9: autofs-5.0.6-add-dir-map-type.patch
20 Patch10: autofs-5.0.6-fix-wait-for-master-source-mutex.patch
21 Patch11: autofs-5.0.6-fix-submount-shutdown-race.patch
22 Patch12: autofs-5.0.6-fix-fix-map-source-check-in-file-lookup.patch
23 Patch13: autofs-5.0.6-add-disable-move-mount-configure-option.patch
24 Patch14: autofs-5.0.6-fix-lsb-service-name-in-init-script-2.patch
25 Patch15: autofs-5.0.6-fix-ipv6-name-lookup-check.patch
26 Patch16: autofs-5.0.6-fix-ipv6-rpc-calls.patch
27 Patch17: autofs-5.0.6-fix-ipv6-configure-check.patch
28 Patch18: autofs-5.0.6-add-piddir-to-configure.patch
29 Patch19: autofs-5.0.6-add-systemd-unit-support.patch
30 Patch20: autofs-5.0.6-fix-MNT_DETACH-define.patch
31 Patch21: autofs-5.0.6-remove-empty-command-line-arguments.patch
32 Patch102: autofs-5.0.6-separate-config-files.patch
33 Patch103: autofs-5.0.4-rename-configuration-file.patch
34 BuildRequires: openldap-devel
35 BuildRequires: flex
36 BuildRequires: bison
37 BuildRequires: libsasl-devel
38 BuildRequires: krb-devel
39 BuildRequires: libxml2-devel
40 BuildRequires: tirpc-devel
41 Conflicts: autosmb
42 Requires(post): rpm-helper >= 0.24.8-1
43 Requires(preun): rpm-helper >= 0.24.8-1
44
45 %description
46 autofs is a daemon which automatically mounts filesystems when you use
47 them, and unmounts them later when you are not using them. This can
48 include network filesystems, CD-ROMs, floppies, and so forth.
49
50 %prep
51 %setup -q -n %{name}-%{version}
52 %patch1 -p1
53 %patch2 -p1
54 %patch3 -p1
55 %patch4 -p1
56 %patch5 -p1
57 %patch6 -p1
58 %patch7 -p1
59 %patch8 -p1
60 %patch9 -p1
61 %patch10 -p1
62 %patch11 -p1
63 %patch12 -p1
64 %patch13 -p1
65 %patch14 -p1
66 %patch15 -p1
67 %patch16 -p1
68 %patch17 -p1
69 %patch18 -p1
70 %patch19 -p1
71 %patch20 -p1
72 %patch21 -p1
73 %patch102 -p 1
74 %patch103 -p 1
75
76 %build
77 autoreconf -f -i
78 %serverbuild
79 %configure2_5x \
80 --with-mapdir=%{_sysconfdir}/%{name} \
81 --with-confdir=%{_sysconfdir}/%{name} \
82 --with-sasl=yes \
83 --disable-mount-locking \
84 --enable-ignore-busy \
85 --with-libtirpc \
86 --disable-mount-move \
87 --with-systemd
88 %make DONTSTRIP=1
89
90 mkdir examples
91 cp samples/ldap* examples
92 cp samples/autofs.schema examples
93
94 rm -f README.gentoo
95
96 %install
97 rm -rf %{buildroot}
98 mkdir -p %{buildroot}%{_sbindir}
99 mkdir -p %{buildroot}%{_libdir}/autofs
100 mkdir -p %{buildroot}%{_mandir}/{man5,man8}
101 mkdir -p %{buildroot}%{_sysconfdir}
102 mkdir -p %{buildroot}%{_sysconfdir}/auto.master.d
103
104 %make install INSTALLROOT=%{buildroot}
105
106 install -d -m 755 %{buildroot}%{_initrddir}
107 install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}
108
109 install -d -m 755 %{buildroot}%{_unitdir}
110 install -m 644 samples/autofs.service %{buildroot}%{_unitdir}/autofs.service
111
112 rm -f %{buildroot}%{_sysconfdir}/init.d/%{name}
113 rm -f %{buildroot}%{_mandir}/man8/autofs*
114
115 cat > README.urpmi <<EOF
116 Mageia RPM specific notes
117
118 setup
119 -----
120 Configuration handling in Mageia package differs from upstream one on several
121 points:
122 - the automounts daemon configuration file is %{_sysconfdir}/autofs/autofs.conf
123 - the autofs service configuration file is %{_sysconfdir}/sysconfig/autofs
124
125 Upgrade
126 -------
127 Map files have been moved from %{_sysconfdir} to %{_sysconfdir}/autofs. Upgrade
128 procedure should handle the change automatically.
129 LDAP usage has changed between autofs 4 and 5. The LDAP schema used has now to
130 be configured explicitely in autofs configuration, so as to avoid useless
131 queries. As this can't be handled by package upgrade procedure, you'll have to
132 edit your configuration manually. See auto.master(5) for details.
133
134 EOF
135
136 # tune default configuration
137 perl -pi -e 's|^BROWSE_MODE="no"|BROWSE_MODE="yes"|' \
138 %{buildroot}%{_sysconfdir}/autofs/autofs.conf
139 perl -pi \
140 -e 's|^/misc\t|#/misc\t|;' \
141 -e 's|^/net\t|#/net\t|;' \
142 %{buildroot}%{_sysconfdir}/autofs/auto.master
143
144 %post
145 %_post_service autofs
146
147 %preun
148 %_preun_service autofs
149
150 %files
151 %doc INSTALL CHANGELOG CREDITS README* examples
152 %config(noreplace) %{_sysconfdir}/autofs
153 %config(noreplace) %{_sysconfdir}/sysconfig/autofs
154 %{_unitdir}/autofs.service
155 %{_initrddir}/%{name}
156 %{_libdir}/%{name}
157 %{_sbindir}/automount
158 %{_mandir}/*/*
159 %dir %{_sysconfdir}/auto.master.d

  ViewVC Help
Powered by ViewVC 1.1.28