source: projects/specs/trunk/a/autofs/autofs-vl.spec @ 521

Revision 521, 18.2 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1Summary: A tool for automatically mounting and unmounting filesystems.
2Summary(ja): 自動的にファイルシステムをマウント/アンマウントするツール
3Name: autofs
4Version: 5.0.3
5Release: 4%{?_dist_release}
6Epoch: 1
7License: GPL
8Group: System Environment/Daemons
9Source: ftp://ftp.kernel.org/pub/linux/daemons/autofs/autofs-%{version}.tar.bz2
10Patch1: autofs-5.0.3-ldap-page-control-configure-fix.patch
11Patch2: autofs-5.0.3-xfn-not-supported.patch
12Patch3: autofs-5.0.3-basedn-with-spaces-fix-3.patch
13Patch4: autofs-5.0.3-nfs4-tcp-only.patch
14Patch5: autofs-5.0.3-correct-ldap-lib.patch
15Patch6: autofs-5.0.3-dont-fail-on-empty-master-fix-2.patch
16Patch7: autofs-5.0.3-expire-works-too-hard.patch
17Patch8: autofs-5.0.3-unlink-mount-return-fix.patch
18Patch9: autofs-5.0.3-handle-zero-length-nis-key.patch
19Patch10: autofs-5.0.2-init-cb-on-load.patch
20Patch11: autofs-5.0.3-map-type-in-map-name.patch
21Patch12: autofs-5.0.3-mount-thread-create-cond-handling.patch
22Patch13: autofs-5.0.3-check-for-kernel-automount.patch
23Patch14: autofs-5.0.3-nss-source-any.patch
24Patch15: autofs-5.0.3-dont-abuse-ap-ghost-field.patch
25Patch16: autofs-5.0.3-lookup-next-soucre-stale-entry.patch
26Patch17: autofs-5.0.3-remove-redundant-dns-name-lookups.patch
27Patch18: autofs-5.0.3-mount-thread-create-cond-handling-fix.patch
28Patch19: autofs-5.0.3-allow-dir-create-on-nfs-root.patch
29Patch20: autofs-5.0.3-check-direct-path-len.patch
30Patch21: autofs-5.0.3-fix-get-user-info-check.patch
31Patch22: autofs-5.0.3-fix-couple-of-memory-leaks.patch
32Patch23: autofs-5.0.3-override-is-running-check.patch
33Patch24: autofs-5.0.3-dont-use-proc-for-is-running-check.patch
34Patch25: autofs-5.0.3-fix-included-browse-map-not-found.patch
35Patch26: autofs-5.0.3-fix-multi-source-messages.patch
36Patch27: autofs-5.0.3-clear-stale-on-map-read.patch
37Patch28: autofs-5.0.3-fix-proximity-other-timeout.patch
38Patch29: autofs-5.0.3-refactor-mount-request-vars.patch
39Patch30: autofs-5.0.3-make-handle_mounts-startup-cond-distinct.patch
40Patch31: autofs-5.0.3-submount-shutdown-recovery-12.patch
41Patch32: autofs-5.0.3-dont-block-on-expire.patch
42Patch33: autofs-5.0.3-add-umount_wait-parameter.patch
43Patch34: autofs-5.0.3-fix-multi-mount-race.patch
44Patch35: autofs-5.0.3-submount-shutdown-recovery-12-fix.patch
45Patch36: autofs-5.0.3-fix-nfs4-colon-escape.patch
46Patch37: autofs-5.0.3-check-replicated-list-after-probe.patch
47Patch38: autofs-5.0.3-add-replicated-debug-logging.patch
48Patch39: autofs-5.0.3-update-replicated-doco.patch
49Patch40: autofs-5.0.3-use-dev-urandom.patch
50Patch41: autofs-5.0.3-mtab-as-proc-mounts.patch
51Patch42: autofs-5.0.3-fix-ifc-buff-size.patch
52Patch43: autofs-5.0.3-fix-percent-hack.patch
53
54## Vine Patch(es)
55Patch100: autofs-3.1.7-initdir.patch
56Patch101: autofs-5.0.3-rc.autofs_LSB.patch
57
58Buildroot: %{_tmppath}/%{name}-%{version}-root
59BuildRequires: openldap-devel
60BuildRequires: bind-devel, libxml2-devel, openssl-devel
61BuildRequires: util-linux-ng, nfs-utils, e2fsprogs
62BuildRequires: flex, bison
63Requires(post): /sbin/chkconfig
64Requires(preun): /sbin/service
65Requires(postun): /sbin/chkconfig
66Requires(postun): /sbin/service
67Requires: kernel >= 2.6.17
68Requires: bash, sed, gawk, coreutils, grep, modutils, procps
69Provides: autofs-ldap
70Obsoletes: autofs-ldap <= 4.1.4-11vl2
71
72
73%description
74Autofs controls the operation of the automount daemons. The automount
75daemons automatically mount filesystems when you use them and
76unmount them after a period of inactivity. Filesystems can include
77network filesystems, CD-ROMs, floppies and others.
78
79Install this package if you want a program for automatically mounting
80and unmounting filesystems. If your Vine Linux machine is on a
81network, you should install autofs.
82
83%description -l ja
84autofs は automount デーモンの動作を制御します.
85automount デーモンは,ファイルシステムを使う時に自動的にマウントし,
86一定時間使わなければアンマウントしてくれます.
87対象となるファイルシステムには NFS, CD-ROM, フロッピー等があります.
88
89ファイルシステムを自動的にマウント/アンマウントさせたい場合は
90このパッケージをインストールして下さい.Vine Linux をインストールした
91マシンをネットワークに接続しているのならば,autofs をインストール
92すると良いでしょう.
93
94
95%prep
96%setup -q
97echo %{version}-%{release} > .version
98%patch1 -p1
99%patch2 -p1
100%patch3 -p1
101%patch4 -p1
102%patch5 -p1
103%patch6 -p1
104%patch7 -p1
105%patch8 -p1
106%patch9 -p1
107%patch10 -p1
108%patch11 -p1
109%patch12 -p1
110%patch13 -p1
111%patch14 -p1
112%patch15 -p1
113%patch16 -p1
114%patch17 -p1
115%patch18 -p1
116%patch19 -p1
117%patch20 -p1
118%patch21 -p1
119%patch22 -p1
120
121## Vine Patch(es)
122if [ "%{_initdir}" = "/etc/rc.d/init.d" ]; then
123    patch -p1 -b --suffix .initdir < %{PATCH100}
124fi
125%patch101 -p1 -b .lsb
126
127%build
128CFLAGS="$RPM_OPT_FLAGS -ggdb"; export CFLAGS
129%configure --without-hesiod --without-sasl \
130           --disable-mount-locking --enable-ignore-busy
131make initdir=/etc/rc.d/init.d STRIP=:
132make -C redhat
133
134%install
135[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
136mkdir -p -m755 $RPM_BUILD_ROOT%{_initdir}
137mkdir -p -m755 $RPM_BUILD_ROOT%{_libdir}/autofs
138mkdir -p -m755 $RPM_BUILD_ROOT%{_mandir}/{man5,man8}
139mkdir -p -m755 $RPM_BUILD_ROOT%{_sbindir}
140mkdir -p -m755 $RPM_BUILD_ROOT/etc/sysconfig
141
142make install mandir=%{_mandir} initdir=/etc/rc.d/init.d INSTALLROOT=$RPM_BUILD_ROOT
143make -C redhat
144install -m 755 -d $RPM_BUILD_ROOT/misc
145install -m 755 redhat/autofs.init $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
146install -m 644 redhat/autofs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/autofs
147
148%clean
149[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
150
151
152%post
153/sbin/chkconfig --add autofs
154
155
156%postun
157if [ $1 -ge 1 ] ; then
158        /sbin/service autofs condrestart > /dev/null 2>&1 || :
159fi
160
161%preun
162if [ "$1" = 0 ] ; then
163        /sbin/service autofs stop > /dev/null 2>&1
164        chkconfig --del autofs
165fi
166
167
168%files
169%defattr(-,root,root)
170%doc CHANGELOG COPYING COPYRIGHT CREDITS patches/*
171%doc samples/*
172%doc README README.*
173%config %{_initdir}/autofs
174%config(noreplace,missingok) /etc/auto.master
175%config(noreplace,missingok) /etc/auto.misc
176%config(noreplace,missingok) /etc/auto.net
177%config(noreplace,missingok) /etc/auto.smb
178%config(noreplace) /etc/autofs_ldap_auth.conf
179%config(noreplace) /etc/sysconfig/autofs
180%{_sbindir}/automount
181%dir /misc
182%dir %{_libdir}/autofs
183%{_libdir}/autofs/*.so
184%{_mandir}/*/*
185
186
187%changelog
188* Wed May 06 2009 NAKAMURA Kenta <kenta@vinelinux.org> 5.0.3-4
189- added Patch101: autofs-5.0.3-rc.autofs_LSB.patch to support LSB Header
190
191* Mon Jan 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> 5.0.3-3
192- rebuilt with openldap-2.4.11
193
194* Sun Sep 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0.3-2
195- make autofs.init executable. (<BTS:wishes:0160>)
196
197* Mon Sep 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0.3-1vl5
198- new upstream release
199- update fedora patches
200
201* Sat Aug 30 2008 Shu KONNO <owa@bg.wakwak.com> 4.1.4-12vl5
202- applied new versioning policy, spec in utf-8
203
204* Fri Apr 06 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.1.4-11vl5
205- fix sort option on auto.net (<BTS:490>)
206
207* Mon Sep 18 2006 NAKAMURA Kenta <kenta@vinelinux.org> 4.1.4-11vl4
208- added patch15 and patch16 imported from Fedora Core 5
209
210* Mon Sep 04 2006 NAKAMURA Kenta <kenta@vinelinux.org> 4.1.4-11vl3
211- added Obsoletes: autofs-ldap
212- added BuildPrereq: openldap-devel
213
214* Sun Aug 27 2006 NAKAMURA Kenta <kenta@vinelinux.org> 4.1.4-11vl2
215- removed --without-openldap configure option
216- rebuilt with openldap-2.3.27-0vl1
217
218* Sun Oct 30 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.4-11vl1
219- updated based on Fedora
220  * Wed Oct 26 2005  <jmoyer@redhat.com> - 1:4.1.4-11
221  - Check the return code of is_local_addr in get_best_mount. (bz #169523)
222  * Wed Oct 26 2005  <jmoyer@redhat.com> - 1:4.1.4-10
223  - Fix a buffer overflow with large key lengths
224  - change to the upstream reentrant syslog patch from the band-aid deferred
225    syslog patch.
226  - Get rid of the init script patch that hard-coded the release to redhat.
227    This should be handled properly by all red hat distros.
228  * Wed May  4 2005 Jeff Moyer <jmoyer@redhat.com> - 1:4.1.4-8
229  - Add in the deferred syslog patch.  This fixes a hung automounter issue
230    related to unsafe calls to syslog in signal handler context.
231  * Tue May  3 2005 Jeff Moyer <jmoyer@redhat.com> - 1:4.1.4-7
232  - I reversed the checking for multimount entries, breaking those configs!
233    This update puts the code back the way it was before I broke it.
234  * Tue Apr 26 2005 Jeff Moyer <jmoyer@redhat.com> - 1:4.1.4-6
235  - Fix a race between mounting a share and updating the cache in the parent
236    process.  If the mount completed first, the parent would not expire the
237    stale entry, leaving it first on the list.  This causes map updates to not
238    be recognized (well, worse, they are recognized after the first expire, but
239    not subsequent ones).  Fixes a regression, bug #137026 (rhel3 bug).
240  * Fri Apr 15 2005 Chris Feist <cfeist@redhat.com> - 1:4.1.4-5
241  - Fixed regression with -browse not taking effect.
242  * Wed Apr 13 2005 Jeff Moyer <jmoyer@redhat.com> - 1:4.1.4-4
243  - Finish up with the merge breakage.
244  - Temporary fix for the multimount detection code.  It seems half-baked.
245  * Wed Apr 13 2005 Jeff Moyer <jmoyer@redhat.com> - 1:4.1.4-3
246  - Fix up the one-auto-master patch.  My "improvements" had side-effects.
247  * Wed Oct 27 2004 Chris Feist <cfeist@redhat.com> - 1:4.1.3-34
248  - Added a patch to fix the automounter failing on ldap maps
249    when it couldn't get the whole map.  (ie. when the search
250    limit was lower than the number of results)
251- updated Patch101
252- s/Red Hat/Vines/ in description
253
254* Wed Jun 23 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.1.7-42vl3
255- fix init script (Patch102)
256  not to create lock file when no mountpoints are defined
257
258* Tue Oct 28 2003 Tomoya TAKA <taka@vinelinux.org> 3.1.7-42vl2
259- do not compile/install autofs-ldap-auto-master
260
261* Sun Oct  5 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.7-42vl1
262- based on Rawhide 3.1.7-42
263  - Fri Apr 25 2003 Nalin Dahyabhai <nalin@redhat.com> 3.1.7-37
264  - sync with current linux/auto_fs.h from the current kernel tree (#88562)
265  - Tue Apr  2 2002 Nalin Dahyabhai <nalin@redhat.com> 3.1.7-28
266  - try to properly handle nisplus maps (patch from Steve Foster via the
267    autofs mailing list)
268  - override the STRIP makefile variable to not strip binaries (that's the
269    build root policy's job)
270  - Wed Aug 29 2001 Nalin Dahyabhai <nalin@redhat.com> 3.1.7-21
271  - don't inhibit starting if we have a subsys lock around -- that's the
272    wrong thing to do anyway
273  - don't create a subsys lock if we're unconfigured (#52755)
274- rebuild with new toolchain
275- s/Copyright/License/
276
277* Tue Jan 29 2002 Toru Sagami <sagami@vinelinux.org> 3.1.7-2vl2
278- make /etc/vine-release read by autofs.init
279
280* Fri Jan 19 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
281- 3.1.7-2vl1
282- rebuilt for VineSeed
283- use better macros (%%{_initdir})
284- add Patch100 to cope with initdir :-(
285
286* Thu Jan 18 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
287- 3.1.7-2vl0
288- based on 3.1.7-2 from Rawhide
289- remove /etc/init.d from PreReq
290- build without openldap and hesiod
291- BuildPreReq: bind-devel again for Vine
292- added Japanese summary and description
293
294* Tue Jan  9 2001 Nalin Dahyabhai <nalin@redhat.com>
295- fix option parsing in lookup_multi (I think)
296- fix multi option handling in our hacked-up init script (reported by Thiago
297  Bartolomei on the autofs mailing list)
298
299* Wed Dec  6 2000 Nalin Dahyabhai <nalin@redhat.com>
300- update to 3.1.7
301- add the man pages back in (fell out in 3.1.6)
302
303* Tue Nov 28 2000 Nalin Dahyabhai <nalin@redhat.com>
304- don't require /etc/auto.master to be there to start
305
306* Mon Nov 27 2000 Nalin Dahyabhai <nalin@redhat.com>
307- update to 3.1.6
308- disable hesiod support because the new bind-devel doesn't include it
309- try to use nsswitch.conf for getting the contents of auto.master
310- only convert YP map names auto_home and auto_mnt
311
312* Fri Sep  8 2000 Nalin Dahyabhai <nalin@redhat.com>
313- add -lresolv to build properly with OpenLDAP 2
314
315* Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com>
316- convert YP map names that start with "auto_" to "auto." (#16753)
317
318* Wed Aug 16 2000 Nalin Dahyabhai <nalin@redhat.com>
319- add an extra pause after the initial shutdown attempt
320
321* Fri Aug 11 2000 Nalin Dahyabhai <nalin@redhat.com>
322- patch init script to not shut down --submount mounts on reload
323- remove temporary files again during reload
324
325* Thu Aug 10 2000 Nalin Dahyabhai <nalin@redhat.com>
326- revert to 3.1.5
327- add 3.1.6pre1 patch to handle LDAP maps
328- add Epoch: to upgrade from Raw Hide or Pinstripe
329- update to 3.1.6pre2
330
331* Fri Aug  4 2000 Nalin Dahyabhai <nalin@redhat.com>
332- work around kernel insmod concurrency problem (#14972) by loading the module
333  at start-time
334
335* Wed Aug  2 2000 Nalin Dahyabhai <nalin@redhat.com>
336- fix duplicate detection for false matches (e.g. "/user" == "/users") (#15183)
337
338* Mon Aug  1 2000 Nalin Dahyabhai <nalin@redhat.com>
339- merge ldap subpackage back into the main one and Obsolete: it
340- clean up build warnings
341- fix errors automounting ext2 filesystems due to uninitialized option string
342
343* Sat Jul 15 2000 Bill Nottingham <notting@redhat.com>
344- move initscript back
345
346* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
347- automatic rebuild
348
349* Mon Jul 10 2000 Nalin Dahyabhai <nalin@redhat.com>
350- move the init script to the right place
351
352* Fri Jul  7 2000 Nalin Dahyabhai <nalin@redhat.com>
353- add /net directory to the package
354
355* Thu Jul  6 2000 Nalin Dahyabhai <nalin@redhat.com>
356- do manual unmounting in shutdown script
357- change initscripts prereq to /etc/init.d
358- move autoconf invocation to setup section
359
360* Wed Jul  5 2000 Nalin Dahyabhai <nalin@redhat.com>
361- move condrestart to postun
362- make condrestart check the right file to determine if already running
363
364* Wed Jul  5 2000 Florian La Roche <Florian.LaRoche@redhat.com>
365- ignore errors in post script
366
367* Tue Jul  4 2000 Matt Wilson <msw@redhat.com>
368- use full path to chkconfig
369- full *correct* path to chkconfig
370
371* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
372- smoother starting/stopping on upgrades/removal
373
374* Thu Jun 15 2000 Nalin Dahyabhai <nalin@redhat.com>
375- be more aggressive when shutting down autofs
376- add condrestart support
377
378* Mon Jun  5 2000 Nalin Dahyabhai <nalin@redhat.com>
379- move man pages to %{_mandir}
380
381* Wed May 31 2000 Nalin Dahyabhai <nalin@redhat.com>
382- tweak argument parsing (bug #11801)
383
384* Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com>
385- rebuild in new build environment
386
387* Mon May  8 2000 Nalin Dahyabhai <nalin@redhat.com>
388- fix duplicate detection logic (duh!)
389
390* Tue May  2 2000 Nalin Dahyabhai <nalin@redhat.com>
391- add config: and processname: tags to init script
392
393* Sun Apr 30 2000 Nalin Dahyabhai <nalin@redhat.com>
394- fix shutdown logic (test -z $pid fails with multiple autofs daemons)
395
396* Wed Apr 26 2000 Nalin Dahyabhai <nalin@redhat.com>
397- split off autofs4 for testing & development
398- update patches for autofs4 for feeding back to autofs list
399- make auto.master a noreplace file
400
401* Mon Apr 17 2000 Nalin Dahyabhai <nalin@redhat.com>
402- split lookup_ldap into a subpackage (bug #10874)
403
404* Tue Apr 11 2000 Nalin Dahyabhai <nalin@redhat.com>
405- add LDAP map support, requires openldap
406- tweak init script patch to use fields 2+ for the map name instead of just 2
407
408* Wed Apr 05 2000 Nalin Dahyabhai <nalin@redhat.com>
409- fix bug #10402 by fixing the init script, hopefully for everybody
410- merge patches for the init script into a single patch to send to hpa
411- patch to build on 2.2 and late-series 2.3 kernels
412
413* Tue Feb 29 2000 Nalin Dahyabhai <nalin@redhat.com>
414- enable hesiod support over libbind
415
416* Mon Feb 28 2000 Nalin Dahyabhai <nalin@redhat.com>
417- fix init script bug when startup failed
418- fix option passing in init script
419
420* Sun Feb 13 2000 Nalin Dahyabhai <nalin@redhat.com>
421- make autofs start after ypbind by moving start priority 18, stop to 82
422- make sure that calls to "ps aux" include "www" to avoid snippage
423
424* Wed Feb  2 2000 Nalin Dahyabhai <nalin@redhat.com>
425- make sure all the docs get packaged
426- make init script do status messages like others
427- add "nosuid,nodev" to options for /misc/cd
428- switch to using INSTALLROOT during make install
429
430* Fri Jan 21 2000 Nalin Dahyabhai <nalin@redhat.com>
431- update to 3.1.4
432
433* Mon Sep 20 1999 Cristian Gafton <gafton@redhat.com>
434- use ps axw instead of ps ax in the init script
435
436* Fri Sep 10 1999 Bill Nottingham <notting@redhat.com>
437- chkconfig --del in %preun, not %postun
438
439* Tue Sep 07 1999 Cristian Gafton <gafton@redhat.com>
440- add patch from HJLu to handle NIS auto.master better
441
442* Wed Aug 25 1999 Cristian Gafton <gafton@redhat.com>
443- fix bug #4708
444
445* Sat Aug 21 1999 Bill Nottingham <notting@redhat.com>
446- fix perms on /usr/lib/autofs/*
447- add support for specifying maptype in auto.master
448
449* Fri Aug 13 1999 Cristian Gafton <gafton@redhat.com>
450- add patch from rth to avoid an infinite loop
451
452* Wed Apr 28 1999 Cristian Gafton <gafton@redhat.com>
453- use "autofs" instead of "automount" for /var/lock/subsys lock file
454
455* Fri Apr 09 1999 Cristian Gafton <gafton@redhat.com>
456- enahanced initscript to try to load maps over NIS
457- changed the mount point back to misc (there is a reason we leave /mnt
458  alone)
459- patched back autofs.misc to the version shipped on 5.2 to avoid replacing
460  yet one more config file for those who upgrade
461
462* Wed Mar 24 1999 Preston Brown <pbrown@redhat.com>
463- upgrade to 3.1.3, fixing smbfs stuff and other things
464- changed mountpoint from /misc to /mnt
465
466* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
467- auto rebuild in the new build environment (release 10)
468
469* Mon Feb  8 1999 Bill Nottingham <notting@redhat.com>
470- build for kernel-2.2/glibc2.1
471
472* Tue Oct  6 1998 Bill Nottingham <notting@redhat.com>
473- fix bash2 breakage in init script
474
475* Sun Aug 23 1998 Jeff Johnson <jbj@redhat.com>
476- typo in man page.
477
478* Mon Jul 20 1998 Jeff Johnson <jbj@redhat.com>
479- added sparc to ExclusiveArch.
480
481* Thu May 07 1998 Prospector System <bugs@redhat.com>
482- translations modified for de, fr, tr
483
484* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
485- updated to 3.1.1
486
487* Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com>
488- enhanced initscripts
489
490* Fri Dec 05 1997 Michael K. Johnson <johnsonm@redhat.com>
491- Link with -lnsl for glibc compliance.
492
493* Thu Oct 23 1997 Michael K. Johnson <johnsonm@redhat.com>
494- exclusivearch for i386 for now, since our kernel packages on
495  other platforms don't include autofs yet.
496- improvements to initscripts.
497
498* Thu Oct 16 1997 Michael K. Johnson <johnsonm@redhat.com>
499- Built package from 0.3.14 for 5.0
Note: See TracBrowser for help on using the repository browser.