autofs-vl.spec 17 KB

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