autofs-vl.spec 16 KB

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