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

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