autofs-vl.spec 17 KB

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