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

Revision 10288, 16.8 KB checked in by Takemikaduchi, 8 years ago (diff)

task-all-codecs: remove xine-lib-esd
others: new upstream release

Line 
1Summary: A tool for automatically mounting and unmounting filesystems.
2Summary(ja): 自動的にファイルシステムをマウント/アンマウントするツール
3Name: autofs
4Version: 5.1.1
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* Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 5.1.1-1
138- update to 5.1.1
139
140* Tue Jun 17 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.1.0-1
141- new upstream release
142- Patch[123] removed (already in the upstream)
143
144* Sun Dec 01 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.0.8-2
145- add Patch102 (autofs-5.0.8-fix-initscript-vine.patch)
146
147* Sun Nov 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.0.8-1
148- new upstream release
149- update upstream patches (Patch1-3)
150
151* Sun Apr 17 2011 NAKAMURA Kenta <kenta@vinelinux.org> 5.0.5-2
152- rebuilt on current VineSeed
153
154* Sun Apr 18 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0.5-1
155- new upstream release
156- update upstream patches (Patch0-27)
157
158* Wed May 06 2009 NAKAMURA Kenta <kenta@vinelinux.org> 5.0.3-4
159- added Patch101: autofs-5.0.3-rc.autofs_LSB.patch to support LSB Header
160
161* Mon Jan 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> 5.0.3-3
162- rebuilt with openldap-2.4.11
163
164* Sun Sep 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0.3-2
165- make autofs.init executable. (<BTS:wishes:0160>)
166
167* Mon Sep 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0.3-1vl5
168- new upstream release
169- update fedora patches
170
171* Sat Aug 30 2008 Shu KONNO <owa@bg.wakwak.com> 4.1.4-12vl5
172- applied new versioning policy, spec in utf-8
173
174* Fri Apr 06 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.1.4-11vl5
175- fix sort option on auto.net (<BTS:490>)
176
177* Mon Sep 18 2006 NAKAMURA Kenta <kenta@vinelinux.org> 4.1.4-11vl4
178- added patch15 and patch16 imported from Fedora Core 5
179
180* Mon Sep 04 2006 NAKAMURA Kenta <kenta@vinelinux.org> 4.1.4-11vl3
181- added Obsoletes: autofs-ldap
182- added BuildPrereq: openldap-devel
183
184* Sun Aug 27 2006 NAKAMURA Kenta <kenta@vinelinux.org> 4.1.4-11vl2
185- removed --without-openldap configure option
186- rebuilt with openldap-2.3.27-0vl1
187
188* Sun Oct 30 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.1.4-11vl1
189- updated based on Fedora
190  * Wed Oct 26 2005  <jmoyer@redhat.com> - 1:4.1.4-11
191  - Check the return code of is_local_addr in get_best_mount. (bz #169523)
192  * Wed Oct 26 2005  <jmoyer@redhat.com> - 1:4.1.4-10
193  - Fix a buffer overflow with large key lengths
194  - change to the upstream reentrant syslog patch from the band-aid deferred
195    syslog patch.
196  - Get rid of the init script patch that hard-coded the release to redhat.
197    This should be handled properly by all red hat distros.
198  * Wed May  4 2005 Jeff Moyer <jmoyer@redhat.com> - 1:4.1.4-8
199  - Add in the deferred syslog patch.  This fixes a hung automounter issue
200    related to unsafe calls to syslog in signal handler context.
201  * Tue May  3 2005 Jeff Moyer <jmoyer@redhat.com> - 1:4.1.4-7
202  - I reversed the checking for multimount entries, breaking those configs!
203    This update puts the code back the way it was before I broke it.
204  * Tue Apr 26 2005 Jeff Moyer <jmoyer@redhat.com> - 1:4.1.4-6
205  - Fix a race between mounting a share and updating the cache in the parent
206    process.  If the mount completed first, the parent would not expire the
207    stale entry, leaving it first on the list.  This causes map updates to not
208    be recognized (well, worse, they are recognized after the first expire, but
209    not subsequent ones).  Fixes a regression, bug #137026 (rhel3 bug).
210  * Fri Apr 15 2005 Chris Feist <cfeist@redhat.com> - 1:4.1.4-5
211  - Fixed regression with -browse not taking effect.
212  * Wed Apr 13 2005 Jeff Moyer <jmoyer@redhat.com> - 1:4.1.4-4
213  - Finish up with the merge breakage.
214  - Temporary fix for the multimount detection code.  It seems half-baked.
215  * Wed Apr 13 2005 Jeff Moyer <jmoyer@redhat.com> - 1:4.1.4-3
216  - Fix up the one-auto-master patch.  My "improvements" had side-effects.
217  * Wed Oct 27 2004 Chris Feist <cfeist@redhat.com> - 1:4.1.3-34
218  - Added a patch to fix the automounter failing on ldap maps
219    when it couldn't get the whole map.  (ie. when the search
220    limit was lower than the number of results)
221- updated Patch101
222- s/Red Hat/Vines/ in description
223
224* Wed Jun 23 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.1.7-42vl3
225- fix init script (Patch102)
226  not to create lock file when no mountpoints are defined
227
228* Tue Oct 28 2003 Tomoya TAKA <taka@vinelinux.org> 3.1.7-42vl2
229- do not compile/install autofs-ldap-auto-master
230
231* Sun Oct  5 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.7-42vl1
232- based on Rawhide 3.1.7-42
233  - Fri Apr 25 2003 Nalin Dahyabhai <nalin@redhat.com> 3.1.7-37
234  - sync with current linux/auto_fs.h from the current kernel tree (#88562)
235  - Tue Apr  2 2002 Nalin Dahyabhai <nalin@redhat.com> 3.1.7-28
236  - try to properly handle nisplus maps (patch from Steve Foster via the
237    autofs mailing list)
238  - override the STRIP makefile variable to not strip binaries (that's the
239    build root policy's job)
240  - Wed Aug 29 2001 Nalin Dahyabhai <nalin@redhat.com> 3.1.7-21
241  - don't inhibit starting if we have a subsys lock around -- that's the
242    wrong thing to do anyway
243  - don't create a subsys lock if we're unconfigured (#52755)
244- rebuild with new toolchain
245- s/Copyright/License/
246
247* Tue Jan 29 2002 Toru Sagami <sagami@vinelinux.org> 3.1.7-2vl2
248- make /etc/vine-release read by autofs.init
249
250* Fri Jan 19 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
251- 3.1.7-2vl1
252- rebuilt for VineSeed
253- use better macros (%%{_initdir})
254- add Patch100 to cope with initdir :-(
255
256* Thu Jan 18 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
257- 3.1.7-2vl0
258- based on 3.1.7-2 from Rawhide
259- remove /etc/init.d from PreReq
260- build without openldap and hesiod
261- BuildPreReq: bind-devel again for Vine
262- added Japanese summary and description
263
264* Tue Jan  9 2001 Nalin Dahyabhai <nalin@redhat.com>
265- fix option parsing in lookup_multi (I think)
266- fix multi option handling in our hacked-up init script (reported by Thiago
267  Bartolomei on the autofs mailing list)
268
269* Wed Dec  6 2000 Nalin Dahyabhai <nalin@redhat.com>
270- update to 3.1.7
271- add the man pages back in (fell out in 3.1.6)
272
273* Tue Nov 28 2000 Nalin Dahyabhai <nalin@redhat.com>
274- don't require /etc/auto.master to be there to start
275
276* Mon Nov 27 2000 Nalin Dahyabhai <nalin@redhat.com>
277- update to 3.1.6
278- disable hesiod support because the new bind-devel doesn't include it
279- try to use nsswitch.conf for getting the contents of auto.master
280- only convert YP map names auto_home and auto_mnt
281
282* Fri Sep  8 2000 Nalin Dahyabhai <nalin@redhat.com>
283- add -lresolv to build properly with OpenLDAP 2
284
285* Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com>
286- convert YP map names that start with "auto_" to "auto." (#16753)
287
288* Wed Aug 16 2000 Nalin Dahyabhai <nalin@redhat.com>
289- add an extra pause after the initial shutdown attempt
290
291* Fri Aug 11 2000 Nalin Dahyabhai <nalin@redhat.com>
292- patch init script to not shut down --submount mounts on reload
293- remove temporary files again during reload
294
295* Thu Aug 10 2000 Nalin Dahyabhai <nalin@redhat.com>
296- revert to 3.1.5
297- add 3.1.6pre1 patch to handle LDAP maps
298- add Epoch: to upgrade from Raw Hide or Pinstripe
299- update to 3.1.6pre2
300
301* Fri Aug  4 2000 Nalin Dahyabhai <nalin@redhat.com>
302- work around kernel insmod concurrency problem (#14972) by loading the module
303  at start-time
304
305* Wed Aug  2 2000 Nalin Dahyabhai <nalin@redhat.com>
306- fix duplicate detection for false matches (e.g. "/user" == "/users") (#15183)
307
308* Tue Aug  1 2000 Nalin Dahyabhai <nalin@redhat.com>
309- merge ldap subpackage back into the main one and Obsolete: it
310- clean up build warnings
311- fix errors automounting ext2 filesystems due to uninitialized option string
312
313* Sat Jul 15 2000 Bill Nottingham <notting@redhat.com>
314- move initscript back
315
316* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
317- automatic rebuild
318
319* Mon Jul 10 2000 Nalin Dahyabhai <nalin@redhat.com>
320- move the init script to the right place
321
322* Fri Jul  7 2000 Nalin Dahyabhai <nalin@redhat.com>
323- add /net directory to the package
324
325* Thu Jul  6 2000 Nalin Dahyabhai <nalin@redhat.com>
326- do manual unmounting in shutdown script
327- change initscripts prereq to /etc/init.d
328- move autoconf invocation to setup section
329
330* Wed Jul  5 2000 Nalin Dahyabhai <nalin@redhat.com>
331- move condrestart to postun
332- make condrestart check the right file to determine if already running
333
334* Wed Jul  5 2000 Florian La Roche <Florian.LaRoche@redhat.com>
335- ignore errors in post script
336
337* Tue Jul  4 2000 Matt Wilson <msw@redhat.com>
338- use full path to chkconfig
339- full *correct* path to chkconfig
340
341* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
342- smoother starting/stopping on upgrades/removal
343
344* Thu Jun 15 2000 Nalin Dahyabhai <nalin@redhat.com>
345- be more aggressive when shutting down autofs
346- add condrestart support
347
348* Mon Jun  5 2000 Nalin Dahyabhai <nalin@redhat.com>
349- move man pages to %{_mandir}
350
351* Wed May 31 2000 Nalin Dahyabhai <nalin@redhat.com>
352- tweak argument parsing (bug #11801)
353
354* Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com>
355- rebuild in new build environment
356
357* Mon May  8 2000 Nalin Dahyabhai <nalin@redhat.com>
358- fix duplicate detection logic (duh!)
359
360* Tue May  2 2000 Nalin Dahyabhai <nalin@redhat.com>
361- add config: and processname: tags to init script
362
363* Sun Apr 30 2000 Nalin Dahyabhai <nalin@redhat.com>
364- fix shutdown logic (test -z $pid fails with multiple autofs daemons)
365
366* Wed Apr 26 2000 Nalin Dahyabhai <nalin@redhat.com>
367- split off autofs4 for testing & development
368- update patches for autofs4 for feeding back to autofs list
369- make auto.master a noreplace file
370
371* Mon Apr 17 2000 Nalin Dahyabhai <nalin@redhat.com>
372- split lookup_ldap into a subpackage (bug #10874)
373
374* Tue Apr 11 2000 Nalin Dahyabhai <nalin@redhat.com>
375- add LDAP map support, requires openldap
376- tweak init script patch to use fields 2+ for the map name instead of just 2
377
378* Wed Apr 05 2000 Nalin Dahyabhai <nalin@redhat.com>
379- fix bug #10402 by fixing the init script, hopefully for everybody
380- merge patches for the init script into a single patch to send to hpa
381- patch to build on 2.2 and late-series 2.3 kernels
382
383* Tue Feb 29 2000 Nalin Dahyabhai <nalin@redhat.com>
384- enable hesiod support over libbind
385
386* Mon Feb 28 2000 Nalin Dahyabhai <nalin@redhat.com>
387- fix init script bug when startup failed
388- fix option passing in init script
389
390* Sun Feb 13 2000 Nalin Dahyabhai <nalin@redhat.com>
391- make autofs start after ypbind by moving start priority 18, stop to 82
392- make sure that calls to "ps aux" include "www" to avoid snippage
393
394* Wed Feb  2 2000 Nalin Dahyabhai <nalin@redhat.com>
395- make sure all the docs get packaged
396- make init script do status messages like others
397- add "nosuid,nodev" to options for /misc/cd
398- switch to using INSTALLROOT during make install
399
400* Fri Jan 21 2000 Nalin Dahyabhai <nalin@redhat.com>
401- update to 3.1.4
402
403* Mon Sep 20 1999 Cristian Gafton <gafton@redhat.com>
404- use ps axw instead of ps ax in the init script
405
406* Fri Sep 10 1999 Bill Nottingham <notting@redhat.com>
407- chkconfig --del in %preun, not %postun
408
409* Tue Sep 07 1999 Cristian Gafton <gafton@redhat.com>
410- add patch from HJLu to handle NIS auto.master better
411
412* Wed Aug 25 1999 Cristian Gafton <gafton@redhat.com>
413- fix bug #4708
414
415* Sat Aug 21 1999 Bill Nottingham <notting@redhat.com>
416- fix perms on /usr/lib/autofs/*
417- add support for specifying maptype in auto.master
418
419* Fri Aug 13 1999 Cristian Gafton <gafton@redhat.com>
420- add patch from rth to avoid an infinite loop
421
422* Wed Apr 28 1999 Cristian Gafton <gafton@redhat.com>
423- use "autofs" instead of "automount" for /var/lock/subsys lock file
424
425* Fri Apr 09 1999 Cristian Gafton <gafton@redhat.com>
426- enahanced initscript to try to load maps over NIS
427- changed the mount point back to misc (there is a reason we leave /mnt
428  alone)
429- patched back autofs.misc to the version shipped on 5.2 to avoid replacing
430  yet one more config file for those who upgrade
431
432* Wed Mar 24 1999 Preston Brown <pbrown@redhat.com>
433- upgrade to 3.1.3, fixing smbfs stuff and other things
434- changed mountpoint from /misc to /mnt
435
436* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
437- auto rebuild in the new build environment (release 10)
438
439* Mon Feb  8 1999 Bill Nottingham <notting@redhat.com>
440- build for kernel-2.2/glibc2.1
441
442* Tue Oct  6 1998 Bill Nottingham <notting@redhat.com>
443- fix bash2 breakage in init script
444
445* Sun Aug 23 1998 Jeff Johnson <jbj@redhat.com>
446- typo in man page.
447
448* Mon Jul 20 1998 Jeff Johnson <jbj@redhat.com>
449- added sparc to ExclusiveArch.
450
451* Thu May 07 1998 Prospector System <bugs@redhat.com>
452- translations modified for de, fr, tr
453
454* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
455- updated to 3.1.1
456
457* Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com>
458- enhanced initscripts
459
460* Fri Dec 05 1997 Michael K. Johnson <johnsonm@redhat.com>
461- Link with -lnsl for glibc compliance.
462
463* Thu Oct 23 1997 Michael K. Johnson <johnsonm@redhat.com>
464- exclusivearch for i386 for now, since our kernel packages on
465  other platforms don't include autofs yet.
466- improvements to initscripts.
467
468* Thu Oct 16 1997 Michael K. Johnson <johnsonm@redhat.com>
469- Built package from 0.3.14 for 5.0
Note: See TracBrowser for help on using the repository browser.