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

  ViewVC Help
Powered by ViewVC 1.1.30