am-utils-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. Summary: Automount utilities including an updated version of Amd.
  2. Summary(ja): Amd のアップデート版を含むオートマウント・ユーティリティ
  3. Name: am-utils
  4. Version: 6.1.5
  5. Release: 0vl1
  6. License: BSD
  7. Epoch: 5
  8. Group: System Environment/Daemons
  9. URL: http://www.am-utils.org/
  10. Source: ftp://ftp.am-utils.org/pub/am-utils/am-utils-%{version}.tar.gz
  11. Source1: am-utils.init
  12. Source2: am-utils.conf
  13. Source3: am-utils.sysconf
  14. Source4: am-utils.net.map
  15. Patch: am-utils-gdbm.patch
  16. BuildRoot: %{_tmppath}/%{name}-root
  17. %define autoconf_suffix %{nil}
  18. %define automake_suffix %{nil}
  19. BuildPrereq: gdbm-devel, autoconf, automake
  20. %define with_ldap 0
  21. %define with_hesiod 0
  22. %if %{with_ldap}
  23. BuildPrereq: openldap-devel
  24. %endif
  25. %if %{with_hesiod}
  26. BuildPrereq: hesiod-devel
  27. %endif
  28. Requires: portmap, grep, gawk, findutils
  29. Prereq: /sbin/install-info, /sbin/chkconfig, grep
  30. Obsoletes: amd
  31. # We need to filter out some perl requirements for now.
  32. %define _use_internal_dependency_generator 0
  33. %define __find_requires %{_builddir}/%{name}-%{version}/find-requires
  34. %description
  35. Am-utils includes an updated version of Amd, the popular BSD
  36. automounter. An automounter is a program which maintains a cache
  37. of mounted filesystems. Filesystems are mounted when they are
  38. first referenced by the user and unmounted after a certain period of
  39. inactivity. Amd supports a variety of filesystems, including NFS, UFS,
  40. CD-ROMS and local drives.
  41. You should install am-utils if you need a program for automatically
  42. mounting and unmounting filesystems.
  43. %description -l ja
  44. Am-utils は、広く使われているBSDのオートマウンター Amd のアップデート
  45. 版を含むオートマウント・ユーティリティです。オートマウンターとは、
  46. マウントしたファイルシステムのキャッシュを管理するプログラムです。
  47. ユーザが初めて参照した時にファイルシステムは参照されて、使わなくなっ
  48. て少したつとマウントをはずします。NFS, UFS, CD-ROMS, ローカルドライブ
  49. を含む、さまざまなファイルシステムがサポートされてます。
  50. 自動でファイルシステムのマウントやアンマウントを行いたいなら、
  51. 是非am-utilsをインストールしてください。
  52. %prep
  53. %setup -q
  54. #%patch -p1
  55. aclocal%{automake_suffix}
  56. autoconf%{autoconf_suffix}
  57. automake%{automake_suffix} --gnu --ignore-deps
  58. find_requires=`rpm --eval %%{__find_requires}`
  59. echo "$find_requires | grep -v lostaltmail.conf" > find-requires
  60. chmod +x find-requires
  61. %build
  62. %configure \
  63. ACLOCAL=aclocal%{automake_suffix} \
  64. AUTOCONF=autoconf%{autoconf_suffix} \
  65. AUTOMAKE=automake%{automake_suffix} \
  66. AUTOHEADER=autoheader%{autoconf_suffix} \
  67. %if %{with_ldap}
  68. --with-ldap \
  69. %else
  70. --without-ldap \
  71. %endif
  72. %if %{with_hesiod}
  73. --with-hesiod \
  74. %else
  75. --without-hesiod \
  76. %endif
  77. --enable-shared \
  78. --enable-am-cflags="$RPM_OPT_FLAGS" \
  79. --enable-libs="-lnsl -lresolv"
  80. make %{?_smp_flags}
  81. %install
  82. rm -rf $RPM_BUILD_ROOT
  83. %makeinstall
  84. mkdir -p $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
  85. install -m 755 $RPM_SOURCE_DIR/am-utils.sysconf $RPM_BUILD_ROOT/etc/sysconfig/amd
  86. #install -m 755 scripts/redhat-ctl-amd $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
  87. install -m 755 $RPM_SOURCE_DIR/am-utils.init $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
  88. gzip -q9f $RPM_BUILD_ROOT/%{_infodir}/*info*
  89. mkdir -p $RPM_BUILD_ROOT/.automount
  90. rm -f $RPM_BUILD_ROOT/usr/sbin/ctl-amd
  91. # add symlinks to shared libs
  92. /sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
  93. # install the default config and map files
  94. install -m 600 %{SOURCE2} $RPM_BUILD_ROOT/etc/amd.conf
  95. install -m 640 %{SOURCE4} $RPM_BUILD_ROOT/etc/amd.net
  96. # We don't build a -devel package.
  97. rm -f $RPM_BUILD_ROOT/%{_libdir}/libamu.a
  98. rm -f $RPM_BUILD_ROOT/%{_libdir}/libamu.la
  99. # We don't include the info directory.
  100. rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
  101. # Remove the other sample config file.
  102. rm -f $RPM_BUILD_ROOT/etc/amd.conf-sample
  103. rm -f $RPM_BUILD_ROOT/etc/lostaltmail.conf-sample
  104. %clean
  105. rm -rf $RPM_BUILD_ROOT
  106. %pre
  107. # Check if we have an old fashioned amd.conf and rename if to amd.net
  108. if [ "$1" = "0" ] ; then
  109. if grep -q "auto_dir" /etc/amd.conf 2>/dev/null ; then
  110. # this is okay
  111. exit 0
  112. else
  113. # this needs to be renamed. Still, if /etc/amd.net exists, then
  114. # don't bother renamig it. RPM will handle it better than us here.
  115. if [ -e /etc/amd.net ] ; then
  116. exit 0
  117. else
  118. mv -f /etc/amd.conf /etc/amd.net
  119. fi
  120. fi
  121. fi
  122. exit 0
  123. %post
  124. /sbin/ldconfig
  125. /sbin/chkconfig --add amd
  126. /sbin/install-info %{_infodir}/am-utils.info.gz %{_infodir}/dir
  127. %preun
  128. if [ $1 = 0 ]; then
  129. /sbin/install-info --delete %{_infodir}/am-utils.info.gz %{_infodir}/dir
  130. /sbin/service amd stop >/dev/null 2>&1
  131. /sbin/chkconfig --del amd
  132. fi
  133. %postun
  134. if [ $1 -ge 1 ]; then
  135. /sbin/service amd condrestart >/dev/null 2>&1
  136. fi
  137. /sbin/ldconfig
  138. %files
  139. %defattr(-,root,root)
  140. %doc doc/*.ps AUTHORS BUGS ChangeLog NEWS README* scripts/*-sample
  141. %dir /.automount
  142. %{_bindir}/expn
  143. %{_bindir}/pawd
  144. %{_sbindir}/*
  145. %{_mandir}/man[58]/*
  146. %{_mandir}/man1/expn.1*
  147. %{_mandir}/man1/pawd.1*
  148. %config(noreplace) /etc/amd.net
  149. %config(noreplace) /etc/amd.conf
  150. %config(noreplace) /etc/sysconfig/amd
  151. %config /etc/rc.d/init.d/amd
  152. %{_infodir}/*info*.gz
  153. %{_libdir}/libamu.so*
  154. %changelog
  155. * Sun Jan 06 2008 Shu KONNO <owa@bg.wakwak.com> 6.1.5-0vl1
  156. - updated to 6.1.5
  157. - dropt am-utils-gdbm.patch
  158. * Fri Oct 22 2004 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 6.0.9-2vl2
  159. - built for Vine Linux 3.0
  160. * Mon May 26 2003 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 6.0.9-2vl1
  161. - update to 6.0.9 (based on RawHide 6.0.9-2) & built for Vine Linux 2.6
  162. using autoconf253 and automake15
  163. - do not link with openldap and hesiod by default
  164. * Tue Feb 04 2003 Florian La Roche <Florian.LaRoche@redhat.de>
  165. - add symlink to shared lib
  166. * Fri Jan 31 2003 Nalin Dahyabhai <nalin@redhat.com> 6.0.9-1
  167. - disable RPM's internal dependency calculation so that we can filter out
  168. dependencies which are expected to be filled in by the site administrator
  169. * Wed May 29 2002 Nalin Dahyabhai <nalin@redhat.com> 6.0.7-7
  170. - adjust the perl reqs so that the lostaltmail config files aren't required
  171. by RPM
  172. * Sat Jan 26 2002 Jeff Johnson <jbj@redhat.com>
  173. - add Provides: to white out certain perl Requires:
  174. * Wed Jan 23 2002 Nalin Dahyabhai <nalin@redhat.com> 6.0.7-2
  175. - require gdbm-devel at build-time instead of db1-devel
  176. * Thu Sep 6 2001 Nalin Dahyabhai <nalin@redhat.com> 6.0.7-1
  177. - update to 6.0.7, fixing EIO on access bugs (#53251)
  178. - back out nfs3 patch; no longer needed for current kernels
  179. - don't explicitly strip binaries; let the buildroot policies handle it
  180. * Mon Jun 25 2001 Nalin Dahyabhai <nalin@redhat.com>
  181. - add BuildPrereq: db1-devel (#44987)
  182. - use FHS macros
  183. - return error codes correctly from init script (#44597)
  184. * Tue May 08 2001 <sagami@vinelinux.org>
  185. - 6.0.5-1vl1: based on RawHide 6.0.5-1 and built for Vine Linux
  186. * Sat Apr 7 2001 Nalin Dahyabhai <nalin@redhat.com>
  187. - update to 6.0.5
  188. - remove /net from the default MOUNTPTS
  189. * Tue Mar 13 2001 Nalin Dahyabhai <nalin@redhat.com>
  190. - use MOUNTPTS when starting
  191. * Fri Mar 2 2001 Nalin Dahyabhai <nalin@redhat.com>
  192. - rebuild in new environment
  193. * Wed Feb 14 2001 Nalin Dahyabhai <nalin@redhat.com>
  194. - redo i18n for the init script (#24082)
  195. * Tue Jan 23 2001 Nalin Dahyabhai <nalin@redhat.com>
  196. - re-do workaround from advice from the am-utils maintainers
  197. - redo i18n for the init script
  198. * Sat Jan 20 2001 Nalin Dahyabhai <nalin@redhat.com>
  199. - work around clash with nfs3_fh definition in 2.4
  200. * Tue Jan 16 2001 Nalin Dahyabhai <nalin@redhat.com>
  201. - gettextize the init script (#24087)
  202. * Tue Dec 19 2000 Nalin Dahyabhai <nalin@redhat.com>
  203. - add ldconfig to %%postun
  204. - chuck the hesiod patch -- new bind-utils doesn't have the support for it
  205. * Fri Sep 8 2000 Nalin Dahyabhai <nalin@redhat.com>
  206. - rebuild in new environment
  207. * Sat Jul 15 2000 Bill Nottingham <notting@redhat.com>
  208. - move initscript back
  209. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  210. - automatic rebuild
  211. * Thu Jul 6 2000 Nalin Dahyabhai <nalin@redhat.com>
  212. - only create /var/lock/subsys/amd if startup succeeds
  213. - revamp shutdown procedure to minimize time spent just spinning
  214. - change initscripts dependency to /etc/init.d
  215. * Tue Jul 4 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  216. - delete noreplace from initscript
  217. * Wed Jun 28 2000 Nalin Dahyabhai <nalin@redhat.com>
  218. - fix postun script
  219. - add requires: initscripts
  220. * Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
  221. - remove unnecessary libamu.so symlink
  222. * Mon Jun 26 2000 Nalin Dahyabhai <nalin@redhat.com>
  223. - move init script to /etc/init.d
  224. - add URL: tag
  225. * Wed Jun 21 2000 Preston Brown <pbrown@redhat.com>
  226. - noreplace config files
  227. - gracefully stop/restart service
  228. * Fri Jun 16 2000 Matt Wilson <msw@redhat.com>
  229. - FHS paths
  230. - 6.0.4 snapshot (as it builds against kernel 2.4 headers)
  231. * Wed Feb 16 2000 Cristian Gafton <gafton@redhat.com>
  232. - version 6.0.3
  233. - enhance init script to be more wait4amd2die-like
  234. - make default map type to be file (#9185)
  235. - get rid of the kludges
  236. * Thu Feb 03 2000 Cristian Gafton <gafton@redhat.com>
  237. - man pages are compressed
  238. - version 6.0.2
  239. - fix descriptions
  240. * Mon Sep 13 1999 Cristian Gafton <gafton@redhat.com>
  241. - version 6.0.1 final
  242. * Tue Aug 24 1999 Cristian Gafton <gafton@redhat.com>
  243. - remove the noldap patch
  244. - add amd.net file as the default config map file
  245. - change the config file to teh new config file format instead of a
  246. simple map file name.
  247. - try to avoid some damage with a new %pre script
  248. - prereq grep now
  249. - modify the init file so it calls amd -F /etc/amd.conf now
  250. * Tue Aug 24 1999 Bill Nottingham <notting@redhat.com>
  251. - update to 6.0.1s11
  252. * Fri Jun 19 1999 Bill Nottingham <notting@redhat.com>
  253. - don't run by default
  254. * Mon May 31 1999 Kenneth Skaar <kenneths@regina.uio.no>
  255. - Fixed amd -F core dump and related dumps by other programs
  256. * Thu Apr 08 1999 Preston Brown <pbrown@redhat.com>
  257. - kill -HUP on reload, restart does a real restart.
  258. * Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
  259. - twiddle an echo in initscript
  260. * Tue Mar 23 1999 Cristian Gafton <gafton@redhat.com>
  261. - version 6.0 proper
  262. - Serial:1 because to enforce versioning
  263. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  264. - auto rebuild in the new build environment (release 6)
  265. * Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
  266. - rebuild for glibc 2.1
  267. - strip all binaries
  268. * Thu Aug 13 1998 Jeff Johnson <jbj@redhat.com>
  269. - add missing ':' to default 'opts:=nosuid,nodev'
  270. - install info pages
  271. * Mon Jul 13 1998 Cristian Gafton <gafton@redhat.com>
  272. - added the NIS support that the broken configure script failed to detect
  273. * Tue May 05 1998 Cristian Gafton <gafton@redhat.com>
  274. - disabled autofs support on alpha
  275. - run ldconfig in postinstall
  276. * Mon May 04 1998 Cristian Gafton <gafton@redhat.com>
  277. - new package to replace the old and unmaintained amd